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| Modifier and Type | Method and Description |
|---|---|
Value.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Value |
build() |
Value |
buildPartial() |
Value.Builder |
clear() |
Value.Builder |
clearArrayValue()
An array value.
|
Value.Builder |
clearBlobValue()
A blob value.
|
Value.Builder |
clearBooleanValue()
A boolean value.
|
Value.Builder |
clearDoubleValue()
A double value.
|
Value.Builder |
clearEntityValue()
An entity value.
|
Value.Builder |
clearExcludeFromIndexes()
If the value should be excluded from all indexes including those defined
explicitly.
|
Value.Builder |
clearField(Descriptors.FieldDescriptor field) |
Value.Builder |
clearGeoPointValue()
A geo point value representing a point on the surface of Earth.
|
Value.Builder |
clearIntegerValue()
An integer value.
|
Value.Builder |
clearKeyValue()
A key value.
|
Value.Builder |
clearMeaning()
The `meaning` field should only be populated for backwards compatibility.
|
Value.Builder |
clearNullValue()
A null value.
|
Value.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Value.Builder |
clearStringValue()
A UTF-8 encoded string value.
|
Value.Builder |
clearTimestampValue()
A timestamp value.
|
Value.Builder |
clearValueType() |
Value.Builder |
clone() |
ArrayValue |
getArrayValue()
An array value.
|
ArrayValue.Builder |
getArrayValueBuilder()
An array value.
|
ArrayValueOrBuilder |
getArrayValueOrBuilder()
An array value.
|
ByteString |
getBlobValue()
A blob value.
|
boolean |
getBooleanValue()
A boolean value.
|
Value |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
double |
getDoubleValue()
A double value.
|
Entity |
getEntityValue()
An entity value.
|
Entity.Builder |
getEntityValueBuilder()
An entity value.
|
EntityOrBuilder |
getEntityValueOrBuilder()
An entity value.
|
boolean |
getExcludeFromIndexes()
If the value should be excluded from all indexes including those defined
explicitly.
|
LatLng |
getGeoPointValue()
A geo point value representing a point on the surface of Earth.
|
LatLng.Builder |
getGeoPointValueBuilder()
A geo point value representing a point on the surface of Earth.
|
LatLngOrBuilder |
getGeoPointValueOrBuilder()
A geo point value representing a point on the surface of Earth.
|
long |
getIntegerValue()
An integer value.
|
Key |
getKeyValue()
A key value.
|
Key.Builder |
getKeyValueBuilder()
A key value.
|
KeyOrBuilder |
getKeyValueOrBuilder()
A key value.
|
int |
getMeaning()
The `meaning` field should only be populated for backwards compatibility.
|
NullValue |
getNullValue()
A null value.
|
int |
getNullValueValue()
A null value.
|
java.lang.String |
getStringValue()
A UTF-8 encoded string value.
|
ByteString |
getStringValueBytes()
A UTF-8 encoded string value.
|
Timestamp |
getTimestampValue()
A timestamp value.
|
Timestamp.Builder |
getTimestampValueBuilder()
A timestamp value.
|
TimestampOrBuilder |
getTimestampValueOrBuilder()
A timestamp value.
|
Value.ValueTypeCase |
getValueTypeCase() |
boolean |
hasArrayValue()
An array value.
|
boolean |
hasEntityValue()
An entity value.
|
boolean |
hasGeoPointValue()
A geo point value representing a point on the surface of Earth.
|
boolean |
hasKeyValue()
A key value.
|
boolean |
hasTimestampValue()
A timestamp value.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Value.Builder |
mergeArrayValue(ArrayValue value)
An array value.
|
Value.Builder |
mergeEntityValue(Entity value)
An entity value.
|
Value.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Value.Builder |
mergeFrom(Message other) |
Value.Builder |
mergeFrom(Value other) |
Value.Builder |
mergeGeoPointValue(LatLng value)
A geo point value representing a point on the surface of Earth.
|
Value.Builder |
mergeKeyValue(Key value)
A key value.
|
Value.Builder |
mergeTimestampValue(Timestamp value)
A timestamp value.
|
Value.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Value.Builder |
setArrayValue(ArrayValue.Builder builderForValue)
An array value.
|
Value.Builder |
setArrayValue(ArrayValue value)
An array value.
|
Value.Builder |
setBlobValue(ByteString value)
A blob value.
|
Value.Builder |
setBooleanValue(boolean value)
A boolean value.
|
Value.Builder |
setDoubleValue(double value)
A double value.
|
Value.Builder |
setEntityValue(Entity.Builder builderForValue)
An entity value.
|
Value.Builder |
setEntityValue(Entity value)
An entity value.
|
Value.Builder |
setExcludeFromIndexes(boolean value)
If the value should be excluded from all indexes including those defined
explicitly.
|
Value.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Value.Builder |
setGeoPointValue(LatLng.Builder builderForValue)
A geo point value representing a point on the surface of Earth.
|
Value.Builder |
setGeoPointValue(LatLng value)
A geo point value representing a point on the surface of Earth.
|
Value.Builder |
setIntegerValue(long value)
An integer value.
|
Value.Builder |
setKeyValue(Key.Builder builderForValue)
A key value.
|
Value.Builder |
setKeyValue(Key value)
A key value.
|
Value.Builder |
setMeaning(int value)
The `meaning` field should only be populated for backwards compatibility.
|
Value.Builder |
setNullValue(NullValue value)
A null value.
|
Value.Builder |
setNullValueValue(int value)
A null value.
|
Value.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Value.Builder |
setStringValue(java.lang.String value)
A UTF-8 encoded string value.
|
Value.Builder |
setStringValueBytes(ByteString value)
A UTF-8 encoded string value.
|
Value.Builder |
setTimestampValue(Timestamp.Builder builderForValue)
A timestamp value.
|
Value.Builder |
setTimestampValue(Timestamp value)
A timestamp value.
|
Value.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Value.Builder>public Value.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Value.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Value.Builder>public Value getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Value build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Value buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Value.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Value.Builder>public Value.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Value.Builder>public Value.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Value.Builder>public Value.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Value.Builder>public Value.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Value.Builder>public Value.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Value.Builder>public Value.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Value.Builder>public Value.Builder mergeFrom(Value other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Value.Builder>public Value.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Value.Builder>java.io.IOExceptionpublic Value.ValueTypeCase getValueTypeCase()
getValueTypeCase in interface ValueOrBuilderpublic Value.Builder clearValueType()
public int getNullValueValue()
A null value.
.google.protobuf.NullValue null_value = 11;getNullValueValue in interface ValueOrBuilderpublic Value.Builder setNullValueValue(int value)
A null value.
.google.protobuf.NullValue null_value = 11;public NullValue getNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;getNullValue in interface ValueOrBuilderpublic Value.Builder setNullValue(NullValue value)
A null value.
.google.protobuf.NullValue null_value = 11;public Value.Builder clearNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;public boolean getBooleanValue()
A boolean value.
bool boolean_value = 1;getBooleanValue in interface ValueOrBuilderpublic Value.Builder setBooleanValue(boolean value)
A boolean value.
bool boolean_value = 1;public Value.Builder clearBooleanValue()
A boolean value.
bool boolean_value = 1;public long getIntegerValue()
An integer value.
int64 integer_value = 2;getIntegerValue in interface ValueOrBuilderpublic Value.Builder setIntegerValue(long value)
An integer value.
int64 integer_value = 2;public Value.Builder clearIntegerValue()
An integer value.
int64 integer_value = 2;public double getDoubleValue()
A double value.
double double_value = 3;getDoubleValue in interface ValueOrBuilderpublic Value.Builder setDoubleValue(double value)
A double value.
double double_value = 3;public Value.Builder clearDoubleValue()
A double value.
double double_value = 3;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;hasTimestampValue in interface ValueOrBuilderpublic 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;getTimestampValue in interface ValueOrBuilderpublic 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;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;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;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;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;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;getTimestampValueOrBuilder in interface ValueOrBuilderpublic boolean hasKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;hasKeyValue in interface ValueOrBuilderpublic Key getKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;getKeyValue in interface ValueOrBuilderpublic Value.Builder setKeyValue(Key value)
A key value.
.google.datastore.v1.Key key_value = 5;public Value.Builder setKeyValue(Key.Builder builderForValue)
A key value.
.google.datastore.v1.Key key_value = 5;public Value.Builder mergeKeyValue(Key value)
A key value.
.google.datastore.v1.Key key_value = 5;public Value.Builder clearKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;public Key.Builder getKeyValueBuilder()
A key value.
.google.datastore.v1.Key key_value = 5;public KeyOrBuilder getKeyValueOrBuilder()
A key value.
.google.datastore.v1.Key key_value = 5;getKeyValueOrBuilder in interface ValueOrBuilderpublic java.lang.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 least 1,000,000 bytes.
string string_value = 17;getStringValue in interface ValueOrBuilderpublic 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 least 1,000,000 bytes.
string string_value = 17;getStringValueBytes in interface ValueOrBuilderpublic Value.Builder setStringValue(java.lang.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 least 1,000,000 bytes.
string string_value = 17;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 least 1,000,000 bytes.
string string_value = 17;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 least 1,000,000 bytes.
string string_value = 17;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;getBlobValue in interface ValueOrBuilderpublic 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;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;public boolean hasGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;hasGeoPointValue in interface ValueOrBuilderpublic LatLng getGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;getGeoPointValue in interface ValueOrBuilderpublic Value.Builder setGeoPointValue(LatLng value)
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;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;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;public Value.Builder clearGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;public LatLng.Builder getGeoPointValueBuilder()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;public LatLngOrBuilder getGeoPointValueOrBuilder()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;getGeoPointValueOrBuilder in interface ValueOrBuilderpublic 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;hasEntityValue in interface ValueOrBuilderpublic 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;getEntityValue in interface ValueOrBuilderpublic 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;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;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;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;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;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;getEntityValueOrBuilder in interface ValueOrBuilderpublic 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;hasArrayValue in interface ValueOrBuilderpublic 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;getArrayValue in interface ValueOrBuilderpublic 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;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;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;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;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;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;getArrayValueOrBuilder in interface ValueOrBuilderpublic int getMeaning()
The `meaning` field should only be populated for backwards compatibility.
int32 meaning = 14;getMeaning in interface ValueOrBuilderpublic Value.Builder setMeaning(int value)
The `meaning` field should only be populated for backwards compatibility.
int32 meaning = 14;public Value.Builder clearMeaning()
The `meaning` field should only be populated for backwards compatibility.
int32 meaning = 14;public boolean getExcludeFromIndexes()
If the value should be excluded from all indexes including those defined explicitly.
bool exclude_from_indexes = 19;getExcludeFromIndexes in interface ValueOrBuilderpublic Value.Builder setExcludeFromIndexes(boolean value)
If the value should be excluded from all indexes including those defined explicitly.
bool exclude_from_indexes = 19;public Value.Builder clearExcludeFromIndexes()
If the value should be excluded from all indexes including those defined explicitly.
bool exclude_from_indexes = 19;public final Value.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Value.Builder>public final Value.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Value.Builder>