Package com.google.cloud.datastore
Class KeyValue.Builder
- java.lang.Object
-
- com.google.cloud.datastore.KeyValue.Builder
-
- All Implemented Interfaces:
ValueBuilder<Key,KeyValue,KeyValue.Builder>
- Enclosing class:
- KeyValue
public static final class KeyValue.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyValue
build()
V
get()
boolean
getExcludeFromIndexes()
int
getMeaning()
Deprecated.ValueType
getValueType()
B
mergeFrom(P other)
B
set(V value)
B
setExcludeFromIndexes(boolean excludeFromIndexes)
B
setMeaning(int meaning)
Deprecated.
-
-
-
Method Detail
-
build
public KeyValue build()
- Specified by:
build
in interfaceValueBuilder<Key,KeyValue,KeyValue.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>>
-
get
public V get()
- Specified by:
get
in interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
set
public B set(V value)
- Specified by:
set
in interfaceValueBuilder<V,P extends Value<V>,B extends com.google.cloud.datastore.Value.BaseBuilder<V,P,B>>
-
-