Stubs

Module

stubs/wellknowntypes

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

OfficialPublic

Message in google.protobuf

FileDescriptorProto

google.protobuf.FileDescriptorProto

Describes a complete .proto file.

Fields

FieldTypeNumberDescription
nameoptionalstring1

file name, relative to root of source tree

packageoptionalstring2

e.g. "foo", "foo.bar", etc.

dependencyrepeatedstring3

Names of files imported by this file.

public_dependencyrepeatedint3210

Indexes of the public imported files in the dependency list above.

weak_dependencyrepeatedint3211

Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.

option_dependencyrepeatedstring15

Names of files imported by this file purely for the purpose of providing option extensions. These are excluded from the dependency list above.

message_typerepeatedDescriptorProto4

All top-level definitions in this file.

enum_typerepeatedEnumDescriptorProto5
servicerepeatedServiceDescriptorProto6
extensionrepeatedFieldDescriptorProto7
optionsoptionalFileOptions8
source_code_infooptionalSourceCodeInfo9

This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.

syntaxoptionalstring12

The syntax of the proto file. The supported values are "proto2", "proto3", and "editions".

If edition is present, this value must be "editions". WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.

editionoptionalEdition14

The edition of the proto file. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.

Used by

Defined in google/protobuf/descriptor.proto