Class Value<V> (2.17.6)

public abstract class Value<V> implements Serializable

Base class for all Google Cloud Datastore value types. All values must be associated with a non-null content (except NullValue). All values are immutable (including their content). To edit (a copy) use #toBuilder(). Unsupported value (deprecated or unrecognized) would be represented by RawValue.

Inheritance

Object > Value<V>

Implements

Serializable

Type Parameter

NameDescription
V

Static Methods

fromPb(Value proto)

public static Value<?> fromPb(Value proto)
Parameter
NameDescription
protoValue
Returns
TypeDescription
Value<?>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

excludeFromIndexes()

public final boolean excludeFromIndexes()

Returns whether this value should be excluded from indexes.

Returns
TypeDescription
boolean

get()

public final V get()
Returns
TypeDescription
V

getType()

public final ValueType getType()

Returns the type of this value.

Returns
TypeDescription
ValueType

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public abstract ValueBuilder<?,?,?> toBuilder()
Returns
TypeDescription
ValueBuilder<?,?,?>

toString()

public String toString()
Returns
TypeDescription
String
Overrides