Package com.google.datastore.v1
Interface ValueOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Value
,Value.Builder
public interface ValueOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionAn array value.An array value.com.google.protobuf.ByteString
A blob value.boolean
A boolean value.double
A double value.An entity value.An entity value.boolean
If the value should be excluded from all indexes including those defined explicitly.com.google.type.LatLng
A geo point value representing a point on the surface of Earth.com.google.type.LatLngOrBuilder
A geo point value representing a point on the surface of Earth.long
An integer value.A key value.A key value.int
The `meaning` field should only be populated for backwards compatibility.com.google.protobuf.NullValue
A null value.int
A null value.A UTF-8 encoded string value.com.google.protobuf.ByteString
A UTF-8 encoded string value.com.google.protobuf.Timestamp
A timestamp value.com.google.protobuf.TimestampOrBuilder
A timestamp value.boolean
An array value.boolean
A blob value.boolean
A boolean value.boolean
A double value.boolean
An entity value.boolean
A geo point value representing a point on the surface of Earth.boolean
An integer value.boolean
A key value.boolean
A null value.boolean
A UTF-8 encoded string value.boolean
A timestamp value.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasNullValue
boolean hasNullValue()A null value.
.google.protobuf.NullValue null_value = 11;
- Returns:
- Whether the nullValue field is set.
-
getNullValueValue
int getNullValueValue()A null value.
.google.protobuf.NullValue null_value = 11;
- Returns:
- The enum numeric value on the wire for nullValue.
-
getNullValue
com.google.protobuf.NullValue getNullValue()A null value.
.google.protobuf.NullValue null_value = 11;
- Returns:
- The nullValue.
-
hasBooleanValue
boolean hasBooleanValue()A boolean value.
bool boolean_value = 1;
- Returns:
- Whether the booleanValue field is set.
-
getBooleanValue
boolean getBooleanValue()A boolean value.
bool boolean_value = 1;
- Returns:
- The booleanValue.
-
hasIntegerValue
boolean hasIntegerValue()An integer value.
int64 integer_value = 2;
- Returns:
- Whether the integerValue field is set.
-
getIntegerValue
long getIntegerValue()An integer value.
int64 integer_value = 2;
- Returns:
- The integerValue.
-
hasDoubleValue
boolean hasDoubleValue()A double value.
double double_value = 3;
- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
double getDoubleValue()A double value.
double double_value = 3;
- Returns:
- The doubleValue.
-
hasTimestampValue
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;
- Returns:
- Whether the timestampValue field is set.
-
getTimestampValue
com.google.protobuf.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;
- Returns:
- The timestampValue.
-
getTimestampValueOrBuilder
com.google.protobuf.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;
-
hasKeyValue
boolean hasKeyValue()A key value.
.google.datastore.v1.Key key_value = 5;
- Returns:
- Whether the keyValue field is set.
-
getKeyValue
Key getKeyValue()A key value.
.google.datastore.v1.Key key_value = 5;
- Returns:
- The keyValue.
-
getKeyValueOrBuilder
KeyOrBuilder getKeyValueOrBuilder()A key value.
.google.datastore.v1.Key key_value = 5;
-
hasStringValue
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;
- Returns:
- Whether the stringValue field is set.
-
getStringValue
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;
- Returns:
- The stringValue.
-
getStringValueBytes
com.google.protobuf.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;
- Returns:
- The bytes for stringValue.
-
hasBlobValue
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;
- Returns:
- Whether the blobValue field is set.
-
getBlobValue
com.google.protobuf.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;
- Returns:
- The blobValue.
-
hasGeoPointValue
boolean hasGeoPointValue()A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
- Returns:
- Whether the geoPointValue field is set.
-
getGeoPointValue
com.google.type.LatLng getGeoPointValue()A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
- Returns:
- The geoPointValue.
-
getGeoPointValueOrBuilder
com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder()A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
-
hasEntityValue
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;
- Returns:
- Whether the entityValue field is set.
-
getEntityValue
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;
- Returns:
- The entityValue.
-
getEntityValueOrBuilder
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;
-
hasArrayValue
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;
- Returns:
- Whether the arrayValue field is set.
-
getArrayValue
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;
- Returns:
- The arrayValue.
-
getArrayValueOrBuilder
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;
-
getMeaning
int getMeaning()The `meaning` field should only be populated for backwards compatibility.
int32 meaning = 14;
- Returns:
- The meaning.
-
getExcludeFromIndexes
boolean getExcludeFromIndexes()If the value should be excluded from all indexes including those defined explicitly.
bool exclude_from_indexes = 19;
- Returns:
- The excludeFromIndexes.
-
getValueTypeCase
Value.ValueTypeCase getValueTypeCase()
-