public static final class Value.Builder extends GeneratedMessageV3.Builder<Value.Builder> implements ValueOrBuilder
A message that can hold any of the supported value types.Protobuf type
google.firestore.v1beta1.Value
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Value.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Value.Builder>
public Value getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Value build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Value buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Value.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Value.Builder>
public Value.Builder mergeFrom(Value other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Value.Builder>
public Value.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Value.Builder>
java.io.IOException
public Value.ValueTypeCase getValueTypeCase()
getValueTypeCase
in interface ValueOrBuilder
public Value.Builder clearValueType()
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;
public NullValue getNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
getNullValue
in interface ValueOrBuilder
public Value.Builder setNullValue(NullValue value)
A null value.
.google.protobuf.NullValue null_value = 11;
public Value.Builder clearNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;
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;
public Value.Builder clearBooleanValue()
A boolean value.
bool boolean_value = 1;
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;
public Value.Builder clearIntegerValue()
An integer value.
int64 integer_value = 2;
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;
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 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(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(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(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 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 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 Value.Builder setStringValue(java.lang.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;
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(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;
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 Value.Builder setBytesValue(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;
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 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 Value.Builder setReferenceValue(java.lang.String value)
A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string reference_value = 5;
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(ByteString value)
A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string reference_value = 5;
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 Value.Builder setGeoPointValue(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(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(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 LatLng.Builder getGeoPointValueBuilder()
A geo point value representing a point on the surface of Earth.
.google.type.LatLng geo_point_value = 8;
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 Value.Builder setArrayValue(ArrayValue value)
An array value. Cannot contain another array value.
.google.firestore.v1beta1.ArrayValue array_value = 9;
public Value.Builder setArrayValue(ArrayValue.Builder builderForValue)
An array value. Cannot contain another array value.
.google.firestore.v1beta1.ArrayValue array_value = 9;
public Value.Builder mergeArrayValue(ArrayValue value)
An array value. Cannot contain another array value.
.google.firestore.v1beta1.ArrayValue array_value = 9;
public Value.Builder clearArrayValue()
An array value. Cannot contain another array value.
.google.firestore.v1beta1.ArrayValue array_value = 9;
public ArrayValue.Builder getArrayValueBuilder()
An array value. Cannot contain another array value.
.google.firestore.v1beta1.ArrayValue array_value = 9;
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 Value.Builder setMapValue(MapValue value)
A map value.
.google.firestore.v1beta1.MapValue map_value = 6;
public Value.Builder setMapValue(MapValue.Builder builderForValue)
A map value.
.google.firestore.v1beta1.MapValue map_value = 6;
public Value.Builder mergeMapValue(MapValue value)
A map value.
.google.firestore.v1beta1.MapValue map_value = 6;
public Value.Builder clearMapValue()
A map value.
.google.firestore.v1beta1.MapValue map_value = 6;
public MapValue.Builder getMapValueBuilder()
A map value.
.google.firestore.v1beta1.MapValue map_value = 6;
public MapValueOrBuilder getMapValueOrBuilder()
A map value.
.google.firestore.v1beta1.MapValue map_value = 6;
getMapValueOrBuilder
in interface ValueOrBuilder
public final Value.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Value.Builder>
public final Value.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Value.Builder>