public static enum Metapb.PeerRole extends Enum<Metapb.PeerRole> implements com.google.protobuf.ProtocolMessageEnum
metapb.PeerRole
Enum Constant and Description |
---|
DemotingVoter
Voter -> Learner
|
IncomingVoter
Learner/None -> Voter
|
Learner
Learner/None -> Learner
|
UNRECOGNIZED |
Voter
Voter -> Voter
|
Modifier and Type | Field and Description |
---|---|
static int |
DemotingVoter_VALUE
Voter -> Learner
|
static int |
IncomingVoter_VALUE
Learner/None -> Voter
|
static int |
Learner_VALUE
Learner/None -> Learner
|
static int |
Voter_VALUE
Voter -> Voter
|
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
Use
forNumber(int) instead. |
static Metapb.PeerRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Metapb.PeerRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Metapb.PeerRole valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Metapb.PeerRole forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Metapb.PeerRole> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Metapb.PeerRole valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 PingCAP. All rights reserved.