Class GeneratedCodeInfo (3.15.8)

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

Describes the relationship between generated code and its original source file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files.

Inheritance

Object > GeneratedCodeInfo

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

GeneratedCodeInfo()

public GeneratedCodeInfo()

GeneratedCodeInfo(GeneratedCodeInfo)

public GeneratedCodeInfo(GeneratedCodeInfo other)
Parameter
NameDescription
otherGeneratedCodeInfo

Fields

AnnotationFieldNumber

public const int AnnotationFieldNumber = null

Field number for the "annotation" field.

Field Value
TypeDescription
Int32

Properties

Annotation

public RepeatedField<GeneratedCodeInfo.Types.Annotation> Annotation { get; }

An Annotation connects some span of text in generated code to an element of its generating .proto file.

Property Value
TypeDescription
RepeatedField<GeneratedCodeInfo.Types.Annotation>

Descriptor

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

Parser

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

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public GeneratedCodeInfo Clone()
Returns
TypeDescription
GeneratedCodeInfo

Equals(GeneratedCodeInfo)

public bool Equals(GeneratedCodeInfo other)
Parameter
NameDescription
otherGeneratedCodeInfo
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(GeneratedCodeInfo)

public void MergeFrom(GeneratedCodeInfo other)
Parameter
NameDescription
otherGeneratedCodeInfo

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