public static enum ConsensusVote.Topic extends Enum<ConsensusVote.Topic> implements com.google.protobuf.ProtocolMessageEnum
iotextypes.ConsensusVote.Topic| Enum Constant and Description |
|---|
COMMIT
COMMIT = 2; |
LOCK
LOCK = 1; |
PROPOSAL
PROPOSAL = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMIT_VALUE
COMMIT = 2; |
static int |
LOCK_VALUE
LOCK = 1; |
static int |
PROPOSAL_VALUE
PROPOSAL = 0; |
| Modifier and Type | Method and Description |
|---|---|
static ConsensusVote.Topic |
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<ConsensusVote.Topic> |
internalGetValueMap() |
static ConsensusVote.Topic |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ConsensusVote.Topic |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ConsensusVote.Topic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsensusVote.Topic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsensusVote.Topic PROPOSAL
PROPOSAL = 0;public static final ConsensusVote.Topic LOCK
LOCK = 1;public static final ConsensusVote.Topic COMMIT
COMMIT = 2;public static final ConsensusVote.Topic UNRECOGNIZED
public static final int PROPOSAL_VALUE
PROPOSAL = 0;public static final int LOCK_VALUE
LOCK = 1;public static final int COMMIT_VALUE
COMMIT = 2;public static ConsensusVote.Topic[] values()
for (ConsensusVote.Topic c : ConsensusVote.Topic.values()) System.out.println(c);
public static ConsensusVote.Topic 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 ConsensusVote.Topic valueOf(int value)
forNumber(int) instead.public static ConsensusVote.Topic forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<ConsensusVote.Topic> 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 ConsensusVote.Topic valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 IoTeX Group. All rights reserved.