Class UninterpretedOption (3.15.8)

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

A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them.

Inheritance

Object > UninterpretedOption

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

UninterpretedOption()

public UninterpretedOption()

UninterpretedOption(UninterpretedOption)

public UninterpretedOption(UninterpretedOption other)
Parameter
NameDescription
otherUninterpretedOption

Fields

AggregateValueFieldNumber

public const int AggregateValueFieldNumber = null

Field number for the "aggregate_value" field.

Field Value
TypeDescription
Int32

DoubleValueFieldNumber

public const int DoubleValueFieldNumber = null

Field number for the "double_value" field.

Field Value
TypeDescription
Int32

IdentifierValueFieldNumber

public const int IdentifierValueFieldNumber = null

Field number for the "identifier_value" field.

Field Value
TypeDescription
Int32

NameFieldNumber

public const int NameFieldNumber = null

Field number for the "name" field.

Field Value
TypeDescription
Int32

NegativeIntValueFieldNumber

public const int NegativeIntValueFieldNumber = null

Field number for the "negative_int_value" field.

Field Value
TypeDescription
Int32

PositiveIntValueFieldNumber

public const int PositiveIntValueFieldNumber = null

Field number for the "positive_int_value" field.

Field Value
TypeDescription
Int32

StringValueFieldNumber

public const int StringValueFieldNumber = null

Field number for the "string_value" field.

Field Value
TypeDescription
Int32

Properties

AggregateValue

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

Descriptor

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

DoubleValue

public double DoubleValue { get; set; }
Property Value
TypeDescription
Double

HasAggregateValue

public bool HasAggregateValue { get; }

Gets whether the "aggregate_value" field is set

Property Value
TypeDescription
Boolean

HasDoubleValue

public bool HasDoubleValue { get; }

Gets whether the "double_value" field is set

Property Value
TypeDescription
Boolean

HasIdentifierValue

public bool HasIdentifierValue { get; }

Gets whether the "identifier_value" field is set

Property Value
TypeDescription
Boolean

HasNegativeIntValue

public bool HasNegativeIntValue { get; }

Gets whether the "negative_int_value" field is set

Property Value
TypeDescription
Boolean

HasPositiveIntValue

public bool HasPositiveIntValue { get; }

Gets whether the "positive_int_value" field is set

Property Value
TypeDescription
Boolean

HasStringValue

public bool HasStringValue { get; }

Gets whether the "string_value" field is set

Property Value
TypeDescription
Boolean

IdentifierValue

public string IdentifierValue { get; set; }

The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.

Property Value
TypeDescription
String

Name

public RepeatedField<UninterpretedOption.Types.NamePart> Name { get; }
Property Value
TypeDescription
RepeatedField<UninterpretedOption.Types.NamePart>

NegativeIntValue

public long NegativeIntValue { get; set; }
Property Value
TypeDescription
Int64

Parser

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

PositiveIntValue

public ulong PositiveIntValue { get; set; }
Property Value
TypeDescription
UInt64

StringValue

public ByteString StringValue { get; set; }
Property Value
TypeDescription
ByteString

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

ClearAggregateValue()

public void ClearAggregateValue()

Clears the value of the "aggregate_value" field

ClearDoubleValue()

public void ClearDoubleValue()

Clears the value of the "double_value" field

ClearIdentifierValue()

public void ClearIdentifierValue()

Clears the value of the "identifier_value" field

ClearNegativeIntValue()

public void ClearNegativeIntValue()

Clears the value of the "negative_int_value" field

ClearPositiveIntValue()

public void ClearPositiveIntValue()

Clears the value of the "positive_int_value" field

ClearStringValue()

public void ClearStringValue()

Clears the value of the "string_value" field

Clone()

public UninterpretedOption Clone()
Returns
TypeDescription
UninterpretedOption

Equals(UninterpretedOption)

public bool Equals(UninterpretedOption other)
Parameter
NameDescription
otherUninterpretedOption
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(UninterpretedOption)

public void MergeFrom(UninterpretedOption other)
Parameter
NameDescription
otherUninterpretedOption

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