Class UninterpretedOption (3.15.8)
Version 3.15.8keyboard_arrow_down
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)
Fields
AggregateValueFieldNumber
public const int AggregateValueFieldNumber = null
Field number for the "aggregate_value" field.
Field Value
Type
Description
Int32
DoubleValueFieldNumber
public const int DoubleValueFieldNumber = null
Field number for the "double_value" field.
Field Value
Type
Description
Int32
IdentifierValueFieldNumber
public const int IdentifierValueFieldNumber = null
Field number for the "identifier_value" field.
Field Value
Type
Description
Int32
NameFieldNumber
public const int NameFieldNumber = null
Field number for the "name" field.
Field Value
Type
Description
Int32
NegativeIntValueFieldNumber
public const int NegativeIntValueFieldNumber = null
Field number for the "negative_int_value" field.
Field Value
Type
Description
Int32
PositiveIntValueFieldNumber
public const int PositiveIntValueFieldNumber = null
Field number for the "positive_int_value" field.
Field Value
Type
Description
Int32
StringValueFieldNumber
public const int StringValueFieldNumber = null
Field number for the "string_value" field.
Field Value
Type
Description
Int32
Properties
AggregateValue
public string AggregateValue { get ; set ; }
Property Value
Type
Description
String
Descriptor
public static MessageDescriptor Descriptor { get; }
DoubleValue
public double DoubleValue { get; set; }
Property Value
Type
Description
Double
HasAggregateValue
public bool HasAggregateValue { get ; }
Gets whether the "aggregate_value" field is set
Property Value
Type
Description
Boolean
HasDoubleValue
public bool HasDoubleValue { get; }
Gets whether the "double_value" field is set
Property Value
Type
Description
Boolean
HasIdentifierValue
public bool HasIdentifierValue { get; }
Gets whether the "identifier_value" field is set
Property Value
Type
Description
Boolean
HasNegativeIntValue
public bool HasNegativeIntValue { get; }
Gets whether the "negative_int_value" field is set
Property Value
Type
Description
Boolean
HasPositiveIntValue
public bool HasPositiveIntValue { get; }
Gets whether the "positive_int_value" field is set
Property Value
Type
Description
Boolean
HasStringValue
public bool HasStringValue { get; }
Gets whether the "string_value" field is set
Property Value
Type
Description
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
Type
Description
String
Name
public RepeatedField<UninterpretedOption.Types.NamePart> Name { get; }
NegativeIntValue
public long NegativeIntValue { get; set; }
Property Value
Type
Description
Int64
Parser
public static MessageParser<UninterpretedOption> Parser { get; }
PositiveIntValue
public ulong PositiveIntValue { get; set; }
Property Value
Type
Description
UInt64
StringValue
public ByteString StringValue { get; set; }
Methods
CalculateSize()
public int CalculateSize()
Returns
Type
Description
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()
Equals(UninterpretedOption)
public bool Equals(UninterpretedOption other)
Equals(Object)
public override bool Equals(object other)
Parameter
Name
Description
other
Object
GetHashCode()
public override int GetHashCode()
Returns
Type
Description
Int32
public void MergeFrom(CodedInputStream input)
MergeFrom(UninterpretedOption)
public void MergeFrom(UninterpretedOption other)
ToString()
public override string ToString()
Returns
Type
Description
String
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Explicit Interface Implementations
IBufferMessage.InternalMergeFrom(ref ParseContext)
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
IBufferMessage.InternalWriteTo(ref WriteContext)
void IBufferMessage.InternalWriteTo(ref WriteContext output)
IMessage.Descriptor
MessageDescriptor IMessage.Descriptor { get; }
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]