public enum MessageType extends Enum<MessageType> implements com.google.protobuf.ProtocolMessageEnum
iotexrpc.MessageType| Enum Constant and Description |
|---|
ACTION
ACTION = 1; |
BLOCK
BLOCK = 2; |
BLOCK_REQUEST
BLOCK_REQUEST = 4; |
CONSENSUS
CONSENSUS = 3; |
TEST
TEST = 10001; |
UNKNOWN
UNKNOWN = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTION_VALUE
ACTION = 1; |
static int |
BLOCK_REQUEST_VALUE
BLOCK_REQUEST = 4; |
static int |
BLOCK_VALUE
BLOCK = 2; |
static int |
CONSENSUS_VALUE
CONSENSUS = 3; |
static int |
TEST_VALUE
TEST = 10001; |
static int |
UNKNOWN_VALUE
UNKNOWN = 0; |
| Modifier and Type | Method and Description |
|---|---|
static 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<MessageType> |
internalGetValueMap() |
static MessageType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MessageType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType UNKNOWN
UNKNOWN = 0;public static final MessageType ACTION
ACTION = 1;public static final MessageType BLOCK
BLOCK = 2;public static final MessageType CONSENSUS
CONSENSUS = 3;public static final MessageType BLOCK_REQUEST
BLOCK_REQUEST = 4;public static final MessageType TEST
TEST = 10001;public static final MessageType UNRECOGNIZED
public static final int UNKNOWN_VALUE
UNKNOWN = 0;public static final int ACTION_VALUE
ACTION = 1;public static final int BLOCK_VALUE
BLOCK = 2;public static final int CONSENSUS_VALUE
CONSENSUS = 3;public static final int BLOCK_REQUEST_VALUE
BLOCK_REQUEST = 4;public static final int TEST_VALUE
TEST = 10001;public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static 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 MessageType valueOf(int value)
forNumber(int) instead.public static MessageType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<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 MessageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 IoTeX Group. All rights reserved.