# Cloud Bigtable V2 Client - Class Value (2.25.0)

2.25.0 (latest) 2.24.0 2.23.0 2.22.0 2.21.1 2.20.2 2.19.2 2.18.0 2.17.1 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.1 2.9.1 2.8.0 2.7.0 2.6.3 2.5.0 2.4.0 2.3.0 2.2.1 2.1.0 2.0.1 1.32.1 1.31.1 1.30.0 1.29.2 1.28.3 1.27.0 1.26.2 1.25.0 1.24.1 1.23.0 1.22.2 1.21.1 1.20.3 Reference documentation and code samples for the Cloud Bigtable V2 Client class Value.

`Value` represents a dynamically typed value.

The typed fields in `Value` are used as a transport encoding for the actual
value (which may be of a more complex type). See the documentation of the
`Type` message for more details.

Generated from protobuf message `google.bigtable.v2.Value`

## Namespace

Google \\ Cloud \\ Bigtable \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Type` The verified `Type` of this `Value`, if it cannot be inferred. Read results will never specify the encoding for `type` since the value will already have been decoded by the server. Furthermore, the `type` will be omitted entirely if it can be inferred from a previous response. The exact semantics for inferring `type` will vary, and are therefore documented separately for each read method. When using composite types (Struct, Array, Map) only the outermost `Value` will specify the `type`. This top-level `type` will define the types for any nested `Struct' fields,`Array`elements, or`Map`key/value pairs. If a nested`Value`provides a`type\` on write, the request will be rejected with INVALID_ARGUMENT. |
| `↳ raw_value` | `string` Represents a raw byte sequence with no type information. The `type` field must be omitted. |
| `↳ raw_timestamp_micros` | `int|string` Represents a raw cell timestamp with no type information. The `type` field must be omitted. |
| `↳ bytes_value` | `string` Represents a typed value transported as a byte sequence. |
| `↳ string_value` | `string` Represents a typed value transported as a string. |
| `↳ int_value` | `int|string` Represents a typed value transported as an integer. |
| `↳ bool_value` | `bool` Represents a typed value transported as a boolean. |
| `↳ float_value` | `float` Represents a typed value transported as a floating point number. Does not support NaN or infinities. |
| `↳ timestamp_value` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Represents a typed value transported as a timestamp. |
| `↳ date_value` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` Represents a typed value transported as a date. |
| `↳ array_value` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ArrayValue` Represents a typed value transported as a sequence of values. To differentiate between `Struct`, `Array`, and `Map`, the outermost `Value` must provide an explicit `type` on write. This `type` will apply recursively to the nested `Struct` fields, `Array` elements, or `Map` key/value pairs, which *must not* supply their own `type`. |

### getType

The verified `Type` of this `Value`, if it cannot be inferred.

Read results will never specify the encoding for `type` since the value
will already have been decoded by the server. Furthermore, the `type` will
be omitted entirely if it can be inferred from a previous response. The
exact semantics for inferring `type` will vary, and are therefore
documented separately for each read method.
When using composite types (Struct, Array, Map) only the outermost `Value`
will specify the `type`. This top-level `type` will define the types for
any nested `Struct' fields,`Array`elements, or`Map`key/value pairs.
If a nested`Value`provides a`type\` on write, the request will be
rejected with INVALID_ARGUMENT.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Type|null` |   |

### hasType

### clearType

### setType

The verified `Type` of this `Value`, if it cannot be inferred.

Read results will never specify the encoding for `type` since the value
will already have been decoded by the server. Furthermore, the `type` will
be omitted entirely if it can be inferred from a previous response. The
exact semantics for inferring `type` will vary, and are therefore
documented separately for each read method.
When using composite types (Struct, Array, Map) only the outermost `Value`
will specify the `type`. This top-level `type` will define the types for
any nested `Struct' fields,`Array`elements, or`Map`key/value pairs.
If a nested`Value`provides a`type\` on write, the request will be
rejected with INVALID_ARGUMENT.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Type` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRawValue

Represents a raw byte sequence with no type information.

The `type` field must be omitted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasRawValue

### setRawValue

Represents a raw byte sequence with no type information.

The `type` field must be omitted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRawTimestampMicros

Represents a raw cell timestamp with no type information.

The `type` field must be omitted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasRawTimestampMicros

### setRawTimestampMicros

Represents a raw cell timestamp with no type information.

The `type` field must be omitted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBytesValue

Represents a typed value transported as a byte sequence.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasBytesValue

### setBytesValue

Represents a typed value transported as a byte sequence.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStringValue

Represents a typed value transported as a string.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasStringValue

### setStringValue

Represents a typed value transported as a string.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIntValue

Represents a typed value transported as an integer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasIntValue

### setIntValue

Represents a typed value transported as an integer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBoolValue

Represents a typed value transported as a boolean.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasBoolValue

### setBoolValue

Represents a typed value transported as a boolean.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFloatValue

Represents a typed value transported as a floating point number.

Does not support NaN or infinities.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasFloatValue

### setFloatValue

Represents a typed value transported as a floating point number.

Does not support NaN or infinities.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTimestampValue

Represents a typed value transported as a timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasTimestampValue

### setTimestampValue

Represents a typed value transported as a timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDateValue

Represents a typed value transported as a date.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html|null` |   |

### hasDateValue

### setDateValue

Represents a typed value transported as a date.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getArrayValue

Represents a typed value transported as a sequence of values.

To differentiate between `Struct`, `Array`, and `Map`, the outermost
`Value` must provide an explicit `type` on write. This `type` will
apply recursively to the nested `Struct` fields, `Array` elements,
or `Map` key/value pairs, which *must not* supply their own `type`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ArrayValue|null` |   |

### hasArrayValue

### setArrayValue

Represents a typed value transported as a sequence of values.

To differentiate between `Struct`, `Array`, and `Map`, the outermost
`Value` must provide an explicit `type` on write. This `type` will
apply recursively to the nested `Struct` fields, `Array` elements,
or `Map` key/value pairs, which *must not* supply their own `type`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ArrayValue` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKind

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |