public static enum RaftCmdpb.CmdType extends Enum<RaftCmdpb.CmdType> implements com.google.protobuf.ProtocolMessageEnum
raft_cmdpb.CmdType| 枚举常量和说明 |
|---|
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 |
| 限定符和类型 | 字段和说明 |
|---|---|
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; |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
已过时。
Use
forNumber(int) instead. |
static RaftCmdpb.CmdType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RaftCmdpb.CmdType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static RaftCmdpb.CmdType valueOf(int value)
forNumber(int) instead.public static RaftCmdpb.CmdType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<RaftCmdpb.CmdType> 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 RaftCmdpb.CmdType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 PingCAP. All rights reserved.