# Class ListValue.Builder (3.1.0)

3.1.0 (latest) 2.40.0 2.37.0 2.36.0 2.34.0 2.33.3 2.32.3 2.31.4 2.30.0 2.29.1 2.28.2 2.27.1 2.26.4 2.25.2 2.24.3 2.23.0 2.22.0 2.21.3 2.20.2 2.19.2 2.18.5 2.17.6

    public static final class ListValue.Builder extends Value.BaseBuilder<List<? extends Value<?>>,ListValue,ListValue.Builder>

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> com.google.cloud.datastore.Value.BaseBuilder \> ListValue.Builder

## Inherited Members

com.google.cloud.datastore.Value.BaseBuilder.build() com.google.cloud.datastore.Value.BaseBuilder.get() com.google.cloud.datastore.Value.BaseBuilder.getExcludeFromIndexes() com.google.cloud.datastore.Value.BaseBuilder.getMeaning() com.google.cloud.datastore.Value.BaseBuilder.getValueType() com.google.cloud.datastore.Value.BaseBuilder.mergeFrom(P) com.google.cloud.datastore.Value.BaseBuilder.set(V) com.google.cloud.datastore.Value.BaseBuilder.setExcludeFromIndexes(boolean) com.google.cloud.datastore.Value.BaseBuilder.setMeaning(int) [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Methods

### addValue(boolean first, boolean\[\] other)

    public ListValue.Builder addValue(boolean first, boolean[] other)

Adds the provided boolean values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `other` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### addValue(Timestamp first, Timestamp\[\] other)

    public ListValue.Builder addValue(Timestamp first, Timestamp[] other)

Adds the provided `Timestamp` values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `com.google.cloud.Timestamp` |
| `other` | `com.google.cloud.Timestamp[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### addValue(Blob first, Blob\[\] other)

    public ListValue.Builder addValue(Blob first, Blob[] other)

Adds the provided `Blob` values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Blob` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Blob[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### addValue(FullEntity\<?\> first, FullEntity\<?\>\[\] other)

    public ListValue.Builder addValue(FullEntity<?> first, FullEntity<?>[] other)

Adds the provided `FullEntity` values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.FullEntity<?>` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.FullEntity<?>[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### addValue(Key first, Key\[\] other)

    public ListValue.Builder addValue(Key first, Key[] other)

Adds the provided `Key` values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Key` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Key[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### addValue(LatLng first, LatLng\[\] other)

    public ListValue.Builder addValue(LatLng first, LatLng[] other)

Adds the provided `LatLng` values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.LatLng` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.LatLng[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### addValue(Value\<?\> first, Value\<?\>\[\] other)

    public ListValue.Builder addValue(Value<?> first, Value<?>[] other)

Adds the provided values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value<?>` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value<?>[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### addValue(double first, double\[\] other)

    public ListValue.Builder addValue(double first, double[] other)

Adds the provided double values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `other` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### addValue(String first, String\[\] other)

    public ListValue.Builder addValue(String first, String[] other)

Adds the provided string values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `other` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### addValue(long first, long\[\] other)

    public ListValue.Builder addValue(long first, long[] other)

Adds the provided long values to the `ListValue` builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `other` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### build()

    public ListValue build()

Creates a `ListValue` object.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

**Overrides** com.google.cloud.datastore.Value.BaseBuilder.build()

### get()

    public List<? extends Value<?>> get()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.datastore.Value<?>>` |   |

**Overrides** com.google.cloud.datastore.Value.BaseBuilder.get()

### set(List\<? extends Value\<?\>\> values)

    public ListValue.Builder set(List<? extends Value<?>> values)

Sets the list of values of this `ListValue` builder to `values`. The provided
list is copied.
See Also: com.google.cloud.datastore.Value.BaseBuilder#set(java.lang.Object)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.datastore.Value<?>>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

**Overrides** com.google.cloud.datastore.Value.BaseBuilder.set(V)