# Interface ValueOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.firestore.v1.ValueOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.firestore.v1.ValueOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.firestore.v1.ValueOrBuilder)

    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 an
map which contains another array.

`.google.events.cloud.firestore.v1.ArrayValue array_value = 9;`

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

### getArrayValueOrBuilder()

    public abstract ArrayValueOrBuilder getArrayValueOrBuilder()

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

`.google.events.cloud.firestore.v1.ArrayValue array_value = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.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. |

### 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.events.cloud.firestore.v1.MapValue map_value = 6;`

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

### getMapValueOrBuilder()

    public abstract MapValueOrBuilder getMapValueOrBuilder()

A map value.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.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. |

### 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-cloudevent-types/latest/com.google.events.cloud.firestore.v1.Value.ValueTypeCase` |   |

### hasArrayValue()

    public abstract boolean hasArrayValue()

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

`.google.events.cloud.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. |

### 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.events.cloud.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. |

### 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. |