FileDescriptorProto

Describes a complete .proto file.

Properties

Link copied to clipboard
abstract val dependency: List<String>

Names of files imported by this file.

Link copied to clipboard
abstract val edition: Edition?

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.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

All top-level definitions in this file.

Link copied to clipboard
abstract val name: String?

file name, relative to root of source tree

Link copied to clipboard

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

Link copied to clipboard
abstract val options: FileOptions
Link copied to clipboard
abstract val package: String?

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

Link copied to clipboard
Link copied to clipboard
abstract val publicDependency: List<Int>

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

Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
abstract val syntax: String?

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

Link copied to clipboard
abstract val weakDependency: List<Int>

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

Functions

Link copied to clipboard
fun FileDescriptorProto.copy(body: ERROR CLASS: Symbol not found for FileDescriptorProto.Builder.() -> Unit = {}): FileDescriptorProto

Copies the original message, including unknown fields.