枚举 Code
- java.lang.Object
-
- java.lang.Enum<Code>
-
- apache.rocketmq.v2.Code
-
- 所有已实现的接口:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Code>
public enum Code extends Enum<Code> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumapache.rocketmq.v2.Code
-
-
枚举常量概要
枚举常量 枚举常量 说明 BAD_REQUESTGeneric code for bad request, indicating that required fields or headers are missing.CLIENT_ID_REQUIREDRequest is rejected due to missing of x-mq-client-id header.CODE_UNSPECIFIEDCODE_UNSPECIFIED = 0;CONSUMER_GROUP_NOT_FOUNDConsumer group resource does not exist.FAILED_TO_CONSUME_MESSAGEGeneric code for failed message consumption.FORBIDDENGeneric code for the case that user does not have the permission to operate.HA_NOT_AVAILABLEThe HA-mechanism is not working now.ILLEGAL_ACCESS_POINTFormat of access point is illegal.ILLEGAL_CONSUMER_GROUPFormat of consumer group is illegal.ILLEGAL_DELIVERY_TIMEThe delivery timestamp of message is invalid.ILLEGAL_FILTER_EXPRESSIONFormat of filter expression is illegal.ILLEGAL_INVISIBLE_TIMEThe invisible time of request is invalid.ILLEGAL_MESSAGE_GROUPFormat of message group is illegal.ILLEGAL_MESSAGE_IDFormat of message id is illegal.ILLEGAL_MESSAGE_KEYFormat of message key is illegal.ILLEGAL_MESSAGE_PROPERTY_KEYFormat of message property key is illegal.ILLEGAL_MESSAGE_TAGFormat of message tag is illegal.ILLEGAL_POLLING_TIMEPolling time is illegal.ILLEGAL_TOPICFormat of topic is illegal.INTERNAL_ERRORGeneric code indicates that server/client encountered an unexpected condition that prevented it from fulfilling the request.INTERNAL_SERVER_ERRORCode indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.INVALID_RECEIPT_HANDLEReceipt handle of message is invalid.INVALID_TRANSACTION_IDTransaction id is invalid.MASTER_PERSISTENCE_TIMEOUTMessage persistence timeout.MESSAGE_BODY_TOO_LARGEMessage body size exceeds the threshold.MESSAGE_CORRUPTEDMessage is corrupted.MESSAGE_NOT_FOUNDMessage not found from server.MESSAGE_PROPERTIES_TOO_LARGEMessage properties total size exceeds the threshold.MESSAGE_PROPERTY_CONFLICT_WITH_TYPEMessage property conflicts with its type.MULTIPLE_RESULTSGeneric code for multiple return results.NOT_FOUNDGeneric code for resource not found.NOT_IMPLEMENTEDGeneric code means that the server or client does not support the functionality required to fulfill the request.OKGeneric code for success.PAYLOAD_TOO_LARGEGeneric code represents that the request entity is larger than limits defined by server.PAYMENT_REQUIREDGeneric code indicates that the account is suspended due to overdue of payment.PRECONDITION_FAILEDGeneric code for use cases where pre-conditions are not met.PROXY_TIMEOUTGeneric code represents that the server, which acts as a gateway or proxy, does not get an satisfied response in time from its upstream servers.REQUEST_HEADER_FIELDS_TOO_LARGEGeneric code for the case that the server is unwilling to process the request because its header fields are too large.REQUEST_TIMEOUTGeneric code representing client side timeout when connecting to, reading data from, or write data to server.SLAVE_PERSISTENCE_TIMEOUTSlave persistence timeout.TOO_MANY_REQUESTSGeneric code indicates that too many requests are made in short period of duration.TOPIC_NOT_FOUNDTopic resource does not exist.UNAUTHORIZEDGeneric code indicates that the client request lacks valid authentication credentials for the requested resource.UNRECOGNIZEDUNRECOGNIZED_CLIENT_TYPEClient type could not be recognized.UNSUPPORTEDGeneric code for unsupported operation.VERIFY_FIFO_MESSAGE_UNSUPPORTEDNot allowed to verify message.VERSION_UNSUPPORTEDOperation is not allowed in current version.
-
字段概要
字段 修饰符和类型 字段 说明 static intBAD_REQUEST_VALUEGeneric code for bad request, indicating that required fields or headers are missing.static intCLIENT_ID_REQUIRED_VALUERequest is rejected due to missing of x-mq-client-id header.static intCODE_UNSPECIFIED_VALUECODE_UNSPECIFIED = 0;static intCONSUMER_GROUP_NOT_FOUND_VALUEConsumer group resource does not exist.static intFAILED_TO_CONSUME_MESSAGE_VALUEGeneric code for failed message consumption.static intFORBIDDEN_VALUEGeneric code for the case that user does not have the permission to operate.static intHA_NOT_AVAILABLE_VALUEThe HA-mechanism is not working now.static intILLEGAL_ACCESS_POINT_VALUEFormat of access point is illegal.static intILLEGAL_CONSUMER_GROUP_VALUEFormat of consumer group is illegal.static intILLEGAL_DELIVERY_TIME_VALUEThe delivery timestamp of message is invalid.static intILLEGAL_FILTER_EXPRESSION_VALUEFormat of filter expression is illegal.static intILLEGAL_INVISIBLE_TIME_VALUEThe invisible time of request is invalid.static intILLEGAL_MESSAGE_GROUP_VALUEFormat of message group is illegal.static intILLEGAL_MESSAGE_ID_VALUEFormat of message id is illegal.static intILLEGAL_MESSAGE_KEY_VALUEFormat of message key is illegal.static intILLEGAL_MESSAGE_PROPERTY_KEY_VALUEFormat of message property key is illegal.static intILLEGAL_MESSAGE_TAG_VALUEFormat of message tag is illegal.static intILLEGAL_POLLING_TIME_VALUEPolling time is illegal.static intILLEGAL_TOPIC_VALUEFormat of topic is illegal.static intINTERNAL_ERROR_VALUEGeneric code indicates that server/client encountered an unexpected condition that prevented it from fulfilling the request.static intINTERNAL_SERVER_ERROR_VALUECode indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.static intINVALID_RECEIPT_HANDLE_VALUEReceipt handle of message is invalid.static intINVALID_TRANSACTION_ID_VALUETransaction id is invalid.static intMASTER_PERSISTENCE_TIMEOUT_VALUEMessage persistence timeout.static intMESSAGE_BODY_TOO_LARGE_VALUEMessage body size exceeds the threshold.static intMESSAGE_CORRUPTED_VALUEMessage is corrupted.static intMESSAGE_NOT_FOUND_VALUEMessage not found from server.static intMESSAGE_PROPERTIES_TOO_LARGE_VALUEMessage properties total size exceeds the threshold.static intMESSAGE_PROPERTY_CONFLICT_WITH_TYPE_VALUEMessage property conflicts with its type.static intMULTIPLE_RESULTS_VALUEGeneric code for multiple return results.static intNOT_FOUND_VALUEGeneric code for resource not found.static intNOT_IMPLEMENTED_VALUEGeneric code means that the server or client does not support the functionality required to fulfill the request.static intOK_VALUEGeneric code for success.static intPAYLOAD_TOO_LARGE_VALUEGeneric code represents that the request entity is larger than limits defined by server.static intPAYMENT_REQUIRED_VALUEGeneric code indicates that the account is suspended due to overdue of payment.static intPRECONDITION_FAILED_VALUEGeneric code for use cases where pre-conditions are not met.static intPROXY_TIMEOUT_VALUEGeneric code represents that the server, which acts as a gateway or proxy, does not get an satisfied response in time from its upstream servers.static intREQUEST_HEADER_FIELDS_TOO_LARGE_VALUEGeneric code for the case that the server is unwilling to process the request because its header fields are too large.static intREQUEST_TIMEOUT_VALUEGeneric code representing client side timeout when connecting to, reading data from, or write data to server.static intSLAVE_PERSISTENCE_TIMEOUT_VALUESlave persistence timeout.static intTOO_MANY_REQUESTS_VALUEGeneric code indicates that too many requests are made in short period of duration.static intTOPIC_NOT_FOUND_VALUETopic resource does not exist.static intUNAUTHORIZED_VALUEGeneric code indicates that the client request lacks valid authentication credentials for the requested resource.static intUNRECOGNIZED_CLIENT_TYPE_VALUEClient type could not be recognized.static intUNSUPPORTED_VALUEGeneric code for unsupported operation.static intVERIFY_FIFO_MESSAGE_UNSUPPORTED_VALUENot allowed to verify message.static intVERSION_UNSUPPORTED_VALUEOperation is not allowed in current version.
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static CodeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Code>internalGetValueMap()static CodevalueOf(int value)已过时。static CodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)返回带有指定名称的该类型的枚举常量。static CodevalueOf(String name)返回带有指定名称的该类型的枚举常量。static Code[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
CODE_UNSPECIFIED
public static final Code CODE_UNSPECIFIED
CODE_UNSPECIFIED = 0;
-
OK
public static final Code OK
Generic code for success.
OK = 20000;
-
MULTIPLE_RESULTS
public static final Code MULTIPLE_RESULTS
Generic code for multiple return results.
MULTIPLE_RESULTS = 30000;
-
BAD_REQUEST
public static final Code BAD_REQUEST
Generic code for bad request, indicating that required fields or headers are missing.
BAD_REQUEST = 40000;
-
ILLEGAL_ACCESS_POINT
public static final Code ILLEGAL_ACCESS_POINT
Format of access point is illegal.
ILLEGAL_ACCESS_POINT = 40001;
-
ILLEGAL_TOPIC
public static final Code ILLEGAL_TOPIC
Format of topic is illegal.
ILLEGAL_TOPIC = 40002;
-
ILLEGAL_CONSUMER_GROUP
public static final Code ILLEGAL_CONSUMER_GROUP
Format of consumer group is illegal.
ILLEGAL_CONSUMER_GROUP = 40003;
-
ILLEGAL_MESSAGE_TAG
public static final Code ILLEGAL_MESSAGE_TAG
Format of message tag is illegal.
ILLEGAL_MESSAGE_TAG = 40004;
-
ILLEGAL_MESSAGE_KEY
public static final Code ILLEGAL_MESSAGE_KEY
Format of message key is illegal.
ILLEGAL_MESSAGE_KEY = 40005;
-
ILLEGAL_MESSAGE_GROUP
public static final Code ILLEGAL_MESSAGE_GROUP
Format of message group is illegal.
ILLEGAL_MESSAGE_GROUP = 40006;
-
ILLEGAL_MESSAGE_PROPERTY_KEY
public static final Code ILLEGAL_MESSAGE_PROPERTY_KEY
Format of message property key is illegal.
ILLEGAL_MESSAGE_PROPERTY_KEY = 40007;
-
INVALID_TRANSACTION_ID
public static final Code INVALID_TRANSACTION_ID
Transaction id is invalid.
INVALID_TRANSACTION_ID = 40008;
-
ILLEGAL_MESSAGE_ID
public static final Code ILLEGAL_MESSAGE_ID
Format of message id is illegal.
ILLEGAL_MESSAGE_ID = 40009;
-
ILLEGAL_FILTER_EXPRESSION
public static final Code ILLEGAL_FILTER_EXPRESSION
Format of filter expression is illegal.
ILLEGAL_FILTER_EXPRESSION = 40010;
-
ILLEGAL_INVISIBLE_TIME
public static final Code ILLEGAL_INVISIBLE_TIME
The invisible time of request is invalid.
ILLEGAL_INVISIBLE_TIME = 40011;
-
ILLEGAL_DELIVERY_TIME
public static final Code ILLEGAL_DELIVERY_TIME
The delivery timestamp of message is invalid.
ILLEGAL_DELIVERY_TIME = 40012;
-
INVALID_RECEIPT_HANDLE
public static final Code INVALID_RECEIPT_HANDLE
Receipt handle of message is invalid.
INVALID_RECEIPT_HANDLE = 40013;
-
MESSAGE_PROPERTY_CONFLICT_WITH_TYPE
public static final Code MESSAGE_PROPERTY_CONFLICT_WITH_TYPE
Message property conflicts with its type.
MESSAGE_PROPERTY_CONFLICT_WITH_TYPE = 40014;
-
UNRECOGNIZED_CLIENT_TYPE
public static final Code UNRECOGNIZED_CLIENT_TYPE
Client type could not be recognized.
UNRECOGNIZED_CLIENT_TYPE = 40015;
-
MESSAGE_CORRUPTED
public static final Code MESSAGE_CORRUPTED
Message is corrupted.
MESSAGE_CORRUPTED = 40016;
-
CLIENT_ID_REQUIRED
public static final Code CLIENT_ID_REQUIRED
Request is rejected due to missing of x-mq-client-id header.
CLIENT_ID_REQUIRED = 40017;
-
ILLEGAL_POLLING_TIME
public static final Code ILLEGAL_POLLING_TIME
Polling time is illegal.
ILLEGAL_POLLING_TIME = 40018;
-
UNAUTHORIZED
public static final Code UNAUTHORIZED
Generic code indicates that the client request lacks valid authentication credentials for the requested resource.
UNAUTHORIZED = 40100;
-
PAYMENT_REQUIRED
public static final Code PAYMENT_REQUIRED
Generic code indicates that the account is suspended due to overdue of payment.
PAYMENT_REQUIRED = 40200;
-
FORBIDDEN
public static final Code FORBIDDEN
Generic code for the case that user does not have the permission to operate.
FORBIDDEN = 40300;
-
NOT_FOUND
public static final Code NOT_FOUND
Generic code for resource not found.
NOT_FOUND = 40400;
-
MESSAGE_NOT_FOUND
public static final Code MESSAGE_NOT_FOUND
Message not found from server.
MESSAGE_NOT_FOUND = 40401;
-
TOPIC_NOT_FOUND
public static final Code TOPIC_NOT_FOUND
Topic resource does not exist.
TOPIC_NOT_FOUND = 40402;
-
CONSUMER_GROUP_NOT_FOUND
public static final Code CONSUMER_GROUP_NOT_FOUND
Consumer group resource does not exist.
CONSUMER_GROUP_NOT_FOUND = 40403;
-
REQUEST_TIMEOUT
public static final Code REQUEST_TIMEOUT
Generic code representing client side timeout when connecting to, reading data from, or write data to server.
REQUEST_TIMEOUT = 40800;
-
PAYLOAD_TOO_LARGE
public static final Code PAYLOAD_TOO_LARGE
Generic code represents that the request entity is larger than limits defined by server.
PAYLOAD_TOO_LARGE = 41300;
-
MESSAGE_BODY_TOO_LARGE
public static final Code MESSAGE_BODY_TOO_LARGE
Message body size exceeds the threshold.
MESSAGE_BODY_TOO_LARGE = 41301;
-
PRECONDITION_FAILED
public static final Code PRECONDITION_FAILED
Generic code for use cases where pre-conditions are not met. For example, if a producer instance is used to publish messages without prior start() invocation, this error code will be raised.
PRECONDITION_FAILED = 42800;
-
TOO_MANY_REQUESTS
public static final Code TOO_MANY_REQUESTS
Generic code indicates that too many requests are made in short period of duration. Requests are throttled.
TOO_MANY_REQUESTS = 42900;
-
REQUEST_HEADER_FIELDS_TOO_LARGE
public static final Code REQUEST_HEADER_FIELDS_TOO_LARGE
Generic code for the case that the server is unwilling to process the request because its header fields are too large. The request may be resubmitted after reducing the size of the request header fields.
REQUEST_HEADER_FIELDS_TOO_LARGE = 43100;
-
MESSAGE_PROPERTIES_TOO_LARGE
public static final Code MESSAGE_PROPERTIES_TOO_LARGE
Message properties total size exceeds the threshold.
MESSAGE_PROPERTIES_TOO_LARGE = 43101;
-
INTERNAL_ERROR
public static final Code INTERNAL_ERROR
Generic code indicates that server/client encountered an unexpected condition that prevented it from fulfilling the request.
INTERNAL_ERROR = 50000;
-
INTERNAL_SERVER_ERROR
public static final Code INTERNAL_SERVER_ERROR
Code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better alternative error code to response. Sometimes, server administrators log error responses like the 500 status code with more details about the request to prevent the error from happening again in the future. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
INTERNAL_SERVER_ERROR = 50001;
-
HA_NOT_AVAILABLE
public static final Code HA_NOT_AVAILABLE
The HA-mechanism is not working now.
HA_NOT_AVAILABLE = 50002;
-
NOT_IMPLEMENTED
public static final Code NOT_IMPLEMENTED
Generic code means that the server or client does not support the functionality required to fulfill the request.
NOT_IMPLEMENTED = 50100;
-
PROXY_TIMEOUT
public static final Code PROXY_TIMEOUT
Generic code represents that the server, which acts as a gateway or proxy, does not get an satisfied response in time from its upstream servers. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504
PROXY_TIMEOUT = 50400;
-
MASTER_PERSISTENCE_TIMEOUT
public static final Code MASTER_PERSISTENCE_TIMEOUT
Message persistence timeout.
MASTER_PERSISTENCE_TIMEOUT = 50401;
-
SLAVE_PERSISTENCE_TIMEOUT
public static final Code SLAVE_PERSISTENCE_TIMEOUT
Slave persistence timeout.
SLAVE_PERSISTENCE_TIMEOUT = 50402;
-
UNSUPPORTED
public static final Code UNSUPPORTED
Generic code for unsupported operation.
UNSUPPORTED = 50500;
-
VERSION_UNSUPPORTED
public static final Code VERSION_UNSUPPORTED
Operation is not allowed in current version.
VERSION_UNSUPPORTED = 50501;
-
VERIFY_FIFO_MESSAGE_UNSUPPORTED
public static final Code VERIFY_FIFO_MESSAGE_UNSUPPORTED
Not allowed to verify message. Chances are that you are verifying a FIFO message, as is violating FIFO semantics.
VERIFY_FIFO_MESSAGE_UNSUPPORTED = 50502;
-
FAILED_TO_CONSUME_MESSAGE
public static final Code FAILED_TO_CONSUME_MESSAGE
Generic code for failed message consumption.
FAILED_TO_CONSUME_MESSAGE = 60000;
-
UNRECOGNIZED
public static final Code UNRECOGNIZED
-
-
字段详细资料
-
CODE_UNSPECIFIED_VALUE
public static final int CODE_UNSPECIFIED_VALUE
CODE_UNSPECIFIED = 0;- 另请参阅:
- 常量字段值
-
OK_VALUE
public static final int OK_VALUE
Generic code for success.
OK = 20000;- 另请参阅:
- 常量字段值
-
MULTIPLE_RESULTS_VALUE
public static final int MULTIPLE_RESULTS_VALUE
Generic code for multiple return results.
MULTIPLE_RESULTS = 30000;- 另请参阅:
- 常量字段值
-
BAD_REQUEST_VALUE
public static final int BAD_REQUEST_VALUE
Generic code for bad request, indicating that required fields or headers are missing.
BAD_REQUEST = 40000;- 另请参阅:
- 常量字段值
-
ILLEGAL_ACCESS_POINT_VALUE
public static final int ILLEGAL_ACCESS_POINT_VALUE
Format of access point is illegal.
ILLEGAL_ACCESS_POINT = 40001;- 另请参阅:
- 常量字段值
-
ILLEGAL_TOPIC_VALUE
public static final int ILLEGAL_TOPIC_VALUE
Format of topic is illegal.
ILLEGAL_TOPIC = 40002;- 另请参阅:
- 常量字段值
-
ILLEGAL_CONSUMER_GROUP_VALUE
public static final int ILLEGAL_CONSUMER_GROUP_VALUE
Format of consumer group is illegal.
ILLEGAL_CONSUMER_GROUP = 40003;- 另请参阅:
- 常量字段值
-
ILLEGAL_MESSAGE_TAG_VALUE
public static final int ILLEGAL_MESSAGE_TAG_VALUE
Format of message tag is illegal.
ILLEGAL_MESSAGE_TAG = 40004;- 另请参阅:
- 常量字段值
-
ILLEGAL_MESSAGE_KEY_VALUE
public static final int ILLEGAL_MESSAGE_KEY_VALUE
Format of message key is illegal.
ILLEGAL_MESSAGE_KEY = 40005;- 另请参阅:
- 常量字段值
-
ILLEGAL_MESSAGE_GROUP_VALUE
public static final int ILLEGAL_MESSAGE_GROUP_VALUE
Format of message group is illegal.
ILLEGAL_MESSAGE_GROUP = 40006;- 另请参阅:
- 常量字段值
-
ILLEGAL_MESSAGE_PROPERTY_KEY_VALUE
public static final int ILLEGAL_MESSAGE_PROPERTY_KEY_VALUE
Format of message property key is illegal.
ILLEGAL_MESSAGE_PROPERTY_KEY = 40007;- 另请参阅:
- 常量字段值
-
INVALID_TRANSACTION_ID_VALUE
public static final int INVALID_TRANSACTION_ID_VALUE
Transaction id is invalid.
INVALID_TRANSACTION_ID = 40008;- 另请参阅:
- 常量字段值
-
ILLEGAL_MESSAGE_ID_VALUE
public static final int ILLEGAL_MESSAGE_ID_VALUE
Format of message id is illegal.
ILLEGAL_MESSAGE_ID = 40009;- 另请参阅:
- 常量字段值
-
ILLEGAL_FILTER_EXPRESSION_VALUE
public static final int ILLEGAL_FILTER_EXPRESSION_VALUE
Format of filter expression is illegal.
ILLEGAL_FILTER_EXPRESSION = 40010;- 另请参阅:
- 常量字段值
-
ILLEGAL_INVISIBLE_TIME_VALUE
public static final int ILLEGAL_INVISIBLE_TIME_VALUE
The invisible time of request is invalid.
ILLEGAL_INVISIBLE_TIME = 40011;- 另请参阅:
- 常量字段值
-
ILLEGAL_DELIVERY_TIME_VALUE
public static final int ILLEGAL_DELIVERY_TIME_VALUE
The delivery timestamp of message is invalid.
ILLEGAL_DELIVERY_TIME = 40012;- 另请参阅:
- 常量字段值
-
INVALID_RECEIPT_HANDLE_VALUE
public static final int INVALID_RECEIPT_HANDLE_VALUE
Receipt handle of message is invalid.
INVALID_RECEIPT_HANDLE = 40013;- 另请参阅:
- 常量字段值
-
MESSAGE_PROPERTY_CONFLICT_WITH_TYPE_VALUE
public static final int MESSAGE_PROPERTY_CONFLICT_WITH_TYPE_VALUE
Message property conflicts with its type.
MESSAGE_PROPERTY_CONFLICT_WITH_TYPE = 40014;- 另请参阅:
- 常量字段值
-
UNRECOGNIZED_CLIENT_TYPE_VALUE
public static final int UNRECOGNIZED_CLIENT_TYPE_VALUE
Client type could not be recognized.
UNRECOGNIZED_CLIENT_TYPE = 40015;- 另请参阅:
- 常量字段值
-
MESSAGE_CORRUPTED_VALUE
public static final int MESSAGE_CORRUPTED_VALUE
Message is corrupted.
MESSAGE_CORRUPTED = 40016;- 另请参阅:
- 常量字段值
-
CLIENT_ID_REQUIRED_VALUE
public static final int CLIENT_ID_REQUIRED_VALUE
Request is rejected due to missing of x-mq-client-id header.
CLIENT_ID_REQUIRED = 40017;- 另请参阅:
- 常量字段值
-
ILLEGAL_POLLING_TIME_VALUE
public static final int ILLEGAL_POLLING_TIME_VALUE
Polling time is illegal.
ILLEGAL_POLLING_TIME = 40018;- 另请参阅:
- 常量字段值
-
UNAUTHORIZED_VALUE
public static final int UNAUTHORIZED_VALUE
Generic code indicates that the client request lacks valid authentication credentials for the requested resource.
UNAUTHORIZED = 40100;- 另请参阅:
- 常量字段值
-
PAYMENT_REQUIRED_VALUE
public static final int PAYMENT_REQUIRED_VALUE
Generic code indicates that the account is suspended due to overdue of payment.
PAYMENT_REQUIRED = 40200;- 另请参阅:
- 常量字段值
-
FORBIDDEN_VALUE
public static final int FORBIDDEN_VALUE
Generic code for the case that user does not have the permission to operate.
FORBIDDEN = 40300;- 另请参阅:
- 常量字段值
-
NOT_FOUND_VALUE
public static final int NOT_FOUND_VALUE
Generic code for resource not found.
NOT_FOUND = 40400;- 另请参阅:
- 常量字段值
-
MESSAGE_NOT_FOUND_VALUE
public static final int MESSAGE_NOT_FOUND_VALUE
Message not found from server.
MESSAGE_NOT_FOUND = 40401;- 另请参阅:
- 常量字段值
-
TOPIC_NOT_FOUND_VALUE
public static final int TOPIC_NOT_FOUND_VALUE
Topic resource does not exist.
TOPIC_NOT_FOUND = 40402;- 另请参阅:
- 常量字段值
-
CONSUMER_GROUP_NOT_FOUND_VALUE
public static final int CONSUMER_GROUP_NOT_FOUND_VALUE
Consumer group resource does not exist.
CONSUMER_GROUP_NOT_FOUND = 40403;- 另请参阅:
- 常量字段值
-
REQUEST_TIMEOUT_VALUE
public static final int REQUEST_TIMEOUT_VALUE
Generic code representing client side timeout when connecting to, reading data from, or write data to server.
REQUEST_TIMEOUT = 40800;- 另请参阅:
- 常量字段值
-
PAYLOAD_TOO_LARGE_VALUE
public static final int PAYLOAD_TOO_LARGE_VALUE
Generic code represents that the request entity is larger than limits defined by server.
PAYLOAD_TOO_LARGE = 41300;- 另请参阅:
- 常量字段值
-
MESSAGE_BODY_TOO_LARGE_VALUE
public static final int MESSAGE_BODY_TOO_LARGE_VALUE
Message body size exceeds the threshold.
MESSAGE_BODY_TOO_LARGE = 41301;- 另请参阅:
- 常量字段值
-
PRECONDITION_FAILED_VALUE
public static final int PRECONDITION_FAILED_VALUE
Generic code for use cases where pre-conditions are not met. For example, if a producer instance is used to publish messages without prior start() invocation, this error code will be raised.
PRECONDITION_FAILED = 42800;- 另请参阅:
- 常量字段值
-
TOO_MANY_REQUESTS_VALUE
public static final int TOO_MANY_REQUESTS_VALUE
Generic code indicates that too many requests are made in short period of duration. Requests are throttled.
TOO_MANY_REQUESTS = 42900;- 另请参阅:
- 常量字段值
-
REQUEST_HEADER_FIELDS_TOO_LARGE_VALUE
public static final int REQUEST_HEADER_FIELDS_TOO_LARGE_VALUE
Generic code for the case that the server is unwilling to process the request because its header fields are too large. The request may be resubmitted after reducing the size of the request header fields.
REQUEST_HEADER_FIELDS_TOO_LARGE = 43100;- 另请参阅:
- 常量字段值
-
MESSAGE_PROPERTIES_TOO_LARGE_VALUE
public static final int MESSAGE_PROPERTIES_TOO_LARGE_VALUE
Message properties total size exceeds the threshold.
MESSAGE_PROPERTIES_TOO_LARGE = 43101;- 另请参阅:
- 常量字段值
-
INTERNAL_ERROR_VALUE
public static final int INTERNAL_ERROR_VALUE
Generic code indicates that server/client encountered an unexpected condition that prevented it from fulfilling the request.
INTERNAL_ERROR = 50000;- 另请参阅:
- 常量字段值
-
INTERNAL_SERVER_ERROR_VALUE
public static final int INTERNAL_SERVER_ERROR_VALUE
Code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better alternative error code to response. Sometimes, server administrators log error responses like the 500 status code with more details about the request to prevent the error from happening again in the future. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
INTERNAL_SERVER_ERROR = 50001;- 另请参阅:
- 常量字段值
-
HA_NOT_AVAILABLE_VALUE
public static final int HA_NOT_AVAILABLE_VALUE
The HA-mechanism is not working now.
HA_NOT_AVAILABLE = 50002;- 另请参阅:
- 常量字段值
-
NOT_IMPLEMENTED_VALUE
public static final int NOT_IMPLEMENTED_VALUE
Generic code means that the server or client does not support the functionality required to fulfill the request.
NOT_IMPLEMENTED = 50100;- 另请参阅:
- 常量字段值
-
PROXY_TIMEOUT_VALUE
public static final int PROXY_TIMEOUT_VALUE
Generic code represents that the server, which acts as a gateway or proxy, does not get an satisfied response in time from its upstream servers. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504
PROXY_TIMEOUT = 50400;- 另请参阅:
- 常量字段值
-
MASTER_PERSISTENCE_TIMEOUT_VALUE
public static final int MASTER_PERSISTENCE_TIMEOUT_VALUE
Message persistence timeout.
MASTER_PERSISTENCE_TIMEOUT = 50401;- 另请参阅:
- 常量字段值
-
SLAVE_PERSISTENCE_TIMEOUT_VALUE
public static final int SLAVE_PERSISTENCE_TIMEOUT_VALUE
Slave persistence timeout.
SLAVE_PERSISTENCE_TIMEOUT = 50402;- 另请参阅:
- 常量字段值
-
UNSUPPORTED_VALUE
public static final int UNSUPPORTED_VALUE
Generic code for unsupported operation.
UNSUPPORTED = 50500;- 另请参阅:
- 常量字段值
-
VERSION_UNSUPPORTED_VALUE
public static final int VERSION_UNSUPPORTED_VALUE
Operation is not allowed in current version.
VERSION_UNSUPPORTED = 50501;- 另请参阅:
- 常量字段值
-
VERIFY_FIFO_MESSAGE_UNSUPPORTED_VALUE
public static final int VERIFY_FIFO_MESSAGE_UNSUPPORTED_VALUE
Not allowed to verify message. Chances are that you are verifying a FIFO message, as is violating FIFO semantics.
VERIFY_FIFO_MESSAGE_UNSUPPORTED = 50502;- 另请参阅:
- 常量字段值
-
FAILED_TO_CONSUME_MESSAGE_VALUE
public static final int FAILED_TO_CONSUME_MESSAGE_VALUE
Generic code for failed message consumption.
FAILED_TO_CONSUME_MESSAGE = 60000;- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
values
public static Code[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (Code c : Code.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static Code valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getNumber
public final int getNumber()
- 指定者:
getNumber在接口中com.google.protobuf.Internal.EnumLite- 指定者:
getNumber在接口中com.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Code valueOf(int value)
已过时。返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
value- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
forNumber
public static Code forNumber(int value)
- 参数:
value- The numeric wire value of the corresponding enum entry.- 返回:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Code> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- 指定者:
getValueDescriptor在接口中com.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- 指定者:
getDescriptorForType在接口中com.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
desc- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-