Class UninterpretedOption (3.23.0)

public sealed class UninterpretedOption : 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 = 8

Field number for the "aggregate_value" field.

Field Value
TypeDescription
int

DoubleValueFieldNumber

public const int DoubleValueFieldNumber = 6

Field number for the "double_value" field.

Field Value
TypeDescription
int

IdentifierValueFieldNumber

public const int IdentifierValueFieldNumber = 3

Field number for the "identifier_value" field.

Field Value
TypeDescription
int

NameFieldNumber

public const int NameFieldNumber = 2

Field number for the "name" field.

Field Value
TypeDescription
int

NegativeIntValueFieldNumber

public const int NegativeIntValueFieldNumber = 5

Field number for the "negative_int_value" field.

Field Value
TypeDescription
int

PositiveIntValueFieldNumber

public const int PositiveIntValueFieldNumber = 4

Field number for the "positive_int_value" field.

Field Value
TypeDescription
int

StringValueFieldNumber

public const int StringValueFieldNumber = 7

Field number for the "string_value" field.

Field Value
TypeDescription
int

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
bool

HasDoubleValue

public bool HasDoubleValue { get; }

Gets whether the "double_value" field is set

Property Value
TypeDescription
bool

HasIdentifierValue

public bool HasIdentifierValue { get; }

Gets whether the "identifier_value" field is set

Property Value
TypeDescription
bool

HasNegativeIntValue

public bool HasNegativeIntValue { get; }

Gets whether the "negative_int_value" field is set

Property Value
TypeDescription
bool

HasPositiveIntValue

public bool HasPositiveIntValue { get; }

Gets whether the "positive_int_value" field is set

Property Value
TypeDescription
bool

HasStringValue

public bool HasStringValue { get; }

Gets whether the "string_value" field is set

Property Value
TypeDescription
bool

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
RepeatedFieldUninterpretedOptionTypesNamePart

NegativeIntValue

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

Parser

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

PositiveIntValue

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

StringValue

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

Methods

CalculateSize()

public int CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

Returns
TypeDescription
int

The number of bytes required to write this message to a coded output stream.

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

Creates a deep clone of this object.

Returns
TypeDescription
UninterpretedOption

A deep clone of this object.

Equals(UninterpretedOption)

public bool Equals(UninterpretedOption other)
Parameter
NameDescription
otherUninterpretedOption
Returns
TypeDescription
bool

Equals(object)

public override bool Equals(object other)
Parameter
NameDescription
otherobject
Returns
TypeDescription
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
int
Overrides

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)

Merges the data from the specified coded input stream with the current message.

Parameter
NameDescription
inputCodedInputStream
Remarks

See the user guide for precise merge semantics.

MergeFrom(UninterpretedOption)

public void MergeFrom(UninterpretedOption other)

Merges the given message into this one.

Parameter
NameDescription
otherUninterpretedOption
Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()
Returns
TypeDescription
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)

Writes the data to the given coded output stream.

Parameter
NameDescription
outputCodedOutputStream

Coded output stream to write the data to. Must not be null.

Extension Methods