Class GeneratedCodeInfo.Types.Annotation (3.15.8)

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

Inheritance

Object > GeneratedCodeInfo.Types.Annotation

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

Annotation()

public Annotation()

Annotation(GeneratedCodeInfo.Types.Annotation)

public Annotation(GeneratedCodeInfo.Types.Annotation other)
Parameter
NameDescription
otherGeneratedCodeInfo.Types.Annotation

Fields

BeginFieldNumber

public const int BeginFieldNumber = null

Field number for the "begin" field.

Field Value
TypeDescription
Int32

EndFieldNumber

public const int EndFieldNumber = null

Field number for the "end" field.

Field Value
TypeDescription
Int32

PathFieldNumber

public const int PathFieldNumber = null

Field number for the "path" field.

Field Value
TypeDescription
Int32

SourceFileFieldNumber

public const int SourceFileFieldNumber = null

Field number for the "source_file" field.

Field Value
TypeDescription
Int32

Properties

Begin

public int Begin { get; set; }

Identifies the starting offset in bytes in the generated code that relates to the identified object.

Property Value
TypeDescription
Int32

Descriptor

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

End

public int End { get; set; }

Identifies the ending offset in bytes in the generated code that relates to the identified offset. The end offset should be one past the last relevant byte (so the length of the text = end - begin).

Property Value
TypeDescription
Int32

HasBegin

public bool HasBegin { get; }

Gets whether the "begin" field is set

Property Value
TypeDescription
Boolean

HasEnd

public bool HasEnd { get; }

Gets whether the "end" field is set

Property Value
TypeDescription
Boolean

HasSourceFile

public bool HasSourceFile { get; }

Gets whether the "source_file" field is set

Property Value
TypeDescription
Boolean

Parser

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

Path

public RepeatedField<int> Path { get; }

Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.

Property Value
TypeDescription
RepeatedField<Int32>

SourceFile

public string SourceFile { get; set; }

Identifies the filesystem path to the original source .proto.

Property Value
TypeDescription
String

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

ClearBegin()

public void ClearBegin()

Clears the value of the "begin" field

ClearEnd()

public void ClearEnd()

Clears the value of the "end" field

ClearSourceFile()

public void ClearSourceFile()

Clears the value of the "source_file" field

Clone()

public GeneratedCodeInfo.Types.Annotation Clone()
Returns
TypeDescription
GeneratedCodeInfo.Types.Annotation

Equals(GeneratedCodeInfo.Types.Annotation)

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

public void MergeFrom(GeneratedCodeInfo.Types.Annotation other)
Parameter
NameDescription
otherGeneratedCodeInfo.Types.Annotation

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