public static enum Pdpb.ErrorType extends Enum<Pdpb.ErrorType> implements com.google.protobuf.ProtocolMessageEnum
pdpb.ErrorType| 枚举常量和说明 |
|---|
ALREADY_BOOTSTRAPPED
ALREADY_BOOTSTRAPPED = 4; |
GLOBAL_CONFIG_NOT_FOUND
GLOBAL_CONFIG_NOT_FOUND = 7; |
INCOMPATIBLE_VERSION
INCOMPATIBLE_VERSION = 5; |
NOT_BOOTSTRAPPED
NOT_BOOTSTRAPPED = 2; |
OK
OK = 0; |
REGION_NOT_FOUND
REGION_NOT_FOUND = 6; |
STORE_TOMBSTONE
STORE_TOMBSTONE = 3; |
UNKNOWN
UNKNOWN = 1; |
UNRECOGNIZED |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ALREADY_BOOTSTRAPPED_VALUE
ALREADY_BOOTSTRAPPED = 4; |
static int |
GLOBAL_CONFIG_NOT_FOUND_VALUE
GLOBAL_CONFIG_NOT_FOUND = 7; |
static int |
INCOMPATIBLE_VERSION_VALUE
INCOMPATIBLE_VERSION = 5; |
static int |
NOT_BOOTSTRAPPED_VALUE
NOT_BOOTSTRAPPED = 2; |
static int |
OK_VALUE
OK = 0; |
static int |
REGION_NOT_FOUND_VALUE
REGION_NOT_FOUND = 6; |
static int |
STORE_TOMBSTONE_VALUE
STORE_TOMBSTONE = 3; |
static int |
UNKNOWN_VALUE
UNKNOWN = 1; |
| 限定符和类型 | 方法和说明 |
|---|---|
static Pdpb.ErrorType |
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<Pdpb.ErrorType> |
internalGetValueMap() |
static Pdpb.ErrorType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Pdpb.ErrorType |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static Pdpb.ErrorType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Pdpb.ErrorType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Pdpb.ErrorType OK
OK = 0;public static final Pdpb.ErrorType UNKNOWN
UNKNOWN = 1;public static final Pdpb.ErrorType NOT_BOOTSTRAPPED
NOT_BOOTSTRAPPED = 2;public static final Pdpb.ErrorType STORE_TOMBSTONE
STORE_TOMBSTONE = 3;public static final Pdpb.ErrorType ALREADY_BOOTSTRAPPED
ALREADY_BOOTSTRAPPED = 4;public static final Pdpb.ErrorType INCOMPATIBLE_VERSION
INCOMPATIBLE_VERSION = 5;public static final Pdpb.ErrorType REGION_NOT_FOUND
REGION_NOT_FOUND = 6;public static final Pdpb.ErrorType GLOBAL_CONFIG_NOT_FOUND
GLOBAL_CONFIG_NOT_FOUND = 7;public static final Pdpb.ErrorType UNRECOGNIZED
public static final int OK_VALUE
OK = 0;public static final int UNKNOWN_VALUE
UNKNOWN = 1;public static final int NOT_BOOTSTRAPPED_VALUE
NOT_BOOTSTRAPPED = 2;public static final int STORE_TOMBSTONE_VALUE
STORE_TOMBSTONE = 3;public static final int ALREADY_BOOTSTRAPPED_VALUE
ALREADY_BOOTSTRAPPED = 4;public static final int INCOMPATIBLE_VERSION_VALUE
INCOMPATIBLE_VERSION = 5;public static final int REGION_NOT_FOUND_VALUE
REGION_NOT_FOUND = 6;public static final int GLOBAL_CONFIG_NOT_FOUND_VALUE
GLOBAL_CONFIG_NOT_FOUND = 7;public static Pdpb.ErrorType[] values()
for (Pdpb.ErrorType c : Pdpb.ErrorType.values()) System.out.println(c);
public static Pdpb.ErrorType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static Pdpb.ErrorType valueOf(int value)
forNumber(int) instead.public static Pdpb.ErrorType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Pdpb.ErrorType> 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 Pdpb.ErrorType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 PingCAP. All rights reserved.