Stubs

Module

stubs/wellknowntypes

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

OfficialPublic

Message in google.protobuf

Field

google.protobuf.Field

A single field of a message type.

New usages of this message as an alternative to FieldDescriptorProto are strongly discouraged. This message does not reliability preserve all information necessary to model the schema and preserve semantics. Instead make use of FileDescriptorSet which preserves the necessary information.

Fields

FieldTypeNumberDescription
kindKind1

The field type.

cardinalityCardinality2

The field cardinality.

numberint323

The field number.

namestring4

The field name.

type_urlstring6

The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp".

oneof_indexint327

The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.

packedbool8

Whether to use alternative packed wire representation.

optionsrepeatedOption9

The protocol buffer options.

json_namestring10

The field JSON name.

default_valuestring11

The string value of the default value of this field. Proto2 syntax only.

Nested enums

  • KindBasic field types.
  • CardinalityWhether a field is optional, required, or repeated.

Used by

Defined in google/protobuf/type.proto