Reference documentation and code samples for the proto library Client class Type.
Protobuf type google.protobuf.FieldDescriptorProto.Type
Namespace
Google \ Protobuf \ Internal \ FieldDescriptorProtoMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
TYPE_DOUBLE
Value: 10 is reserved for errors.
Order is weird for historical reasons.
Generated from protobuf enum TYPE_DOUBLE = 1;
TYPE_FLOAT
Value: 2Generated from protobuf enum TYPE_FLOAT = 2;
TYPE_INT64
Value: 3Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely.
Generated from protobuf enum TYPE_INT64 = 3;
TYPE_UINT64
Value: 4Generated from protobuf enum TYPE_UINT64 = 4;
TYPE_INT32
Value: 5Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely.
Generated from protobuf enum TYPE_INT32 = 5;
TYPE_FIXED64
Value: 6Generated from protobuf enum TYPE_FIXED64 = 6;
TYPE_FIXED32
Value: 7Generated from protobuf enum TYPE_FIXED32 = 7;
TYPE_BOOL
Value: 8Generated from protobuf enum TYPE_BOOL = 8;
TYPE_STRING
Value: 9Generated from protobuf enum TYPE_STRING = 9;
TYPE_GROUP
Value: 10Tag-delimited aggregate.
Group type is deprecated and not supported after google.protobuf. However, Proto3
implementations should still be able to parse the group wire format and
treat group fields as unknown fields. In Editions, the group wire format
can be enabled via the message_encoding feature.
Generated from protobuf enum TYPE_GROUP = 10;
TYPE_MESSAGE
Value: 11Length-delimited aggregate.
Generated from protobuf enum TYPE_MESSAGE = 11;
TYPE_BYTES
Value: 12New in version 2.
Generated from protobuf enum TYPE_BYTES = 12;
TYPE_UINT32
Value: 13Generated from protobuf enum TYPE_UINT32 = 13;
TYPE_ENUM
Value: 14Generated from protobuf enum TYPE_ENUM = 14;
TYPE_SFIXED32
Value: 15Generated from protobuf enum TYPE_SFIXED32 = 15;
TYPE_SFIXED64
Value: 16Generated from protobuf enum TYPE_SFIXED64 = 16;
TYPE_SINT32
Value: 17Uses ZigZag encoding.
Generated from protobuf enum TYPE_SINT32 = 17;
TYPE_SINT64
Value: 18Uses ZigZag encoding.
Generated from protobuf enum TYPE_SINT64 = 18;