public static enum Configpb.StatusCode extends Enum<Configpb.StatusCode> implements com.google.protobuf.ProtocolMessageEnum
configpb.StatusCode| 枚举常量和说明 |
|---|
COMPONENT_ID_NOT_FOUND
COMPONENT_ID_NOT_FOUND = 5; |
COMPONENT_NOT_FOUND
COMPONENT_NOT_FOUND = 4; |
NOT_CHANGE
NOT_CHANGE = 3; |
OK
OK = 1; |
UNKNOWN
UNKNOWN = 0; |
UNRECOGNIZED |
WRONG_VERSION
WRONG_VERSION = 2; |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
COMPONENT_ID_NOT_FOUND_VALUE
COMPONENT_ID_NOT_FOUND = 5; |
static int |
COMPONENT_NOT_FOUND_VALUE
COMPONENT_NOT_FOUND = 4; |
static int |
NOT_CHANGE_VALUE
NOT_CHANGE = 3; |
static int |
OK_VALUE
OK = 1; |
static int |
UNKNOWN_VALUE
UNKNOWN = 0; |
static int |
WRONG_VERSION_VALUE
WRONG_VERSION = 2; |
| 限定符和类型 | 方法和说明 |
|---|---|
static Configpb.StatusCode |
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<Configpb.StatusCode> |
internalGetValueMap() |
static Configpb.StatusCode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Configpb.StatusCode |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static Configpb.StatusCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Configpb.StatusCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Configpb.StatusCode UNKNOWN
UNKNOWN = 0;public static final Configpb.StatusCode OK
OK = 1;public static final Configpb.StatusCode WRONG_VERSION
WRONG_VERSION = 2;public static final Configpb.StatusCode NOT_CHANGE
NOT_CHANGE = 3;public static final Configpb.StatusCode COMPONENT_NOT_FOUND
COMPONENT_NOT_FOUND = 4;public static final Configpb.StatusCode COMPONENT_ID_NOT_FOUND
COMPONENT_ID_NOT_FOUND = 5;public static final Configpb.StatusCode UNRECOGNIZED
public static final int UNKNOWN_VALUE
UNKNOWN = 0;public static final int OK_VALUE
OK = 1;public static final int WRONG_VERSION_VALUE
WRONG_VERSION = 2;public static final int NOT_CHANGE_VALUE
NOT_CHANGE = 3;public static final int COMPONENT_NOT_FOUND_VALUE
COMPONENT_NOT_FOUND = 4;public static final int COMPONENT_ID_NOT_FOUND_VALUE
COMPONENT_ID_NOT_FOUND = 5;public static Configpb.StatusCode[] values()
for (Configpb.StatusCode c : Configpb.StatusCode.values()) System.out.println(c);
public static Configpb.StatusCode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static Configpb.StatusCode valueOf(int value)
forNumber(int) instead.public static Configpb.StatusCode forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Configpb.StatusCode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor 在接口中 com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Configpb.StatusCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 PingCAP. All rights reserved.