Class GeneratedCodeInfo.Types.Annotation
Inheritance
System.Object
GeneratedCodeInfo.Types.Annotation
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Protobuf.dll
Syntax
public sealed class Annotation : IMessage<GeneratedCodeInfo.Types.Annotation>, IMessage, IEquatable<GeneratedCodeInfo.Types.Annotation>, IDeepCloneable<GeneratedCodeInfo.Types.Annotation>
Constructors
Annotation()
Declaration
Annotation(GeneratedCodeInfo.Types.Annotation)
Declaration
public Annotation(GeneratedCodeInfo.Types.Annotation other)
Parameters
Fields
BeginFieldNumber
Field number for the "begin" field.
Declaration
public const int BeginFieldNumber = 3
Field Value
| Type |
Description |
| System.Int32 |
|
EndFieldNumber
Field number for the "end" field.
Declaration
public const int EndFieldNumber = 4
Field Value
| Type |
Description |
| System.Int32 |
|
PathFieldNumber
Field number for the "path" field.
Declaration
public const int PathFieldNumber = 1
Field Value
| Type |
Description |
| System.Int32 |
|
SourceFileFieldNumber
Field number for the "source_file" field.
Declaration
public const int SourceFileFieldNumber = 2
Field Value
| Type |
Description |
| System.Int32 |
|
Properties
Begin
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
Declaration
public int Begin { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
End
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).
Declaration
public int End { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
HasBegin
Gets whether the "begin" field is set
Declaration
public bool HasBegin { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
HasEnd
Gets whether the "end" field is set
Declaration
public bool HasEnd { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
HasSourceFile
Gets whether the "source_file" field is set
Declaration
public bool HasSourceFile { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Parser
Declaration
public static MessageParser<GeneratedCodeInfo.Types.Annotation> Parser { get; }
Property Value
Path
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
Declaration
public RepeatedField<int> Path { get; }
Property Value
SourceFile
Identifies the filesystem path to the original source .proto.
Declaration
public string SourceFile { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
| Type |
Description |
| System.Int32 |
|
Implements
ClearBegin()
Clears the value of the "begin" field
Declaration
ClearEnd()
Clears the value of the "end" field
Declaration
ClearSourceFile()
Clears the value of the "source_file" field
Declaration
public void ClearSourceFile()
Clone()
Declaration
public GeneratedCodeInfo.Types.Annotation Clone()
Returns
Implements
Equals(GeneratedCodeInfo.Types.Annotation)
Declaration
public bool Equals(GeneratedCodeInfo.Types.Annotation other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
| Type |
Name |
Description |
| System.Object |
other |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(GeneratedCodeInfo.Types.Annotation)
Declaration
public void MergeFrom(GeneratedCodeInfo.Types.Annotation other)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements
Extension Methods