public static enum DescriptorProtos.FieldOptions.JSType extends Enum<DescriptorProtos.FieldOptions.JSType> implements Internal.EnumLite
google.protobuf.FieldOptions.JSType
Enum Constant and Description |
---|
JS_NORMAL
Use the default type.
|
JS_NUMBER
Use JavaScript numbers.
|
JS_STRING
Use JavaScript strings.
|
Modifier and Type | Field and Description |
---|---|
static int |
JS_NORMAL_VALUE
Use the default type.
|
static int |
JS_NUMBER_VALUE
Use JavaScript numbers.
|
static int |
JS_STRING_VALUE
Use JavaScript strings.
|
Modifier and Type | Method and Description |
---|---|
static DescriptorProtos.FieldOptions.JSType |
forNumber(int value) |
int |
getNumber() |
static Internal.EnumLiteMap<DescriptorProtos.FieldOptions.JSType> |
internalGetValueMap() |
static DescriptorProtos.FieldOptions.JSType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DescriptorProtos.FieldOptions.JSType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DescriptorProtos.FieldOptions.JSType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DescriptorProtos.FieldOptions.JSType JS_NORMAL
Use the default type.
JS_NORMAL = 0;
public static final DescriptorProtos.FieldOptions.JSType JS_STRING
Use JavaScript strings.
JS_STRING = 1;
public static final DescriptorProtos.FieldOptions.JSType JS_NUMBER
Use JavaScript numbers.
JS_NUMBER = 2;
public static final int JS_NORMAL_VALUE
Use the default type.
JS_NORMAL = 0;
public static final int JS_STRING_VALUE
Use JavaScript strings.
JS_STRING = 1;
public static final int JS_NUMBER_VALUE
Use JavaScript numbers.
JS_NUMBER = 2;
public static DescriptorProtos.FieldOptions.JSType[] values()
for (DescriptorProtos.FieldOptions.JSType c : DescriptorProtos.FieldOptions.JSType.values()) System.out.println(c);
public static DescriptorProtos.FieldOptions.JSType 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 Internal.EnumLite
@Deprecated public static DescriptorProtos.FieldOptions.JSType valueOf(int value)
forNumber(int)
instead.public static DescriptorProtos.FieldOptions.JSType forNumber(int value)
public static Internal.EnumLiteMap<DescriptorProtos.FieldOptions.JSType> internalGetValueMap()
Copyright © 2008–2016 Google. All rights reserved.