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.
Namespace
Google.Cloud.Datastore.V1Assembly
Google.Cloud.Datastore.V1.dll
Constructors
Value()
public Value()
Value(Value)
public Value(Value other)
Parameter | |
---|---|
Name | Description |
other | Value |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
BooleanValue
public bool BooleanValue { get; set; }
A boolean value.
Property Value | |
---|---|
Type | Description |
Boolean |
DoubleValue
public double DoubleValue { get; set; }
A double value.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Entity |
ExcludeFromIndexes
public bool ExcludeFromIndexes { get; set; }
If the value should be excluded from all indexes including those defined explicitly.
Property Value | |
---|---|
Type | Description |
Boolean |
GeoPointValue
public LatLng GeoPointValue { get; set; }
A geo point value representing a point on the surface of Earth.
Property Value | |
---|---|
Type | Description |
LatLng |
IntegerValue
public long IntegerValue { get; set; }
An integer value.
Property Value | |
---|---|
Type | Description |
Int64 |
IsNull
public bool IsNull { get; }
Convenience property to determine whether this value has a type of NullValue
.
Property Value | |
---|---|
Type | Description |
Boolean |
|
KeyValue
public Key KeyValue { get; set; }
A key value.
Property Value | |
---|---|
Type | Description |
Key |
Meaning
public int Meaning { get; set; }
The meaning
field should only be populated for backwards compatibility.
Property Value | |
---|---|
Type | Description |
Int32 |
NullValue
public NullValue NullValue { get; set; }
A null value.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Timestamp |
ValueTypeCase
public Value.ValueTypeOneofCase ValueTypeCase { get; }
Property Value | |
---|---|
Type | Description |
Value.ValueTypeOneofCase |
Methods
ForNull()
public static Value ForNull()
Creates a new Value with a type of NullValue
.
Returns | |
---|---|
Type | Description |
Value | A value with a type of |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DateTimeOffset | The converted value. |
Operators
Explicit(Value to ArrayValue)
public static explicit operator ArrayValue(Value value)
Extracts the array value from a Value.
Parameter | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | The embedded ArrayValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Entity | The embedded EntityValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Entity[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Key | The embedded KeyValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Key[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Value[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
ByteString | The embedded BlobValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
ByteString[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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)
Parameter | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Timestamp | The embedded TimestampValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Timestamp[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
LatLng | The embedded GeoPointValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
LatLng[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Boolean | The embedded BooleanValue. |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | The value does not have the expected kind. |
ArgumentNullException |
|
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Boolean[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Byte[] | The embedded BlobValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Byte[][] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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)
Parameter | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
DateTime | The embedded TimestampValue as a DateTime with a DateTimeKind of |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | The value does not have the expected kind. |
ArgumentNullException |
|
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
DateTime[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
DateTimeOffset | The embedded TimestampValue as a DateTimeOffset with an offset of zero. |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | The value does not have the expected kind. |
ArgumentNullException |
|
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
DateTimeOffset[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Double | The embedded DoubleValue. |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | The value does not have the expected kind. |
ArgumentNullException |
|
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Double[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Int64 | The embedded IntegerValue. |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | The value does not have the expected kind. |
ArgumentNullException |
|
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Int64[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<Boolean> | The embedded BooleanValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<Boolean>[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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)
Parameter | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<DateTime> | The embedded TimestampValue as a DateTime with a DateTimeKind of |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<DateTime>[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<DateTimeOffset> | The embedded TimestampValue as a DateTimeOffset with an offset of zero,
or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<DateTimeOffset>[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<Double> | The embedded DoubleValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<Double>[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<Int64> | The embedded IntegerValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<Int64>[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
String | The embedded StringValue, or null if |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Value The value to convert. |
Returns | |
---|---|
Type | Description |
String[] | The converted array, or |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ArrayValue The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | ArrayValue[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | Entity The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Entity[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | Key The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Key[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
values | Value[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | ByteString The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | ByteString[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | Timestamp The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Timestamp[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | LatLng The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | LatLng[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
Implicit(Boolean to Value)
public static implicit operator Value(bool value)
Returns a Value with a kind of BooleanValue
and the given data.
Parameter | |
---|---|
Name | Description |
value | Boolean The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Boolean[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | Byte[] The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Byte[][] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
Implicit(DateTime to Value)
public static implicit operator Value(DateTime value)
Returns a Value with a kind of TimestampValue
and the given data.
Parameter | |
---|---|
Name | Description |
value | DateTime The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | DateTime[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
Implicit(DateTimeOffset to Value)
public static implicit operator Value(DateTimeOffset value)
Returns a Value with a kind of TimestampValue
and the given data.
Parameter | |
---|---|
Name | Description |
value | DateTimeOffset The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | DateTimeOffset[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
Implicit(Double to Value)
public static implicit operator Value(double value)
Returns a Value with a kind of DoubleValue
and the given data.
Parameter | |
---|---|
Name | Description |
value | Double The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Double[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
Implicit(Int64 to Value)
public static implicit operator Value(long value)
Returns a Value with a kind of IntegerValue
and the given data.
Parameter | |
---|---|
Name | Description |
value | Int64 The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Int64[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | Nullable<Boolean> The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Nullable<Boolean>[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | Nullable<DateTime> The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Nullable<DateTime>[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | Nullable<DateTimeOffset> The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Nullable<DateTimeOffset>[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | Nullable<Double> The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Nullable<Double>[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | Nullable<Int64> The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | Nullable<Int64>[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |
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 | |
---|---|
Name | Description |
value | String The value to convert. |
Returns | |
---|---|
Type | Description |
Value | A Value corresponding to |
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 | |
---|---|
Name | Description |
values | String[] The array to convert. |
Returns | |
---|---|
Type | Description |
Value | The converted array as a Value, or |