public static enum Metapb.PeerRole extends Enum<Metapb.PeerRole> implements com.google.protobuf.ProtocolMessageEnum
metapb.PeerRole| 枚举常量和说明 |
|---|
DemotingVoter
Voter -> Learner
DemotingVoter = 3; |
IncomingVoter
Learner/None -> Voter
IncomingVoter = 2; |
Learner
Learner/None -> Learner
Learner = 1; |
UNRECOGNIZED |
Voter
Voter -> Voter
Voter = 0; |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DemotingVoter_VALUE
Voter -> Learner
DemotingVoter = 3; |
static int |
IncomingVoter_VALUE
Learner/None -> Voter
IncomingVoter = 2; |
static int |
Learner_VALUE
Learner/None -> Learner
Learner = 1; |
static int |
Voter_VALUE
Voter -> Voter
Voter = 0; |
| 限定符和类型 | 方法和说明 |
|---|---|
static Metapb.PeerRole |
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<Metapb.PeerRole> |
internalGetValueMap() |
static Metapb.PeerRole |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Metapb.PeerRole |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static Metapb.PeerRole |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Metapb.PeerRole[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Metapb.PeerRole Voter
Voter -> Voter
Voter = 0;public static final Metapb.PeerRole Learner
Learner/None -> Learner
Learner = 1;public static final Metapb.PeerRole IncomingVoter
Learner/None -> Voter
IncomingVoter = 2;public static final Metapb.PeerRole DemotingVoter
Voter -> Learner
DemotingVoter = 3;public static final Metapb.PeerRole UNRECOGNIZED
public static final int Voter_VALUE
Voter -> Voter
Voter = 0;public static final int Learner_VALUE
Learner/None -> Learner
Learner = 1;public static final int IncomingVoter_VALUE
Learner/None -> Voter
IncomingVoter = 2;public static final int DemotingVoter_VALUE
Voter -> Learner
DemotingVoter = 3;public static Metapb.PeerRole[] values()
for (Metapb.PeerRole c : Metapb.PeerRole.values()) System.out.println(c);
public static Metapb.PeerRole valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static Metapb.PeerRole valueOf(int value)
forNumber(int) instead.public static Metapb.PeerRole forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Metapb.PeerRole> 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 Metapb.PeerRole valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 PingCAP. All rights reserved.