<PackageReference Include="Google.Protobuf" Version="3.33.2" />

Google.Protobuf.Reflection.FileDescriptorProto

Describes a complete .proto file.
public const int DependencyFieldNumber = 3

Field number for the "dependency" field.

public const int EditionFieldNumber = 14

Field number for the "edition" field.

public const int EnumTypeFieldNumber = 5

Field number for the "enum_type" field.

public const int ExtensionFieldNumber = 7

Field number for the "extension" field.

public const int MessageTypeFieldNumber = 4

Field number for the "message_type" field.

public const int NameFieldNumber = 1

Field number for the "name" field.

public const int OptionDependencyFieldNumber = 15

Field number for the "option_dependency" field.

public const int OptionsFieldNumber = 8

Field number for the "options" field.

public const int PackageFieldNumber = 2

Field number for the "package" field.

public const int PublicDependencyFieldNumber = 10

Field number for the "public_dependency" field.

public const int ServiceFieldNumber = 6

Field number for the "service" field.

public const int SourceCodeInfoFieldNumber = 9

Field number for the "source_code_info" field.

public const int SyntaxFieldNumber = 12

Field number for the "syntax" field.

public const int WeakDependencyFieldNumber = 11

Field number for the "weak_dependency" field.

public static MessageDescriptor Descriptor { get; }

public static MessageParser<FileDescriptorProto> Parser { get; }

public RepeatedField<string> Dependency { get; }

Names of files imported by this file.

public Edition Edition { get; set; }

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.

public bool HasEdition { get; }

Gets whether the "edition" field is set

public bool HasName { get; }

Gets whether the "name" field is set

public bool HasPackage { get; }

Gets whether the "package" field is set

public bool HasSyntax { get; }

Gets whether the "syntax" field is set

All top-level definitions in this file.

public string Name { get; set; }

file name, relative to root of source tree

public RepeatedField<string> OptionDependency { get; }

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

public FileOptions Options { get; set; }

public string Package { get; set; }

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

public RepeatedField<int> PublicDependency { get; }

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

public SourceCodeInfo SourceCodeInfo { get; set; }

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.

public string Syntax { get; set; }

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.

public RepeatedField<int> WeakDependency { get; }

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

public int CalculateSize()

public void ClearEdition()

Clears the value of the "edition" field

public void ClearName()

Clears the value of the "name" field

public void ClearPackage()

Clears the value of the "package" field

public void ClearSyntax()

Clears the value of the "syntax" field

public bool Equals(FileDescriptorProto other)

public void MergeFrom(FileDescriptorProto other)

public void MergeFrom(CodedInputStream input)

public void WriteTo(CodedOutputStream output)