Show / Hide Table of Contents

Class Type

A protocol buffer message type.

Inheritance
System.Object
Type
Implements
IMessage<Type>
IMessage
System.IEquatable<Type>
IDeepCloneable<Type>
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.WellKnownTypes
Assembly: Google.Protobuf.dll
Syntax
public sealed class Type : IMessage<Type>, IMessage, IEquatable<Type>, IDeepCloneable<Type>

Constructors

Type()

Declaration
public Type()

Type(Type)

Declaration
public Type(Type other)
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
Type Description
MessageDescriptor

Fields

The list of fields.

Declaration
public RepeatedField<Field> Fields { get; }
Property Value
Type Description
RepeatedField<Field>

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

Options

The protocol buffer options.

Declaration
public RepeatedField<Option> Options { get; }
Property Value
Type Description
RepeatedField<Option>

Parser

Declaration
public static MessageParser<Type> Parser { get; }
Property Value
Type Description
MessageParser<Type>

SourceContext

The source context.

Declaration
public SourceContext SourceContext { get; set; }
Property Value
Type Description
SourceContext

Syntax

The source syntax.

Declaration
public Syntax Syntax { get; set; }
Property Value
Type Description
Syntax

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

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

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()

MergeFrom(CodedInputStream)

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

MergeFrom(Type)

Declaration
public void MergeFrom(Type other)
Parameters
Type Name Description
Type 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