Package com.google.firestore.v1
Class Value.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
com.google.firestore.v1.Value.Builder
- All Implemented Interfaces:
ValueOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Value
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()An array value.A boolean value.A bytes value.A double value.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) A geo point value representing a point on the surface of Earth.An integer value.A map value.A null value.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A reference to a document.A string value.A timestamp value.clone()An array value.An array value.An array value.booleanA boolean value.com.google.protobuf.ByteStringA bytes value.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleA double value.com.google.type.LatLngA geo point value representing a point on the surface of Earth.com.google.type.LatLng.BuilderA geo point value representing a point on the surface of Earth.com.google.type.LatLngOrBuilderA geo point value representing a point on the surface of Earth.longAn integer value.A map value.A map value.A map value.com.google.protobuf.NullValueA null value.intA null value.A reference to a document.com.google.protobuf.ByteStringA reference to a document.A string value.com.google.protobuf.ByteStringA string value.com.google.protobuf.TimestampA timestamp value.com.google.protobuf.Timestamp.BuilderA timestamp value.com.google.protobuf.TimestampOrBuilderA timestamp value.booleanAn array value.booleanA boolean value.booleanA bytes value.booleanA double value.booleanA geo point value representing a point on the surface of Earth.booleanAn integer value.booleanA map value.booleanA null value.booleanA reference to a document.booleanA string value.booleanA timestamp value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeArrayValue(ArrayValue value) An array value.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGeoPointValue(com.google.type.LatLng value) A geo point value representing a point on the surface of Earth.mergeMapValue(MapValue value) A map value.mergeTimestampValue(com.google.protobuf.Timestamp value) A timestamp value.final Value.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setArrayValue(ArrayValue value) An array value.setArrayValue(ArrayValue.Builder builderForValue) An array value.setBooleanValue(boolean value) A boolean value.setBytesValue(com.google.protobuf.ByteString value) A bytes value.setDoubleValue(double value) A double value.setGeoPointValue(com.google.type.LatLng value) A geo point value representing a point on the surface of Earth.setGeoPointValue(com.google.type.LatLng.Builder builderForValue) A geo point value representing a point on the surface of Earth.setIntegerValue(long value) An integer value.setMapValue(MapValue value) A map value.setMapValue(MapValue.Builder builderForValue) A map value.setNullValue(com.google.protobuf.NullValue value) A null value.setNullValueValue(int value) A null value.setReferenceValue(String value) A reference to a document.setReferenceValueBytes(com.google.protobuf.ByteString value) A reference to a document.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStringValue(String value) A string value.setStringValueBytes(com.google.protobuf.ByteString value) A string value.setTimestampValue(com.google.protobuf.Timestamp value) A timestamp value.setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) A timestamp value.final Value.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
setRepeatedField
public Value.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
addRepeatedField
public Value.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Value.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeFrom
public Value.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Value.Builder>- Throws:
IOException
-
getValueTypeCase
- Specified by:
getValueTypeCasein interfaceValueOrBuilder
-
clearValueType
-
hasNullValue
public boolean hasNullValue()A null value.
.google.protobuf.NullValue null_value = 11;- Specified by:
hasNullValuein interfaceValueOrBuilder- Returns:
- Whether the nullValue field is set.
-
getNullValueValue
public int getNullValueValue()A null value.
.google.protobuf.NullValue null_value = 11;- Specified by:
getNullValueValuein interfaceValueOrBuilder- Returns:
- The enum numeric value on the wire for nullValue.
-
setNullValueValue
A null value.
.google.protobuf.NullValue null_value = 11;- Parameters:
value- The enum numeric value on the wire for nullValue to set.- Returns:
- This builder for chaining.
-
getNullValue
public com.google.protobuf.NullValue getNullValue()A null value.
.google.protobuf.NullValue null_value = 11;- Specified by:
getNullValuein interfaceValueOrBuilder- Returns:
- The nullValue.
-
setNullValue
A null value.
.google.protobuf.NullValue null_value = 11;- Parameters:
value- The nullValue to set.- Returns:
- This builder for chaining.
-
clearNullValue
A null value.
.google.protobuf.NullValue null_value = 11;- Returns:
- This builder for chaining.
-
hasBooleanValue
public boolean hasBooleanValue()A boolean value.
bool boolean_value = 1;- Specified by:
hasBooleanValuein interfaceValueOrBuilder- Returns:
- Whether the booleanValue field is set.
-
getBooleanValue
public boolean getBooleanValue()A boolean value.
bool boolean_value = 1;- Specified by:
getBooleanValuein interfaceValueOrBuilder- Returns:
- The booleanValue.
-
setBooleanValue
A boolean value.
bool boolean_value = 1;- Parameters:
value- The booleanValue to set.- Returns:
- This builder for chaining.
-
clearBooleanValue
A boolean value.
bool boolean_value = 1;- Returns:
- This builder for chaining.
-
hasIntegerValue
public boolean hasIntegerValue()An integer value.
int64 integer_value = 2;- Specified by:
hasIntegerValuein interfaceValueOrBuilder- Returns:
- Whether the integerValue field is set.
-
getIntegerValue
public long getIntegerValue()An integer value.
int64 integer_value = 2;- Specified by:
getIntegerValuein interfaceValueOrBuilder- Returns:
- The integerValue.
-
setIntegerValue
An integer value.
int64 integer_value = 2;- Parameters:
value- The integerValue to set.- Returns:
- This builder for chaining.
-
clearIntegerValue
An integer value.
int64 integer_value = 2;- Returns:
- This builder for chaining.
-
hasDoubleValue
public boolean hasDoubleValue()A double value.
double double_value = 3;- Specified by:
hasDoubleValuein interfaceValueOrBuilder- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()A double value.
double double_value = 3;- Specified by:
getDoubleValuein interfaceValueOrBuilder- Returns:
- The doubleValue.
-
setDoubleValue
A double value.
double double_value = 3;- Parameters:
value- The doubleValue to set.- Returns:
- This builder for chaining.
-
clearDoubleValue
A double value.
double double_value = 3;- Returns:
- This builder for chaining.
-
hasTimestampValue
public boolean hasTimestampValue()A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10;- Specified by:
hasTimestampValuein interfaceValueOrBuilder- Returns:
- Whether the timestampValue field is set.
-
getTimestampValue
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;- Specified by:
getTimestampValuein interfaceValueOrBuilder- Returns:
- The timestampValue.
-
setTimestampValue
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10; -
setTimestampValue
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10; -
mergeTimestampValue
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10; -
clearTimestampValue
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
.google.protobuf.Timestamp timestamp_value = 10; -
getTimestampValueBuilder
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; -
getTimestampValueOrBuilder
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;- Specified by:
getTimestampValueOrBuilderin interfaceValueOrBuilder
-
hasStringValue
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;- Specified by:
hasStringValuein interfaceValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
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;- Specified by:
getStringValuein interfaceValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
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;- Specified by:
getStringValueBytesin interfaceValueOrBuilder- Returns:
- The bytes for stringValue.
-
setStringValue
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;- Parameters:
value- The stringValue to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setStringValueBytes
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;- Parameters:
value- The bytes for stringValue to set.- Returns:
- This builder for chaining.
-
hasBytesValue
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;- Specified by:
hasBytesValuein interfaceValueOrBuilder- Returns:
- Whether the bytesValue field is set.
-
getBytesValue
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;- Specified by:
getBytesValuein interfaceValueOrBuilder- Returns:
- The bytesValue.
-
setBytesValue
A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
bytes bytes_value = 18;- Parameters:
value- The bytesValue to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasReferenceValue
public boolean hasReferenceValue()A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string reference_value = 5;- Specified by:
hasReferenceValuein interfaceValueOrBuilder- Returns:
- Whether the referenceValue field is set.
-
getReferenceValue
A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string reference_value = 5;- Specified by:
getReferenceValuein interfaceValueOrBuilder- Returns:
- The referenceValue.
-
getReferenceValueBytes
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;- Specified by:
getReferenceValueBytesin interfaceValueOrBuilder- Returns:
- The bytes for referenceValue.
-
setReferenceValue
A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string reference_value = 5;- Parameters:
value- The referenceValue to set.- Returns:
- This builder for chaining.
-
clearReferenceValue
A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string reference_value = 5;- Returns:
- This builder for chaining.
-
setReferenceValueBytes
A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string reference_value = 5;- Parameters:
value- The bytes for referenceValue to set.- Returns:
- This builder for chaining.
-
hasGeoPointValue
public boolean hasGeoPointValue()A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;- Specified by:
hasGeoPointValuein interfaceValueOrBuilder- Returns:
- Whether the geoPointValue field is set.
-
getGeoPointValue
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;- Specified by:
getGeoPointValuein interfaceValueOrBuilder- Returns:
- The geoPointValue.
-
setGeoPointValue
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8; -
setGeoPointValue
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8; -
mergeGeoPointValue
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8; -
clearGeoPointValue
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8; -
getGeoPointValueBuilder
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; -
getGeoPointValueOrBuilder
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;- Specified by:
getGeoPointValueOrBuilderin interfaceValueOrBuilder
-
hasArrayValue
public boolean hasArrayValue()An array value. Cannot directly contain another array value, though can contain a map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9;- Specified by:
hasArrayValuein interfaceValueOrBuilder- Returns:
- Whether the arrayValue field is set.
-
getArrayValue
An array value. Cannot directly contain another array value, though can contain a map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9;- Specified by:
getArrayValuein interfaceValueOrBuilder- Returns:
- The arrayValue.
-
setArrayValue
An array value. Cannot directly contain another array value, though can contain a map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9; -
setArrayValue
An array value. Cannot directly contain another array value, though can contain a map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9; -
mergeArrayValue
An array value. Cannot directly contain another array value, though can contain a map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9; -
clearArrayValue
An array value. Cannot directly contain another array value, though can contain a map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9; -
getArrayValueBuilder
An array value. Cannot directly contain another array value, though can contain a map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9; -
getArrayValueOrBuilder
An array value. Cannot directly contain another array value, though can contain a map which contains another array.
.google.firestore.v1.ArrayValue array_value = 9;- Specified by:
getArrayValueOrBuilderin interfaceValueOrBuilder
-
hasMapValue
public boolean hasMapValue()A map value.
.google.firestore.v1.MapValue map_value = 6;- Specified by:
hasMapValuein interfaceValueOrBuilder- Returns:
- Whether the mapValue field is set.
-
getMapValue
A map value.
.google.firestore.v1.MapValue map_value = 6;- Specified by:
getMapValuein interfaceValueOrBuilder- Returns:
- The mapValue.
-
setMapValue
A map value.
.google.firestore.v1.MapValue map_value = 6; -
setMapValue
A map value.
.google.firestore.v1.MapValue map_value = 6; -
mergeMapValue
A map value.
.google.firestore.v1.MapValue map_value = 6; -
clearMapValue
A map value.
.google.firestore.v1.MapValue map_value = 6; -
getMapValueBuilder
A map value.
.google.firestore.v1.MapValue map_value = 6; -
getMapValueOrBuilder
A map value.
.google.firestore.v1.MapValue map_value = 6;- Specified by:
getMapValueOrBuilderin interfaceValueOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-