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)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class ListValue.Builder (2.31.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.31.2 (latest)](/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder)\n- [2.31.1](/java/docs/reference/google-cloud-datastore/2.31.1/com.google.cloud.datastore.ListValue.Builder)\n- [2.30.0](/java/docs/reference/google-cloud-datastore/2.30.0/com.google.cloud.datastore.ListValue.Builder)\n- [2.29.1](/java/docs/reference/google-cloud-datastore/2.29.1/com.google.cloud.datastore.ListValue.Builder)\n- [2.28.2](/java/docs/reference/google-cloud-datastore/2.28.2/com.google.cloud.datastore.ListValue.Builder)\n- [2.27.1](/java/docs/reference/google-cloud-datastore/2.27.1/com.google.cloud.datastore.ListValue.Builder)\n- [2.26.4](/java/docs/reference/google-cloud-datastore/2.26.4/com.google.cloud.datastore.ListValue.Builder)\n- [2.25.2](/java/docs/reference/google-cloud-datastore/2.25.2/com.google.cloud.datastore.ListValue.Builder)\n- [2.24.3](/java/docs/reference/google-cloud-datastore/2.24.3/com.google.cloud.datastore.ListValue.Builder)\n- [2.23.0](/java/docs/reference/google-cloud-datastore/2.23.0/com.google.cloud.datastore.ListValue.Builder)\n- [2.22.0](/java/docs/reference/google-cloud-datastore/2.22.0/com.google.cloud.datastore.ListValue.Builder)\n- [2.21.3](/java/docs/reference/google-cloud-datastore/2.21.3/com.google.cloud.datastore.ListValue.Builder)\n- [2.20.2](/java/docs/reference/google-cloud-datastore/2.20.2/com.google.cloud.datastore.ListValue.Builder)\n- [2.19.2](/java/docs/reference/google-cloud-datastore/2.19.2/com.google.cloud.datastore.ListValue.Builder)\n- [2.18.5](/java/docs/reference/google-cloud-datastore/2.18.5/com.google.cloud.datastore.ListValue.Builder)\n- [2.17.6](/java/docs/reference/google-cloud-datastore/2.17.6/com.google.cloud.datastore.ListValue.Builder) \n\n public static final class ListValue.Builder extends Value.BaseBuilder\u003cList\u003c? extends Value\u003c?\u003e\u003e,ListValue,ListValue.Builder\u003e\n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e com.google.cloud.datastore.Value.BaseBuilder \\\u003e ListValue.Builder \n\nInherited Members\n-----------------\n\ncom.google.cloud.datastore.Value.BaseBuilder.build() \ncom.google.cloud.datastore.Value.BaseBuilder.get() \ncom.google.cloud.datastore.Value.BaseBuilder.getExcludeFromIndexes() \ncom.google.cloud.datastore.Value.BaseBuilder.getMeaning() \ncom.google.cloud.datastore.Value.BaseBuilder.getValueType() \ncom.google.cloud.datastore.Value.BaseBuilder.mergeFrom(P) \ncom.google.cloud.datastore.Value.BaseBuilder.set(V) \ncom.google.cloud.datastore.Value.BaseBuilder.setExcludeFromIndexes(boolean) \ncom.google.cloud.datastore.Value.BaseBuilder.setMeaning(int) \n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nMethods\n-------\n\n### addValue(boolean first, boolean\\[\\] other)\n\n public ListValue.Builder addValue(boolean first, boolean[] other)\n\nAdds the provided boolean values to the `ListValue` builder.\n\n### addValue(Timestamp first, Timestamp\\[\\] other)\n\n public ListValue.Builder addValue(Timestamp first, Timestamp[] other)\n\nAdds the provided `Timestamp` values to the `ListValue` builder.\n\n### addValue(Blob first, Blob\\[\\] other)\n\n public ListValue.Builder addValue(Blob first, Blob[] other)\n\nAdds the provided `Blob` values to the `ListValue` builder.\n\n### addValue(FullEntity\\\u003c?\\\u003e first, FullEntity\\\u003c?\\\u003e\\[\\] other)\n\n public ListValue.Builder addValue(FullEntity\u003c?\u003e first, FullEntity\u003c?\u003e[] other)\n\nAdds the provided `FullEntity` values to the `ListValue` builder.\n\n### addValue(Key first, Key\\[\\] other)\n\n public ListValue.Builder addValue(Key first, Key[] other)\n\nAdds the provided `Key` values to the `ListValue` builder.\n\n### addValue(LatLng first, LatLng\\[\\] other)\n\n public ListValue.Builder addValue(LatLng first, LatLng[] other)\n\nAdds the provided `LatLng` values to the `ListValue` builder.\n\n### addValue(Value\\\u003c?\\\u003e first, Value\\\u003c?\\\u003e\\[\\] other)\n\n public ListValue.Builder addValue(Value\u003c?\u003e first, Value\u003c?\u003e[] other)\n\nAdds the provided values to the `ListValue` builder.\n\n### addValue(double first, double\\[\\] other)\n\n public ListValue.Builder addValue(double first, double[] other)\n\nAdds the provided double values to the `ListValue` builder.\n\n### addValue(String first, String\\[\\] other)\n\n public ListValue.Builder addValue(String first, String[] other)\n\nAdds the provided string values to the `ListValue` builder.\n\n### addValue(long first, long\\[\\] other)\n\n public ListValue.Builder addValue(long first, long[] other)\n\nAdds the provided long values to the `ListValue` builder.\n\n### build()\n\n public ListValue build()\n\nCreates a `ListValue` object.\n\n**Overrides** \ncom.google.cloud.datastore.Value.BaseBuilder.build()\n\n### get()\n\n public List\u003c? extends Value\u003c?\u003e\u003e get()\n\n**Overrides** \ncom.google.cloud.datastore.Value.BaseBuilder.get()\n\n### set(List\\\u003c? extends Value\\\u003c?\\\u003e\\\u003e values)\n\n public ListValue.Builder set(List\u003c? extends Value\u003c?\u003e\u003e values)\n\nSets the list of values of this `ListValue` builder to `values`. The provided\nlist is copied.\nSee Also: com.google.cloud.datastore.Value.BaseBuilder#set(java.lang.Object)\n\n**Overrides** \ncom.google.cloud.datastore.Value.BaseBuilder.set(V)"]]