Enum DescriptorProtos.FieldOptions.JSType

Stay organized with collections Save and categorize content based on your preferences.
public enum DescriptorProtos.FieldOptions.JSType extends Enum<DescriptorProtos.FieldOptions.JSType> implements ProtocolMessageEnum

Protobuf enum google.protobuf.FieldOptions.JSType

Implements

ProtocolMessageEnum

Static Fields

NameDescription
JS_NORMAL

Use the default type.

JS_NORMAL = 0;

JS_NORMAL_VALUE

Use the default type.

JS_NORMAL = 0;

JS_NUMBER

Use JavaScript numbers.

JS_NUMBER = 2;

JS_NUMBER_VALUE

Use JavaScript numbers.

JS_NUMBER = 2;

JS_STRING

Use JavaScript strings.

JS_STRING = 1;

JS_STRING_VALUE

Use JavaScript strings.

JS_STRING = 1;

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()

Return the enum type's descriptor, which contains information about each defined value, etc.

getNumber()

Return the value's numeric value as defined in the .proto file.

getValueDescriptor()

Return the value's descriptor, which contains information such as value name, number, and type.