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()
Annotation(GeneratedCodeInfo.Types.Annotation)
public Annotation(GeneratedCodeInfo.Types.Annotation other)
Parameter
Fields
BeginFieldNumber
public const int BeginFieldNumber = null
Field number for the "begin" field.
Field Value
EndFieldNumber
public const int EndFieldNumber = null
Field number for the "end" field.
Field Value
PathFieldNumber
public const int PathFieldNumber = null
Field number for the "path" field.
Field Value
SourceFileFieldNumber
public const int SourceFileFieldNumber = null
Field number for the "source_file" field.
Field Value
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
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
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
HasBegin
public bool HasBegin { get; }
Gets whether the "begin" field is set
Property Value
HasEnd
public bool HasEnd { get; }
Gets whether the "end" field is set
Property Value
HasSourceFile
public bool HasSourceFile { get; }
Gets whether the "source_file" field is set
Property Value
Parser
public static MessageParser<GeneratedCodeInfo.Types.Annotation> Parser { get; }
Property Value
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
SourceFile
public string SourceFile { get; set; }
Identifies the filesystem path to the original source .proto.
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearBegin()
Clears the value of the "begin" field
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
Equals(GeneratedCodeInfo.Types.Annotation)
public bool Equals(GeneratedCodeInfo.Types.Annotation other)
Parameter
Returns
Equals(Object)
public override bool Equals(object other)
Parameter
Returns
GetHashCode()
public override int GetHashCode()
Returns
public void MergeFrom(CodedInputStream input)
Parameter
MergeFrom(GeneratedCodeInfo.Types.Annotation)
public void MergeFrom(GeneratedCodeInfo.Types.Annotation other)
Parameter
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Parameter
Explicit Interface Implementations
IBufferMessage.InternalMergeFrom(ref ParseContext)
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
IBufferMessage.InternalWriteTo(ref WriteContext)
void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
IMessage.Descriptor
MessageDescriptor IMessage.Descriptor { get; }
Returns