# Interface ValueOrBuilder (3.43.1)

3.43.1 (latest) 3.41.0 3.38.0 3.37.0 3.36.0 3.35.1 3.33.4 3.32.2 3.31.9 3.30.11 3.28.0 3.27.2 3.26.5 3.25.1 3.24.3 3.22.0 3.21.4 3.20.0 3.17.0 3.16.3 3.15.7 3.14.4 3.13.2 3.12.1 3.11.0 3.10.0 3.9.6 3.8.2 3.7.10 3.6.0 3.5.0 3.4.2 3.3.0 3.2.0 3.1.0 3.0.21

    public interface ValueOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getArrayValue()

    public abstract ArrayValue 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.ArrayValue` | The arrayValue. |

### getArrayValueOrBuilder()

    public abstract ArrayValueOrBuilder 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.ArrayValueOrBuilder` |   |

### getBooleanValue()

    public abstract boolean getBooleanValue()

A boolean value.

`bool boolean_value = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The booleanValue. |

### getBytesValue()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytesValue. |

### getDoubleValue()

    public abstract double getDoubleValue()

A double value.

`double double_value = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The doubleValue. |

### getFieldReferenceValue()

    public abstract String getFieldReferenceValue()

Value which references a field.

This is considered relative (vs absolute) since it only refers to a field
and not a field within a particular document.

**Requires:**

- Must follow field reference limitations.

- Not allowed to be used when writing documents.

`string field_reference_value = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The fieldReferenceValue. |

### getFieldReferenceValueBytes()

    public abstract ByteString getFieldReferenceValueBytes()

Value which references a field.

This is considered relative (vs absolute) since it only refers to a field
and not a field within a particular document.

**Requires:**

- Must follow field reference limitations.

- Not allowed to be used when writing documents.

`string field_reference_value = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for fieldReferenceValue. |

### getFunctionValue()

    public abstract Function getFunctionValue()

A value that represents an unevaluated expression.

**Requires:**

- Not allowed to be used when writing documents.

`.google.firestore.v1.Function function_value = 20;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.Function` | The functionValue. |

### getFunctionValueOrBuilder()

    public abstract FunctionOrBuilder getFunctionValueOrBuilder()

A value that represents an unevaluated expression.

**Requires:**

- Not allowed to be used when writing documents.

`.google.firestore.v1.Function function_value = 20;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.FunctionOrBuilder` |   |

### getGeoPointValue()

    public abstract LatLng getGeoPointValue()

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

`.google.type.LatLng geo_point_value = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.LatLng` | The geoPointValue. |

### getGeoPointValueOrBuilder()

    public abstract LatLngOrBuilder getGeoPointValueOrBuilder()

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

`.google.type.LatLng geo_point_value = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.LatLngOrBuilder` |   |

### getIntegerValue()

    public abstract long getIntegerValue()

An integer value.

`int64 integer_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The integerValue. |

### getMapValue()

    public abstract MapValue getMapValue()

A map value.

`.google.firestore.v1.MapValue map_value = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.MapValue` | The mapValue. |

### getMapValueOrBuilder()

    public abstract MapValueOrBuilder getMapValueOrBuilder()

A map value.

`.google.firestore.v1.MapValue map_value = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.MapValueOrBuilder` |   |

### getNullValue()

    public abstract NullValue getNullValue()

A null value.

`.google.protobuf.NullValue null_value = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.NullValue.html` | The nullValue. |

### getNullValueValue()

    public abstract int getNullValueValue()

A null value.

`.google.protobuf.NullValue null_value = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for nullValue. |

### getPipelineValue()

    public abstract Pipeline getPipelineValue()

A value that represents an unevaluated pipeline.

**Requires:**

- Not allowed to be used when writing documents.

`.google.firestore.v1.Pipeline pipeline_value = 21;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.Pipeline` | The pipelineValue. |

### getPipelineValueOrBuilder()

    public abstract PipelineOrBuilder getPipelineValueOrBuilder()

A value that represents an unevaluated pipeline.

**Requires:**

- Not allowed to be used when writing documents.

`.google.firestore.v1.Pipeline pipeline_value = 21;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.PipelineOrBuilder` |   |

### getReferenceValue()

    public abstract String getReferenceValue()

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

`string reference_value = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The referenceValue. |

### getReferenceValueBytes()

    public abstract ByteString getReferenceValueBytes()

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

`string reference_value = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for referenceValue. |

### getStringValue()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The stringValue. |

### getStringValueBytes()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for stringValue. |

### getTimestampValue()

    public abstract Timestamp getTimestampValue()

A timestamp value.

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

`.google.protobuf.Timestamp timestamp_value = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The timestampValue. |

### getTimestampValueOrBuilder()

    public abstract TimestampOrBuilder getTimestampValueOrBuilder()

A timestamp value.

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

`.google.protobuf.Timestamp timestamp_value = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getValueTypeCase()

    public abstract Value.ValueTypeCase getValueTypeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.Value.ValueTypeCase` |   |

### getVariableReferenceValue()

    public abstract String getVariableReferenceValue()

Pointer to a variable defined elsewhere in a pipeline.

Unlike `field_reference_value` which references a field within a
document, this refers to a variable, defined in a separate namespace than
the fields of a document.

`string variable_reference_value = 22;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The variableReferenceValue. |

### getVariableReferenceValueBytes()

    public abstract ByteString getVariableReferenceValueBytes()

Pointer to a variable defined elsewhere in a pipeline.

Unlike `field_reference_value` which references a field within a
document, this refers to a variable, defined in a separate namespace than
the fields of a document.

`string variable_reference_value = 22;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for variableReferenceValue. |

### hasArrayValue()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the arrayValue field is set. |

### hasBooleanValue()

    public abstract boolean hasBooleanValue()

A boolean value.

`bool boolean_value = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the booleanValue field is set. |

### hasBytesValue()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the bytesValue field is set. |

### hasDoubleValue()

    public abstract boolean hasDoubleValue()

A double value.

`double double_value = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the doubleValue field is set. |

### hasFieldReferenceValue()

    public abstract boolean hasFieldReferenceValue()

Value which references a field.

This is considered relative (vs absolute) since it only refers to a field
and not a field within a particular document.

**Requires:**

- Must follow field reference limitations.

- Not allowed to be used when writing documents.

`string field_reference_value = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the fieldReferenceValue field is set. |

### hasFunctionValue()

    public abstract boolean hasFunctionValue()

A value that represents an unevaluated expression.

**Requires:**

- Not allowed to be used when writing documents.

`.google.firestore.v1.Function function_value = 20;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the functionValue field is set. |

### hasGeoPointValue()

    public abstract boolean hasGeoPointValue()

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

`.google.type.LatLng geo_point_value = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the geoPointValue field is set. |

### hasIntegerValue()

    public abstract boolean hasIntegerValue()

An integer value.

`int64 integer_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the integerValue field is set. |

### hasMapValue()

    public abstract boolean hasMapValue()

A map value.

`.google.firestore.v1.MapValue map_value = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the mapValue field is set. |

### hasNullValue()

    public abstract boolean hasNullValue()

A null value.

`.google.protobuf.NullValue null_value = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the nullValue field is set. |

### hasPipelineValue()

    public abstract boolean hasPipelineValue()

A value that represents an unevaluated pipeline.

**Requires:**

- Not allowed to be used when writing documents.

`.google.firestore.v1.Pipeline pipeline_value = 21;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the pipelineValue field is set. |

### hasReferenceValue()

    public abstract boolean hasReferenceValue()

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

`string reference_value = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the referenceValue field is set. |

### hasStringValue()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the stringValue field is set. |

### hasTimestampValue()

    public abstract boolean hasTimestampValue()

A timestamp value.

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

`.google.protobuf.Timestamp timestamp_value = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the timestampValue field is set. |

### hasVariableReferenceValue()

    public abstract boolean hasVariableReferenceValue()

Pointer to a variable defined elsewhere in a pipeline.

Unlike `field_reference_value` which references a field within a
document, this refers to a variable, defined in a separate namespace than
the fields of a document.

`string variable_reference_value = 22;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the variableReferenceValue field is set. |