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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArrayValuegetArrayValue()An array value.ArrayValueOrBuildergetArrayValueOrBuilder()An array value.com.google.protobuf.ByteStringgetBlobValue()A blob value.booleangetBooleanValue()A boolean value.doublegetDoubleValue()A double value.EntitygetEntityValue()An entity value.EntityOrBuildergetEntityValueOrBuilder()An entity value.booleangetExcludeFromIndexes()If the value should be excluded from all indexes including those defined explicitly.com.google.type.LatLnggetGeoPointValue()A geo point value representing a point on the surface of Earth.com.google.type.LatLngOrBuildergetGeoPointValueOrBuilder()A geo point value representing a point on the surface of Earth.longgetIntegerValue()An integer value.KeygetKeyValue()A key value.KeyOrBuildergetKeyValueOrBuilder()A key value.intgetMeaning()The `meaning` field should only be populated for backwards compatibility.com.google.protobuf.NullValuegetNullValue()A null value.intgetNullValueValue()A null value.StringgetStringValue()A UTF-8 encoded string value.com.google.protobuf.ByteStringgetStringValueBytes()A UTF-8 encoded string value.com.google.protobuf.TimestampgetTimestampValue()A timestamp value.com.google.protobuf.TimestampOrBuildergetTimestampValueOrBuilder()A timestamp value.Value.ValueTypeCasegetValueTypeCase()booleanhasArrayValue()An array value.booleanhasBlobValue()A blob value.booleanhasBooleanValue()A boolean value.booleanhasDoubleValue()A double value.booleanhasEntityValue()An entity value.booleanhasGeoPointValue()A geo point value representing a point on the surface of Earth.booleanhasIntegerValue()An integer value.booleanhasKeyValue()A key value.booleanhasNullValue()A null value.booleanhasStringValue()A UTF-8 encoded string value.booleanhasTimestampValue()A timestamp value.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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()
-
-