Stubs

Module

stubs/wellknowntypes

The Protobuf well-known types (google/protobuf/*.proto), from Google's protobuf releases.

OfficialPublic

Enum in google.protobuf.FieldDescriptorProto

Type

google.protobuf.FieldDescriptorProto.Type

Values

NameNumberDescription
TYPE_DOUBLE1

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

TYPE_FLOAT2
TYPE_INT643

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

TYPE_UINT644
TYPE_INT325

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

TYPE_FIXED646
TYPE_FIXED327
TYPE_BOOL8
TYPE_STRING9
TYPE_GROUP10

Tag-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.

TYPE_MESSAGE11

Length-delimited aggregate.

TYPE_BYTES12

New in version 2.

TYPE_UINT3213
TYPE_ENUM14
TYPE_SFIXED3215
TYPE_SFIXED6416
TYPE_SINT3217

Uses ZigZag encoding.

TYPE_SINT6418

Uses ZigZag encoding.

Used by

Defined in google/protobuf/descriptor.proto