public enum ProtocolErrorType extends Enum<ProtocolErrorType> implements com.google.protobuf.ProtocolMessageEnum
Potential types of protocol errors.Protobuf enum
sass.embedded_protocol.ProtocolErrorType| Enum Constant and Description |
|---|
INTERNAL
Something unexpected went wrong within the endpoint.
|
PARAMS
A message was received that violated a documented restriction, such as not
providing a mandatory field.
|
PARSE
A message was received that couldn't be decoded as an `InboundMessage` (for
the compiler) or `OutboundMessage` (for the host).
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
INTERNAL_VALUE
Something unexpected went wrong within the endpoint.
|
static int |
PARAMS_VALUE
A message was received that violated a documented restriction, such as not
providing a mandatory field.
|
static int |
PARSE_VALUE
A message was received that couldn't be decoded as an `InboundMessage` (for
the compiler) or `OutboundMessage` (for the host).
|
| Modifier and Type | Method and Description |
|---|---|
static ProtocolErrorType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ProtocolErrorType> |
internalGetValueMap() |
static ProtocolErrorType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ProtocolErrorType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ProtocolErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolErrorType PARSE
A message was received that couldn't be decoded as an `InboundMessage` (for the compiler) or `OutboundMessage` (for the host).
PARSE = 0;public static final ProtocolErrorType PARAMS
A message was received that violated a documented restriction, such as not providing a mandatory field.
PARAMS = 1;public static final ProtocolErrorType INTERNAL
Something unexpected went wrong within the endpoint.
INTERNAL = 2;public static final ProtocolErrorType UNRECOGNIZED
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;public static final int PARAMS_VALUE
A message was received that violated a documented restriction, such as not providing a mandatory field.
PARAMS = 1;public static final int INTERNAL_VALUE
Something unexpected went wrong within the endpoint.
INTERNAL = 2;public static ProtocolErrorType[] values()
for (ProtocolErrorType c : ProtocolErrorType.values()) System.out.println(c);
public static ProtocolErrorType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ProtocolErrorType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ProtocolErrorType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ProtocolErrorType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ProtocolErrorType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)