枚举 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 enum apache.rocketmq.v2.Code
    • 枚举常量详细资料

      • 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;
      • 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;
        另请参阅:
        常量字段值
      • 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 - 如果参数为空值