public final class Value extends GeneratedMessageV3 implements ValueOrBuilder
A message that can hold any of the supported value types.Protobuf type
google.firestore.v1beta1.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 |
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 |
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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
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 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
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public Value.ValueTypeCase getValueTypeCase()
getValueTypeCase
in interface ValueOrBuilder
public int getNullValueValue()
A null value.
.google.protobuf.NullValue null_value = 11;
getNullValueValue
in interface ValueOrBuilder
public NullValue getNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
getNullValue
in interface ValueOrBuilder
public boolean getBooleanValue()
A boolean value.
bool boolean_value = 1;
getBooleanValue
in interface ValueOrBuilder
public long getIntegerValue()
An integer value.
int64 integer_value = 2;
getIntegerValue
in interface ValueOrBuilder
public double getDoubleValue()
A double value.
double double_value = 3;
getDoubleValue
in interface ValueOrBuilder
public 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 ValueOrBuilder
public 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 ValueOrBuilder
public 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 ValueOrBuilder
public java.lang.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 ValueOrBuilder
public 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 ValueOrBuilder
public 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 ValueOrBuilder
public java.lang.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 ValueOrBuilder
public 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 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 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 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 hasArrayValue()
An array value. Cannot contain another array value.
.google.firestore.v1beta1.ArrayValue array_value = 9;
hasArrayValue
in interface ValueOrBuilder
public ArrayValue getArrayValue()
An array value. Cannot contain another array value.
.google.firestore.v1beta1.ArrayValue array_value = 9;
getArrayValue
in interface ValueOrBuilder
public ArrayValueOrBuilder getArrayValueOrBuilder()
An array value. Cannot contain another array value.
.google.firestore.v1beta1.ArrayValue array_value = 9;
getArrayValueOrBuilder
in interface ValueOrBuilder
public boolean hasMapValue()
A map value.
.google.firestore.v1beta1.MapValue map_value = 6;
hasMapValue
in interface ValueOrBuilder
public MapValue getMapValue()
A map value.
.google.firestore.v1beta1.MapValue map_value = 6;
getMapValue
in interface ValueOrBuilder
public MapValueOrBuilder getMapValueOrBuilder()
A map value.
.google.firestore.v1beta1.MapValue map_value = 6;
getMapValueOrBuilder
in interface ValueOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Value parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Value parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Value parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Value parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Value parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Value parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Value parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Value parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Value parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Value parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Value parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Value.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Value.Builder newBuilder()
public static Value.Builder newBuilder(Value prototype)
public Value.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Value.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Value getDefaultInstance()
public Parser<Value> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Value getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder