public static enum Contract.ResourceCode extends Enum<Contract.ResourceCode> implements com.google.protobuf.ProtocolMessageEnum
protocol.ResourceCode
Enum Constant and Description |
---|
BANDWIDTH
BANDWIDTH = 0; |
ENERGY
ENERGY = 1; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BANDWIDTH_VALUE
BANDWIDTH = 0; |
static int |
ENERGY_VALUE
ENERGY = 1; |
Modifier and Type | Method and Description |
---|---|
static Contract.ResourceCode |
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<Contract.ResourceCode> |
internalGetValueMap() |
static Contract.ResourceCode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Contract.ResourceCode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Contract.ResourceCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Contract.ResourceCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Contract.ResourceCode BANDWIDTH
BANDWIDTH = 0;
public static final Contract.ResourceCode ENERGY
ENERGY = 1;
public static final Contract.ResourceCode UNRECOGNIZED
public static final int BANDWIDTH_VALUE
BANDWIDTH = 0;
public static final int ENERGY_VALUE
ENERGY = 1;
public static Contract.ResourceCode[] values()
for (Contract.ResourceCode c : Contract.ResourceCode.values()) System.out.println(c);
public static Contract.ResourceCode 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 Contract.ResourceCode valueOf(int value)
forNumber(int)
instead.public static Contract.ResourceCode forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Contract.ResourceCode> 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 Contract.ResourceCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020. All rights reserved.