Enum DescriptorProtos.FieldDescriptorProto.Type (3.19.4)

public enum DescriptorProtos.FieldDescriptorProto.Type extends Enum<DescriptorProtos.FieldDescriptorProto.Type> implements ProtocolMessageEnum

Protobuf enum google.protobuf.FieldDescriptorProto.Type

Implements

ProtocolMessageEnum

Static Fields

NameDescription
TYPE_BOOL

TYPE_BOOL = 8;

TYPE_BOOL_VALUE

TYPE_BOOL = 8;

TYPE_BYTES

New in version 2.

TYPE_BYTES = 12;

TYPE_BYTES_VALUE

New in version 2.

TYPE_BYTES = 12;

TYPE_DOUBLE

0 is reserved for errors. Order is weird for historical reasons.

TYPE_DOUBLE = 1;

TYPE_DOUBLE_VALUE

0 is reserved for errors. Order is weird for historical reasons.

TYPE_DOUBLE = 1;

TYPE_ENUM

TYPE_ENUM = 14;

TYPE_ENUM_VALUE

TYPE_ENUM = 14;

TYPE_FIXED32

TYPE_FIXED32 = 7;

TYPE_FIXED32_VALUE

TYPE_FIXED32 = 7;

TYPE_FIXED64

TYPE_FIXED64 = 6;

TYPE_FIXED64_VALUE

TYPE_FIXED64 = 6;

TYPE_FLOAT

TYPE_FLOAT = 2;

TYPE_FLOAT_VALUE

TYPE_FLOAT = 2;

TYPE_GROUP

Tag-delimited aggregate. Group type is deprecated and not supported in proto3. However, Proto3 implementations should still be able to parse the group wire format and treat group fields as unknown fields.

TYPE_GROUP = 10;

TYPE_GROUP_VALUE

Tag-delimited aggregate. Group type is deprecated and not supported in proto3. However, Proto3 implementations should still be able to parse the group wire format and treat group fields as unknown fields.

TYPE_GROUP = 10;

TYPE_INT32

Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely.

TYPE_INT32 = 5;

TYPE_INT32_VALUE

Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely.

TYPE_INT32 = 5;

TYPE_INT64

Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely.

TYPE_INT64 = 3;

TYPE_INT64_VALUE

Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely.

TYPE_INT64 = 3;

TYPE_MESSAGE

Length-delimited aggregate.

TYPE_MESSAGE = 11;

TYPE_MESSAGE_VALUE

Length-delimited aggregate.

TYPE_MESSAGE = 11;

TYPE_SFIXED32

TYPE_SFIXED32 = 15;

TYPE_SFIXED32_VALUE

TYPE_SFIXED32 = 15;

TYPE_SFIXED64

TYPE_SFIXED64 = 16;

TYPE_SFIXED64_VALUE

TYPE_SFIXED64 = 16;

TYPE_SINT32

Uses ZigZag encoding.

TYPE_SINT32 = 17;

TYPE_SINT32_VALUE

Uses ZigZag encoding.

TYPE_SINT32 = 17;

TYPE_SINT64

Uses ZigZag encoding.

TYPE_SINT64 = 18;

TYPE_SINT64_VALUE

Uses ZigZag encoding.

TYPE_SINT64 = 18;

TYPE_STRING

TYPE_STRING = 9;

TYPE_STRING_VALUE

TYPE_STRING = 9;

TYPE_UINT32

TYPE_UINT32 = 13;

TYPE_UINT32_VALUE

TYPE_UINT32 = 13;

TYPE_UINT64

TYPE_UINT64 = 4;

TYPE_UINT64_VALUE

TYPE_UINT64 = 4;

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.