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 |
hasGeoPointValue()
A geo point value representing a point on the surface of Earth.
|
boolean |
hasMapValue()
A map 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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>public Value getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Value build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Value buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Value.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone 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.BuildersetField 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.BuilderclearField 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.BuilderclearOneof 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.BuildersetRepeatedField 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.BuilderaddRepeatedField 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.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Value.Builder>IOExceptionpublic Value.ValueTypeCase getValueTypeCase()
getValueTypeCase in interface ValueOrBuilderpublic Value.Builder clearValueType()
public int getNullValueValue()
A null value.
.google.protobuf.NullValue null_value = 11;getNullValueValue in interface ValueOrBuilderpublic Value.Builder setNullValueValue(int value)
A null value.
.google.protobuf.NullValue null_value = 11;public com.google.protobuf.NullValue getNullValue()
A null value.
.google.protobuf.NullValue null_value = 11;getNullValue in interface ValueOrBuilderpublic Value.Builder setNullValue(com.google.protobuf.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 ValueOrBuilderpublic 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 ValueOrBuilderpublic 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 ValueOrBuilderpublic 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 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 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 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 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;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;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 ValueOrBuilderpublic 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;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 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 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;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;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 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 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 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 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 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 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 ValueOrBuilderpublic final Value.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields 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.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>Copyright © 2019 Google LLC. All rights reserved.