Class GeneratedCodeInfo

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
TypeNameDescription
GeneratedCodeInfoother

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
TypeNameDescription
GeneratedCodeInfoother
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
TypeNameDescription
Objectother
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
TypeNameDescription
CodedInputStreaminput

MergeFrom(GeneratedCodeInfo)

public void MergeFrom(GeneratedCodeInfo other)
Parameter
TypeNameDescription
GeneratedCodeInfoother

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
TypeNameDescription
CodedOutputStreamoutput

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
TypeNameDescription
ParseContextinput

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
TypeNameDescription
WriteContextoutput

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor

Implements

IEquatable<>