public final class Value extends com.google.protobuf.GeneratedMessageV3 implements ValueOrBuilder
A message that can hold any of the supported value types.Protobuf type
google.firestore.v1.Value| Modifier and Type | Class and Description |
|---|---|
static class |
Value.Builder
A message that can hold any of the supported value types.
|
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 |
BOOLEAN_VALUE_FIELD_NUMBER |
static int |
BYTES_VALUE_FIELD_NUMBER |
static int |
DOUBLE_VALUE_FIELD_NUMBER |
static int |
GEO_POINT_VALUE_FIELD_NUMBER |
static int |
INTEGER_VALUE_FIELD_NUMBER |
static int |
MAP_VALUE_FIELD_NUMBER |
static int |
NULL_VALUE_FIELD_NUMBER |
static int |
REFERENCE_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.
|
boolean |
getBooleanValue()
A boolean value.
|
com.google.protobuf.ByteString |
getBytesValue()
A bytes value.
|
static Value |
getDefaultInstance() |
Value |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getDoubleValue()
A double value.
|
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.
|
MapValue |
getMapValue()
A map value.
|
MapValueOrBuilder |
getMapValueOrBuilder()
A map value.
|
com.google.protobuf.NullValue |
getNullValue()
A null value.
|
int |
getNullValueValue()
A null value.
|
com.google.protobuf.Parser<Value> |
getParserForType() |
String |
getReferenceValue()
A reference to a document.
|
com.google.protobuf.ByteString |
getReferenceValueBytes()
A reference to a document.
|
int |
getSerializedSize() |
String |
getStringValue()
A string value.
|
com.google.protobuf.ByteString |
getStringValueBytes()
A string value.
|
com.google.protobuf.Timestamp |
getTimestampValue()
A timestamp value.
|
com.google.protobuf.TimestampOrBuilder |
getTimestampValueOrBuilder()
A timestamp value.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Value.ValueTypeCase |
getValueTypeCase() |
boolean |
hasArrayValue()
An array value.
|
boolean |
hasBooleanValue()
A boolean value.
|
boolean |
hasBytesValue()
A bytes value.
|
boolean |
hasDoubleValue()
A double value.
|
boolean |
hasGeoPointValue()
A geo point value representing a point on the surface of Earth.
|
int |
hashCode() |
boolean |
hasIntegerValue()
An integer value.
|
boolean |
hasMapValue()
A map value.
|
boolean |
hasNullValue()
A null value.
|
boolean |
hasReferenceValue()
A reference to a document.
|
boolean |
hasStringValue()
A 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, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 STRING_VALUE_FIELD_NUMBER
public static final int BYTES_VALUE_FIELD_NUMBER
public static final int REFERENCE_VALUE_FIELD_NUMBER
public static final int GEO_POINT_VALUE_FIELD_NUMBER
public static final int ARRAY_VALUE_FIELD_NUMBER
public static final int MAP_VALUE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Value.ValueTypeCase getValueTypeCase()
getValueTypeCase in interface ValueOrBuilderpublic boolean hasNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;hasNullValue in interface ValueOrBuilderpublic int getNullValueValue()
A null value.
.google.protobuf.NullValue null_value = 11;getNullValueValue in interface ValueOrBuilderpublic com.google.protobuf.NullValue getNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;getNullValue in interface ValueOrBuilderpublic boolean hasBooleanValue()
A boolean value.
bool boolean_value = 1;hasBooleanValue in interface ValueOrBuilderpublic boolean getBooleanValue()
A boolean value.
bool boolean_value = 1;getBooleanValue in interface ValueOrBuilderpublic boolean hasIntegerValue()
An integer value.
int64 integer_value = 2;hasIntegerValue in interface ValueOrBuilderpublic long getIntegerValue()
An integer value.
int64 integer_value = 2;getIntegerValue in interface ValueOrBuilderpublic boolean hasDoubleValue()
A double value.
double double_value = 3;hasDoubleValue in interface ValueOrBuilderpublic double getDoubleValue()
A double value.
double double_value = 3;getDoubleValue in interface ValueOrBuilderpublic boolean hasTimestampValue()
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;hasTimestampValue in interface ValueOrBuilderpublic com.google.protobuf.Timestamp getTimestampValue()
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;getTimestampValue in interface ValueOrBuilderpublic com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;getTimestampValueOrBuilder in interface ValueOrBuilderpublic boolean hasStringValue()
A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
string string_value = 17;hasStringValue in interface ValueOrBuilderpublic String getStringValue()
A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
string string_value = 17;getStringValue in interface ValueOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
string string_value = 17;getStringValueBytes in interface ValueOrBuilderpublic boolean hasBytesValue()
A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
bytes bytes_value = 18;hasBytesValue in interface ValueOrBuilderpublic com.google.protobuf.ByteString getBytesValue()
A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
bytes bytes_value = 18;getBytesValue in interface ValueOrBuilderpublic boolean hasReferenceValue()
A reference to a document. For example:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string reference_value = 5;hasReferenceValue in interface ValueOrBuilderpublic String getReferenceValue()
A reference to a document. For example:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string reference_value = 5;getReferenceValue in interface ValueOrBuilderpublic com.google.protobuf.ByteString getReferenceValueBytes()
A reference to a document. For example:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string reference_value = 5;getReferenceValueBytes 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 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 ValueOrBuilderpublic 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 ValueOrBuilderpublic boolean hasArrayValue()
An array value. Cannot directly contain another array value, though can contain an map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9;hasArrayValue in interface ValueOrBuilderpublic ArrayValue getArrayValue()
An array value. Cannot directly contain another array value, though can contain an map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9;getArrayValue in interface ValueOrBuilderpublic ArrayValueOrBuilder getArrayValueOrBuilder()
An array value. Cannot directly contain another array value, though can contain an map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9;getArrayValueOrBuilder in interface ValueOrBuilderpublic boolean hasMapValue()
A map value.
.google.firestore.v1.MapValue map_value = 6;hasMapValue in interface ValueOrBuilderpublic MapValue getMapValue()
A map value.
.google.firestore.v1.MapValue map_value = 6;getMapValue in interface ValueOrBuilderpublic MapValueOrBuilder getMapValueOrBuilder()
A map value.
.google.firestore.v1.MapValue map_value = 6;getMapValueOrBuilder in interface ValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Value parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value parseFrom(InputStream input) throws IOException
IOExceptionpublic static Value parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Value parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Value parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Value parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Value parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Value.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Value.Builder newBuilder()
public static Value.Builder newBuilder(Value prototype)
public Value.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Value.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Value getDefaultInstance()
public static com.google.protobuf.Parser<Value> parser()
public com.google.protobuf.Parser<Value> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Value getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.