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.Builder
addValue(boolean first, boolean... other)
Adds the provided boolean values to theListValue
builder.ListValue.Builder
addValue(double first, double... other)
Adds the provided double values to theListValue
builder.ListValue.Builder
addValue(long first, long... other)
Adds the provided long values to theListValue
builder.ListValue.Builder
addValue(Blob first, Blob... other)
Adds the providedBlob
values to theListValue
builder.ListValue.Builder
addValue(FullEntity<?> first, FullEntity<?>... other)
Adds the providedFullEntity
values to theListValue
builder.ListValue.Builder
addValue(Key first, Key... other)
Adds the providedKey
values to theListValue
builder.ListValue.Builder
addValue(LatLng first, LatLng... other)
Adds the providedLatLng
values to theListValue
builder.ListValue.Builder
addValue(Value<?> first, Value<?>... other)
Adds the provided values to theListValue
builder.ListValue.Builder
addValue(com.google.cloud.Timestamp first, com.google.cloud.Timestamp... other)
Adds the providedTimestamp
values to theListValue
builder.ListValue.Builder
addValue(String first, String... other)
Adds the provided string values to theListValue
builder.ListValue
build()
Creates aListValue
object.List<? extends Value<?>>
get()
boolean
getExcludeFromIndexes()
int
getMeaning()
Deprecated.ValueType
getValueType()
B
mergeFrom(P other)
ListValue.Builder
set(List<? extends Value<?>> values)
Sets the list of values of thisListValue
builder tovalues
.B
setExcludeFromIndexes(boolean excludeFromIndexes)
B
setMeaning(int meaning)
Deprecated.
-
-
-
Method Detail
-
addValue
public ListValue.Builder addValue(Value<?> first, Value<?>... other)
Adds the provided values to theListValue
builder.
-
addValue
public ListValue.Builder addValue(String first, String... other)
Adds the provided string values to theListValue
builder.
-
addValue
public ListValue.Builder addValue(long first, long... other)
Adds the provided long values to theListValue
builder.
-
addValue
public ListValue.Builder addValue(double first, double... other)
Adds the provided double values to theListValue
builder.
-
addValue
public ListValue.Builder addValue(boolean first, boolean... other)
Adds the provided boolean values to theListValue
builder.
-
addValue
public ListValue.Builder addValue(com.google.cloud.Timestamp first, com.google.cloud.Timestamp... other)
Adds the providedTimestamp
values to theListValue
builder.
-
addValue
public ListValue.Builder addValue(LatLng first, LatLng... other)
Adds the providedLatLng
values to theListValue
builder.
-
addValue
public ListValue.Builder addValue(Key first, Key... other)
Adds the providedKey
values to theListValue
builder.
-
addValue
public ListValue.Builder addValue(FullEntity<?> first, FullEntity<?>... other)
Adds the providedFullEntity
values to theListValue
builder.
-
addValue
public ListValue.Builder addValue(Blob first, Blob... other)
Adds the providedBlob
values to theListValue
builder.
-
set
public ListValue.Builder set(List<? extends Value<?>> values)
Sets the list of values of thisListValue
builder tovalues
. The provided list is copied.- Specified by:
set
in interfaceValueBuilder<List<? extends Value<?>>,ListValue,ListValue.Builder>
- See Also:
ValueBuilder.set(java.lang.Object)
-
get
public List<? extends Value<?>> get()
- Specified by:
get
in interfaceValueBuilder<List<? extends Value<?>>,ListValue,ListValue.Builder>
-
build
public ListValue build()
Creates aListValue
object.- Specified by:
build
in interfaceValueBuilder<List<? extends Value<?>>,ListValue,ListValue.Builder>
-
getValueType
public ValueType getValueType()
- Specified by:
getValueType
in 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:
mergeFrom
in interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
getExcludeFromIndexes
public boolean getExcludeFromIndexes()
- Specified by:
getExcludeFromIndexes
in 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:
setExcludeFromIndexes
in 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:ValueBuilder
Deprecated. This library preserves the field for backwards compatibility.- Specified by:
getMeaning
in 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:ValueBuilder
Deprecated. This library preserves the field for backwards compatibility.- Specified by:
setMeaning
in interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
-