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
Fields
AggregateValueFieldNumber
public const int AggregateValueFieldNumber = null
Field number for the "aggregate_value" field.
Field Value
DoubleValueFieldNumber
public const int DoubleValueFieldNumber = null
Field number for the "double_value" field.
Field Value
IdentifierValueFieldNumber
public const int IdentifierValueFieldNumber = null
Field number for the "identifier_value" field.
Field Value
NameFieldNumber
public const int NameFieldNumber = null
Field number for the "name" field.
Field Value
NegativeIntValueFieldNumber
public const int NegativeIntValueFieldNumber = null
Field number for the "negative_int_value" field.
Field Value
PositiveIntValueFieldNumber
public const int PositiveIntValueFieldNumber = null
Field number for the "positive_int_value" field.
Field Value
StringValueFieldNumber
public const int StringValueFieldNumber = null
Field number for the "string_value" field.
Field Value
Properties
AggregateValue
public string AggregateValue { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
DoubleValue
public double DoubleValue { get; set; }
Property Value
HasAggregateValue
public bool HasAggregateValue { get; }
Gets whether the "aggregate_value" field is set
Property Value
HasDoubleValue
public bool HasDoubleValue { get; }
Gets whether the "double_value" field is set
Property Value
HasIdentifierValue
public bool HasIdentifierValue { get; }
Gets whether the "identifier_value" field is set
Property Value
HasNegativeIntValue
public bool HasNegativeIntValue { get; }
Gets whether the "negative_int_value" field is set
Property Value
HasPositiveIntValue
public bool HasPositiveIntValue { get; }
Gets whether the "positive_int_value" field is set
Property Value
HasStringValue
public bool HasStringValue { get; }
Gets whether the "string_value" field is set
Property Value
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
Name
public RepeatedField<UninterpretedOption.Types.NamePart> Name { get; }
Property Value
NegativeIntValue
public long NegativeIntValue { get; set; }
Property Value
Parser
public static MessageParser<UninterpretedOption> Parser { get; }
Property Value
PositiveIntValue
public ulong PositiveIntValue { get; set; }
Property Value
StringValue
public ByteString StringValue { get; set; }
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
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
Equals(UninterpretedOption)
public bool Equals(UninterpretedOption other)
Parameter
Returns
Equals(Object)
public override bool Equals(object other)
Parameter
Type | Name | Description |
---|
Object | other | |
Returns
GetHashCode()
public override int GetHashCode()
Returns
public void MergeFrom(CodedInputStream input)
Parameter
MergeFrom(UninterpretedOption)
public void MergeFrom(UninterpretedOption other)
Parameter
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Parameter
Explicit Interface Implementations
IBufferMessage.InternalMergeFrom(ref ParseContext)
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
IBufferMessage.InternalWriteTo(ref WriteContext)
void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
IMessage.Descriptor
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements
IEquatable<>