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)
Fields
AggregateValueFieldNumber
public const int AggregateValueFieldNumber = 8
Field number for the "aggregate_value" field.
Field Value |
Type |
Description |
int |
|
DoubleValueFieldNumber
public const int DoubleValueFieldNumber = 6
Field number for the "double_value" field.
Field Value |
Type |
Description |
int |
|
IdentifierValueFieldNumber
public const int IdentifierValueFieldNumber = 3
Field number for the "identifier_value" field.
Field Value |
Type |
Description |
int |
|
NameFieldNumber
public const int NameFieldNumber = 2
Field number for the "name" field.
Field Value |
Type |
Description |
int |
|
NegativeIntValueFieldNumber
public const int NegativeIntValueFieldNumber = 5
Field number for the "negative_int_value" field.
Field Value |
Type |
Description |
int |
|
PositiveIntValueFieldNumber
public const int PositiveIntValueFieldNumber = 4
Field number for the "positive_int_value" field.
Field Value |
Type |
Description |
int |
|
StringValueFieldNumber
public const int StringValueFieldNumber = 7
Field number for the "string_value" field.
Field Value |
Type |
Description |
int |
|
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 |
bool |
|
HasDoubleValue
public bool HasDoubleValue { get; }
Gets whether the "double_value" field is set
Property Value |
Type |
Description |
bool |
|
HasIdentifierValue
public bool HasIdentifierValue { get; }
Gets whether the "identifier_value" field is set
Property Value |
Type |
Description |
bool |
|
HasNegativeIntValue
public bool HasNegativeIntValue { get; }
Gets whether the "negative_int_value" field is set
Property Value |
Type |
Description |
bool |
|
HasPositiveIntValue
public bool HasPositiveIntValue { get; }
Gets whether the "positive_int_value" field is set
Property Value |
Type |
Description |
bool |
|
HasStringValue
public bool HasStringValue { get; }
Gets whether the "string_value" field is set
Property Value |
Type |
Description |
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 |
Type |
Description |
string |
|
Name
public RepeatedField<UninterpretedOption.Types.NamePart> Name { get; }
NegativeIntValue
public long NegativeIntValue { get; set; }
Property Value |
Type |
Description |
long |
|
Parser
public static MessageParser<UninterpretedOption> Parser { get; }
PositiveIntValue
public ulong PositiveIntValue { get; set; }
Property Value |
Type |
Description |
ulong |
|
StringValue
public ByteString StringValue { get; set; }
Methods
CalculateSize()
public int CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
Returns |
Type |
Description |
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.
Equals(UninterpretedOption)
public bool Equals(UninterpretedOption other)
Returns |
Type |
Description |
bool |
|
Equals(object)
public override bool Equals(object other)
Parameter |
Name |
Description |
other |
object
|
Returns |
Type |
Description |
bool |
|
Overrides
GetHashCode()
public override int GetHashCode()
Returns |
Type |
Description |
int |
|
Overrides
public void MergeFrom(CodedInputStream input)
Merges the data from the specified coded input stream with the current message.
Remarks
MergeFrom(UninterpretedOption)
public void MergeFrom(UninterpretedOption other)
Merges the given message into this one.
Remarks
ToString()
public override string ToString()
Returns |
Type |
Description |
string |
|
Overrides
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Writes the data to the given coded output stream.
Parameter |
Name |
Description |
output |
CodedOutputStream
Coded output stream to write the data to. Must not be null.
|
Extension Methods