Show / Hide Table of Contents

Class GeneratedCodeInfo.Types.Annotation

Inheritance
System.Object
GeneratedCodeInfo.Types.Annotation
Implements
IMessage<GeneratedCodeInfo.Types.Annotation>
IMessage
System.IEquatable<GeneratedCodeInfo.Types.Annotation>
IDeepCloneable<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()
Namespace: Google.Protobuf.Reflection
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
public Annotation()

Annotation(GeneratedCodeInfo.Types.Annotation)

Declaration
public Annotation(GeneratedCodeInfo.Types.Annotation other)
Parameters
Type Name Description
GeneratedCodeInfo.Types.Annotation other

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
Type Description
MessageDescriptor

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
Type Description
MessageParser<GeneratedCodeInfo.Types.Annotation>

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
Type Description
RepeatedField<System.Int32>

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
IMessage.CalculateSize()

ClearBegin()

Clears the value of the "begin" field

Declaration
public void ClearBegin()

ClearEnd()

Clears the value of the "end" field

Declaration
public void ClearEnd()

ClearSourceFile()

Clears the value of the "source_file" field

Declaration
public void ClearSourceFile()

Clone()

Declaration
public GeneratedCodeInfo.Types.Annotation Clone()
Returns
Type Description
GeneratedCodeInfo.Types.Annotation
Implements
IDeepCloneable<T>.Clone()

Equals(GeneratedCodeInfo.Types.Annotation)

Declaration
public bool Equals(GeneratedCodeInfo.Types.Annotation other)
Parameters
Type Name Description
GeneratedCodeInfo.Types.Annotation other
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()

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

MergeFrom(GeneratedCodeInfo.Types.Annotation)

Declaration
public void MergeFrom(GeneratedCodeInfo.Types.Annotation other)
Parameters
Type Name Description
GeneratedCodeInfo.Types.Annotation other
Implements
IMessage<T>.MergeFrom(T)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

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

Extension Methods

MessageExtensions.MergeFrom(IMessage, Byte[])
MessageExtensions.MergeFrom(IMessage, Byte[], Int32, Int32)
MessageExtensions.MergeFrom(IMessage, ByteString)
MessageExtensions.MergeFrom(IMessage, Stream)
MessageExtensions.MergeDelimitedFrom(IMessage, Stream)
MessageExtensions.ToByteArray(IMessage)
MessageExtensions.WriteTo(IMessage, Stream)
MessageExtensions.WriteDelimitedTo(IMessage, Stream)
MessageExtensions.ToByteString(IMessage)
MessageExtensions.IsInitialized(IMessage)
Back to top