Describes a complete .proto file.

interface FileDescriptorProtoAmino {
    dependency?: string[];
    enum_type?: EnumDescriptorProtoAmino[];
    extension?: FieldDescriptorProtoAmino[];
    message_type?: DescriptorProtoAmino[];
    name?: string;
    options?: FileOptionsAmino;
    package?: string;
    public_dependency?: number[];
    service?: ServiceDescriptorProtoAmino[];
    source_code_info?: SourceCodeInfoAmino;
    syntax?: string;
    weak_dependency?: number[];
}

Properties

dependency?: string[]

Names of files imported by this file.

message_type?: DescriptorProtoAmino[]

All top-level definitions in this file.

name?: string

file name, relative to root of source tree

package?: string
public_dependency?: number[]

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

source_code_info?: SourceCodeInfoAmino

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?: string

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

weak_dependency?: number[]

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