Enum Class ErrorKind
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ErrorKind>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCovers a wide range of client errors, including: - unexpected key - missing key - invalid scope format and similar errors.A protocol violation, for example sending another Start message after the initial one or not respecting the send window.The invocation target was not found (unknown service or handler).The server is shutting down and can't accept more records.ERROR_KIND_UNKNOWN = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCovers a wide range of client errors, including: - unexpected key - missing key - invalid scope format and similar errors.static final intA protocol violation, for example sending another Start message after the initial one or not respecting the send window.static final intThe invocation target was not found (unknown service or handler).static final intThe server is shutting down and can't accept more records.static final intERROR_KIND_UNKNOWN = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorKindforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ErrorKind> static ErrorKindvalueOf(int value) Deprecated.static ErrorKindvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static ErrorKindReturns the enum constant of this class with the specified name.static ErrorKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR_KIND_UNKNOWN
ERROR_KIND_UNKNOWN = 0; -
ERROR_KIND_SHUTTING_DOWN
The server is shutting down and can't accept more records. The caller must switch to a new ingress node and respect the reported last_committed.
ERROR_KIND_SHUTTING_DOWN = 1; -
ERROR_KIND_GO_AWAY
A protocol violation, for example sending another Start message after the initial one or not respecting the send window.
ERROR_KIND_GO_AWAY = 2; -
ERROR_KIND_NOT_FOUND
The invocation target was not found (unknown service or handler).
ERROR_KIND_NOT_FOUND = 3; -
ERROR_KIND_BAD_REQUEST
Covers a wide range of client errors, including: - unexpected key - missing key - invalid scope format and similar errors. The `Error.message` should carry more details.
ERROR_KIND_BAD_REQUEST = 4; -
UNRECOGNIZED
-
-
Field Details
-
ERROR_KIND_UNKNOWN_VALUE
public static final int ERROR_KIND_UNKNOWN_VALUEERROR_KIND_UNKNOWN = 0;- See Also:
-
ERROR_KIND_SHUTTING_DOWN_VALUE
public static final int ERROR_KIND_SHUTTING_DOWN_VALUEThe server is shutting down and can't accept more records. The caller must switch to a new ingress node and respect the reported last_committed.
ERROR_KIND_SHUTTING_DOWN = 1;- See Also:
-
ERROR_KIND_GO_AWAY_VALUE
public static final int ERROR_KIND_GO_AWAY_VALUEA protocol violation, for example sending another Start message after the initial one or not respecting the send window.
ERROR_KIND_GO_AWAY = 2;- See Also:
-
ERROR_KIND_NOT_FOUND_VALUE
public static final int ERROR_KIND_NOT_FOUND_VALUEThe invocation target was not found (unknown service or handler).
ERROR_KIND_NOT_FOUND = 3;- See Also:
-
ERROR_KIND_BAD_REQUEST_VALUE
public static final int ERROR_KIND_BAD_REQUEST_VALUECovers a wide range of client errors, including: - unexpected key - missing key - invalid scope format and similar errors. The `Error.message` should carry more details.
ERROR_KIND_BAD_REQUEST = 4;- 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 interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
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
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor 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
-