public static enum DescriptorProtos.FieldOptions.JSType extends java.lang.Enum<DescriptorProtos.FieldOptions.JSType> implements ProtocolMessageEnum
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) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType()
Return the enum type's descriptor, which contains information about each defined value, etc.
|
int |
getNumber()
Return the value's numeric value as defined in the .proto file.
|
Descriptors.EnumValueDescriptor |
getValueDescriptor()
Return the value's descriptor, which contains information such as value name, number, and type.
|
static Internal.EnumLiteMap<DescriptorProtos.FieldOptions.JSType> |
internalGetValueMap() |
static DescriptorProtos.FieldOptions.JSType |
valueOf(Descriptors.EnumValueDescriptor desc) |
static DescriptorProtos.FieldOptions.JSType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DescriptorProtos.FieldOptions.JSType |
valueOf(java.lang.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(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()
ProtocolMessageEnum
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@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()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnum
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnum
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.FieldOptions.JSType valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.