Class Value (3.5.0)

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

A message that can hold any of the supported value types and associated metadata.

Inheritance

Object > Value

Namespace

Google.Cloud.Datastore.V1

Assembly

Google.Cloud.Datastore.V1.dll

Constructors

Value()

public Value()

Value(Value)

public Value(Value other)
Parameter
NameDescription
otherValue

Properties

ArrayValue

public ArrayValue ArrayValue { get; set; }

An array value. Cannot contain another array value. A Value instance that sets field array_value must not set fields meaning or exclude_from_indexes.

Property Value
TypeDescription
ArrayValue

BlobValue

public ByteString BlobValue { get; set; }

A blob value. May have at most 1,000,000 bytes. When exclude_from_indexes is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.

Property Value
TypeDescription
ByteString

BooleanValue

public bool BooleanValue { get; set; }

A boolean value.

Property Value
TypeDescription
Boolean

DoubleValue

public double DoubleValue { get; set; }

A double value.

Property Value
TypeDescription
Double

EntityValue

public Entity EntityValue { get; set; }

An entity value.

  • May have no key.
  • May have a key with an incomplete key path.
  • May have a reserved/read-only key.
Property Value
TypeDescription
Entity

ExcludeFromIndexes

public bool ExcludeFromIndexes { get; set; }

If the value should be excluded from all indexes including those defined explicitly.

Property Value
TypeDescription
Boolean

GeoPointValue

public LatLng GeoPointValue { get; set; }

A geo point value representing a point on the surface of Earth.

Property Value
TypeDescription
LatLng

IntegerValue

public long IntegerValue { get; set; }

An integer value.

Property Value
TypeDescription
Int64

IsNull

public bool IsNull { get; }

Convenience property to determine whether this value has a type of NullValue.

Property Value
TypeDescription
Boolean

true if the type is NullValue; false otherwise.

KeyValue

public Key KeyValue { get; set; }

A key value.

Property Value
TypeDescription
Key

Meaning

public int Meaning { get; set; }

The meaning field should only be populated for backwards compatibility.

Property Value
TypeDescription
Int32

NullValue

public NullValue NullValue { get; set; }

A null value.

Property Value
TypeDescription
NullValue

StringValue

public string StringValue { get; set; }

A UTF-8 encoded string value. When exclude_from_indexes is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.

Property Value
TypeDescription
String

TimestampValue

public Timestamp TimestampValue { get; set; }

A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.

Property Value
TypeDescription
Timestamp

ValueTypeCase

public Value.ValueTypeOneofCase ValueTypeCase { get; }
Property Value
TypeDescription
Value.ValueTypeOneofCase

Methods

ForNull()

public static Value ForNull()

Creates a new Value with a type of NullValue.

Returns
TypeDescription
Value

A value with a type of NullValue.

ToDateTimeFromProjection()

public DateTime ToDateTimeFromProjection()

Converts this value to a DateTime, if it's either a timestamp value or a 64-bit integer value. This method is intended to be used if the value may have been returned from a projection, where timestamps are converted into integers in the form of a number of microseconds since the Unix epoch.

Returns
TypeDescription
DateTime

The converted value.

ToDateTimeOffsetFromProjection()

public DateTimeOffset ToDateTimeOffsetFromProjection()

Converts this value to a DateTimeOffset, if it's either a timestamp value or a 64-bit integer value. This method is intended to be used if the value may have been returned from a projection, where timestamps are converted into integers in the form of a number of microseconds since the Unix epoch.

Returns
TypeDescription
DateTimeOffset

The converted value.

Operators

Explicit(Value to ArrayValue)

public static explicit operator ArrayValue(Value value)

Extracts the array value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
ArrayValue

The embedded ArrayValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to ArrayValue[])

public static explicit operator ArrayValue[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
ArrayValue[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Entity)

public static explicit operator Entity(Value value)

Extracts the array value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Entity

The embedded EntityValue, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to Entity[])

public static explicit operator Entity[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Entity[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Key)

public static explicit operator Key(Value value)

Extracts the key value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Key

The embedded KeyValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to Key[])

public static explicit operator Key[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Key[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Value[])

public static explicit operator Value[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Value[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array.

Explicit(Value to ByteString)

public static explicit operator ByteString(Value value)

Extracts the blob value from a Value as a ByteString.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
ByteString

The embedded BlobValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to ByteString[])

public static explicit operator ByteString[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
ByteString[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Timestamp)

public static explicit operator Timestamp(Value value)

Extracts the timestamp value from a Value as a Timestamp.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Timestamp

The embedded TimestampValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to Timestamp[])

public static explicit operator Timestamp[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Timestamp[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to LatLng)

public static explicit operator LatLng(Value value)

Extracts the geolocation value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
LatLng

The embedded GeoPointValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to LatLng[])

public static explicit operator LatLng[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
LatLng[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Boolean)

public static explicit operator bool (Value value)

Extracts the Boolean value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Boolean

The embedded BooleanValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

ArgumentNullException

value is null.

Explicit(Value to Boolean[])

public static explicit operator bool[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Boolean[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Byte[])

public static explicit operator byte[](Value value)

Extracts the blob value from a Value as a byte array

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Byte[]

The embedded BlobValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to Byte[][])

public static explicit operator byte[][](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Byte[][]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to DateTime)

public static explicit operator DateTime(Value value)

Extracts the timestamp value from a Value as a DateTime.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
DateTime

The embedded TimestampValue as a DateTime with a DateTimeKind of Utc.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

ArgumentNullException

value is null.

Explicit(Value to DateTime[])

public static explicit operator DateTime[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
DateTime[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to DateTimeOffset)

public static explicit operator DateTimeOffset(Value value)

Extracts the timestamp value from a Value as a DateTimeOffset.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
DateTimeOffset

The embedded TimestampValue as a DateTimeOffset with an offset of zero.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

ArgumentNullException

value is null.

Explicit(Value to DateTimeOffset[])

public static explicit operator DateTimeOffset[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
DateTimeOffset[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Double)

public static explicit operator double (Value value)

Extracts the floating point value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Double

The embedded DoubleValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

ArgumentNullException

value is null.

Explicit(Value to Double[])

public static explicit operator double[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Double[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Int64)

public static explicit operator long (Value value)

Extracts the integer value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Int64

The embedded IntegerValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

ArgumentNullException

value is null.

Explicit(Value to Int64[])

public static explicit operator long[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Int64[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Nullable<Boolean>)

public static explicit operator bool? (Value value)

Extracts the Boolean value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<Boolean>

The embedded BooleanValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to Nullable<Boolean>[])

public static explicit operator bool? [](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<Boolean>[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Nullable<DateTime>)

public static explicit operator DateTime? (Value value)

Extracts the timestamp value from a Value as a nullable DateTime.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<DateTime>

The embedded TimestampValue as a DateTime with a DateTimeKind of Utc, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to Nullable<DateTime>[])

public static explicit operator DateTime? [](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<DateTime>[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Nullable<DateTimeOffset>)

public static explicit operator DateTimeOffset? (Value value)

Extracts the timestamp value from a Value as a nullable DateTimeOffset.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<DateTimeOffset>

The embedded TimestampValue as a DateTimeOffset with an offset of zero, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to Nullable<DateTimeOffset>[])

public static explicit operator DateTimeOffset? [](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<DateTimeOffset>[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Nullable<Double>)

public static explicit operator double? (Value value)

Extracts the floating point value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<Double>

The embedded DoubleValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to Nullable<Double>[])

public static explicit operator double? [](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<Double>[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to Nullable<Int64>)

public static explicit operator long? (Value value)

Extracts the integer value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<Int64>

The embedded IntegerValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to Nullable<Int64>[])

public static explicit operator long? [](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
Nullable<Int64>[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Explicit(Value to String)

public static explicit operator string (Value value)

Extracts the string value from a Value.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
String

The embedded StringValue, or null if value is null or has a kind of NullValue.

Exceptions
TypeDescription
InvalidOperationException

The value does not have the expected kind.

Explicit(Value to String[])

public static explicit operator string[](Value value)

Converts a Value to an array using first the conversion to ArrayValue and then the conversion to the array type.

Parameter
NameDescription
valueValue

The value to convert.

Returns
TypeDescription
String[]

The converted array, or null if value is null.

Exceptions
TypeDescription
InvalidOperationException

The value does not represent an array, or any value within it does not have the expected kind.

Implicit(ArrayValue to Value)

public static implicit operator Value(ArrayValue value)

Returns a Value with a kind of ArrayValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueArrayValue

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(ArrayValue[] to Value)

public static implicit operator Value(ArrayValue[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesArrayValue[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Entity to Value)

public static implicit operator Value(Entity value)

Returns a Value with a kind of EntityValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueEntity

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Entity[] to Value)

public static implicit operator Value(Entity[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesEntity[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Key to Value)

public static implicit operator Value(Key value)

Returns a Value with a kind of KeyValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueKey

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Key[] to Value)

public static implicit operator Value(Key[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesKey[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Value[] to Value)

public static implicit operator Value(Value[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesValue[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(ByteString to Value)

public static implicit operator Value(ByteString value)

Returns a Value with a kind of BlobValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueByteString

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(ByteString[] to Value)

public static implicit operator Value(ByteString[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesByteString[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Timestamp to Value)

public static implicit operator Value(Timestamp value)

Returns a Value with a kind of TimestampValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueTimestamp

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Timestamp[] to Value)

public static implicit operator Value(Timestamp[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesTimestamp[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(LatLng to Value)

public static implicit operator Value(LatLng value)

Returns a Value with a kind of GeoPointValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueLatLng

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(LatLng[] to Value)

public static implicit operator Value(LatLng[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesLatLng[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Boolean to Value)

public static implicit operator Value(bool value)

Returns a Value with a kind of BooleanValue and the given data.

Parameter
NameDescription
valueBoolean

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Boolean[] to Value)

public static implicit operator Value(bool[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesBoolean[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Byte[] to Value)

public static implicit operator Value(byte[] value)

Returns a Value with a kind of BlobValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueByte[]

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Byte[][] to Value)

public static implicit operator Value(byte[][] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesByte[][]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(DateTime to Value)

public static implicit operator Value(DateTime value)

Returns a Value with a kind of TimestampValue and the given data.

Parameter
NameDescription
valueDateTime

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(DateTime[] to Value)

public static implicit operator Value(DateTime[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesDateTime[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(DateTimeOffset to Value)

public static implicit operator Value(DateTimeOffset value)

Returns a Value with a kind of TimestampValue and the given data.

Parameter
NameDescription
valueDateTimeOffset

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(DateTimeOffset[] to Value)

public static implicit operator Value(DateTimeOffset[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesDateTimeOffset[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Double to Value)

public static implicit operator Value(double value)

Returns a Value with a kind of DoubleValue and the given data.

Parameter
NameDescription
valueDouble

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Double[] to Value)

public static implicit operator Value(double[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesDouble[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Int64 to Value)

public static implicit operator Value(long value)

Returns a Value with a kind of IntegerValue and the given data.

Parameter
NameDescription
valueInt64

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Int64[] to Value)

public static implicit operator Value(long[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesInt64[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Nullable<Boolean> to Value)

public static implicit operator Value(bool? value)

Returns a Value with a kind of BooleanValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueNullable<Boolean>

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Nullable<Boolean>[] to Value)

public static implicit operator Value(bool? [] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesNullable<Boolean>[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Nullable<DateTime> to Value)

public static implicit operator Value(DateTime? value)

Returns a Value with a kind of TimestampValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueNullable<DateTime>

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Nullable<DateTime>[] to Value)

public static implicit operator Value(DateTime? [] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesNullable<DateTime>[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Nullable<DateTimeOffset> to Value)

public static implicit operator Value(DateTimeOffset? value)

Returns a Value with a kind of TimestampValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueNullable<DateTimeOffset>

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Nullable<DateTimeOffset>[] to Value)

public static implicit operator Value(DateTimeOffset? [] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesNullable<DateTimeOffset>[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Nullable<Double> to Value)

public static implicit operator Value(double? value)

Returns a Value with a kind of DoubleValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueNullable<Double>

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Nullable<Double>[] to Value)

public static implicit operator Value(double? [] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesNullable<Double>[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(Nullable<Int64> to Value)

public static implicit operator Value(long? value)

Returns a Value with a kind of IntegerValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueNullable<Int64>

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(Nullable<Int64>[] to Value)

public static implicit operator Value(long? [] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesNullable<Int64>[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Implicit(String to Value)

public static implicit operator Value(string value)

Returns a Value with a kind of StringValue and the given data, or a null reference of value is null.

Parameter
NameDescription
valueString

The value to convert.

Returns
TypeDescription
Value

A Value corresponding to value.

Implicit(String[] to Value)

public static implicit operator Value(string[] values)

Converts an array to a Value, by first converting to an ArrayValue and then converting the result to a Value.

Parameter
NameDescription
valuesString[]

The array to convert.

Returns
TypeDescription
Value

The converted array as a Value, or null if values is null.

Extension Method