Class Value<V> (2.30.0)

publicabstractclass Value<V>implementsSerializable

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

Name Description
V

Static Methods

fromPb(Value proto)

publicstaticValue<?>fromPb(Valueproto)
Parameter
Name Description
proto Value
Returns
Type Description
Value<?>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

excludeFromIndexes()

publicfinalbooleanexcludeFromIndexes()

Returns whether this value should be excluded from indexes.

Returns
Type Description
boolean

get()

publicfinalVget()
Returns
Type Description
V

getType()

publicfinalValueTypegetType()

Returns the type of this value.

Returns
Type Description
ValueType

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

toBuilder()

publicabstractValueBuilder<?,?,?>toBuilder()
Returns
Type Description
ValueBuilder<?,?,?>

toString()

publicStringtoString()
Returns
Type Description
String
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.