Class MapValueField

public class MapValueField

A message that can hold any of the supported value types.

Inheritance

java.lang.Object > MapValueField

Constructors

MapValueField()

public MapValueField()

Methods

getArrayValue()

public ArrayValue getArrayValue()

An array value. Cannot directly contain another array value, though can contain an map which contains another array.

Returns
TypeDescription
ArrayValue

getBooleanValue()

public Boolean getBooleanValue()

A boolean value.

Returns
TypeDescription
Boolean

getBytesValue()

public String getBytesValue()

A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.

Returns
TypeDescription
String

getDoubleValue()

public Double getDoubleValue()

A double value.

Returns
TypeDescription
Double

getGeoPointValue()

public GeoPointValue getGeoPointValue()

A geo point value representing a point on the surface of Earth.

Returns
TypeDescription
GeoPointValue

getIntegerValue()

public Long getIntegerValue()

An integer value.

Returns
TypeDescription
Long

getMapValue()

public MapValue getMapValue()

A map value.

Returns
TypeDescription
MapValue

getNullValue()

public NullValue getNullValue()

A null value.

Returns
TypeDescription
NullValue

getReferenceValue()

public String getReferenceValue()

A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.

Returns
TypeDescription
String

getStringValue()

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.

Returns
TypeDescription
String

getTimestampValue()

public OffsetDateTime getTimestampValue()

A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.

Returns
TypeDescription
OffsetDateTime

setArrayValue(ArrayValue value)

public void setArrayValue(ArrayValue value)
Parameter
NameDescription
valueArrayValue

setBooleanValue(Boolean value)

public void setBooleanValue(Boolean value)
Parameter
NameDescription
valueBoolean

setBytesValue(String value)

public void setBytesValue(String value)
Parameter
NameDescription
valueString

setDoubleValue(Double value)

public void setDoubleValue(Double value)
Parameter
NameDescription
valueDouble

setGeoPointValue(GeoPointValue value)

public void setGeoPointValue(GeoPointValue value)
Parameter
NameDescription
valueGeoPointValue

setIntegerValue(Long value)

public void setIntegerValue(Long value)
Parameter
NameDescription
valueLong

setMapValue(MapValue value)

public void setMapValue(MapValue value)
Parameter
NameDescription
valueMapValue

setNullValue(NullValue value)

public void setNullValue(NullValue value)
Parameter
NameDescription
valueNullValue

setReferenceValue(String value)

public void setReferenceValue(String value)
Parameter
NameDescription
valueString

setStringValue(String value)

public void setStringValue(String value)
Parameter
NameDescription
valueString

setTimestampValue(OffsetDateTime value)

public void setTimestampValue(OffsetDateTime value)
Parameter
NameDescription
valueOffsetDateTime