public static final class Value.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder> implements ValueOrBuilder
A message that can hold any of the supported value types.Protobuf type
google.firestore.v1.Value
Modifier and Type | Method and Description |
---|---|
Value.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Value |
build() |
Value |
buildPartial() |
Value.Builder |
clear() |
Value.Builder |
clearArrayValue()
An array value.
|
Value.Builder |
clearBooleanValue()
A boolean value.
|
Value.Builder |
clearBytesValue()
A bytes value.
|
Value.Builder |
clearDoubleValue()
A double value.
|
Value.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Value.Builder |
clearGeoPointValue()
A geo point value representing a point on the surface of Earth.
|
Value.Builder |
clearIntegerValue()
An integer value.
|
Value.Builder |
clearMapValue()
A map value.
|
Value.Builder |
clearNullValue()
A null value.
|
Value.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Value.Builder |
clearReferenceValue()
A reference to a document.
|
Value.Builder |
clearStringValue()
A string value.
|
Value.Builder |
clearTimestampValue()
A timestamp value.
|
Value.Builder |
clearValueType() |
Value.Builder |
clone() |
ArrayValue |
getArrayValue()
An array value.
|
ArrayValue.Builder |
getArrayValueBuilder()
An array value.
|
ArrayValueOrBuilder |
getArrayValueOrBuilder()
An array value.
|
boolean |
getBooleanValue()
A boolean value.
|
com.google.protobuf.ByteString |
getBytesValue()
A bytes value.
|
Value |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.LatLng.Builder |
getGeoPointValueBuilder()
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.
|
MapValue.Builder |
getMapValueBuilder()
A map value.
|
MapValueOrBuilder |
getMapValueOrBuilder()
A map value.
|
com.google.protobuf.NullValue |
getNullValue()
A null value.
|
int |
getNullValueValue()
A null value.
|
String |
getReferenceValue()
A reference to a document.
|
com.google.protobuf.ByteString |
getReferenceValueBytes()
A reference to a document.
|
String |
getStringValue()
A string value.
|
com.google.protobuf.ByteString |
getStringValueBytes()
A string value.
|
com.google.protobuf.Timestamp |
getTimestampValue()
A timestamp value.
|
com.google.protobuf.Timestamp.Builder |
getTimestampValueBuilder()
A timestamp value.
|
com.google.protobuf.TimestampOrBuilder |
getTimestampValueOrBuilder()
A timestamp value.
|
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.
|
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() |
Value.Builder |
mergeArrayValue(ArrayValue value)
An array value.
|
Value.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Value.Builder |
mergeFrom(com.google.protobuf.Message other) |
Value.Builder |
mergeFrom(Value other) |
Value.Builder |
mergeGeoPointValue(com.google.type.LatLng value)
A geo point value representing a point on the surface of Earth.
|
Value.Builder |
mergeMapValue(MapValue value)
A map value.
|
Value.Builder |
mergeTimestampValue(com.google.protobuf.Timestamp value)
A timestamp value.
|
Value.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Value.Builder |
setArrayValue(ArrayValue.Builder builderForValue)
An array value.
|
Value.Builder |
setArrayValue(ArrayValue value)
An array value.
|
Value.Builder |
setBooleanValue(boolean value)
A boolean value.
|
Value.Builder |
setBytesValue(com.google.protobuf.ByteString value)
A bytes value.
|
Value.Builder |
setDoubleValue(double value)
A double value.
|
Value.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Value.Builder |
setGeoPointValue(com.google.type.LatLng.Builder builderForValue)
A geo point value representing a point on the surface of Earth.
|
Value.Builder |
setGeoPointValue(com.google.type.LatLng value)
A geo point value representing a point on the surface of Earth.
|
Value.Builder |
setIntegerValue(long value)
An integer value.
|
Value.Builder |
setMapValue(MapValue.Builder builderForValue)
A map value.
|
Value.Builder |
setMapValue(MapValue value)
A map value.
|
Value.Builder |
setNullValue(com.google.protobuf.NullValue value)
A null value.
|
Value.Builder |
setNullValueValue(int value)
A null value.
|
Value.Builder |
setReferenceValue(String value)
A reference to a document.
|
Value.Builder |
setReferenceValueBytes(com.google.protobuf.ByteString value)
A reference to a document.
|
Value.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Value.Builder |
setStringValue(String value)
A string value.
|
Value.Builder |
setStringValueBytes(com.google.protobuf.ByteString value)
A string value.
|
Value.Builder |
setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue)
A timestamp value.
|
Value.Builder |
setTimestampValue(com.google.protobuf.Timestamp value)
A timestamp value.
|
Value.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public Value getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Value build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Value buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Value.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Value.Builder>
public Value.Builder mergeFrom(Value other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Value.Builder>
IOException
public Value.ValueTypeCase getValueTypeCase()
getValueTypeCase
in interface ValueOrBuilder
public Value.Builder clearValueType()
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 Value.Builder setNullValueValue(int value)
A null value.
.google.protobuf.NullValue null_value = 11;
value
- The enum numeric value on the wire for nullValue to set.public com.google.protobuf.NullValue getNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
getNullValue
in interface ValueOrBuilder
public Value.Builder setNullValue(com.google.protobuf.NullValue value)
A null value.
.google.protobuf.NullValue null_value = 11;
value
- The nullValue to set.public Value.Builder clearNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
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 Value.Builder setBooleanValue(boolean value)
A boolean value.
bool boolean_value = 1;
value
- The booleanValue to set.public Value.Builder clearBooleanValue()
A boolean value.
bool boolean_value = 1;
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 Value.Builder setIntegerValue(long value)
An integer value.
int64 integer_value = 2;
value
- The integerValue to set.public Value.Builder clearIntegerValue()
An integer value.
int64 integer_value = 2;
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 Value.Builder setDoubleValue(double value)
A double value.
double double_value = 3;
value
- The doubleValue to set.public Value.Builder clearDoubleValue()
A double value.
double double_value = 3;
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 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 ValueOrBuilder
public Value.Builder setTimestampValue(com.google.protobuf.Timestamp value)
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
public Value.Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue)
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
public Value.Builder mergeTimestampValue(com.google.protobuf.Timestamp value)
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
public Value.Builder clearTimestampValue()
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder()
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;
public 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 ValueOrBuilder
public 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 ValueOrBuilder
public 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 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 ValueOrBuilder
public Value.Builder setStringValue(String value)
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;
value
- The stringValue to set.public Value.Builder clearStringValue()
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;
public Value.Builder setStringValueBytes(com.google.protobuf.ByteString value)
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;
value
- The bytes for stringValue to set.public 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 ValueOrBuilder
public 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 ValueOrBuilder
public Value.Builder setBytesValue(com.google.protobuf.ByteString value)
A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
bytes bytes_value = 18;
value
- The bytesValue to set.public Value.Builder clearBytesValue()
A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
bytes bytes_value = 18;
public 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 ValueOrBuilder
public 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 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 ValueOrBuilder
public Value.Builder setReferenceValue(String value)
A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string reference_value = 5;
value
- The referenceValue to set.public Value.Builder clearReferenceValue()
A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string reference_value = 5;
public Value.Builder setReferenceValueBytes(com.google.protobuf.ByteString value)
A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string reference_value = 5;
value
- The bytes for referenceValue to set.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 Value.Builder setGeoPointValue(com.google.type.LatLng value)
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
public Value.Builder setGeoPointValue(com.google.type.LatLng.Builder builderForValue)
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
public Value.Builder mergeGeoPointValue(com.google.type.LatLng value)
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
public Value.Builder clearGeoPointValue()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
public com.google.type.LatLng.Builder getGeoPointValueBuilder()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
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 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 ValueOrBuilder
public 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 ValueOrBuilder
public Value.Builder setArrayValue(ArrayValue value)
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;
public Value.Builder setArrayValue(ArrayValue.Builder builderForValue)
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;
public Value.Builder mergeArrayValue(ArrayValue value)
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;
public Value.Builder clearArrayValue()
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;
public ArrayValue.Builder getArrayValueBuilder()
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;
public 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 ValueOrBuilder
public boolean hasMapValue()
A map value.
.google.firestore.v1.MapValue map_value = 6;
hasMapValue
in interface ValueOrBuilder
public MapValue getMapValue()
A map value.
.google.firestore.v1.MapValue map_value = 6;
getMapValue
in interface ValueOrBuilder
public Value.Builder setMapValue(MapValue value)
A map value.
.google.firestore.v1.MapValue map_value = 6;
public Value.Builder setMapValue(MapValue.Builder builderForValue)
A map value.
.google.firestore.v1.MapValue map_value = 6;
public Value.Builder mergeMapValue(MapValue value)
A map value.
.google.firestore.v1.MapValue map_value = 6;
public Value.Builder clearMapValue()
A map value.
.google.firestore.v1.MapValue map_value = 6;
public MapValue.Builder getMapValueBuilder()
A map value.
.google.firestore.v1.MapValue map_value = 6;
public MapValueOrBuilder getMapValueOrBuilder()
A map value.
.google.firestore.v1.MapValue map_value = 6;
getMapValueOrBuilder
in interface ValueOrBuilder
public final Value.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
public final Value.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
Copyright © 2023 Google LLC. All rights reserved.