Google Cloud Datastore v1 API - Class ArrayValue (4.5.0)

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

Reference documentation and code samples for the Google Cloud Datastore v1 API class ArrayValue.

An array value.

Inheritance

object > ArrayValue

Namespace

GoogleCloudGoogle.Cloud.DatastoreV1

Assembly

Google.Cloud.Datastore.V1.dll

Constructors

ArrayValue()

public ArrayValue()

ArrayValue(ArrayValue)

public ArrayValue(ArrayValue other)
Parameter
NameDescription
otherArrayValue

Properties

Values

public RepeatedField<Value> Values { get; }

Values in the array. The order of values in an array is preserved as long as all values have identical settings for 'exclude_from_indexes'.

Property Value
TypeDescription
RepeatedFieldValue

Operators

explicit operator ArrayValue[](ArrayValue)

public static explicit operator ArrayValue[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
ArrayValue

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator Entity[](ArrayValue)

public static explicit operator Entity[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
Entity

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator Key[](ArrayValue)

public static explicit operator Key[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
Key

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator Value[](ArrayValue)

public static explicit operator Value[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
Value

An array with converted values, or null if arrayValue is null.

explicit operator ByteString[](ArrayValue)

public static explicit operator ByteString[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
ByteString

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator Timestamp[](ArrayValue)

public static explicit operator Timestamp[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
Timestamp

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator LatLng[](ArrayValue)

public static explicit operator LatLng[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
LatLng

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator bool[](ArrayValue)

public static explicit operator bool[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
bool

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator byte[][](ArrayValue)

public static explicit operator byte[][](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
byte

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator DateTime[](ArrayValue)

public static explicit operator DateTime[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
DateTime

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator DateTimeOffset[](ArrayValue)

public static explicit operator DateTimeOffset[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
DateTimeOffset

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator double[](ArrayValue)

public static explicit operator double[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
double

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator long[](ArrayValue)

public static explicit operator long[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
long

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator bool?[](ArrayValue)

public static explicit operator bool?[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
bool

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator DateTime?[](ArrayValue)

public static explicit operator DateTime?[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
DateTime

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator DateTimeOffset?[](ArrayValue)

public static explicit operator DateTimeOffset?[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
DateTimeOffset

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator double?[](ArrayValue)

public static explicit operator double?[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
double

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator long?[](ArrayValue)

public static explicit operator long?[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
long

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

explicit operator string[](ArrayValue)

public static explicit operator string[](ArrayValue arrayValue)

Converts an ArrayValue to an array. Each value within arrayValue is converted to a Value using the individual explicit conversion. Any Value elements with a kind of Null are converted to null values in the resulting array.

Parameter
NameDescription
arrayValueArrayValue

The array value to convert.

Returns
TypeDescription
string

An array with converted values, or null if arrayValue is null.

Exceptions
TypeDescription
InvalidOperationException

An element in the array value does not have the expected kind.

implicit operator ArrayValue(ArrayValue[])

public static implicit operator ArrayValue(ArrayValue[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesArrayValue

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(Entity[])

public static implicit operator ArrayValue(Entity[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesEntity

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(Key[])

public static implicit operator ArrayValue(Key[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesKey

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(Value[])

public static implicit operator ArrayValue(Value[] values)

Converts an array to an ArrayValue instance. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesValue

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(ByteString[])

public static implicit operator ArrayValue(ByteString[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesByteString

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(Timestamp[])

public static implicit operator ArrayValue(Timestamp[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesTimestamp

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(LatLng[])

public static implicit operator ArrayValue(LatLng[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesLatLng

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(bool[])

public static implicit operator ArrayValue(bool[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion.

Parameter
NameDescription
valuesbool

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(byte[][])

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

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesbyte

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(DateTime[])

public static implicit operator ArrayValue(DateTime[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion.

Parameter
NameDescription
valuesDateTime

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(DateTimeOffset[])

public static implicit operator ArrayValue(DateTimeOffset[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion.

Parameter
NameDescription
valuesDateTimeOffset

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(double[])

public static implicit operator ArrayValue(double[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion.

Parameter
NameDescription
valuesdouble

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(long[])

public static implicit operator ArrayValue(long[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion.

Parameter
NameDescription
valueslong

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(bool?[])

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

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesbool

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(DateTime?[])

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

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesDateTime

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(DateTimeOffset?[])

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

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesDateTimeOffset

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(double?[])

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

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesdouble

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(long?[])

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

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valueslong

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.

implicit operator ArrayValue(string[])

public static implicit operator ArrayValue(string[] values)

Converts an array to an ArrayValue instance. Each value within values is converted to a Value using the individual implicit conversion. Any null input values are converted to instances of Value with a kind of Null.

Parameter
NameDescription
valuesstring

The array to convert.

Returns
TypeDescription
ArrayValue

An ArrayValue with converted values, or null if values is null.