public static enum RaftCmdpb.CmdType extends Enum<RaftCmdpb.CmdType> implements com.google.protobuf.ProtocolMessageEnum
raft_cmdpb.CmdType
Enum Constant and Description |
---|
Delete
Delete = 4; |
DeleteRange
DeleteRange = 7; |
Get
Get = 1; |
IngestSST
IngestSST = 8; |
Invalid
Invalid = 0; |
Prewrite
Prewrite = 6; |
Put
Put = 3; |
ReadIndex
ReadIndex = 9; |
Snap
Snap = 5; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
Delete_VALUE
Delete = 4; |
static int |
DeleteRange_VALUE
DeleteRange = 7; |
static int |
Get_VALUE
Get = 1; |
static int |
IngestSST_VALUE
IngestSST = 8; |
static int |
Invalid_VALUE
Invalid = 0; |
static int |
Prewrite_VALUE
Prewrite = 6; |
static int |
Put_VALUE
Put = 3; |
static int |
ReadIndex_VALUE
ReadIndex = 9; |
static int |
Snap_VALUE
Snap = 5; |
Modifier and Type | Method and Description |
---|---|
static RaftCmdpb.CmdType |
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.CmdType> |
internalGetValueMap() |
static RaftCmdpb.CmdType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RaftCmdpb.CmdType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RaftCmdpb.CmdType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftCmdpb.CmdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftCmdpb.CmdType Invalid
Invalid = 0;
public static final RaftCmdpb.CmdType Get
Get = 1;
public static final RaftCmdpb.CmdType Put
Put = 3;
public static final RaftCmdpb.CmdType Delete
Delete = 4;
public static final RaftCmdpb.CmdType Snap
Snap = 5;
public static final RaftCmdpb.CmdType Prewrite
Prewrite = 6;
public static final RaftCmdpb.CmdType DeleteRange
DeleteRange = 7;
public static final RaftCmdpb.CmdType IngestSST
IngestSST = 8;
public static final RaftCmdpb.CmdType ReadIndex
ReadIndex = 9;
public static final RaftCmdpb.CmdType UNRECOGNIZED
public static final int Invalid_VALUE
Invalid = 0;
public static final int Get_VALUE
Get = 1;
public static final int Put_VALUE
Put = 3;
public static final int Delete_VALUE
Delete = 4;
public static final int Snap_VALUE
Snap = 5;
public static final int Prewrite_VALUE
Prewrite = 6;
public static final int DeleteRange_VALUE
DeleteRange = 7;
public static final int IngestSST_VALUE
IngestSST = 8;
public static final int ReadIndex_VALUE
ReadIndex = 9;
public static RaftCmdpb.CmdType[] values()
for (RaftCmdpb.CmdType c : RaftCmdpb.CmdType.values()) System.out.println(c);
public static RaftCmdpb.CmdType 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.CmdType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static RaftCmdpb.CmdType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RaftCmdpb.CmdType> 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.CmdType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 PingCAP. All rights reserved.