Describes a complete .proto file.

from message google.protobuf.FileDescriptorProto

Hierarchy

Constructors

Properties

dependency: string[] = []

Names of files imported by this file.

from field: repeated string dependency = 3;

enumType: EnumDescriptorProto[] = []

from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5;

extension: FieldDescriptorProto[] = []

from field: repeated google.protobuf.FieldDescriptorProto extension = 7;

messageType: DescriptorProto[] = []

All top-level definitions in this file.

from field: repeated google.protobuf.DescriptorProto message_type = 4;

name?: string

file name, relative to root of source tree

from field: optional string name = 1;

options?: FileOptions

from field: optional google.protobuf.FileOptions options = 8;

package?: string

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

from field: optional string package = 2;

publicDependency: number[] = []

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

from field: repeated int32 public_dependency = 10;

service: ServiceDescriptorProto[] = []

from field: repeated google.protobuf.ServiceDescriptorProto service = 6;

sourceCodeInfo?: SourceCodeInfo

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.

from field: optional google.protobuf.SourceCodeInfo source_code_info = 9;

syntax?: string

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

from field: optional string syntax = 12;

weakDependency: number[] = []

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

from field: repeated int32 weak_dependency = 11;

fields: FieldList = ...
runtime: ProtoRuntime = proto2
typeName: "google.protobuf.FileDescriptorProto" = "google.protobuf.FileDescriptorProto"

Methods