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.
Implements
IMessage<ArrayValue>, IEquatable<ArrayValue>, IDeepCloneable<ArrayValue>, IBufferMessage, IMessageNamespace
Google.Cloud.Datastore.V1Assembly
Google.Cloud.Datastore.V1.dll
Constructors
ArrayValue()
public ArrayValue()
ArrayValue(ArrayValue)
public ArrayValue(ArrayValue other)
Parameter | |
---|---|
Name | Description |
other | ArrayValue |
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 | |
---|---|
Type | Description |
RepeatedField<Value> |
Operators
Explicit(ArrayValue to 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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Entity[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Entity[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Key[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Key[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Value[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Value[] | An array with converted values, or |
Explicit(ArrayValue to ByteString[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
ByteString[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Timestamp[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Timestamp[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to LatLng[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
LatLng[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Boolean[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Boolean[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Byte[][])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Byte[][] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to DateTime[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
DateTime[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to DateTimeOffset[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
DateTimeOffset[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Double[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Double[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Int64[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Int64[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Nullable<Boolean>[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<Boolean>[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Nullable<DateTime>[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<DateTime>[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Nullable<DateTimeOffset>[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<DateTimeOffset>[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Nullable<Double>[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<Double>[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to Nullable<Int64>[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
Nullable<Int64>[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Explicit(ArrayValue to String[])
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 | |
---|---|
Name | Description |
arrayValue | ArrayValue The array value to convert. |
Returns | |
---|---|
Type | Description |
String[] | An array with converted values, or |
Exceptions | |
---|---|
Type | Description |
InvalidOperationException | An element in the array value does not have the expected kind. |
Implicit(ArrayValue[] to 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 | |
---|---|
Name | Description |
values | ArrayValue[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Entity[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Entity[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Key[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Key[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Value[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Value[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(ByteString[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | ByteString[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Timestamp[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Timestamp[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(LatLng[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | LatLng[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Boolean[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Boolean[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Byte[][] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Byte[][] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(DateTime[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | DateTime[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(DateTimeOffset[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | DateTimeOffset[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Double[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Double[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Int64[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Int64[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Nullable<Boolean>[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Nullable<Boolean>[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Nullable<DateTime>[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Nullable<DateTime>[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Nullable<DateTimeOffset>[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Nullable<DateTimeOffset>[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Nullable<Double>[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Nullable<Double>[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(Nullable<Int64>[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | Nullable<Int64>[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |
Implicit(String[] to ArrayValue)
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 | |
---|---|
Name | Description |
values | String[] The array to convert. |
Returns | |
---|---|
Type | Description |
ArrayValue | An ArrayValue with converted values, or |