AnyValue Class

public sealed class AnyValue : IBufferMessage, IDeepCloneable<AnyValue>, IMessage, IMessage<AnyValue>, IEquatable<AnyValue>

No documentation is available.

Implements

Nested types

NameDescription
AnyValue.ValueOneofCaseEnum of possible cases for the "value" oneof.

Constructors

NameDescription
AnyValue()
AnyValue(AnyValue)

AnyValue overloads

AnyValue()

public AnyValue()

No documentation is available.

AnyValue(AnyValue)

public AnyValue(AnyValue other)
Parameters
other AnyValue

No documentation is available.

Properties

NameDescription
BoolValue
BytesValue
Descriptor
DoubleValue
HasBoolValueGets whether the "bool_value" field is set
HasBytesValueGets whether the "bytes_value" field is set
HasDoubleValueGets whether the "double_value" field is set
HasIntValueGets whether the "int_value" field is set
HasStringValueGets whether the "string_value" field is set
IntValue
Parser
StringValue
ValueCase
pb::Google.Protobuf.IMessage.Descriptor

BoolValue

public bool BoolValue { get; set; }

Property value

bool

No documentation is available.

BytesValue

public ByteString BytesValue { get; set; }

Property value

ByteString

No documentation is available.

Descriptor

public static MessageDescriptor Descriptor { get; }

Property value

MessageDescriptor

No documentation is available.

DoubleValue

public double DoubleValue { get; set; }

Property value

double

No documentation is available.

HasBoolValue

Gets whether the "bool_value" field is set

public bool HasBoolValue { get; }

Property value

bool

HasBytesValue

Gets whether the "bytes_value" field is set

public bool HasBytesValue { get; }

Property value

bool

HasDoubleValue

Gets whether the "double_value" field is set

public bool HasDoubleValue { get; }

Property value

bool

HasIntValue

Gets whether the "int_value" field is set

public bool HasIntValue { get; }

Property value

bool

HasStringValue

Gets whether the "string_value" field is set

public bool HasStringValue { get; }

Property value

bool

IntValue

public long IntValue { get; set; }

Property value

long

No documentation is available.

Parser

public static MessageParser<AnyValue> Parser { get; }

Property value

MessageParser<AnyValue>

No documentation is available.

StringValue

public string StringValue { get; set; }

Property value

string

No documentation is available.

ValueCase

public AnyValue.ValueOneofCase ValueCase { get; }

No documentation is available.

pb::Google.Protobuf.IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }

Property value

MessageDescriptor

No documentation is available.

Methods

NameDescription
CalculateSize()
ClearBoolValue()Clears the value of the oneof if it's currently set to "bool_value"
ClearBytesValue()Clears the value of the oneof if it's currently set to "bytes_value"
ClearDoubleValue()Clears the value of the oneof if it's currently set to "double_value"
ClearIntValue()Clears the value of the oneof if it's currently set to "int_value"
ClearStringValue()Clears the value of the oneof if it's currently set to "string_value"
ClearValue()
Clone()
Equals(AnyValue)
Equals(object)
GetHashCode()
MergeFrom(CodedInputStream)
MergeFrom(AnyValue)
ToString()
WriteTo(CodedOutputStream)
pb::Google.Protobuf.IBufferMessage.InternalMergeFrom(ParseContext)
pb::Google.Protobuf.IBufferMessage.InternalWriteTo(WriteContext)

CalculateSize()

public int CalculateSize()

Returns

int

No documentation is available.

ClearBoolValue()

Clears the value of the oneof if it's currently set to "bool_value"

public void ClearBoolValue()

ClearBytesValue()

Clears the value of the oneof if it's currently set to "bytes_value"

public void ClearBytesValue()

ClearDoubleValue()

Clears the value of the oneof if it's currently set to "double_value"

public void ClearDoubleValue()

ClearIntValue()

Clears the value of the oneof if it's currently set to "int_value"

public void ClearIntValue()

ClearStringValue()

Clears the value of the oneof if it's currently set to "string_value"

public void ClearStringValue()

ClearValue()

public void ClearValue()

No documentation is available.

Clone()

public AnyValue Clone()

Returns

AnyValue

No documentation is available.

Equals overloads

Equals(AnyValue)

public bool Equals(AnyValue other)
Parameters
other AnyValue
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object other)
Parameters
other object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

MergeFrom overloads

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameters
input CodedInputStream

No documentation is available.

MergeFrom(AnyValue)

public void MergeFrom(AnyValue other)
Parameters
other AnyValue

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

No documentation is available.

pb::Google.Protobuf.IBufferMessage.InternalMergeFrom(ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)

Parameters

input ParseContext

No documentation is available.

pb::Google.Protobuf.IBufferMessage.InternalWriteTo(WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)

Parameters

output WriteContext

No documentation is available.

Constants

NameDescription
BoolValueFieldNumberField number for the "bool_value" field.
BytesValueFieldNumberField number for the "bytes_value" field.
DoubleValueFieldNumberField number for the "double_value" field.
IntValueFieldNumberField number for the "int_value" field.
StringValueFieldNumberField number for the "string_value" field.

BoolValueFieldNumber

Field number for the "bool_value" field.

public const int BoolValueFieldNumber = 2

BytesValueFieldNumber

Field number for the "bytes_value" field.

public const int BytesValueFieldNumber = 5

DoubleValueFieldNumber

Field number for the "double_value" field.

public const int DoubleValueFieldNumber = 4

IntValueFieldNumber

Field number for the "int_value" field.

public const int IntValueFieldNumber = 3

StringValueFieldNumber

Field number for the "string_value" field.

public const int StringValueFieldNumber = 1