Class OneofDescriptorProto (3.15.8)

public sealed class OneofDescriptorProto : object, IMessage<OneofDescriptorProto>, IEquatable<OneofDescriptorProto>, IDeepCloneable<OneofDescriptorProto>, IBufferMessage, IMessage

Describes a oneof.

Inheritance

Object > OneofDescriptorProto

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

OneofDescriptorProto()

public OneofDescriptorProto()

OneofDescriptorProto(OneofDescriptorProto)

public OneofDescriptorProto(OneofDescriptorProto other)
Parameter
NameDescription
otherOneofDescriptorProto

Fields

NameFieldNumber

public const int NameFieldNumber = null

Field number for the "name" field.

Field Value
TypeDescription
Int32

OptionsFieldNumber

public const int OptionsFieldNumber = null

Field number for the "options" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

Name

public string Name { get; set; }
Property Value
TypeDescription
String

Options

public OneofOptions Options { get; set; }
Property Value
TypeDescription
OneofOptions

Parser

public static MessageParser<OneofDescriptorProto> Parser { get; }
Property Value
TypeDescription
MessageParser<OneofDescriptorProto>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

ClearName()

public void ClearName()

Clears the value of the "name" field

Clone()

public OneofDescriptorProto Clone()
Returns
TypeDescription
OneofDescriptorProto

Equals(OneofDescriptorProto)

public bool Equals(OneofDescriptorProto other)
Parameter
NameDescription
otherOneofDescriptorProto
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

MergeFrom(OneofDescriptorProto)

public void MergeFrom(OneofDescriptorProto other)
Parameter
NameDescription
otherOneofDescriptorProto

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
NameDescription
inputParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
NameDescription
outputWriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor