Class FileDescriptorSet (3.15.8)

public sealed class FileDescriptorSet : object, IMessage<FileDescriptorSet>, IEquatable<FileDescriptorSet>, IDeepCloneable<FileDescriptorSet>, IBufferMessage, IMessage

The protocol compiler can output a FileDescriptorSet containing the .proto files it parses.

Inheritance

Object > FileDescriptorSet

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

FileDescriptorSet()

public FileDescriptorSet()

FileDescriptorSet(FileDescriptorSet)

public FileDescriptorSet(FileDescriptorSet other)
Parameter
NameDescription
otherFileDescriptorSet

Fields

FileFieldNumber

public const int FileFieldNumber = null

Field number for the "file" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

File

public RepeatedField<FileDescriptorProto> File { get; }
Property Value
TypeDescription
RepeatedField<FileDescriptorProto>

Parser

public static MessageParser<FileDescriptorSet> Parser { get; }
Property Value
TypeDescription
MessageParser<FileDescriptorSet>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public FileDescriptorSet Clone()
Returns
TypeDescription
FileDescriptorSet

Equals(FileDescriptorSet)

public bool Equals(FileDescriptorSet other)
Parameter
NameDescription
otherFileDescriptorSet
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

MergeFrom(FileDescriptorSet)

public void MergeFrom(FileDescriptorSet other)
Parameter
NameDescription
otherFileDescriptorSet

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
NameDescription
inputParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
NameDescription
outputWriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor