Class UninterpretedOption
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
System.Object
UninterpretedOption
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Protobuf.dll
Syntax
public sealed class UninterpretedOption : IMessage<UninterpretedOption>, IMessage, IEquatable<UninterpretedOption>, IDeepCloneable<UninterpretedOption>
Constructors
UninterpretedOption()
Declaration
public UninterpretedOption()
UninterpretedOption(UninterpretedOption)
Declaration
public UninterpretedOption(UninterpretedOption other)
Parameters
Fields
AggregateValueFieldNumber
Field number for the "aggregate_value" field.
Declaration
public const int AggregateValueFieldNumber = 8
Field Value
Type |
Description |
System.Int32 |
|
DoubleValueFieldNumber
Field number for the "double_value" field.
Declaration
public const int DoubleValueFieldNumber = 6
Field Value
Type |
Description |
System.Int32 |
|
IdentifierValueFieldNumber
Field number for the "identifier_value" field.
Declaration
public const int IdentifierValueFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
NegativeIntValueFieldNumber
Field number for the "negative_int_value" field.
Declaration
public const int NegativeIntValueFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
PositiveIntValueFieldNumber
Field number for the "positive_int_value" field.
Declaration
public const int PositiveIntValueFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
StringValueFieldNumber
Field number for the "string_value" field.
Declaration
public const int StringValueFieldNumber = 7
Field Value
Type |
Description |
System.Int32 |
|
Properties
AggregateValue
Declaration
public string AggregateValue { get; set; }
Property Value
Type |
Description |
System.String |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
DoubleValue
Declaration
public double DoubleValue { get; set; }
Property Value
Type |
Description |
System.Double |
|
HasAggregateValue
Gets whether the "aggregate_value" field is set
Declaration
public bool HasAggregateValue { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasDoubleValue
Gets whether the "double_value" field is set
Declaration
public bool HasDoubleValue { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasIdentifierValue
Gets whether the "identifier_value" field is set
Declaration
public bool HasIdentifierValue { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasNegativeIntValue
Gets whether the "negative_int_value" field is set
Declaration
public bool HasNegativeIntValue { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasPositiveIntValue
Gets whether the "positive_int_value" field is set
Declaration
public bool HasPositiveIntValue { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasStringValue
Gets whether the "string_value" field is set
Declaration
public bool HasStringValue { get; }
Property Value
Type |
Description |
System.Boolean |
|
IdentifierValue
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
Declaration
public string IdentifierValue { get; set; }
Property Value
Type |
Description |
System.String |
|
Name
Declaration
public RepeatedField<UninterpretedOption.Types.NamePart> Name { get; }
Property Value
NegativeIntValue
Declaration
public long NegativeIntValue { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Parser
Declaration
public static MessageParser<UninterpretedOption> Parser { get; }
Property Value
PositiveIntValue
Declaration
public ulong PositiveIntValue { get; set; }
Property Value
Type |
Description |
System.UInt64 |
|
StringValue
Declaration
public ByteString StringValue { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
ClearAggregateValue()
Clears the value of the "aggregate_value" field
Declaration
public void ClearAggregateValue()
ClearDoubleValue()
Clears the value of the "double_value" field
Declaration
public void ClearDoubleValue()
ClearIdentifierValue()
Clears the value of the "identifier_value" field
Declaration
public void ClearIdentifierValue()
ClearNegativeIntValue()
Clears the value of the "negative_int_value" field
Declaration
public void ClearNegativeIntValue()
ClearPositiveIntValue()
Clears the value of the "positive_int_value" field
Declaration
public void ClearPositiveIntValue()
ClearStringValue()
Clears the value of the "string_value" field
Declaration
public void ClearStringValue()
Clone()
Declaration
public UninterpretedOption Clone()
Returns
Implements
Equals(UninterpretedOption)
Declaration
public bool Equals(UninterpretedOption other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(UninterpretedOption)
Declaration
public void MergeFrom(UninterpretedOption other)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements
Extension Methods