Class GeneratedCodeInfo
Describes the relationship between generated code and its original source
file. A GeneratedCodeInfo message is associated with only one generated
source file, but may contain references to different source .proto files.
Inheritance
System.Object
GeneratedCodeInfo
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 GeneratedCodeInfo : IMessage<GeneratedCodeInfo>, IMessage, IEquatable<GeneratedCodeInfo>, IDeepCloneable<GeneratedCodeInfo>
Constructors
GeneratedCodeInfo()
Declaration
public GeneratedCodeInfo()
GeneratedCodeInfo(GeneratedCodeInfo)
Declaration
public GeneratedCodeInfo(GeneratedCodeInfo other)
Parameters
Fields
AnnotationFieldNumber
Field number for the "annotation" field.
Declaration
public const int AnnotationFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Annotation
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
Declaration
public RepeatedField<GeneratedCodeInfo.Types.Annotation> Annotation { get; }
Property Value
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Parser
Declaration
public static MessageParser<GeneratedCodeInfo> Parser { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
public GeneratedCodeInfo Clone()
Returns
Implements
Equals(GeneratedCodeInfo)
Declaration
public bool Equals(GeneratedCodeInfo 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)
Declaration
public void MergeFrom(GeneratedCodeInfo 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