// Generated by the protocol buffer compiler. DO NOT EDIT! // source: rt_msg_content.proto package com.xiaopeng.api.vo.automaticPilot.protobuf; /** * Protobuf enum {@code acm.proto.intelliservices.rt.StatusCode} */ public enum StatusCode implements com.google.protobuf.ProtocolMessageEnum { /** * HTTP_STATUS_CODE_UNSPECIFIED = 0; */ HTTP_STATUS_CODE_UNSPECIFIED(0), /** *
   * 成功
   * 
* * OK = 200; */ OK(200), /** *
   *请求参数错误
   * 
* * BAD_REQUEST = 400; */ BAD_REQUEST(400), /** * FORBIDDEN = 403; */ FORBIDDEN(403), /** * NOT_FOUND = 404; */ NOT_FOUND(404), /** *
   *请求超时
   * 
* * REQUEST_TIMEOUT = 408; */ REQUEST_TIMEOUT(408), /** *
   * 失败
   * 
* * INTERNAL_SERVER_ERROR = 500; */ INTERNAL_SERVER_ERROR(500), UNRECOGNIZED(-1), ; /** * HTTP_STATUS_CODE_UNSPECIFIED = 0; */ public static final int HTTP_STATUS_CODE_UNSPECIFIED_VALUE = 0; /** *
   * 成功
   * 
* * OK = 200; */ public static final int OK_VALUE = 200; /** *
   *请求参数错误
   * 
* * BAD_REQUEST = 400; */ public static final int BAD_REQUEST_VALUE = 400; /** * FORBIDDEN = 403; */ public static final int FORBIDDEN_VALUE = 403; /** * NOT_FOUND = 404; */ public static final int NOT_FOUND_VALUE = 404; /** *
   *请求超时
   * 
* * REQUEST_TIMEOUT = 408; */ public static final int REQUEST_TIMEOUT_VALUE = 408; /** *
   * 失败
   * 
* * INTERNAL_SERVER_ERROR = 500; */ public static final int INTERNAL_SERVER_ERROR_VALUE = 500; public final int getNumber() { if (this == UNRECOGNIZED) { throw new 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. */ @Deprecated public static StatusCode 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 StatusCode forNumber(int value) { switch (value) { case 0: return HTTP_STATUS_CODE_UNSPECIFIED; case 200: return OK; case 400: return BAD_REQUEST; case 403: return FORBIDDEN; case 404: return NOT_FOUND; case 408: return REQUEST_TIMEOUT; case 500: return INTERNAL_SERVER_ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< StatusCode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StatusCode findValueByNumber(int number) { return StatusCode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return RtMsgContent.getDescriptor().getEnumTypes().get(0); } private static final StatusCode[] VALUES = values(); public static StatusCode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private StatusCode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:acm.proto.intelliservices.rt.StatusCode) }