public static enum RaftCmdpb.AdminCmdType extends Enum<RaftCmdpb.AdminCmdType> implements com.google.protobuf.ProtocolMessageEnum
raft_cmdpb.AdminCmdType
Enum Constant and Description |
---|
BatchSplit
BatchSplit = 10; |
ChangePeer
ChangePeer = 1; |
ChangePeerV2
ChangePeerV2 = 11; |
CommitMerge
CommitMerge = 8; |
CompactLog
CompactLog = 3; |
ComputeHash
ComputeHash = 5; |
InvalidAdmin
InvalidAdmin = 0; |
PrepareMerge
PrepareMerge = 7; |
RollbackMerge
RollbackMerge = 9; |
Split
Deprecated.
|
TransferLeader
TransferLeader = 4; |
UNRECOGNIZED |
VerifyHash
VerifyHash = 6; |
Modifier and Type | Field and Description |
---|---|
static int |
BatchSplit_VALUE
BatchSplit = 10; |
static int |
ChangePeer_VALUE
ChangePeer = 1; |
static int |
ChangePeerV2_VALUE
ChangePeerV2 = 11; |
static int |
CommitMerge_VALUE
CommitMerge = 8; |
static int |
CompactLog_VALUE
CompactLog = 3; |
static int |
ComputeHash_VALUE
ComputeHash = 5; |
static int |
InvalidAdmin_VALUE
InvalidAdmin = 0; |
static int |
PrepareMerge_VALUE
PrepareMerge = 7; |
static int |
RollbackMerge_VALUE
RollbackMerge = 9; |
static int |
Split_VALUE
Deprecated.
|
static int |
TransferLeader_VALUE
TransferLeader = 4; |
static int |
VerifyHash_VALUE
VerifyHash = 6; |
Modifier and Type | Method and Description |
---|---|
static RaftCmdpb.AdminCmdType |
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<RaftCmdpb.AdminCmdType> |
internalGetValueMap() |
static RaftCmdpb.AdminCmdType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RaftCmdpb.AdminCmdType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RaftCmdpb.AdminCmdType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftCmdpb.AdminCmdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftCmdpb.AdminCmdType InvalidAdmin
InvalidAdmin = 0;
public static final RaftCmdpb.AdminCmdType ChangePeer
ChangePeer = 1;
@Deprecated public static final RaftCmdpb.AdminCmdType Split
Use `BatchSplit` instead.
Split = 2 [deprecated = true];
public static final RaftCmdpb.AdminCmdType CompactLog
CompactLog = 3;
public static final RaftCmdpb.AdminCmdType TransferLeader
TransferLeader = 4;
public static final RaftCmdpb.AdminCmdType ComputeHash
ComputeHash = 5;
public static final RaftCmdpb.AdminCmdType VerifyHash
VerifyHash = 6;
public static final RaftCmdpb.AdminCmdType PrepareMerge
PrepareMerge = 7;
public static final RaftCmdpb.AdminCmdType CommitMerge
CommitMerge = 8;
public static final RaftCmdpb.AdminCmdType RollbackMerge
RollbackMerge = 9;
public static final RaftCmdpb.AdminCmdType BatchSplit
BatchSplit = 10;
public static final RaftCmdpb.AdminCmdType ChangePeerV2
ChangePeerV2 = 11;
public static final RaftCmdpb.AdminCmdType UNRECOGNIZED
public static final int InvalidAdmin_VALUE
InvalidAdmin = 0;
public static final int ChangePeer_VALUE
ChangePeer = 1;
@Deprecated public static final int Split_VALUE
Use `BatchSplit` instead.
Split = 2 [deprecated = true];
public static final int CompactLog_VALUE
CompactLog = 3;
public static final int TransferLeader_VALUE
TransferLeader = 4;
public static final int ComputeHash_VALUE
ComputeHash = 5;
public static final int VerifyHash_VALUE
VerifyHash = 6;
public static final int PrepareMerge_VALUE
PrepareMerge = 7;
public static final int CommitMerge_VALUE
CommitMerge = 8;
public static final int RollbackMerge_VALUE
RollbackMerge = 9;
public static final int BatchSplit_VALUE
BatchSplit = 10;
public static final int ChangePeerV2_VALUE
ChangePeerV2 = 11;
public static RaftCmdpb.AdminCmdType[] values()
for (RaftCmdpb.AdminCmdType c : RaftCmdpb.AdminCmdType.values()) System.out.println(c);
public static RaftCmdpb.AdminCmdType 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 RaftCmdpb.AdminCmdType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static RaftCmdpb.AdminCmdType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RaftCmdpb.AdminCmdType> 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 RaftCmdpb.AdminCmdType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 PingCAP. All rights reserved.