Package io.hstream.internal
Enum ErrorCode
- java.lang.Object
-
- java.lang.Enum<ErrorCode>
-
- io.hstream.internal.ErrorCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<ErrorCode>
public enum ErrorCode extends Enum<ErrorCode> implements com.google.protobuf.ProtocolMessageEnum
ErrorCodes
Protobuf enumhstream.server.ErrorCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ConnectorCheckFailed
ConnectorCheckFailed = 604;
ConnectorExists
ConnectorExists = 601;
ConnectorInvalidObjectIdentifier
ConnectorInvalidObjectIdentifier = 603;
ConnectorInvalidStatus
ConnectorInvalidStatus = 606;
ConnectorInvalidType
ConnectorInvalidType = 602;
ConnectorNotFound
6xx -> IOConnectorUnimplemented
ConnectorUnimplemented = 605;
InternalError
0xx -> internal errorQueryAlreadyTerminated
QueryAlreadyTerminated = 408;
QueryExists
QueryExists = 401;
QueryFoundAssociatedView
QueryFoundAssociatedView = 403;
QueryInvalidObjectIdentifier
QueryInvalidObjectIdentifier = 404;
QueryInvalidSQL
QueryInvalidSQL = 402;
QueryNotFound
4xx -> Query ErrorsQueryNotRunning
QueryNotRunning = 406;
QueryNotTerminated
QueryNotTerminated = 407;
QueryStillRunning
QueryStillRunning = 405;
ShardReaderAccessGap
ShardReaderAccessGap = 904;
ShardReaderConflictOffset
ShardReaderConflictOffset = 901;
ShardReaderDataLossGap
ShardReaderDataLossGap = 903;
ShardReaderInvalidObjectIdentifier
9xx -> ShardReaderShardReaderNotInConfigGap
ShardReaderNotInConfigGap = 905;
ShardReaderTooManyShards
ShardReaderTooManyShards = 902;
ShardReaderUnknownGap
ShardReaderUnknownGap = 906;
StreamEmptyBatchedRecord
StreamEmptyBatchedRecord = 206;
StreamExists
StreamExists = 201;
StreamFoundSubscription
StreamFoundSubscription = 202;
StreamInvalidObjectIdentifier
StreamInvalidObjectIdentifier = 204;
StreamInvalidOffset
StreamInvalidOffset = 208;
StreamInvalidRecordId
StreamInvalidRecordId = 209;
StreamInvalidRecordSize
StreamInvalidRecordSize = 207;
StreamInvalidReplicaFactor
StreamInvalidReplicaFactor = 203;
StreamInvalidShardCount
StreamInvalidShardCount = 205;
StreamNotFound
2xx -> Stream ErrorsStreamShardNotExists
StreamShardNotExists = 210;
SubscriptionCreationOnNonExistentStream
SubscriptionCreationOnNonExistentStream = 302;
SubscriptionExists
SubscriptionExists = 301;
SubscriptionFoundActiveConsumers
SubscriptionFoundActiveConsumers = 305;
SubscriptionInvalidObjectIdentifier
SubscriptionInvalidObjectIdentifier = 304;
SubscriptionInvalidOffset
SubscriptionInvalidOffset = 303;
SubscriptionNotFound
3xx -> Subscription ErrorsUNRECOGNIZED
ViewExists
ViewExists = 501;
ViewInvalidObjectIdentifier
ViewInvalidObjectIdentifier = 503;
ViewInvalidSQL
ViewInvalidSQL = 502;
ViewNotFound
5xx -> View ErrorsWrongServer
8xx -> Cluster
-
Field Summary
Fields Modifier and Type Field Description static int
ConnectorCheckFailed_VALUE
ConnectorCheckFailed = 604;
static int
ConnectorExists_VALUE
ConnectorExists = 601;
static int
ConnectorInvalidObjectIdentifier_VALUE
ConnectorInvalidObjectIdentifier = 603;
static int
ConnectorInvalidStatus_VALUE
ConnectorInvalidStatus = 606;
static int
ConnectorInvalidType_VALUE
ConnectorInvalidType = 602;
static int
ConnectorNotFound_VALUE
6xx -> IOstatic int
ConnectorUnimplemented_VALUE
ConnectorUnimplemented = 605;
static int
InternalError_VALUE
0xx -> internal errorstatic int
QueryAlreadyTerminated_VALUE
QueryAlreadyTerminated = 408;
static int
QueryExists_VALUE
QueryExists = 401;
static int
QueryFoundAssociatedView_VALUE
QueryFoundAssociatedView = 403;
static int
QueryInvalidObjectIdentifier_VALUE
QueryInvalidObjectIdentifier = 404;
static int
QueryInvalidSQL_VALUE
QueryInvalidSQL = 402;
static int
QueryNotFound_VALUE
4xx -> Query Errorsstatic int
QueryNotRunning_VALUE
QueryNotRunning = 406;
static int
QueryNotTerminated_VALUE
QueryNotTerminated = 407;
static int
QueryStillRunning_VALUE
QueryStillRunning = 405;
static int
ShardReaderAccessGap_VALUE
ShardReaderAccessGap = 904;
static int
ShardReaderConflictOffset_VALUE
ShardReaderConflictOffset = 901;
static int
ShardReaderDataLossGap_VALUE
ShardReaderDataLossGap = 903;
static int
ShardReaderInvalidObjectIdentifier_VALUE
9xx -> ShardReaderstatic int
ShardReaderNotInConfigGap_VALUE
ShardReaderNotInConfigGap = 905;
static int
ShardReaderTooManyShards_VALUE
ShardReaderTooManyShards = 902;
static int
ShardReaderUnknownGap_VALUE
ShardReaderUnknownGap = 906;
static int
StreamEmptyBatchedRecord_VALUE
StreamEmptyBatchedRecord = 206;
static int
StreamExists_VALUE
StreamExists = 201;
static int
StreamFoundSubscription_VALUE
StreamFoundSubscription = 202;
static int
StreamInvalidObjectIdentifier_VALUE
StreamInvalidObjectIdentifier = 204;
static int
StreamInvalidOffset_VALUE
StreamInvalidOffset = 208;
static int
StreamInvalidRecordId_VALUE
StreamInvalidRecordId = 209;
static int
StreamInvalidRecordSize_VALUE
StreamInvalidRecordSize = 207;
static int
StreamInvalidReplicaFactor_VALUE
StreamInvalidReplicaFactor = 203;
static int
StreamInvalidShardCount_VALUE
StreamInvalidShardCount = 205;
static int
StreamNotFound_VALUE
2xx -> Stream Errorsstatic int
StreamShardNotExists_VALUE
StreamShardNotExists = 210;
static int
SubscriptionCreationOnNonExistentStream_VALUE
SubscriptionCreationOnNonExistentStream = 302;
static int
SubscriptionExists_VALUE
SubscriptionExists = 301;
static int
SubscriptionFoundActiveConsumers_VALUE
SubscriptionFoundActiveConsumers = 305;
static int
SubscriptionInvalidObjectIdentifier_VALUE
SubscriptionInvalidObjectIdentifier = 304;
static int
SubscriptionInvalidOffset_VALUE
SubscriptionInvalidOffset = 303;
static int
SubscriptionNotFound_VALUE
3xx -> Subscription Errorsstatic int
ViewExists_VALUE
ViewExists = 501;
static int
ViewInvalidObjectIdentifier_VALUE
ViewInvalidObjectIdentifier = 503;
static int
ViewInvalidSQL_VALUE
ViewInvalidSQL = 502;
static int
ViewNotFound_VALUE
5xx -> View Errorsstatic int
WrongServer_VALUE
8xx -> Cluster
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ErrorCode
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<ErrorCode>
internalGetValueMap()
static ErrorCode
valueOf(int value)
Deprecated.static ErrorCode
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static ErrorCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
InternalError
public static final ErrorCode InternalError
0xx -> internal error
InternalError = 0;
-
StreamNotFound
public static final ErrorCode StreamNotFound
2xx -> Stream Errors
StreamNotFound = 200;
-
StreamExists
public static final ErrorCode StreamExists
StreamExists = 201;
-
StreamFoundSubscription
public static final ErrorCode StreamFoundSubscription
StreamFoundSubscription = 202;
-
StreamInvalidReplicaFactor
public static final ErrorCode StreamInvalidReplicaFactor
StreamInvalidReplicaFactor = 203;
-
StreamInvalidObjectIdentifier
public static final ErrorCode StreamInvalidObjectIdentifier
StreamInvalidObjectIdentifier = 204;
-
StreamInvalidShardCount
public static final ErrorCode StreamInvalidShardCount
StreamInvalidShardCount = 205;
-
StreamEmptyBatchedRecord
public static final ErrorCode StreamEmptyBatchedRecord
StreamEmptyBatchedRecord = 206;
-
StreamInvalidRecordSize
public static final ErrorCode StreamInvalidRecordSize
StreamInvalidRecordSize = 207;
-
StreamInvalidOffset
public static final ErrorCode StreamInvalidOffset
StreamInvalidOffset = 208;
-
StreamInvalidRecordId
public static final ErrorCode StreamInvalidRecordId
StreamInvalidRecordId = 209;
-
StreamShardNotExists
public static final ErrorCode StreamShardNotExists
StreamShardNotExists = 210;
-
SubscriptionNotFound
public static final ErrorCode SubscriptionNotFound
3xx -> Subscription Errors
SubscriptionNotFound = 300;
-
SubscriptionExists
public static final ErrorCode SubscriptionExists
SubscriptionExists = 301;
-
SubscriptionCreationOnNonExistentStream
public static final ErrorCode SubscriptionCreationOnNonExistentStream
SubscriptionCreationOnNonExistentStream = 302;
-
SubscriptionInvalidOffset
public static final ErrorCode SubscriptionInvalidOffset
SubscriptionInvalidOffset = 303;
-
SubscriptionInvalidObjectIdentifier
public static final ErrorCode SubscriptionInvalidObjectIdentifier
SubscriptionInvalidObjectIdentifier = 304;
-
SubscriptionFoundActiveConsumers
public static final ErrorCode SubscriptionFoundActiveConsumers
SubscriptionFoundActiveConsumers = 305;
-
QueryNotFound
public static final ErrorCode QueryNotFound
4xx -> Query Errors
QueryNotFound = 400;
-
QueryExists
public static final ErrorCode QueryExists
QueryExists = 401;
-
QueryInvalidSQL
public static final ErrorCode QueryInvalidSQL
QueryInvalidSQL = 402;
-
QueryFoundAssociatedView
public static final ErrorCode QueryFoundAssociatedView
QueryFoundAssociatedView = 403;
-
QueryInvalidObjectIdentifier
public static final ErrorCode QueryInvalidObjectIdentifier
QueryInvalidObjectIdentifier = 404;
-
QueryStillRunning
public static final ErrorCode QueryStillRunning
QueryStillRunning = 405;
-
QueryNotRunning
public static final ErrorCode QueryNotRunning
QueryNotRunning = 406;
-
QueryNotTerminated
public static final ErrorCode QueryNotTerminated
QueryNotTerminated = 407;
-
QueryAlreadyTerminated
public static final ErrorCode QueryAlreadyTerminated
QueryAlreadyTerminated = 408;
-
ViewNotFound
public static final ErrorCode ViewNotFound
5xx -> View Errors
ViewNotFound = 500;
-
ViewExists
public static final ErrorCode ViewExists
ViewExists = 501;
-
ViewInvalidSQL
public static final ErrorCode ViewInvalidSQL
ViewInvalidSQL = 502;
-
ViewInvalidObjectIdentifier
public static final ErrorCode ViewInvalidObjectIdentifier
ViewInvalidObjectIdentifier = 503;
-
ConnectorNotFound
public static final ErrorCode ConnectorNotFound
6xx -> IO
ConnectorNotFound = 600;
-
ConnectorExists
public static final ErrorCode ConnectorExists
ConnectorExists = 601;
-
ConnectorInvalidType
public static final ErrorCode ConnectorInvalidType
ConnectorInvalidType = 602;
-
ConnectorInvalidObjectIdentifier
public static final ErrorCode ConnectorInvalidObjectIdentifier
ConnectorInvalidObjectIdentifier = 603;
-
ConnectorCheckFailed
public static final ErrorCode ConnectorCheckFailed
ConnectorCheckFailed = 604;
-
ConnectorUnimplemented
public static final ErrorCode ConnectorUnimplemented
ConnectorUnimplemented = 605;
-
ConnectorInvalidStatus
public static final ErrorCode ConnectorInvalidStatus
ConnectorInvalidStatus = 606;
-
WrongServer
public static final ErrorCode WrongServer
8xx -> Cluster
WrongServer = 800;
-
ShardReaderInvalidObjectIdentifier
public static final ErrorCode ShardReaderInvalidObjectIdentifier
9xx -> ShardReader
ShardReaderInvalidObjectIdentifier = 900;
-
ShardReaderConflictOffset
public static final ErrorCode ShardReaderConflictOffset
ShardReaderConflictOffset = 901;
-
ShardReaderTooManyShards
public static final ErrorCode ShardReaderTooManyShards
ShardReaderTooManyShards = 902;
-
ShardReaderDataLossGap
public static final ErrorCode ShardReaderDataLossGap
ShardReaderDataLossGap = 903;
-
ShardReaderAccessGap
public static final ErrorCode ShardReaderAccessGap
ShardReaderAccessGap = 904;
-
ShardReaderNotInConfigGap
public static final ErrorCode ShardReaderNotInConfigGap
ShardReaderNotInConfigGap = 905;
-
ShardReaderUnknownGap
public static final ErrorCode ShardReaderUnknownGap
ShardReaderUnknownGap = 906;
-
UNRECOGNIZED
public static final ErrorCode UNRECOGNIZED
-
-
Field Detail
-
InternalError_VALUE
public static final int InternalError_VALUE
0xx -> internal error
InternalError = 0;
- See Also:
- Constant Field Values
-
StreamNotFound_VALUE
public static final int StreamNotFound_VALUE
2xx -> Stream Errors
StreamNotFound = 200;
- See Also:
- Constant Field Values
-
StreamExists_VALUE
public static final int StreamExists_VALUE
StreamExists = 201;
- See Also:
- Constant Field Values
-
StreamFoundSubscription_VALUE
public static final int StreamFoundSubscription_VALUE
StreamFoundSubscription = 202;
- See Also:
- Constant Field Values
-
StreamInvalidReplicaFactor_VALUE
public static final int StreamInvalidReplicaFactor_VALUE
StreamInvalidReplicaFactor = 203;
- See Also:
- Constant Field Values
-
StreamInvalidObjectIdentifier_VALUE
public static final int StreamInvalidObjectIdentifier_VALUE
StreamInvalidObjectIdentifier = 204;
- See Also:
- Constant Field Values
-
StreamInvalidShardCount_VALUE
public static final int StreamInvalidShardCount_VALUE
StreamInvalidShardCount = 205;
- See Also:
- Constant Field Values
-
StreamEmptyBatchedRecord_VALUE
public static final int StreamEmptyBatchedRecord_VALUE
StreamEmptyBatchedRecord = 206;
- See Also:
- Constant Field Values
-
StreamInvalidRecordSize_VALUE
public static final int StreamInvalidRecordSize_VALUE
StreamInvalidRecordSize = 207;
- See Also:
- Constant Field Values
-
StreamInvalidOffset_VALUE
public static final int StreamInvalidOffset_VALUE
StreamInvalidOffset = 208;
- See Also:
- Constant Field Values
-
StreamInvalidRecordId_VALUE
public static final int StreamInvalidRecordId_VALUE
StreamInvalidRecordId = 209;
- See Also:
- Constant Field Values
-
StreamShardNotExists_VALUE
public static final int StreamShardNotExists_VALUE
StreamShardNotExists = 210;
- See Also:
- Constant Field Values
-
SubscriptionNotFound_VALUE
public static final int SubscriptionNotFound_VALUE
3xx -> Subscription Errors
SubscriptionNotFound = 300;
- See Also:
- Constant Field Values
-
SubscriptionExists_VALUE
public static final int SubscriptionExists_VALUE
SubscriptionExists = 301;
- See Also:
- Constant Field Values
-
SubscriptionCreationOnNonExistentStream_VALUE
public static final int SubscriptionCreationOnNonExistentStream_VALUE
SubscriptionCreationOnNonExistentStream = 302;
- See Also:
- Constant Field Values
-
SubscriptionInvalidOffset_VALUE
public static final int SubscriptionInvalidOffset_VALUE
SubscriptionInvalidOffset = 303;
- See Also:
- Constant Field Values
-
SubscriptionInvalidObjectIdentifier_VALUE
public static final int SubscriptionInvalidObjectIdentifier_VALUE
SubscriptionInvalidObjectIdentifier = 304;
- See Also:
- Constant Field Values
-
SubscriptionFoundActiveConsumers_VALUE
public static final int SubscriptionFoundActiveConsumers_VALUE
SubscriptionFoundActiveConsumers = 305;
- See Also:
- Constant Field Values
-
QueryNotFound_VALUE
public static final int QueryNotFound_VALUE
4xx -> Query Errors
QueryNotFound = 400;
- See Also:
- Constant Field Values
-
QueryExists_VALUE
public static final int QueryExists_VALUE
QueryExists = 401;
- See Also:
- Constant Field Values
-
QueryInvalidSQL_VALUE
public static final int QueryInvalidSQL_VALUE
QueryInvalidSQL = 402;
- See Also:
- Constant Field Values
-
QueryFoundAssociatedView_VALUE
public static final int QueryFoundAssociatedView_VALUE
QueryFoundAssociatedView = 403;
- See Also:
- Constant Field Values
-
QueryInvalidObjectIdentifier_VALUE
public static final int QueryInvalidObjectIdentifier_VALUE
QueryInvalidObjectIdentifier = 404;
- See Also:
- Constant Field Values
-
QueryStillRunning_VALUE
public static final int QueryStillRunning_VALUE
QueryStillRunning = 405;
- See Also:
- Constant Field Values
-
QueryNotRunning_VALUE
public static final int QueryNotRunning_VALUE
QueryNotRunning = 406;
- See Also:
- Constant Field Values
-
QueryNotTerminated_VALUE
public static final int QueryNotTerminated_VALUE
QueryNotTerminated = 407;
- See Also:
- Constant Field Values
-
QueryAlreadyTerminated_VALUE
public static final int QueryAlreadyTerminated_VALUE
QueryAlreadyTerminated = 408;
- See Also:
- Constant Field Values
-
ViewNotFound_VALUE
public static final int ViewNotFound_VALUE
5xx -> View Errors
ViewNotFound = 500;
- See Also:
- Constant Field Values
-
ViewExists_VALUE
public static final int ViewExists_VALUE
ViewExists = 501;
- See Also:
- Constant Field Values
-
ViewInvalidSQL_VALUE
public static final int ViewInvalidSQL_VALUE
ViewInvalidSQL = 502;
- See Also:
- Constant Field Values
-
ViewInvalidObjectIdentifier_VALUE
public static final int ViewInvalidObjectIdentifier_VALUE
ViewInvalidObjectIdentifier = 503;
- See Also:
- Constant Field Values
-
ConnectorNotFound_VALUE
public static final int ConnectorNotFound_VALUE
6xx -> IO
ConnectorNotFound = 600;
- See Also:
- Constant Field Values
-
ConnectorExists_VALUE
public static final int ConnectorExists_VALUE
ConnectorExists = 601;
- See Also:
- Constant Field Values
-
ConnectorInvalidType_VALUE
public static final int ConnectorInvalidType_VALUE
ConnectorInvalidType = 602;
- See Also:
- Constant Field Values
-
ConnectorInvalidObjectIdentifier_VALUE
public static final int ConnectorInvalidObjectIdentifier_VALUE
ConnectorInvalidObjectIdentifier = 603;
- See Also:
- Constant Field Values
-
ConnectorCheckFailed_VALUE
public static final int ConnectorCheckFailed_VALUE
ConnectorCheckFailed = 604;
- See Also:
- Constant Field Values
-
ConnectorUnimplemented_VALUE
public static final int ConnectorUnimplemented_VALUE
ConnectorUnimplemented = 605;
- See Also:
- Constant Field Values
-
ConnectorInvalidStatus_VALUE
public static final int ConnectorInvalidStatus_VALUE
ConnectorInvalidStatus = 606;
- See Also:
- Constant Field Values
-
WrongServer_VALUE
public static final int WrongServer_VALUE
8xx -> Cluster
WrongServer = 800;
- See Also:
- Constant Field Values
-
ShardReaderInvalidObjectIdentifier_VALUE
public static final int ShardReaderInvalidObjectIdentifier_VALUE
9xx -> ShardReader
ShardReaderInvalidObjectIdentifier = 900;
- See Also:
- Constant Field Values
-
ShardReaderConflictOffset_VALUE
public static final int ShardReaderConflictOffset_VALUE
ShardReaderConflictOffset = 901;
- See Also:
- Constant Field Values
-
ShardReaderTooManyShards_VALUE
public static final int ShardReaderTooManyShards_VALUE
ShardReaderTooManyShards = 902;
- See Also:
- Constant Field Values
-
ShardReaderDataLossGap_VALUE
public static final int ShardReaderDataLossGap_VALUE
ShardReaderDataLossGap = 903;
- See Also:
- Constant Field Values
-
ShardReaderAccessGap_VALUE
public static final int ShardReaderAccessGap_VALUE
ShardReaderAccessGap = 904;
- See Also:
- Constant Field Values
-
ShardReaderNotInConfigGap_VALUE
public static final int ShardReaderNotInConfigGap_VALUE
ShardReaderNotInConfigGap = 905;
- See Also:
- Constant Field Values
-
ShardReaderUnknownGap_VALUE
public static final int ShardReaderUnknownGap_VALUE
ShardReaderUnknownGap = 906;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ErrorCode[] 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 (ErrorCode c : ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorCode 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ErrorCode 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 ErrorCode 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 com.google.protobuf.Internal.EnumLiteMap<ErrorCode> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ErrorCode valueOf(com.google.protobuf.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
-
-