publicfinalclass ValueextendsGeneratedMessageV3implementsValueOrBuilder
A message that can hold any of the supported value types and associated
metadata.
Protobuf type google.datastore.v1.Value
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ARRAY_VALUE_FIELD_NUMBER
publicstaticfinalintARRAY_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
BLOB_VALUE_FIELD_NUMBER
publicstaticfinalintBLOB_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
BOOLEAN_VALUE_FIELD_NUMBER
publicstaticfinalintBOOLEAN_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
DOUBLE_VALUE_FIELD_NUMBER
publicstaticfinalintDOUBLE_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ENTITY_VALUE_FIELD_NUMBER
publicstaticfinalintENTITY_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
EXCLUDE_FROM_INDEXES_FIELD_NUMBER
publicstaticfinalintEXCLUDE_FROM_INDEXES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
GEO_POINT_VALUE_FIELD_NUMBER
publicstaticfinalintGEO_POINT_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
INTEGER_VALUE_FIELD_NUMBER
publicstaticfinalintINTEGER_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
KEY_VALUE_FIELD_NUMBER
publicstaticfinalintKEY_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MEANING_FIELD_NUMBER
publicstaticfinalintMEANING_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
NULL_VALUE_FIELD_NUMBER
publicstaticfinalintNULL_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
STRING_VALUE_FIELD_NUMBER
publicstaticfinalintSTRING_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TIMESTAMP_VALUE_FIELD_NUMBER
publicstaticfinalintTIMESTAMP_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticValuegetDefaultInstance()
| Returns |
| Type |
Description |
Value |
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticValue.BuildernewBuilder()
newBuilder(Value prototype)
publicstaticValue.BuildernewBuilder(Valueprototype)
| Parameter |
| Name |
Description |
prototype |
Value
|
publicstaticValueparseDelimitedFrom(InputStreaminput)
| Returns |
| Type |
Description |
Value |
publicstaticValueparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Value |
parseFrom(byte[] data)
publicstaticValueparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Value |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticValueparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Value |
parseFrom(ByteString data)
publicstaticValueparseFrom(ByteStringdata)
| Returns |
| Type |
Description |
Value |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticValueparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Value |
publicstaticValueparseFrom(CodedInputStreaminput)
| Returns |
| Type |
Description |
Value |
publicstaticValueparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Value |
publicstaticValueparseFrom(InputStreaminput)
| Returns |
| Type |
Description |
Value |
publicstaticValueparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Value |
parseFrom(ByteBuffer data)
publicstaticValueparseFrom(ByteBufferdata)
| Returns |
| Type |
Description |
Value |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticValueparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Value |
parser()
publicstaticParser<Value>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getArrayValue()
publicArrayValuegetArrayValue()
An array value.
Cannot contain another array value.
A Value instance that sets field array_value must not set fields
meaning or exclude_from_indexes.
.google.datastore.v1.ArrayValue array_value = 9;
| Returns |
| Type |
Description |
ArrayValue |
The arrayValue.
|
getArrayValueOrBuilder()
publicArrayValueOrBuildergetArrayValueOrBuilder()
An array value.
Cannot contain another array value.
A Value instance that sets field array_value must not set fields
meaning or exclude_from_indexes.
.google.datastore.v1.ArrayValue array_value = 9;
getBlobValue()
publicByteStringgetBlobValue()
A blob value.
May have at most 1,000,000 bytes.
When exclude_from_indexes is false, may have at most 1500 bytes.
In JSON requests, must be base64-encoded.
bytes blob_value = 18;
| Returns |
| Type |
Description |
ByteString |
The blobValue.
|
getBooleanValue()
publicbooleangetBooleanValue()
A boolean value.
bool boolean_value = 1;
| Returns |
| Type |
Description |
boolean |
The booleanValue.
|
getDefaultInstanceForType()
publicValuegetDefaultInstanceForType()
| Returns |
| Type |
Description |
Value |
getDoubleValue()
publicdoublegetDoubleValue()
A double value.
double double_value = 3;
| Returns |
| Type |
Description |
double |
The doubleValue.
|
getEntityValue()
publicEntitygetEntityValue()
An entity value.
- May have no key.
- May have a key with an incomplete key path.
- May have a reserved/read-only key.
.google.datastore.v1.Entity entity_value = 6;
| Returns |
| Type |
Description |
Entity |
The entityValue.
|
getEntityValueOrBuilder()
publicEntityOrBuildergetEntityValueOrBuilder()
An entity value.
- May have no key.
- May have a key with an incomplete key path.
- May have a reserved/read-only key.
.google.datastore.v1.Entity entity_value = 6;
getExcludeFromIndexes()
publicbooleangetExcludeFromIndexes()
If the value should be excluded from all indexes including those defined
explicitly.
bool exclude_from_indexes = 19;
| Returns |
| Type |
Description |
boolean |
The excludeFromIndexes.
|
getGeoPointValue()
publicLatLnggetGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
| Returns |
| Type |
Description |
com.google.type.LatLng |
The geoPointValue.
|
getGeoPointValueOrBuilder()
publicLatLngOrBuildergetGeoPointValueOrBuilder()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
| Returns |
| Type |
Description |
com.google.type.LatLngOrBuilder |
getIntegerValue()
publiclonggetIntegerValue()
An integer value.
int64 integer_value = 2;
| Returns |
| Type |
Description |
long |
The integerValue.
|
getKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;
| Returns |
| Type |
Description |
Key |
The keyValue.
|
getKeyValueOrBuilder()
publicKeyOrBuildergetKeyValueOrBuilder()
A key value.
.google.datastore.v1.Key key_value = 5;
getMeaning()
The meaning field should only be populated for backwards compatibility.
int32 meaning = 14;
| Returns |
| Type |
Description |
int |
The meaning.
|
getNullValue()
publicNullValuegetNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
| Returns |
| Type |
Description |
NullValue |
The nullValue.
|
getNullValueValue()
publicintgetNullValueValue()
A null value.
.google.protobuf.NullValue null_value = 11;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for nullValue.
|
getParserForType()
publicParser<Value>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getStringValue()
publicStringgetStringValue()
A UTF-8 encoded string value.
When exclude_from_indexes is false (it is indexed) , may have at most
1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
string string_value = 17;
| Returns |
| Type |
Description |
String |
The stringValue.
|
getStringValueBytes()
publicByteStringgetStringValueBytes()
A UTF-8 encoded string value.
When exclude_from_indexes is false (it is indexed) , may have at most
1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
string string_value = 17;
| Returns |
| Type |
Description |
ByteString |
The bytes for stringValue.
|
getTimestampValue()
publicTimestampgetTimestampValue()
A timestamp value.
When stored in the Datastore, precise only to microseconds;
any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
| Returns |
| Type |
Description |
Timestamp |
The timestampValue.
|
getTimestampValueOrBuilder()
publicTimestampOrBuildergetTimestampValueOrBuilder()
A timestamp value.
When stored in the Datastore, precise only to microseconds;
any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
getValueTypeCase()
publicValue.ValueTypeCasegetValueTypeCase()
hasArrayValue()
publicbooleanhasArrayValue()
An array value.
Cannot contain another array value.
A Value instance that sets field array_value must not set fields
meaning or exclude_from_indexes.
.google.datastore.v1.ArrayValue array_value = 9;
| Returns |
| Type |
Description |
boolean |
Whether the arrayValue field is set.
|
hasBlobValue()
publicbooleanhasBlobValue()
A blob value.
May have at most 1,000,000 bytes.
When exclude_from_indexes is false, may have at most 1500 bytes.
In JSON requests, must be base64-encoded.
bytes blob_value = 18;
| Returns |
| Type |
Description |
boolean |
Whether the blobValue field is set.
|
hasBooleanValue()
publicbooleanhasBooleanValue()
A boolean value.
bool boolean_value = 1;
| Returns |
| Type |
Description |
boolean |
Whether the booleanValue field is set.
|
hasDoubleValue()
publicbooleanhasDoubleValue()
A double value.
double double_value = 3;
| Returns |
| Type |
Description |
boolean |
Whether the doubleValue field is set.
|
hasEntityValue()
publicbooleanhasEntityValue()
An entity value.
- May have no key.
- May have a key with an incomplete key path.
- May have a reserved/read-only key.
.google.datastore.v1.Entity entity_value = 6;
| Returns |
| Type |
Description |
boolean |
Whether the entityValue field is set.
|
hasGeoPointValue()
publicbooleanhasGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
| Returns |
| Type |
Description |
boolean |
Whether the geoPointValue field is set.
|
hasIntegerValue()
publicbooleanhasIntegerValue()
An integer value.
int64 integer_value = 2;
| Returns |
| Type |
Description |
boolean |
Whether the integerValue field is set.
|
hasKeyValue()
publicbooleanhasKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;
| Returns |
| Type |
Description |
boolean |
Whether the keyValue field is set.
|
hasNullValue()
publicbooleanhasNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
| Returns |
| Type |
Description |
boolean |
Whether the nullValue field is set.
|
hasStringValue()
publicbooleanhasStringValue()
A UTF-8 encoded string value.
When exclude_from_indexes is false (it is indexed) , may have at most
1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
string string_value = 17;
| Returns |
| Type |
Description |
boolean |
Whether the stringValue field is set.
|
hasTimestampValue()
publicbooleanhasTimestampValue()
A timestamp value.
When stored in the Datastore, precise only to microseconds;
any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
| Returns |
| Type |
Description |
boolean |
Whether the timestampValue field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicValue.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedValue.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicValue.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides