Message in google.protobuf
FileDescriptorProto
google.protobuf.FileDescriptorProto
Describes a complete .proto file.
Fields
| Field | Type | Number | Description |
|---|---|---|---|
| name | optionalstring | 1 | file name, relative to root of source tree |
| package | optionalstring | 2 | e.g. "foo", "foo.bar", etc. |
| dependency | repeatedstring | 3 | Names of files imported by this file. |
| public_dependency | repeatedint32 | 10 | Indexes of the public imported files in the dependency list above. |
| weak_dependency | repeatedint32 | 11 | Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use. |
| option_dependency | repeatedstring | 15 | Names of files imported by this file purely for the purpose of providing option extensions. These are excluded from the dependency list above. |
| message_type | repeatedDescriptorProto | 4 | All top-level definitions in this file. |
| enum_type | repeatedEnumDescriptorProto | 5 | |
| service | repeatedServiceDescriptorProto | 6 | |
| extension | repeatedFieldDescriptorProto | 7 | |
| options | optionalFileOptions | 8 | |
| source_code_info | optionalSourceCodeInfo | 9 | 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. |
| syntax | optionalstring | 12 | The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If |
| edition | optionalEdition | 14 | 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