// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: apache/rocketmq/v2/definition.proto
package apache.rocketmq.v2;
/**
* Protobuf enum {@code apache.rocketmq.v2.Code}
*/
public enum Code
implements org.apache.rocketmq.shaded.com.google.protobuf.ProtocolMessageEnum {
/**
* CODE_UNSPECIFIED = 0;
*/
CODE_UNSPECIFIED(0),
/**
*
* Generic code for success.
*
*
* OK = 20000;
*/
OK(20000),
/**
*
* Generic code for multiple return results.
*
*
* MULTIPLE_RESULTS = 30000;
*/
MULTIPLE_RESULTS(30000),
/**
*
* Generic code for bad request, indicating that required fields or headers are missing.
*
*
* BAD_REQUEST = 40000;
*/
BAD_REQUEST(40000),
/**
*
* Format of access point is illegal.
*
*
* ILLEGAL_ACCESS_POINT = 40001;
*/
ILLEGAL_ACCESS_POINT(40001),
/**
*
* Format of topic is illegal.
*
*
* ILLEGAL_TOPIC = 40002;
*/
ILLEGAL_TOPIC(40002),
/**
*
* Format of consumer group is illegal.
*
*
* ILLEGAL_CONSUMER_GROUP = 40003;
*/
ILLEGAL_CONSUMER_GROUP(40003),
/**
*
* Format of message tag is illegal.
*
*
* ILLEGAL_MESSAGE_TAG = 40004;
*/
ILLEGAL_MESSAGE_TAG(40004),
/**
*
* Format of message key is illegal.
*
*
* ILLEGAL_MESSAGE_KEY = 40005;
*/
ILLEGAL_MESSAGE_KEY(40005),
/**
*
* Format of message group is illegal.
*
*
* ILLEGAL_MESSAGE_GROUP = 40006;
*/
ILLEGAL_MESSAGE_GROUP(40006),
/**
*
* Format of message property key is illegal.
*
*
* ILLEGAL_MESSAGE_PROPERTY_KEY = 40007;
*/
ILLEGAL_MESSAGE_PROPERTY_KEY(40007),
/**
*
* Transaction id is invalid.
*
*
* INVALID_TRANSACTION_ID = 40008;
*/
INVALID_TRANSACTION_ID(40008),
/**
*
* Format of message id is illegal.
*
*
* ILLEGAL_MESSAGE_ID = 40009;
*/
ILLEGAL_MESSAGE_ID(40009),
/**
*
* Format of filter expression is illegal.
*
*
* ILLEGAL_FILTER_EXPRESSION = 40010;
*/
ILLEGAL_FILTER_EXPRESSION(40010),
/**
*
* The invisible time of request is invalid.
*
*
* ILLEGAL_INVISIBLE_TIME = 40011;
*/
ILLEGAL_INVISIBLE_TIME(40011),
/**
*
* The delivery timestamp of message is invalid.
*
*
* ILLEGAL_DELIVERY_TIME = 40012;
*/
ILLEGAL_DELIVERY_TIME(40012),
/**
*
* Receipt handle of message is invalid.
*
*
* INVALID_RECEIPT_HANDLE = 40013;
*/
INVALID_RECEIPT_HANDLE(40013),
/**
*
* Message property conflicts with its type.
*
*
* MESSAGE_PROPERTY_CONFLICT_WITH_TYPE = 40014;
*/
MESSAGE_PROPERTY_CONFLICT_WITH_TYPE(40014),
/**
*
* Client type could not be recognized.
*
*
* UNRECOGNIZED_CLIENT_TYPE = 40015;
*/
UNRECOGNIZED_CLIENT_TYPE(40015),
/**
*
* Message is corrupted.
*
*
* MESSAGE_CORRUPTED = 40016;
*/
MESSAGE_CORRUPTED(40016),
/**
*
* Request is rejected due to missing of x-mq-client-id header.
*
*
* CLIENT_ID_REQUIRED = 40017;
*/
CLIENT_ID_REQUIRED(40017),
/**
*
* Polling time is illegal.
*
*
* ILLEGAL_POLLING_TIME = 40018;
*/
ILLEGAL_POLLING_TIME(40018),
/**
*
* Generic code indicates that the client request lacks valid authentication
* credentials for the requested resource.
*
*
* UNAUTHORIZED = 40100;
*/
UNAUTHORIZED(40100),
/**
*
* Generic code indicates that the account is suspended due to overdue of payment.
*
*
* PAYMENT_REQUIRED = 40200;
*/
PAYMENT_REQUIRED(40200),
/**
*
* Generic code for the case that user does not have the permission to operate.
*
*
* FORBIDDEN = 40300;
*/
FORBIDDEN(40300),
/**
*
* Generic code for resource not found.
*
*
* NOT_FOUND = 40400;
*/
NOT_FOUND(40400),
/**
*
* Message not found from server.
*
*
* MESSAGE_NOT_FOUND = 40401;
*/
MESSAGE_NOT_FOUND(40401),
/**
*
* Topic resource does not exist.
*
*
* TOPIC_NOT_FOUND = 40402;
*/
TOPIC_NOT_FOUND(40402),
/**
*
* Consumer group resource does not exist.
*
*
* CONSUMER_GROUP_NOT_FOUND = 40403;
*/
CONSUMER_GROUP_NOT_FOUND(40403),
/**
*
* Generic code representing client side timeout when connecting to, reading data from, or write data to server.
*
*
* REQUEST_TIMEOUT = 40800;
*/
REQUEST_TIMEOUT(40800),
/**
*
* Generic code represents that the request entity is larger than limits defined by server.
*
*
* PAYLOAD_TOO_LARGE = 41300;
*/
PAYLOAD_TOO_LARGE(41300),
/**
*
* Message body size exceeds the threshold.
*
*
* MESSAGE_BODY_TOO_LARGE = 41301;
*/
MESSAGE_BODY_TOO_LARGE(41301),
/**
*
* 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;
*/
PRECONDITION_FAILED(42800),
/**
*
* Generic code indicates that too many requests are made in short period of duration.
* Requests are throttled.
*
*
* TOO_MANY_REQUESTS = 42900;
*/
TOO_MANY_REQUESTS(42900),
/**
*
* 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;
*/
REQUEST_HEADER_FIELDS_TOO_LARGE(43100),
/**
*
* Message properties total size exceeds the threshold.
*
*
* MESSAGE_PROPERTIES_TOO_LARGE = 43101;
*/
MESSAGE_PROPERTIES_TOO_LARGE(43101),
/**
*
* Generic code indicates that server/client encountered an unexpected
* condition that prevented it from fulfilling the request.
*
*
* INTERNAL_ERROR = 50000;
*/
INTERNAL_ERROR(50000),
/**
*
* 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;
*/
INTERNAL_SERVER_ERROR(50001),
/**
*
* The HA-mechanism is not working now.
*
*
* HA_NOT_AVAILABLE = 50002;
*/
HA_NOT_AVAILABLE(50002),
/**
*
* Generic code means that the server or client does not support the
* functionality required to fulfill the request.
*
*
* NOT_IMPLEMENTED = 50100;
*/
NOT_IMPLEMENTED(50100),
/**
*
* 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;
*/
PROXY_TIMEOUT(50400),
/**
*
* Message persistence timeout.
*
*
* MASTER_PERSISTENCE_TIMEOUT = 50401;
*/
MASTER_PERSISTENCE_TIMEOUT(50401),
/**
*
* Slave persistence timeout.
*
*
* SLAVE_PERSISTENCE_TIMEOUT = 50402;
*/
SLAVE_PERSISTENCE_TIMEOUT(50402),
/**
*
* Generic code for unsupported operation.
*
*
* UNSUPPORTED = 50500;
*/
UNSUPPORTED(50500),
/**
*
* Operation is not allowed in current version.
*
*
* VERSION_UNSUPPORTED = 50501;
*/
VERSION_UNSUPPORTED(50501),
/**
*
* Not allowed to verify message. Chances are that you are verifying
* a FIFO message, as is violating FIFO semantics.
*
*
* VERIFY_FIFO_MESSAGE_UNSUPPORTED = 50502;
*/
VERIFY_FIFO_MESSAGE_UNSUPPORTED(50502),
/**
*
* Generic code for failed message consumption.
*
*
* FAILED_TO_CONSUME_MESSAGE = 60000;
*/
FAILED_TO_CONSUME_MESSAGE(60000),
UNRECOGNIZED(-1),
;
/**
* CODE_UNSPECIFIED = 0;
*/
public static final int CODE_UNSPECIFIED_VALUE = 0;
/**
*
* Generic code for success.
*
*
* OK = 20000;
*/
public static final int OK_VALUE = 20000;
/**
*
* Generic code for multiple return results.
*
*
* MULTIPLE_RESULTS = 30000;
*/
public static final int MULTIPLE_RESULTS_VALUE = 30000;
/**
*
* Generic code for bad request, indicating that required fields or headers are missing.
*
*
* BAD_REQUEST = 40000;
*/
public static final int BAD_REQUEST_VALUE = 40000;
/**
*
* Format of access point is illegal.
*
*
* ILLEGAL_ACCESS_POINT = 40001;
*/
public static final int ILLEGAL_ACCESS_POINT_VALUE = 40001;
/**
*
* Format of topic is illegal.
*
*
* ILLEGAL_TOPIC = 40002;
*/
public static final int ILLEGAL_TOPIC_VALUE = 40002;
/**
*
* Format of consumer group is illegal.
*
*
* ILLEGAL_CONSUMER_GROUP = 40003;
*/
public static final int ILLEGAL_CONSUMER_GROUP_VALUE = 40003;
/**
*
* Format of message tag is illegal.
*
*
* ILLEGAL_MESSAGE_TAG = 40004;
*/
public static final int ILLEGAL_MESSAGE_TAG_VALUE = 40004;
/**
*
* Format of message key is illegal.
*
*
* ILLEGAL_MESSAGE_KEY = 40005;
*/
public static final int ILLEGAL_MESSAGE_KEY_VALUE = 40005;
/**
*
* Format of message group is illegal.
*
*
* ILLEGAL_MESSAGE_GROUP = 40006;
*/
public static final int ILLEGAL_MESSAGE_GROUP_VALUE = 40006;
/**
*
* Format of message property key is illegal.
*
*
* ILLEGAL_MESSAGE_PROPERTY_KEY = 40007;
*/
public static final int ILLEGAL_MESSAGE_PROPERTY_KEY_VALUE = 40007;
/**
*
* Transaction id is invalid.
*
*
* INVALID_TRANSACTION_ID = 40008;
*/
public static final int INVALID_TRANSACTION_ID_VALUE = 40008;
/**
*
* Format of message id is illegal.
*
*
* ILLEGAL_MESSAGE_ID = 40009;
*/
public static final int ILLEGAL_MESSAGE_ID_VALUE = 40009;
/**
*
* Format of filter expression is illegal.
*
*
* ILLEGAL_FILTER_EXPRESSION = 40010;
*/
public static final int ILLEGAL_FILTER_EXPRESSION_VALUE = 40010;
/**
*
* The invisible time of request is invalid.
*
*
* ILLEGAL_INVISIBLE_TIME = 40011;
*/
public static final int ILLEGAL_INVISIBLE_TIME_VALUE = 40011;
/**
*
* The delivery timestamp of message is invalid.
*
*
* ILLEGAL_DELIVERY_TIME = 40012;
*/
public static final int ILLEGAL_DELIVERY_TIME_VALUE = 40012;
/**
*
* Receipt handle of message is invalid.
*
*
* INVALID_RECEIPT_HANDLE = 40013;
*/
public static final int INVALID_RECEIPT_HANDLE_VALUE = 40013;
/**
*
* Message property conflicts with its type.
*
*
* MESSAGE_PROPERTY_CONFLICT_WITH_TYPE = 40014;
*/
public static final int MESSAGE_PROPERTY_CONFLICT_WITH_TYPE_VALUE = 40014;
/**
*
* Client type could not be recognized.
*
*
* UNRECOGNIZED_CLIENT_TYPE = 40015;
*/
public static final int UNRECOGNIZED_CLIENT_TYPE_VALUE = 40015;
/**
*
* Message is corrupted.
*
*
* MESSAGE_CORRUPTED = 40016;
*/
public static final int MESSAGE_CORRUPTED_VALUE = 40016;
/**
*
* Request is rejected due to missing of x-mq-client-id header.
*
*
* CLIENT_ID_REQUIRED = 40017;
*/
public static final int CLIENT_ID_REQUIRED_VALUE = 40017;
/**
*
* Polling time is illegal.
*
*
* ILLEGAL_POLLING_TIME = 40018;
*/
public static final int ILLEGAL_POLLING_TIME_VALUE = 40018;
/**
*
* Generic code indicates that the client request lacks valid authentication
* credentials for the requested resource.
*
*
* UNAUTHORIZED = 40100;
*/
public static final int UNAUTHORIZED_VALUE = 40100;
/**
*
* Generic code indicates that the account is suspended due to overdue of payment.
*
*
* PAYMENT_REQUIRED = 40200;
*/
public static final int PAYMENT_REQUIRED_VALUE = 40200;
/**
*
* Generic code for the case that user does not have the permission to operate.
*
*
* FORBIDDEN = 40300;
*/
public static final int FORBIDDEN_VALUE = 40300;
/**
*
* Generic code for resource not found.
*
*
* NOT_FOUND = 40400;
*/
public static final int NOT_FOUND_VALUE = 40400;
/**
*
* Message not found from server.
*
*
* MESSAGE_NOT_FOUND = 40401;
*/
public static final int MESSAGE_NOT_FOUND_VALUE = 40401;
/**
*
* Topic resource does not exist.
*
*
* TOPIC_NOT_FOUND = 40402;
*/
public static final int TOPIC_NOT_FOUND_VALUE = 40402;
/**
*
* Consumer group resource does not exist.
*
*
* CONSUMER_GROUP_NOT_FOUND = 40403;
*/
public static final int CONSUMER_GROUP_NOT_FOUND_VALUE = 40403;
/**
*
* Generic code representing client side timeout when connecting to, reading data from, or write data to server.
*
*
* REQUEST_TIMEOUT = 40800;
*/
public static final int REQUEST_TIMEOUT_VALUE = 40800;
/**
*
* Generic code represents that the request entity is larger than limits defined by server.
*
*
* PAYLOAD_TOO_LARGE = 41300;
*/
public static final int PAYLOAD_TOO_LARGE_VALUE = 41300;
/**
*
* Message body size exceeds the threshold.
*
*
* MESSAGE_BODY_TOO_LARGE = 41301;
*/
public static final int MESSAGE_BODY_TOO_LARGE_VALUE = 41301;
/**
*
* 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;
*/
public static final int PRECONDITION_FAILED_VALUE = 42800;
/**
*
* Generic code indicates that too many requests are made in short period of duration.
* Requests are throttled.
*
*
* TOO_MANY_REQUESTS = 42900;
*/
public static final int TOO_MANY_REQUESTS_VALUE = 42900;
/**
*
* 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;
*/
public static final int REQUEST_HEADER_FIELDS_TOO_LARGE_VALUE = 43100;
/**
*
* Message properties total size exceeds the threshold.
*
*
* MESSAGE_PROPERTIES_TOO_LARGE = 43101;
*/
public static final int MESSAGE_PROPERTIES_TOO_LARGE_VALUE = 43101;
/**
*
* Generic code indicates that server/client encountered an unexpected
* condition that prevented it from fulfilling the request.
*
*
* INTERNAL_ERROR = 50000;
*/
public static final int INTERNAL_ERROR_VALUE = 50000;
/**
*
* 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;
*/
public static final int INTERNAL_SERVER_ERROR_VALUE = 50001;
/**
*
* The HA-mechanism is not working now.
*
*
* HA_NOT_AVAILABLE = 50002;
*/
public static final int HA_NOT_AVAILABLE_VALUE = 50002;
/**
*
* Generic code means that the server or client does not support the
* functionality required to fulfill the request.
*
*
* NOT_IMPLEMENTED = 50100;
*/
public static final int NOT_IMPLEMENTED_VALUE = 50100;
/**
*
* 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;
*/
public static final int PROXY_TIMEOUT_VALUE = 50400;
/**
*
* Message persistence timeout.
*
*
* MASTER_PERSISTENCE_TIMEOUT = 50401;
*/
public static final int MASTER_PERSISTENCE_TIMEOUT_VALUE = 50401;
/**
*
* Slave persistence timeout.
*
*
* SLAVE_PERSISTENCE_TIMEOUT = 50402;
*/
public static final int SLAVE_PERSISTENCE_TIMEOUT_VALUE = 50402;
/**
*
* Generic code for unsupported operation.
*
*
* UNSUPPORTED = 50500;
*/
public static final int UNSUPPORTED_VALUE = 50500;
/**
*
* Operation is not allowed in current version.
*
*
* VERSION_UNSUPPORTED = 50501;
*/
public static final int VERSION_UNSUPPORTED_VALUE = 50501;
/**
*
* Not allowed to verify message. Chances are that you are verifying
* a FIFO message, as is violating FIFO semantics.
*
*
* VERIFY_FIFO_MESSAGE_UNSUPPORTED = 50502;
*/
public static final int VERIFY_FIFO_MESSAGE_UNSUPPORTED_VALUE = 50502;
/**
*
* Generic code for failed message consumption.
*
*
* FAILED_TO_CONSUME_MESSAGE = 60000;
*/
public static final int FAILED_TO_CONSUME_MESSAGE_VALUE = 60000;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Code valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Code forNumber(int value) {
switch (value) {
case 0: return CODE_UNSPECIFIED;
case 20000: return OK;
case 30000: return MULTIPLE_RESULTS;
case 40000: return BAD_REQUEST;
case 40001: return ILLEGAL_ACCESS_POINT;
case 40002: return ILLEGAL_TOPIC;
case 40003: return ILLEGAL_CONSUMER_GROUP;
case 40004: return ILLEGAL_MESSAGE_TAG;
case 40005: return ILLEGAL_MESSAGE_KEY;
case 40006: return ILLEGAL_MESSAGE_GROUP;
case 40007: return ILLEGAL_MESSAGE_PROPERTY_KEY;
case 40008: return INVALID_TRANSACTION_ID;
case 40009: return ILLEGAL_MESSAGE_ID;
case 40010: return ILLEGAL_FILTER_EXPRESSION;
case 40011: return ILLEGAL_INVISIBLE_TIME;
case 40012: return ILLEGAL_DELIVERY_TIME;
case 40013: return INVALID_RECEIPT_HANDLE;
case 40014: return MESSAGE_PROPERTY_CONFLICT_WITH_TYPE;
case 40015: return UNRECOGNIZED_CLIENT_TYPE;
case 40016: return MESSAGE_CORRUPTED;
case 40017: return CLIENT_ID_REQUIRED;
case 40018: return ILLEGAL_POLLING_TIME;
case 40100: return UNAUTHORIZED;
case 40200: return PAYMENT_REQUIRED;
case 40300: return FORBIDDEN;
case 40400: return NOT_FOUND;
case 40401: return MESSAGE_NOT_FOUND;
case 40402: return TOPIC_NOT_FOUND;
case 40403: return CONSUMER_GROUP_NOT_FOUND;
case 40800: return REQUEST_TIMEOUT;
case 41300: return PAYLOAD_TOO_LARGE;
case 41301: return MESSAGE_BODY_TOO_LARGE;
case 42800: return PRECONDITION_FAILED;
case 42900: return TOO_MANY_REQUESTS;
case 43100: return REQUEST_HEADER_FIELDS_TOO_LARGE;
case 43101: return MESSAGE_PROPERTIES_TOO_LARGE;
case 50000: return INTERNAL_ERROR;
case 50001: return INTERNAL_SERVER_ERROR;
case 50002: return HA_NOT_AVAILABLE;
case 50100: return NOT_IMPLEMENTED;
case 50400: return PROXY_TIMEOUT;
case 50401: return MASTER_PERSISTENCE_TIMEOUT;
case 50402: return SLAVE_PERSISTENCE_TIMEOUT;
case 50500: return UNSUPPORTED;
case 50501: return VERSION_UNSUPPORTED;
case 50502: return VERIFY_FIFO_MESSAGE_UNSUPPORTED;
case 60000: return FAILED_TO_CONSUME_MESSAGE;
default: return null;
}
}
public static org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap<
Code> internalValueMap =
new org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap() {
public Code findValueByNumber(int number) {
return Code.forNumber(number);
}
};
public final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return apache.rocketmq.v2.MQDomain.getDescriptor().getEnumTypes().get(9);
}
private static final Code[] VALUES = values();
public static Code valueOf(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Code(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:apache.rocketmq.v2.Code)
}