public static final class Value.Builder extends GeneratedMessageV3.Builder<Value.Builder> implements ValueOrBuilder
A message that can hold any of the supported value types and associated metadata.
Protobuf type google.datastore.v1.Value
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Value.BuilderImplements
ValueOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Value.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Value.Builder |
build()
public Value build()
Type | Description |
Value |
buildPartial()
public Value buildPartial()
Type | Description |
Value |
clear()
public Value.Builder clear()
Type | Description |
Value.Builder |
clearArrayValue()
public Value.Builder clearArrayValue()
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;
Type | Description |
Value.Builder |
clearBlobValue()
public Value.Builder clearBlobValue()
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;
Type | Description |
Value.Builder | This builder for chaining. |
clearBooleanValue()
public Value.Builder clearBooleanValue()
A boolean value.
bool boolean_value = 1;
Type | Description |
Value.Builder | This builder for chaining. |
clearDoubleValue()
public Value.Builder clearDoubleValue()
A double value.
double double_value = 3;
Type | Description |
Value.Builder | This builder for chaining. |
clearEntityValue()
public Value.Builder clearEntityValue()
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;
Type | Description |
Value.Builder |
clearExcludeFromIndexes()
public Value.Builder clearExcludeFromIndexes()
If the value should be excluded from all indexes including those defined explicitly.
bool exclude_from_indexes = 19;
Type | Description |
Value.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Value.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Value.Builder |
clearGeoPointValue()
public Value.Builder clearGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
Type | Description |
Value.Builder |
clearIntegerValue()
public Value.Builder clearIntegerValue()
An integer value.
int64 integer_value = 2;
Type | Description |
Value.Builder | This builder for chaining. |
clearKeyValue()
public Value.Builder clearKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;
Type | Description |
Value.Builder |
clearMeaning()
public Value.Builder clearMeaning()
The meaning
field should only be populated for backwards compatibility.
int32 meaning = 14;
Type | Description |
Value.Builder | This builder for chaining. |
clearNullValue()
public Value.Builder clearNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
Type | Description |
Value.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Value.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Value.Builder |
clearStringValue()
public Value.Builder clearStringValue()
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;
Type | Description |
Value.Builder | This builder for chaining. |
clearTimestampValue()
public Value.Builder clearTimestampValue()
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
Type | Description |
Value.Builder |
clearValueType()
public Value.Builder clearValueType()
Type | Description |
Value.Builder |
clone()
public Value.Builder clone()
Type | Description |
Value.Builder |
getArrayValue()
public ArrayValue getArrayValue()
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;
Type | Description |
ArrayValue | The arrayValue. |
getArrayValueBuilder()
public ArrayValue.Builder getArrayValueBuilder()
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;
Type | Description |
ArrayValue.Builder |
getArrayValueOrBuilder()
public ArrayValueOrBuilder getArrayValueOrBuilder()
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;
Type | Description |
ArrayValueOrBuilder |
getBlobValue()
public ByteString getBlobValue()
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;
Type | Description |
ByteString | The blobValue. |
getBooleanValue()
public boolean getBooleanValue()
A boolean value.
bool boolean_value = 1;
Type | Description |
boolean | The booleanValue. |
getDefaultInstanceForType()
public Value getDefaultInstanceForType()
Type | Description |
Value |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDoubleValue()
public double getDoubleValue()
A double value.
double double_value = 3;
Type | Description |
double | The doubleValue. |
getEntityValue()
public Entity getEntityValue()
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;
Type | Description |
Entity | The entityValue. |
getEntityValueBuilder()
public Entity.Builder getEntityValueBuilder()
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;
Type | Description |
Entity.Builder |
getEntityValueOrBuilder()
public EntityOrBuilder getEntityValueOrBuilder()
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;
Type | Description |
EntityOrBuilder |
getExcludeFromIndexes()
public boolean getExcludeFromIndexes()
If the value should be excluded from all indexes including those defined explicitly.
bool exclude_from_indexes = 19;
Type | Description |
boolean | The excludeFromIndexes. |
getGeoPointValue()
public LatLng getGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
Type | Description |
com.google.type.LatLng | The geoPointValue. |
getGeoPointValueBuilder()
public LatLng.Builder getGeoPointValueBuilder()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
Type | Description |
com.google.type.LatLng.Builder |
getGeoPointValueOrBuilder()
public LatLngOrBuilder getGeoPointValueOrBuilder()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
Type | Description |
com.google.type.LatLngOrBuilder |
getIntegerValue()
public long getIntegerValue()
An integer value.
int64 integer_value = 2;
Type | Description |
long | The integerValue. |
getKeyValue()
public Key getKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;
Type | Description |
Key | The keyValue. |
getKeyValueBuilder()
public Key.Builder getKeyValueBuilder()
A key value.
.google.datastore.v1.Key key_value = 5;
Type | Description |
Key.Builder |
getKeyValueOrBuilder()
public KeyOrBuilder getKeyValueOrBuilder()
A key value.
.google.datastore.v1.Key key_value = 5;
Type | Description |
KeyOrBuilder |
getMeaning()
public int getMeaning()
The meaning
field should only be populated for backwards compatibility.
int32 meaning = 14;
Type | Description |
int | The meaning. |
getNullValue()
public NullValue getNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
Type | Description |
NullValue | The nullValue. |
getNullValueValue()
public int getNullValueValue()
A null value.
.google.protobuf.NullValue null_value = 11;
Type | Description |
int | The enum numeric value on the wire for nullValue. |
getStringValue()
public String getStringValue()
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;
Type | Description |
String | The stringValue. |
getStringValueBytes()
public ByteString getStringValueBytes()
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;
Type | Description |
ByteString | The bytes for stringValue. |
getTimestampValue()
public Timestamp getTimestampValue()
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
Type | Description |
Timestamp | The timestampValue. |
getTimestampValueBuilder()
public Timestamp.Builder getTimestampValueBuilder()
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
Type | Description |
Builder |
getTimestampValueOrBuilder()
public TimestampOrBuilder getTimestampValueOrBuilder()
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
Type | Description |
TimestampOrBuilder |
getValueTypeCase()
public Value.ValueTypeCase getValueTypeCase()
Type | Description |
Value.ValueTypeCase |
hasArrayValue()
public boolean hasArrayValue()
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;
Type | Description |
boolean | Whether the arrayValue field is set. |
hasBlobValue()
public boolean hasBlobValue()
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;
Type | Description |
boolean | Whether the blobValue field is set. |
hasBooleanValue()
public boolean hasBooleanValue()
A boolean value.
bool boolean_value = 1;
Type | Description |
boolean | Whether the booleanValue field is set. |
hasDoubleValue()
public boolean hasDoubleValue()
A double value.
double double_value = 3;
Type | Description |
boolean | Whether the doubleValue field is set. |
hasEntityValue()
public boolean hasEntityValue()
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;
Type | Description |
boolean | Whether the entityValue field is set. |
hasGeoPointValue()
public boolean hasGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
Type | Description |
boolean | Whether the geoPointValue field is set. |
hasIntegerValue()
public boolean hasIntegerValue()
An integer value.
int64 integer_value = 2;
Type | Description |
boolean | Whether the integerValue field is set. |
hasKeyValue()
public boolean hasKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;
Type | Description |
boolean | Whether the keyValue field is set. |
hasNullValue()
public boolean hasNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
Type | Description |
boolean | Whether the nullValue field is set. |
hasStringValue()
public boolean hasStringValue()
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;
Type | Description |
boolean | Whether the stringValue field is set. |
hasTimestampValue()
public boolean hasTimestampValue()
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
Type | Description |
boolean | Whether the timestampValue field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeArrayValue(ArrayValue value)
public Value.Builder mergeArrayValue(ArrayValue value)
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;
Name | Description |
value | ArrayValue |
Type | Description |
Value.Builder |
mergeEntityValue(Entity value)
public Value.Builder mergeEntityValue(Entity value)
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;
Name | Description |
value | Entity |
Type | Description |
Value.Builder |
mergeFrom(Value other)
public Value.Builder mergeFrom(Value other)
Name | Description |
other | Value |
Type | Description |
Value.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Value.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Value.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Value.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Value.Builder |
mergeGeoPointValue(LatLng value)
public Value.Builder mergeGeoPointValue(LatLng value)
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
Name | Description |
value | com.google.type.LatLng |
Type | Description |
Value.Builder |
mergeKeyValue(Key value)
public Value.Builder mergeKeyValue(Key value)
A key value.
.google.datastore.v1.Key key_value = 5;
Name | Description |
value | Key |
Type | Description |
Value.Builder |
mergeTimestampValue(Timestamp value)
public Value.Builder mergeTimestampValue(Timestamp value)
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
Name | Description |
value | Timestamp |
Type | Description |
Value.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Value.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Value.Builder |
setArrayValue(ArrayValue value)
public Value.Builder setArrayValue(ArrayValue value)
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;
Name | Description |
value | ArrayValue |
Type | Description |
Value.Builder |
setArrayValue(ArrayValue.Builder builderForValue)
public Value.Builder setArrayValue(ArrayValue.Builder builderForValue)
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;
Name | Description |
builderForValue | ArrayValue.Builder |
Type | Description |
Value.Builder |
setBlobValue(ByteString value)
public Value.Builder setBlobValue(ByteString value)
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;
Name | Description |
value | ByteString The blobValue to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setBooleanValue(boolean value)
public Value.Builder setBooleanValue(boolean value)
A boolean value.
bool boolean_value = 1;
Name | Description |
value | boolean The booleanValue to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setDoubleValue(double value)
public Value.Builder setDoubleValue(double value)
A double value.
double double_value = 3;
Name | Description |
value | double The doubleValue to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setEntityValue(Entity value)
public Value.Builder setEntityValue(Entity value)
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;
Name | Description |
value | Entity |
Type | Description |
Value.Builder |
setEntityValue(Entity.Builder builderForValue)
public Value.Builder setEntityValue(Entity.Builder builderForValue)
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;
Name | Description |
builderForValue | Entity.Builder |
Type | Description |
Value.Builder |
setExcludeFromIndexes(boolean value)
public Value.Builder setExcludeFromIndexes(boolean value)
If the value should be excluded from all indexes including those defined explicitly.
bool exclude_from_indexes = 19;
Name | Description |
value | boolean The excludeFromIndexes to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Value.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Value.Builder |
setGeoPointValue(LatLng value)
public Value.Builder setGeoPointValue(LatLng value)
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
Name | Description |
value | com.google.type.LatLng |
Type | Description |
Value.Builder |
setGeoPointValue(LatLng.Builder builderForValue)
public Value.Builder setGeoPointValue(LatLng.Builder builderForValue)
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
Name | Description |
builderForValue | com.google.type.LatLng.Builder |
Type | Description |
Value.Builder |
setIntegerValue(long value)
public Value.Builder setIntegerValue(long value)
An integer value.
int64 integer_value = 2;
Name | Description |
value | long The integerValue to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setKeyValue(Key value)
public Value.Builder setKeyValue(Key value)
A key value.
.google.datastore.v1.Key key_value = 5;
Name | Description |
value | Key |
Type | Description |
Value.Builder |
setKeyValue(Key.Builder builderForValue)
public Value.Builder setKeyValue(Key.Builder builderForValue)
A key value.
.google.datastore.v1.Key key_value = 5;
Name | Description |
builderForValue | Key.Builder |
Type | Description |
Value.Builder |
setMeaning(int value)
public Value.Builder setMeaning(int value)
The meaning
field should only be populated for backwards compatibility.
int32 meaning = 14;
Name | Description |
value | int The meaning to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setNullValue(NullValue value)
public Value.Builder setNullValue(NullValue value)
A null value.
.google.protobuf.NullValue null_value = 11;
Name | Description |
value | NullValue The nullValue to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setNullValueValue(int value)
public Value.Builder setNullValueValue(int value)
A null value.
.google.protobuf.NullValue null_value = 11;
Name | Description |
value | int The enum numeric value on the wire for nullValue to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Value.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Value.Builder |
setStringValue(String value)
public Value.Builder setStringValue(String value)
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;
Name | Description |
value | String The stringValue to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setStringValueBytes(ByteString value)
public Value.Builder setStringValueBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for stringValue to set. |
Type | Description |
Value.Builder | This builder for chaining. |
setTimestampValue(Timestamp value)
public Value.Builder setTimestampValue(Timestamp value)
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
Name | Description |
value | Timestamp |
Type | Description |
Value.Builder |
setTimestampValue(Timestamp.Builder builderForValue)
public Value.Builder setTimestampValue(Timestamp.Builder builderForValue)
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
Name | Description |
builderForValue | Builder |
Type | Description |
Value.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Value.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Value.Builder |