public enum DescriptorProtos.FieldDescriptorProto.Type extends Enum<DescriptorProtos.FieldDescriptorProto.Type> implements ProtocolMessageEnum
Protobuf enum google.protobuf.FieldDescriptorProto.Type
Implements
ProtocolMessageEnumStatic Fields | |
---|---|
Name | Description |
TYPE_BOOL |
|
TYPE_BOOL_VALUE |
|
TYPE_BYTES | New in version 2. |
TYPE_BYTES_VALUE | New in version 2. |
TYPE_DOUBLE | 0 is reserved for errors. Order is weird for historical reasons. |
TYPE_DOUBLE_VALUE | 0 is reserved for errors. Order is weird for historical reasons. |
TYPE_ENUM |
|
TYPE_ENUM_VALUE |
|
TYPE_FIXED32 |
|
TYPE_FIXED32_VALUE |
|
TYPE_FIXED64 |
|
TYPE_FIXED64_VALUE |
|
TYPE_FLOAT |
|
TYPE_FLOAT_VALUE |
|
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_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_INT32 | Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely. |
TYPE_INT32_VALUE | Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely. |
TYPE_INT64 | Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely. |
TYPE_INT64_VALUE | Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely. |
TYPE_MESSAGE | Length-delimited aggregate. |
TYPE_MESSAGE_VALUE | Length-delimited aggregate. |
TYPE_SFIXED32 |
|
TYPE_SFIXED32_VALUE |
|
TYPE_SFIXED64 |
|
TYPE_SFIXED64_VALUE |
|
TYPE_SINT32 | Uses ZigZag encoding. |
TYPE_SINT32_VALUE | Uses ZigZag encoding. |
TYPE_SINT64 | Uses ZigZag encoding. |
TYPE_SINT64_VALUE | Uses ZigZag encoding. |
TYPE_STRING |
|
TYPE_STRING_VALUE |
|
TYPE_UINT32 |
|
TYPE_UINT32_VALUE |
|
TYPE_UINT64 |
|
TYPE_UINT64_VALUE |
|
Static Methods | |
---|---|
Name | Description |
forNumber(int value) | |
getDescriptor() | |
internalGetValueMap() | |
valueOf(Descriptors.EnumValueDescriptor desc) | |
valueOf(int value) | Deprecated. Use #forNumber(int) instead. |
valueOf(String name) | |
values() |
Methods | |
---|---|
Name | Description |
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. |