public static enum Protocol.Proposal.State extends Enum<Protocol.Proposal.State> implements com.google.protobuf.ProtocolMessageEnum
protocol.Proposal.State
Enum Constant and Description |
---|
APPROVED
APPROVED = 2; |
CANCELED
CANCELED = 3; |
DISAPPROVED
DISAPPROVED = 1; |
PENDING
PENDING = 0; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
APPROVED_VALUE
APPROVED = 2; |
static int |
CANCELED_VALUE
CANCELED = 3; |
static int |
DISAPPROVED_VALUE
DISAPPROVED = 1; |
static int |
PENDING_VALUE
PENDING = 0; |
Modifier and Type | Method and Description |
---|---|
static Protocol.Proposal.State |
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<Protocol.Proposal.State> |
internalGetValueMap() |
static Protocol.Proposal.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protocol.Proposal.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protocol.Proposal.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol.Proposal.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol.Proposal.State PENDING
PENDING = 0;
public static final Protocol.Proposal.State DISAPPROVED
DISAPPROVED = 1;
public static final Protocol.Proposal.State APPROVED
APPROVED = 2;
public static final Protocol.Proposal.State CANCELED
CANCELED = 3;
public static final Protocol.Proposal.State UNRECOGNIZED
public static final int PENDING_VALUE
PENDING = 0;
public static final int DISAPPROVED_VALUE
DISAPPROVED = 1;
public static final int APPROVED_VALUE
APPROVED = 2;
public static final int CANCELED_VALUE
CANCELED = 3;
public static Protocol.Proposal.State[] values()
for (Protocol.Proposal.State c : Protocol.Proposal.State.values()) System.out.println(c);
public static Protocol.Proposal.State 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.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Protocol.Proposal.State valueOf(int value)
forNumber(int)
instead.public static Protocol.Proposal.State forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protocol.Proposal.State> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Protocol.Proposal.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020. All rights reserved.