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
Name Description
other GeneratedCodeInfo.Types.Annotation

Fields

BeginFieldNumber

public const int BeginFieldNumber = null

Field number for the "begin" field.

Field Value
Type Description
Int32

EndFieldNumber

public const int EndFieldNumber = null

Field number for the "end" field.

Field Value
Type Description
Int32

PathFieldNumber

public const int PathFieldNumber = null

Field number for the "path" field.

Field Value
Type Description
Int32

SourceFileFieldNumber

public const int SourceFileFieldNumber = null

Field number for the "source_file" field.

Field Value
Type Description
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
Type Description
Int32

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
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
Type Description
Int32

HasBegin

public bool HasBegin { get; }

Gets whether the "begin" field is set

Property Value
Type Description
Boolean

HasEnd

public bool HasEnd { get; }

Gets whether the "end" field is set

Property Value
Type Description
Boolean

HasSourceFile

public bool HasSourceFile { get; }

Gets whether the "source_file" field is set

Property Value
Type Description
Boolean

Parser

public static MessageParser<GeneratedCodeInfo.Types.Annotation> Parser { get; }
Property Value
Type Description
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
Type Description
RepeatedField<Int32>

SourceFile

public string SourceFile { get; set; }

Identifies the filesystem path to the original source .proto.

Property Value
Type Description
String

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
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
Type Description
GeneratedCodeInfo.Types.Annotation

Equals(GeneratedCodeInfo.Types.Annotation)

public bool Equals(GeneratedCodeInfo.Types.Annotation other)
Parameter
Name Description
other GeneratedCodeInfo.Types.Annotation
Returns
Type Description
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
Name Description
other Object
Returns
Type Description
Boolean

GetHashCode()

public override int GetHashCode()
Returns
Type Description
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream

MergeFrom(GeneratedCodeInfo.Types.Annotation)

public void MergeFrom(GeneratedCodeInfo.Types.Annotation other)
Parameter
Name Description
other GeneratedCodeInfo.Types.Annotation

ToString()

public override string ToString()
Returns
Type Description
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
Name Description
input ParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
Name Description
output WriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor