Package sass.embedded_protocol
Enum Class EmbeddedSass.ProtocolErrorType
java.lang.Object
java.lang.Enum<EmbeddedSass.ProtocolErrorType>
sass.embedded_protocol.EmbeddedSass.ProtocolErrorType
- All Implemented Interfaces:
Internal.EnumLite,ProtocolMessageEnum,Serializable,Comparable<EmbeddedSass.ProtocolErrorType>,Constable
- Enclosing class:
- EmbeddedSass
public static enum EmbeddedSass.ProtocolErrorType
extends Enum<EmbeddedSass.ProtocolErrorType>
implements ProtocolMessageEnum
Potential types of protocol errors.Protobuf enum
sass.embedded_protocol.ProtocolErrorType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSomething unexpected went wrong within the endpoint.A message was received that violated a documented restriction, such as not providing a mandatory field.A message was received that couldn't be decoded as an `InboundMessage` (for the compiler) or `OutboundMessage` (for the host). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSomething unexpected went wrong within the endpoint.static final intA message was received that violated a documented restriction, such as not providing a mandatory field.static final intA message was received that couldn't be decoded as an `InboundMessage` (for the compiler) or `OutboundMessage` (for the host). -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final Descriptors.EnumDescriptorfinal intvalueOf(int value) Deprecated.Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static EmbeddedSass.ProtocolErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PARSE
A message was received that couldn't be decoded as an `InboundMessage` (for the compiler) or `OutboundMessage` (for the host).
PARSE = 0; -
PARAMS
A message was received that violated a documented restriction, such as not providing a mandatory field.
PARAMS = 1; -
INTERNAL
Something unexpected went wrong within the endpoint.
INTERNAL = 2; -
UNRECOGNIZED
-
-
Field Details
-
PARSE_VALUE
public static final int PARSE_VALUEA message was received that couldn't be decoded as an `InboundMessage` (for the compiler) or `OutboundMessage` (for the host).
PARSE = 0;- See Also:
-
PARAMS_VALUE
public static final int PARAMS_VALUEA message was received that violated a documented restriction, such as not providing a mandatory field.
PARAMS = 1;- See Also:
-
INTERNAL_VALUE
public static final int INTERNAL_VALUESomething unexpected went wrong within the endpoint.
INTERNAL = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-