public final class Value extends GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Value.Builder
A message that can hold any of the supported value types and associated
metadata.
|
static class |
Value.ValueTypeCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ARRAY_VALUE_FIELD_NUMBER |
static int |
BLOB_VALUE_FIELD_NUMBER |
static int |
BOOLEAN_VALUE_FIELD_NUMBER |
static int |
DOUBLE_VALUE_FIELD_NUMBER |
static int |
ENTITY_VALUE_FIELD_NUMBER |
static int |
EXCLUDE_FROM_INDEXES_FIELD_NUMBER |
static int |
GEO_POINT_VALUE_FIELD_NUMBER |
static int |
INTEGER_VALUE_FIELD_NUMBER |
static int |
KEY_VALUE_FIELD_NUMBER |
static int |
MEANING_FIELD_NUMBER |
static int |
NULL_VALUE_FIELD_NUMBER |
static int |
STRING_VALUE_FIELD_NUMBER |
static int |
TIMESTAMP_VALUE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
ArrayValue |
getArrayValue()
An array value.
|
ArrayValueOrBuilder |
getArrayValueOrBuilder()
An array value.
|
ByteString |
getBlobValue()
A blob value.
|
boolean |
getBooleanValue()
A boolean value.
|
static Value |
getDefaultInstance() |
Value |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
double |
getDoubleValue()
A double value.
|
Entity |
getEntityValue()
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.
|
LatLngOrBuilder |
getGeoPointValueOrBuilder()
A geo point value representing a point on the surface of Earth.
|
long |
getIntegerValue()
An integer value.
|
Key |
getKeyValue()
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.
|
Parser<Value> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getStringValue()
A UTF-8 encoded string value.
|
ByteString |
getStringValueBytes()
A UTF-8 encoded string value.
|
Timestamp |
getTimestampValue()
A timestamp value.
|
TimestampOrBuilder |
getTimestampValueOrBuilder()
A timestamp value.
|
UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
boolean |
hasKeyValue()
A key value.
|
boolean |
hasTimestampValue()
A timestamp value.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Value.Builder |
newBuilder() |
static Value.Builder |
newBuilder(Value prototype) |
Value.Builder |
newBuilderForType() |
protected Value.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Value |
parseDelimitedFrom(java.io.InputStream input) |
static Value |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(byte[] data) |
static Value |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(java.nio.ByteBuffer data) |
static Value |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(ByteString data) |
static Value |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(CodedInputStream input) |
static Value |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(java.io.InputStream input) |
static Value |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Value> |
parser() |
Value.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NULL_VALUE_FIELD_NUMBER
public static final int BOOLEAN_VALUE_FIELD_NUMBER
public static final int INTEGER_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER
public static final int TIMESTAMP_VALUE_FIELD_NUMBER
public static final int KEY_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
public static final int BLOB_VALUE_FIELD_NUMBER
public static final int GEO_POINT_VALUE_FIELD_NUMBER
public static final int ENTITY_VALUE_FIELD_NUMBER
public static final int ARRAY_VALUE_FIELD_NUMBER
public static final int MEANING_FIELD_NUMBER
public static final int EXCLUDE_FROM_INDEXES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public Value.ValueTypeCase getValueTypeCase()
getValueTypeCase in interface ValueOrBuilderpublic int getNullValueValue()
A null value.
.google.protobuf.NullValue null_value = 11;getNullValueValue in interface ValueOrBuilderpublic NullValue getNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;getNullValue in interface ValueOrBuilderpublic boolean getBooleanValue()
A boolean value.
bool boolean_value = 1;getBooleanValue in interface ValueOrBuilderpublic long getIntegerValue()
An integer value.
int64 integer_value = 2;getIntegerValue in interface ValueOrBuilderpublic double getDoubleValue()
A double value.
double double_value = 3;getDoubleValue in interface ValueOrBuilderpublic 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 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 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 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 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 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 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 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 boolean getExcludeFromIndexes()
If the value should be excluded from all indexes including those defined explicitly.
bool exclude_from_indexes = 19;getExcludeFromIndexes in interface ValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Value parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Value parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Value parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Value parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Value parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Value parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Value parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Value parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Value parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Value parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Value parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Value.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Value.Builder newBuilder()
public static Value.Builder newBuilder(Value prototype)
public Value.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Value.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Value getDefaultInstance()
public Parser<Value> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Value getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder