Send feedback
Class GeneratedCodeInfo.Types.Annotation (3.15.8)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.15.8 keyboard_arrow_down
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)
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; }
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; }
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.
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()
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()
Equals(GeneratedCodeInfo.Types.Annotation)
public bool Equals(GeneratedCodeInfo.Types.Annotation other)
Equals(Object)
public override bool Equals(object other)
Parameter Name Description other
Object
GetHashCode()
public override int GetHashCode()
Returns Type Description Int32
public void MergeFrom(CodedInputStream input)
MergeFrom(GeneratedCodeInfo.Types.Annotation)
public void MergeFrom(GeneratedCodeInfo.Types.Annotation other)
ToString()
public override string ToString()
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Explicit Interface Implementations
IBufferMessage.InternalMergeFrom(ref ParseContext)
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
IBufferMessage.InternalWriteTo(ref WriteContext)
void IBufferMessage.InternalWriteTo(ref WriteContext output)
IMessage.Descriptor
MessageDescriptor IMessage.Descriptor { get; }
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]