Class OneofOptions (3.15.8)

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

Inheritance

Object > OneofOptions

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

OneofOptions()

public OneofOptions()

OneofOptions(OneofOptions)

public OneofOptions(OneofOptions other)
Parameter
NameDescription
otherOneofOptions

Fields

UninterpretedOptionFieldNumber

public const int UninterpretedOptionFieldNumber = null

Field number for the "uninterpreted_option" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

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

Parser

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

UninterpretedOption

public RepeatedField<UninterpretedOption> UninterpretedOption { get; }

The parser stores options it doesn't recognize here. See above.

Property Value
TypeDescription
RepeatedField<UninterpretedOption>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

ClearExtension<TValue>(Extension<OneofOptions, TValue>)

public void ClearExtension<TValue>(Extension<OneofOptions, TValue> extension)
Parameter
NameDescription
extensionExtension<OneofOptions, TValue>
Type Parameter
NameDescription
TValue

ClearExtension<TValue>(RepeatedExtension<OneofOptions, TValue>)

public void ClearExtension<TValue>(RepeatedExtension<OneofOptions, TValue> extension)
Parameter
NameDescription
extensionRepeatedExtension<OneofOptions, TValue>
Type Parameter
NameDescription
TValue

Clone()

public OneofOptions Clone()
Returns
TypeDescription
OneofOptions

Equals(OneofOptions)

public bool Equals(OneofOptions other)
Parameter
NameDescription
otherOneofOptions
Returns
TypeDescription
Boolean

Equals(Object)

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

GetExtension<TValue>(Extension<OneofOptions, TValue>)

public TValue GetExtension<TValue>(Extension<OneofOptions, TValue> extension)
Parameter
NameDescription
extensionExtension<OneofOptions, TValue>
Returns
TypeDescription
TValue
Type Parameter
NameDescription
TValue

GetExtension<TValue>(RepeatedExtension<OneofOptions, TValue>)

public RepeatedField<TValue> GetExtension<TValue>(RepeatedExtension<OneofOptions, TValue> extension)
Parameter
NameDescription
extensionRepeatedExtension<OneofOptions, TValue>
Returns
TypeDescription
RepeatedField<TValue>
Type Parameter
NameDescription
TValue

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

GetOrInitializeExtension<TValue>(RepeatedExtension<OneofOptions, TValue>)

public RepeatedField<TValue> GetOrInitializeExtension<TValue>(RepeatedExtension<OneofOptions, TValue> extension)
Parameter
NameDescription
extensionRepeatedExtension<OneofOptions, TValue>
Returns
TypeDescription
RepeatedField<TValue>
Type Parameter
NameDescription
TValue

HasExtension<TValue>(Extension<OneofOptions, TValue>)

public bool HasExtension<TValue>(Extension<OneofOptions, TValue> extension)
Parameter
NameDescription
extensionExtension<OneofOptions, TValue>
Returns
TypeDescription
Boolean
Type Parameter
NameDescription
TValue

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

MergeFrom(OneofOptions)

public void MergeFrom(OneofOptions other)
Parameter
NameDescription
otherOneofOptions

SetExtension<TValue>(Extension<OneofOptions, TValue>, TValue)

public void SetExtension<TValue>(Extension<OneofOptions, TValue> extension, TValue value)
Parameters
NameDescription
extensionExtension<OneofOptions, TValue>
valueTValue
Type Parameter
NameDescription
TValue

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