Package com.google.cloud.datastore
Class ListValue.Builder
- java.lang.Object
-
- com.google.cloud.datastore.ListValue.Builder
-
- All Implemented Interfaces:
ValueBuilder<List<? extends Value<?>>,ListValue,ListValue.Builder>
- Enclosing class:
- ListValue
public static final class ListValue.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListValue.BuilderaddValue(boolean first, boolean... other)Adds the provided boolean values to theListValuebuilder.ListValue.BuilderaddValue(double first, double... other)Adds the provided double values to theListValuebuilder.ListValue.BuilderaddValue(long first, long... other)Adds the provided long values to theListValuebuilder.ListValue.BuilderaddValue(Blob first, Blob... other)Adds the providedBlobvalues to theListValuebuilder.ListValue.BuilderaddValue(FullEntity<?> first, FullEntity<?>... other)Adds the providedFullEntityvalues to theListValuebuilder.ListValue.BuilderaddValue(Key first, Key... other)Adds the providedKeyvalues to theListValuebuilder.ListValue.BuilderaddValue(LatLng first, LatLng... other)Adds the providedLatLngvalues to theListValuebuilder.ListValue.BuilderaddValue(Value<?> first, Value<?>... other)Adds the provided values to theListValuebuilder.ListValue.BuilderaddValue(com.google.cloud.Timestamp first, com.google.cloud.Timestamp... other)Adds the providedTimestampvalues to theListValuebuilder.ListValue.BuilderaddValue(String first, String... other)Adds the provided string values to theListValuebuilder.ListValuebuild()Creates aListValueobject.List<? extends Value<?>>get()booleangetExcludeFromIndexes()intgetMeaning()Deprecated.ValueTypegetValueType()BmergeFrom(P other)ListValue.Builderset(List<? extends Value<?>> values)Sets the list of values of thisListValuebuilder tovalues.BsetExcludeFromIndexes(boolean excludeFromIndexes)BsetMeaning(int meaning)Deprecated.
-
-
-
Method Detail
-
addValue
public ListValue.Builder addValue(Value<?> first, Value<?>... other)
Adds the provided values to theListValuebuilder.
-
addValue
public ListValue.Builder addValue(String first, String... other)
Adds the provided string values to theListValuebuilder.
-
addValue
public ListValue.Builder addValue(long first, long... other)
Adds the provided long values to theListValuebuilder.
-
addValue
public ListValue.Builder addValue(double first, double... other)
Adds the provided double values to theListValuebuilder.
-
addValue
public ListValue.Builder addValue(boolean first, boolean... other)
Adds the provided boolean values to theListValuebuilder.
-
addValue
public ListValue.Builder addValue(com.google.cloud.Timestamp first, com.google.cloud.Timestamp... other)
Adds the providedTimestampvalues to theListValuebuilder.
-
addValue
public ListValue.Builder addValue(LatLng first, LatLng... other)
Adds the providedLatLngvalues to theListValuebuilder.
-
addValue
public ListValue.Builder addValue(Key first, Key... other)
Adds the providedKeyvalues to theListValuebuilder.
-
addValue
public ListValue.Builder addValue(FullEntity<?> first, FullEntity<?>... other)
Adds the providedFullEntityvalues to theListValuebuilder.
-
addValue
public ListValue.Builder addValue(Blob first, Blob... other)
Adds the providedBlobvalues to theListValuebuilder.
-
set
public ListValue.Builder set(List<? extends Value<?>> values)
Sets the list of values of thisListValuebuilder tovalues. The provided list is copied.- Specified by:
setin interfaceValueBuilder<List<? extends Value<?>>,ListValue,ListValue.Builder>- See Also:
ValueBuilder.set(java.lang.Object)
-
get
public List<? extends Value<?>> get()
- Specified by:
getin interfaceValueBuilder<List<? extends Value<?>>,ListValue,ListValue.Builder>
-
build
public ListValue build()
Creates aListValueobject.- Specified by:
buildin interfaceValueBuilder<List<? extends Value<?>>,ListValue,ListValue.Builder>
-
getValueType
public ValueType getValueType()
- Specified by:
getValueTypein interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
mergeFrom
public B mergeFrom(P other)
- Specified by:
mergeFromin interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
getExcludeFromIndexes
public boolean getExcludeFromIndexes()
- Specified by:
getExcludeFromIndexesin interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
setExcludeFromIndexes
public B setExcludeFromIndexes(boolean excludeFromIndexes)
- Specified by:
setExcludeFromIndexesin interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
getMeaning
public int getMeaning()
Description copied from interface:ValueBuilderDeprecated. This library preserves the field for backwards compatibility.- Specified by:
getMeaningin interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
setMeaning
public B setMeaning(int meaning)
Description copied from interface:ValueBuilderDeprecated. This library preserves the field for backwards compatibility.- Specified by:
setMeaningin interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
-