# Cloud Bigtable V2 Client - Class MergeToCell (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 MergeToCell.

A Mutation which merges accumulated state into a cell in an `Aggregate`
family.

Generated from protobuf message `google.bigtable.v2.Mutation.MergeToCell`

## Namespace

Google \\ Cloud \\ Bigtable \\ V2 \\ Mutation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ family_name` | `string` The name of the `Aggregate` family into which new data should be added. This must be a family with a `value_type` of `Aggregate`. Format: `[-_.a-zA-Z0-9]+` |
| `↳ column_qualifier` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Value` The qualifier of the column into which new data should be added. This must be a `raw_value`. |
| `↳ timestamp` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Value` The timestamp of the cell to which new data should be added. This must be a `raw_timestamp_micros` that matches the table's `granularity`. |
| `↳ input` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Value` The input value to be merged into the specified cell. This must be compatible with the family's `value_type.state_type`. Merging `NULL` is allowed, but has no effect. |

### getFamilyName

The name of the `Aggregate` family into which new data should be added.

This must be a family with a `value_type` of `Aggregate`.
Format: `[-_.a-zA-Z0-9]+`

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

### setFamilyName

The name of the `Aggregate` family into which new data should be added.

This must be a family with a `value_type` of `Aggregate`.
Format: `[-_.a-zA-Z0-9]+`

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

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

### getColumnQualifier

The qualifier of the column into which new data should be added. This
must be a `raw_value`.

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

### hasColumnQualifier

### clearColumnQualifier

### setColumnQualifier

The qualifier of the column into which new data should be added. This
must be a `raw_value`.

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

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

### getTimestamp

The timestamp of the cell to which new data should be added. This must
be a `raw_timestamp_micros` that matches the table's `granularity`.

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

### hasTimestamp

### clearTimestamp

### setTimestamp

The timestamp of the cell to which new data should be added. This must
be a `raw_timestamp_micros` that matches the table's `granularity`.

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

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

### getInput

The input value to be merged into the specified cell. This must be
compatible with the family's `value_type.state_type`. Merging `NULL` is
allowed, but has no effect.

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

### hasInput

### clearInput

### setInput

The input value to be merged into the specified cell. This must be
compatible with the family's `value_type.state_type`. Merging `NULL` is
allowed, but has no effect.

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

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