# Interface ValueOrBuilder (6.118.0)

6.118.0 (latest) 6.116.0 6.111.1 6.108.0 6.107.0 6.103.0 6.102.1 6.101.1 6.100.0 6.99.0 6.98.1 6.97.1 6.96.1 6.95.1 6.94.0 6.93.0 6.89.0 6.88.0 6.87.0 6.86.0 6.85.0 6.83.0 6.82.0 6.80.1 6.79.0 6.77.0 6.74.1 6.72.0 6.71.0 6.69.0 6.68.0 6.66.0 6.65.1 6.62.0 6.60.0 6.58.0 6.57.0 6.56.0 6.55.0 6.54.0 6.53.0 6.52.1 6.51.0 6.50.1 6.49.0 6.25.1 6.24.0 6.23.4 6.22.0 6.21.2 6.20.0 6.19.1 6.18.0 6.17.4 6.14.1

    public interface ValueOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getArrayType()

    public abstract Type getArrayType()

Type of array element. Only set if value is an array.

`optional .google.spanner.v1.Type array_type = 12;`

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

### getArrayTypeOrBuilder()

    public abstract TypeOrBuilder getArrayTypeOrBuilder()

Type of array element. Only set if value is an array.

`optional .google.spanner.v1.Type array_type = 12;`

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

### getArrayValue()

    public abstract ValueList getArrayValue()

Array type value. The underlying Valuelist should have values that have
the same type.

`.google.spanner.executor.v1.ValueList array_value = 11;`

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

### getArrayValueOrBuilder()

    public abstract ValueListOrBuilder getArrayValueOrBuilder()

Array type value. The underlying Valuelist should have values that have
the same type.

`.google.spanner.executor.v1.ValueList array_value = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-spanner/latest/com.google.spanner.executor.v1.ValueListOrBuilder` |   |

### getBoolValue()

    public abstract boolean getBoolValue()

Bool type value.

`bool bool_value = 3;`

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

### getBytesValue()

    public abstract ByteString getBytesValue()

Bytes type value, stored in CORD. It's also used for PROTO type value.

`bytes bytes_value = 5;`

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

### getDateDaysValue()

    public abstract int getDateDaysValue()

Date type value. Date is specified as a number of days since Unix epoch.

`int32 date_days_value = 9;`

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

### getDoubleValue()

    public abstract double getDoubleValue()

Double type value. It's used for all float point types, like float and
double.

`double double_value = 4;`

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

### getIntValue()

    public abstract long getIntValue()

Int type value. It's used for all integer number types, like int32 and
int64.

`int64 int_value = 2;`

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

### getIsCommitTimestamp()

    public abstract boolean getIsCommitTimestamp()

If set, holds the sentinel value for the transaction CommitTimestamp.

`bool is_commit_timestamp = 10;`

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

### getIsNull()

    public abstract boolean getIsNull()

If is_null is set, then this value is null.

`bool is_null = 1;`

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

### getStringValue()

    public abstract String getStringValue()

String type value, stored in CORD.

`string string_value = 6;`

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

### getStringValueBytes()

    public abstract ByteString getStringValueBytes()

String type value, stored in CORD.

`string string_value = 6;`

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

### getStructValue()

    public abstract ValueList getStructValue()

Struct type value. It contains a ValueList representing the values in
this struct.

`.google.spanner.executor.v1.ValueList struct_value = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-spanner/latest/com.google.spanner.executor.v1.ValueList` | The structValue. |

### getStructValueOrBuilder()

    public abstract ValueListOrBuilder getStructValueOrBuilder()

Struct type value. It contains a ValueList representing the values in
this struct.

`.google.spanner.executor.v1.ValueList struct_value = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-spanner/latest/com.google.spanner.executor.v1.ValueListOrBuilder` |   |

### getTimestampValue()

    public abstract Timestamp getTimestampValue()

Timestamp type value.

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

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

### getTimestampValueOrBuilder()

    public abstract TimestampOrBuilder getTimestampValueOrBuilder()

Timestamp type value.

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

| **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-spanner/latest/com.google.spanner.executor.v1.Value.ValueTypeCase` |   |

### hasArrayType()

    public abstract boolean hasArrayType()

Type of array element. Only set if value is an array.

`optional .google.spanner.v1.Type array_type = 12;`

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

### hasArrayValue()

    public abstract boolean hasArrayValue()

Array type value. The underlying Valuelist should have values that have
the same type.

`.google.spanner.executor.v1.ValueList array_value = 11;`

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

### hasBoolValue()

    public abstract boolean hasBoolValue()

Bool type value.

`bool bool_value = 3;`

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

### hasBytesValue()

    public abstract boolean hasBytesValue()

Bytes type value, stored in CORD. It's also used for PROTO type value.

`bytes bytes_value = 5;`

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

### hasDateDaysValue()

    public abstract boolean hasDateDaysValue()

Date type value. Date is specified as a number of days since Unix epoch.

`int32 date_days_value = 9;`

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

### hasDoubleValue()

    public abstract boolean hasDoubleValue()

Double type value. It's used for all float point types, like float and
double.

`double double_value = 4;`

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

### hasIntValue()

    public abstract boolean hasIntValue()

Int type value. It's used for all integer number types, like int32 and
int64.

`int64 int_value = 2;`

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

### hasIsCommitTimestamp()

    public abstract boolean hasIsCommitTimestamp()

If set, holds the sentinel value for the transaction CommitTimestamp.

`bool is_commit_timestamp = 10;`

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

### hasIsNull()

    public abstract boolean hasIsNull()

If is_null is set, then this value is null.

`bool is_null = 1;`

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

### hasStringValue()

    public abstract boolean hasStringValue()

String type value, stored in CORD.

`string string_value = 6;`

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

### hasStructValue()

    public abstract boolean hasStructValue()

Struct type value. It contains a ValueList representing the values in
this struct.

`.google.spanner.executor.v1.ValueList struct_value = 7;`

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

### hasTimestampValue()

    public abstract boolean hasTimestampValue()

Timestamp type value.

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

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