Class Type
A protocol buffer message type.
Inheritance
System.Object
Type
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 Type : IMessage<Type>, IMessage, IEquatable<Type>, IDeepCloneable<Type>
Constructors
Type()
Declaration
Type(Type)
Declaration
Parameters
Type |
Name |
Description |
Type |
other |
|
Fields
FieldsFieldNumber
Field number for the "fields" field.
Declaration
public const int FieldsFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
OneofsFieldNumber
Field number for the "oneofs" field.
Declaration
public const int OneofsFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
OptionsFieldNumber
Field number for the "options" field.
Declaration
public const int OptionsFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
SourceContextFieldNumber
Field number for the "source_context" field.
Declaration
public const int SourceContextFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
SyntaxFieldNumber
Field number for the "syntax" field.
Declaration
public const int SyntaxFieldNumber = 6
Field Value
Type |
Description |
System.Int32 |
|
Properties
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Fields
Declaration
public RepeatedField<Field> Fields { get; }
Property Value
Name
The fully qualified message name.
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Oneofs
The list of types appearing in oneof
definitions in this type.
Declaration
public RepeatedField<string> Oneofs { get; }
Property Value
Options
The protocol buffer options.
Declaration
public RepeatedField<Option> Options { get; }
Property Value
Parser
Declaration
public static MessageParser<Type> Parser { get; }
Property Value
SourceContext
Declaration
public SourceContext SourceContext { get; set; }
Property Value
Syntax
Declaration
public Syntax Syntax { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
Returns
Implements
Equals(Type)
Declaration
public bool Equals(Type other)
Parameters
Type |
Name |
Description |
Type |
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()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(Type)
Declaration
public void MergeFrom(Type other)
Parameters
Type |
Name |
Description |
Type |
other |
|
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