public final class Value extends com.google.protobuf.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 |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
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 |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ArrayValue |
getArrayValue()
An array value.
|
ArrayValueOrBuilder |
getArrayValueOrBuilder()
An array value.
|
com.google.protobuf.ByteString |
getBlobValue()
A blob value.
|
boolean |
getBooleanValue()
A boolean value.
|
static Value |
getDefaultInstance() |
Value |
getDefaultInstanceForType() |
static com.google.protobuf.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.
|
com.google.type.LatLng |
getGeoPointValue()
A geo point value representing a point on the surface of Earth.
|
com.google.type.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.
|
com.google.protobuf.NullValue |
getNullValue()
A null value.
|
int |
getNullValueValue()
A null value.
|
com.google.protobuf.Parser<Value> |
getParserForType() |
int |
getSerializedSize() |
String |
getStringValue()
A UTF-8 encoded string value.
|
com.google.protobuf.ByteString |
getStringValueBytes()
A UTF-8 encoded string value.
|
com.google.protobuf.Timestamp |
getTimestampValue()
A timestamp value.
|
com.google.protobuf.TimestampOrBuilder |
getTimestampValueOrBuilder()
A timestamp value.
|
Value.ValueTypeCase |
getValueTypeCase() |
boolean |
hasArrayValue()
An array value.
|
boolean |
hasBlobValue()
A blob value.
|
boolean |
hasBooleanValue()
A boolean value.
|
boolean |
hasDoubleValue()
A double value.
|
boolean |
hasEntityValue()
An entity value.
|
boolean |
hasGeoPointValue()
A geo point value representing a point on the surface of Earth.
|
int |
hashCode() |
boolean |
hasIntegerValue()
An integer value.
|
boolean |
hasKeyValue()
A key value.
|
boolean |
hasNullValue()
A null value.
|
boolean |
hasStringValue()
A UTF-8 encoded string value.
|
boolean |
hasTimestampValue()
A timestamp value.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Value.Builder |
newBuilder() |
static Value.Builder |
newBuilder(Value prototype) |
Value.Builder |
newBuilderForType() |
protected Value.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Value |
parseDelimitedFrom(InputStream input) |
static Value |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(byte[] data) |
static Value |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(ByteBuffer data) |
static Value |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(com.google.protobuf.ByteString data) |
static Value |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Value |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value |
parseFrom(InputStream input) |
static Value |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Value> |
parser() |
Value.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public Value.ValueTypeCase getValueTypeCase()
getValueTypeCase
in interface ValueOrBuilder
public boolean hasNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
hasNullValue
in interface ValueOrBuilder
public int getNullValueValue()
A null value.
.google.protobuf.NullValue null_value = 11;
getNullValueValue
in interface ValueOrBuilder
public com.google.protobuf.NullValue getNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
getNullValue
in interface ValueOrBuilder
public boolean hasBooleanValue()
A boolean value.
bool boolean_value = 1;
hasBooleanValue
in interface ValueOrBuilder
public boolean getBooleanValue()
A boolean value.
bool boolean_value = 1;
getBooleanValue
in interface ValueOrBuilder
public boolean hasIntegerValue()
An integer value.
int64 integer_value = 2;
hasIntegerValue
in interface ValueOrBuilder
public long getIntegerValue()
An integer value.
int64 integer_value = 2;
getIntegerValue
in interface ValueOrBuilder
public boolean hasDoubleValue()
A double value.
double double_value = 3;
hasDoubleValue
in interface ValueOrBuilder
public double getDoubleValue()
A double value.
double double_value = 3;
getDoubleValue
in interface ValueOrBuilder
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 ValueOrBuilder
public 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;
getTimestampValue
in interface ValueOrBuilder
public 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;
getTimestampValueOrBuilder
in interface ValueOrBuilder
public boolean hasKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;
hasKeyValue
in interface ValueOrBuilder
public Key getKeyValue()
A key value.
.google.datastore.v1.Key key_value = 5;
getKeyValue
in interface ValueOrBuilder
public KeyOrBuilder getKeyValueOrBuilder()
A key value.
.google.datastore.v1.Key key_value = 5;
getKeyValueOrBuilder
in interface ValueOrBuilder
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;
hasStringValue
in interface ValueOrBuilder
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;
getStringValue
in interface ValueOrBuilder
public 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;
getStringValueBytes
in interface ValueOrBuilder
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;
hasBlobValue
in interface ValueOrBuilder
public 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;
getBlobValue
in interface ValueOrBuilder
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 ValueOrBuilder
public com.google.type.LatLng getGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
getGeoPointValue
in interface ValueOrBuilder
public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
getGeoPointValueOrBuilder
in interface ValueOrBuilder
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;
hasEntityValue
in interface ValueOrBuilder
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;
getEntityValue
in interface ValueOrBuilder
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 ValueOrBuilder
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;
hasArrayValue
in interface ValueOrBuilder
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;
getArrayValue
in interface ValueOrBuilder
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 ValueOrBuilder
public int getMeaning()
The `meaning` field should only be populated for backwards compatibility.
int32 meaning = 14;
getMeaning
in interface ValueOrBuilder
public boolean getExcludeFromIndexes()
If the value should be excluded from all indexes including those defined explicitly.
bool exclude_from_indexes = 19;
getExcludeFromIndexes
in interface ValueOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Value parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Value parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Value parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Value parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Value parseFrom(InputStream input) throws IOException
IOException
public static Value parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Value parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Value parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Value parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Value parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Value.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Value.Builder newBuilder()
public static Value.Builder newBuilder(Value prototype)
public Value.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Value.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Value getDefaultInstance()
public static com.google.protobuf.Parser<Value> parser()
public com.google.protobuf.Parser<Value> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Value getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.