public static enum LabelDescriptor.ValueType extends java.lang.Enum<LabelDescriptor.ValueType> implements ProtocolMessageEnum
Value types that can be used as label values.Protobuf enum
google.api.LabelDescriptor.ValueType
Enum Constant and Description |
---|
BOOL
Boolean; true or false.
|
INT64
A 64-bit signed integer.
|
STRING
A variable-length string.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BOOL_VALUE
Boolean; true or false.
|
static int |
INT64_VALUE
A 64-bit signed integer.
|
static int |
STRING_VALUE
A variable-length string.
|
Modifier and Type | Method and Description |
---|---|
static LabelDescriptor.ValueType |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<LabelDescriptor.ValueType> |
internalGetValueMap() |
static LabelDescriptor.ValueType |
valueOf(Descriptors.EnumValueDescriptor desc) |
static LabelDescriptor.ValueType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LabelDescriptor.ValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LabelDescriptor.ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LabelDescriptor.ValueType STRING
A variable-length string. This is the default.
STRING = 0;
public static final LabelDescriptor.ValueType BOOL
Boolean; true or false.
BOOL = 1;
public static final LabelDescriptor.ValueType INT64
A 64-bit signed integer.
INT64 = 2;
public static final LabelDescriptor.ValueType UNRECOGNIZED
public static final int STRING_VALUE
A variable-length string. This is the default.
STRING = 0;
public static final int BOOL_VALUE
Boolean; true or false.
BOOL = 1;
public static final int INT64_VALUE
A 64-bit signed integer.
INT64 = 2;
public static LabelDescriptor.ValueType[] values()
for (LabelDescriptor.ValueType c : LabelDescriptor.ValueType.values()) System.out.println(c);
public static LabelDescriptor.ValueType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static LabelDescriptor.ValueType valueOf(int value)
forNumber(int)
instead.public static LabelDescriptor.ValueType forNumber(int value)
public static Internal.EnumLiteMap<LabelDescriptor.ValueType> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static LabelDescriptor.ValueType valueOf(Descriptors.EnumValueDescriptor desc)