Package sass.embedded_protocol
Enum 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>
- Enclosing class:
- EmbeddedSass
public static enum EmbeddedSass.ProtocolErrorType extends Enum<EmbeddedSass.ProtocolErrorType> implements ProtocolMessageEnum
Potential types of protocol errors.
Protobuf enumsass.embedded_protocol.ProtocolErrorType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNALSomething unexpected went wrong within the endpoint.PARAMSA message was received that violated a documented restriction, such as not providing a mandatory field.PARSEA message was received that couldn't be decoded as an `InboundMessage` (for the compiler) or `OutboundMessage` (for the host).UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intINTERNAL_VALUESomething unexpected went wrong within the endpoint.static intPARAMS_VALUEA message was received that violated a documented restriction, such as not providing a mandatory field.static intPARSE_VALUEA message was received that couldn't be decoded as an `InboundMessage` (for the compiler) or `OutboundMessage` (for the host).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EmbeddedSass.ProtocolErrorTypeforNumber(int value)static Descriptors.EnumDescriptorgetDescriptor()Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()Descriptors.EnumValueDescriptorgetValueDescriptor()static Internal.EnumLiteMap<EmbeddedSass.ProtocolErrorType>internalGetValueMap()static EmbeddedSass.ProtocolErrorTypevalueOf(int value)Deprecated.static EmbeddedSass.ProtocolErrorTypevalueOf(Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static EmbeddedSass.ProtocolErrorTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EmbeddedSass.ProtocolErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARSE
public static final EmbeddedSass.ProtocolErrorType PARSE
A message was received that couldn't be decoded as an `InboundMessage` (for the compiler) or `OutboundMessage` (for the host).
PARSE = 0;
-
PARAMS
public static final EmbeddedSass.ProtocolErrorType PARAMS
A message was received that violated a documented restriction, such as not providing a mandatory field.
PARAMS = 1;
-
INTERNAL
public static final EmbeddedSass.ProtocolErrorType INTERNAL
Something unexpected went wrong within the endpoint.
INTERNAL = 2;
-
UNRECOGNIZED
public static final EmbeddedSass.ProtocolErrorType UNRECOGNIZED
-
-
Field Detail
-
PARSE_VALUE
public static final int PARSE_VALUE
A message was received that couldn't be decoded as an `InboundMessage` (for the compiler) or `OutboundMessage` (for the host).
PARSE = 0;- See Also:
- Constant Field Values
-
PARAMS_VALUE
public static final int PARAMS_VALUE
A message was received that violated a documented restriction, such as not providing a mandatory field.
PARAMS = 1;- See Also:
- Constant Field Values
-
INTERNAL_VALUE
public static final int INTERNAL_VALUE
Something unexpected went wrong within the endpoint.
INTERNAL = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EmbeddedSass.ProtocolErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EmbeddedSass.ProtocolErrorType c : EmbeddedSass.ProtocolErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmbeddedSass.ProtocolErrorType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 public static EmbeddedSass.ProtocolErrorType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static EmbeddedSass.ProtocolErrorType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static Internal.EnumLiteMap<EmbeddedSass.ProtocolErrorType> internalGetValueMap()
-
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
public static final Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static EmbeddedSass.ProtocolErrorType valueOf(Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-