public static enum ConsensusMessage.MsgCase extends Enum<ConsensusMessage.MsgCase> implements com.google.protobuf.Internal.EnumLite
| Enum Constant and Description |
|---|
BLOCKPROPOSAL |
MSG_NOT_SET |
VOTE |
| Modifier and Type | Method and Description |
|---|---|
static ConsensusMessage.MsgCase |
forNumber(int value) |
int |
getNumber() |
static ConsensusMessage.MsgCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ConsensusMessage.MsgCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsensusMessage.MsgCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsensusMessage.MsgCase BLOCKPROPOSAL
public static final ConsensusMessage.MsgCase VOTE
public static final ConsensusMessage.MsgCase MSG_NOT_SET
public static ConsensusMessage.MsgCase[] values()
for (ConsensusMessage.MsgCase c : ConsensusMessage.MsgCase.values()) System.out.println(c);
public static ConsensusMessage.MsgCase 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 null@Deprecated public static ConsensusMessage.MsgCase valueOf(int value)
forNumber(int) instead.public static ConsensusMessage.MsgCase forNumber(int value)
public int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLiteCopyright © 2022 IoTeX Group. All rights reserved.