public static enum Eraftpb.MessageType extends Enum<Eraftpb.MessageType> implements com.google.protobuf.ProtocolMessageEnum
eraftpb.MessageType| Enum Constant and Description |
|---|
MsgAppend
MsgAppend = 3; |
MsgAppendResponse
MsgAppendResponse = 4; |
MsgBeat
MsgBeat = 1; |
MsgCheckQuorum
MsgCheckQuorum = 12; |
MsgHeartbeat
MsgHeartbeat = 8; |
MsgHeartbeatResponse
MsgHeartbeatResponse = 9; |
MsgHup
MsgHup = 0; |
MsgPropose
MsgPropose = 2; |
MsgReadIndex
MsgReadIndex = 15; |
MsgReadIndexResp
MsgReadIndexResp = 16; |
MsgRequestPreVote
MsgRequestPreVote = 17; |
MsgRequestPreVoteResponse
MsgRequestPreVoteResponse = 18; |
MsgRequestVote
MsgRequestVote = 5; |
MsgRequestVoteResponse
MsgRequestVoteResponse = 6; |
MsgSnapshot
MsgSnapshot = 7; |
MsgSnapStatus
MsgSnapStatus = 11; |
MsgTimeoutNow
MsgTimeoutNow = 14; |
MsgTransferLeader
MsgTransferLeader = 13; |
MsgUnreachable
MsgUnreachable = 10; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
MsgAppend_VALUE
MsgAppend = 3; |
static int |
MsgAppendResponse_VALUE
MsgAppendResponse = 4; |
static int |
MsgBeat_VALUE
MsgBeat = 1; |
static int |
MsgCheckQuorum_VALUE
MsgCheckQuorum = 12; |
static int |
MsgHeartbeat_VALUE
MsgHeartbeat = 8; |
static int |
MsgHeartbeatResponse_VALUE
MsgHeartbeatResponse = 9; |
static int |
MsgHup_VALUE
MsgHup = 0; |
static int |
MsgPropose_VALUE
MsgPropose = 2; |
static int |
MsgReadIndex_VALUE
MsgReadIndex = 15; |
static int |
MsgReadIndexResp_VALUE
MsgReadIndexResp = 16; |
static int |
MsgRequestPreVote_VALUE
MsgRequestPreVote = 17; |
static int |
MsgRequestPreVoteResponse_VALUE
MsgRequestPreVoteResponse = 18; |
static int |
MsgRequestVote_VALUE
MsgRequestVote = 5; |
static int |
MsgRequestVoteResponse_VALUE
MsgRequestVoteResponse = 6; |
static int |
MsgSnapshot_VALUE
MsgSnapshot = 7; |
static int |
MsgSnapStatus_VALUE
MsgSnapStatus = 11; |
static int |
MsgTimeoutNow_VALUE
MsgTimeoutNow = 14; |
static int |
MsgTransferLeader_VALUE
MsgTransferLeader = 13; |
static int |
MsgUnreachable_VALUE
MsgUnreachable = 10; |
| Modifier and Type | Method and Description |
|---|---|
static Eraftpb.MessageType |
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<Eraftpb.MessageType> |
internalGetValueMap() |
static Eraftpb.MessageType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Eraftpb.MessageType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Eraftpb.MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Eraftpb.MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Eraftpb.MessageType MsgHup
MsgHup = 0;public static final Eraftpb.MessageType MsgBeat
MsgBeat = 1;public static final Eraftpb.MessageType MsgPropose
MsgPropose = 2;public static final Eraftpb.MessageType MsgAppend
MsgAppend = 3;public static final Eraftpb.MessageType MsgAppendResponse
MsgAppendResponse = 4;public static final Eraftpb.MessageType MsgRequestVote
MsgRequestVote = 5;public static final Eraftpb.MessageType MsgRequestVoteResponse
MsgRequestVoteResponse = 6;public static final Eraftpb.MessageType MsgSnapshot
MsgSnapshot = 7;public static final Eraftpb.MessageType MsgHeartbeat
MsgHeartbeat = 8;public static final Eraftpb.MessageType MsgHeartbeatResponse
MsgHeartbeatResponse = 9;public static final Eraftpb.MessageType MsgUnreachable
MsgUnreachable = 10;public static final Eraftpb.MessageType MsgSnapStatus
MsgSnapStatus = 11;public static final Eraftpb.MessageType MsgCheckQuorum
MsgCheckQuorum = 12;public static final Eraftpb.MessageType MsgTransferLeader
MsgTransferLeader = 13;public static final Eraftpb.MessageType MsgTimeoutNow
MsgTimeoutNow = 14;public static final Eraftpb.MessageType MsgReadIndex
MsgReadIndex = 15;public static final Eraftpb.MessageType MsgReadIndexResp
MsgReadIndexResp = 16;public static final Eraftpb.MessageType MsgRequestPreVote
MsgRequestPreVote = 17;public static final Eraftpb.MessageType MsgRequestPreVoteResponse
MsgRequestPreVoteResponse = 18;public static final Eraftpb.MessageType UNRECOGNIZED
public static final int MsgHup_VALUE
MsgHup = 0;public static final int MsgBeat_VALUE
MsgBeat = 1;public static final int MsgPropose_VALUE
MsgPropose = 2;public static final int MsgAppend_VALUE
MsgAppend = 3;public static final int MsgAppendResponse_VALUE
MsgAppendResponse = 4;public static final int MsgRequestVote_VALUE
MsgRequestVote = 5;public static final int MsgRequestVoteResponse_VALUE
MsgRequestVoteResponse = 6;public static final int MsgSnapshot_VALUE
MsgSnapshot = 7;public static final int MsgHeartbeat_VALUE
MsgHeartbeat = 8;public static final int MsgHeartbeatResponse_VALUE
MsgHeartbeatResponse = 9;public static final int MsgUnreachable_VALUE
MsgUnreachable = 10;public static final int MsgSnapStatus_VALUE
MsgSnapStatus = 11;public static final int MsgCheckQuorum_VALUE
MsgCheckQuorum = 12;public static final int MsgTransferLeader_VALUE
MsgTransferLeader = 13;public static final int MsgTimeoutNow_VALUE
MsgTimeoutNow = 14;public static final int MsgReadIndex_VALUE
MsgReadIndex = 15;public static final int MsgReadIndexResp_VALUE
MsgReadIndexResp = 16;public static final int MsgRequestPreVote_VALUE
MsgRequestPreVote = 17;public static final int MsgRequestPreVoteResponse_VALUE
MsgRequestPreVoteResponse = 18;public static Eraftpb.MessageType[] values()
for (Eraftpb.MessageType c : Eraftpb.MessageType.values()) System.out.println(c);
public static Eraftpb.MessageType 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Eraftpb.MessageType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Eraftpb.MessageType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Eraftpb.MessageType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Eraftpb.MessageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 PingCAP. All rights reserved.