# Class RowMutation (2.79.0)

2.79.0 (latest) 2.78.1 2.77.0 2.74.0 2.73.0 2.72.0 2.71.0 2.70.0 2.68.0 2.67.1 2.66.0 2.65.1 2.63.0 2.62.0 2.61.0 2.60.0 2.59.0 2.58.2 2.56.0 2.54.0 2.52.0 2.51.2 2.49.0 2.46.0 2.45.1 2.44.1 2.43.0 2.42.0 2.40.0 2.39.5 2.37.0 2.35.1 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.1 2.28.0

    public final class RowMutation implements MutationApi<RowMutation>, Serializable

Represents a list of mutations targeted at a single row. It's meant to be used as an parameter
for [com.google.cloud.bigtable.data.v2.BigtableDataClient#mutateRowAsync(RowMutation)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.BigtableDataClient#com_google_cloud_bigtable_data_v2_BigtableDataClient_mutateRowAsync_com_google_cloud_bigtable_data_v2_models_RowMutation_).

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> RowMutation

## Implements

com.google.cloud.bigtable.data.v2.models.MutationApi\<com.google.cloud.bigtable.data.v2.models.RowMutation\>, [Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html)

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### create(TargetId targetId, ByteString key)

    public static RowMutation create(TargetId targetId, ByteString key)

Creates a new instance of the mutation builder for the given target with targetId.
See Also: [TableId](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.TableId), [AuthorizedViewId](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.AuthorizedViewId)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `targetId` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.TargetId` |
| `key` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### create(TargetId targetId, ByteString key, Mutation mutation)

    public static RowMutation create(TargetId targetId, ByteString key, Mutation mutation)

Creates new instance of mutation builder for the given target with targetId by wrapping
existing set of row mutations. The builder will be owned by this RowMutation and should not be
used by the caller after this call. This functionality is intended for advanced usage.

Sample code:


     Mutation mutation = Mutation.create()
         .setCell("[FAMILY_NAME]", "[QUALIFIER]", [TIMESTAMP], "[VALUE]");
     RowMutation rowMutation = RowMutation.create(TableId.of("[TABLE]"), [BYTE_STRING_ROW_KEY], mutation);
     
See Also: [TableId](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.TableId), [AuthorizedViewId](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.AuthorizedViewId)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `targetId` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.TargetId` |
| `key` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |
| `mutation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Mutation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### create(TargetId targetId, String key)

    public static RowMutation create(TargetId targetId, String key)

Creates a new instance of the mutation builder for the given target with targetId.
See Also: [TableId](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.TableId), [AuthorizedViewId](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.AuthorizedViewId)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `targetId` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.TargetId` |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### create(TargetId targetId, String key, Mutation mutation)

    public static RowMutation create(TargetId targetId, String key, Mutation mutation)

Creates new instance of mutation builder for the given target with targetId by wrapping
existing set of row mutations. The builder will be owned by this RowMutation and should not be
used by the caller after this call. This functionality is intended for advanced usage.

Sample code:


     Mutation mutation = Mutation.create()
         .setCell("[FAMILY_NAME]", "[QUALIFIER]", [TIMESTAMP], "[VALUE]");
     RowMutation rowMutation = RowMutation.create(TableId.of("[TABLE]"), "[ROW_KEY]", mutation);
     
See Also: [TableId](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.TableId), [AuthorizedViewId](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.AuthorizedViewId)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `targetId` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.TargetId` |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `mutation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Mutation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### create(String tableId, ByteString key) (deprecated)

    public static RowMutation create(String tableId, ByteString key)

**Deprecated.** *Please use [RowMutation#create(TargetId, ByteString)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation#com_google_cloud_bigtable_data_v2_models_RowMutation_create_com_google_cloud_bigtable_data_v2_models_TargetId_com_google_protobuf_ByteString_) instead.*

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `key` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### create(String tableId, ByteString key, Mutation mutation) (deprecated)

    public static RowMutation create(String tableId, ByteString key, Mutation mutation)

**Deprecated.** *Please use [RowMutation#create(TargetId, ByteString, Mutation)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation#com_google_cloud_bigtable_data_v2_models_RowMutation_create_com_google_cloud_bigtable_data_v2_models_TargetId_com_google_protobuf_ByteString_com_google_cloud_bigtable_data_v2_models_Mutation_) instead.*

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `key` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |
| `mutation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Mutation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### create(String tableId, String key) (deprecated)

    public static RowMutation create(String tableId, String key)

**Deprecated.** *Please use [RowMutation#create(TargetId, String)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation#com_google_cloud_bigtable_data_v2_models_RowMutation_create_com_google_cloud_bigtable_data_v2_models_TargetId_java_lang_String_) instead.*

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### create(String tableId, String key, Mutation mutation) (deprecated)

    public static RowMutation create(String tableId, String key, Mutation mutation)

**Deprecated.** *Please use [RowMutation#create(TargetId, String, Mutation)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation#com_google_cloud_bigtable_data_v2_models_RowMutation_create_com_google_cloud_bigtable_data_v2_models_TargetId_java_lang_String_com_google_cloud_bigtable_data_v2_models_Mutation_) instead.*

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `mutation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Mutation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### fromProto(MutateRowRequest request)

    public static RowMutation fromProto(MutateRowRequest request)

> [!WARNING]
> **Beta**
>
> This feature is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1) of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.

Wraps the protobuf MutateRowRequest.

This is meant for advanced usage only. Please ensure that the MutateRowRequest does not use
server side timestamps. The BigtableDataClient assumes that RowMutations are idempotent and is
configured to enable retries by default. If serverside timestamps are enabled, this can lead to
duplicate mutations.

WARNING: when applied, the resulting mutation object will ignore the project id and instance
id in the table_name and instead apply the configuration in the client.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.bigtable.v2.MutateRowRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

## Methods

### addToCell(String familyName, Value qualifier, Value timestamp, Value input)

    public RowMutation addToCell(String familyName, Value qualifier, Value timestamp, Value input)

Adds a [Value](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Value) to an aggregate cell. The column family must be an aggregate family and
have an input type matching the type of [Value](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Value) or this mutation will be rejected.

Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: `1571902339435000`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Value` |
| `timestamp` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Value` |
| `input` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Value` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### deleteCells(String familyName, ByteString qualifier)

    public RowMutation deleteCells(String familyName, ByteString qualifier)

Adds a mutation which deletes cells from the specified column.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### deleteCells(String familyName, ByteString qualifier, Range.TimestampRange timestampRange)

    public RowMutation deleteCells(String familyName, ByteString qualifier, Range.TimestampRange timestampRange)

Adds a mutation which deletes cells from the specified column, restricted to a given timestamp
range.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |
| `timestampRange` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Range.TimestampRange` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### deleteCells(String familyName, String qualifier)

    public RowMutation deleteCells(String familyName, String qualifier)

Adds a mutation which deletes cells from the specified column.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### deleteFamily(String familyName)

    public RowMutation deleteFamily(String familyName)

Adds a mutation which deletes all cells from the specified column family.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### deleteRow()

    public RowMutation deleteRow()

Adds a mutation which deletes all cells from the containing row.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### getTargetId()

    public TargetId getTargetId()

> [!WARNING]
> **Internal Only**: This feature is not stable for application use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.TargetId` |   |

### mergeToCell(String familyName, Value qualifier, Value timestamp, Value input)

    public RowMutation mergeToCell(String familyName, Value qualifier, Value timestamp, Value input)

Merges a [Value](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Value) accumulator to an aggregate cell. The column family must be an aggregate
family or this mutation will be rejected.

Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: `1571902339435000`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Value` |
| `timestamp` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Value` |
| `input` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.Value` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### setCell(String familyName, ByteString qualifier, ByteString value)

    public RowMutation setCell(String familyName, ByteString qualifier, ByteString value)

Adds a mutation which sets the value of the specified cell.

Uses microseconds since epoch as the timestamp.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### setCell(String familyName, ByteString qualifier, long value)

    public RowMutation setCell(String familyName, ByteString qualifier, long value)

Adds a mutation which sets the value of the specified cell.

Uses microseconds since epoch as the timestamp.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### setCell(String familyName, ByteString qualifier, long timestamp, ByteString value)

    public RowMutation setCell(String familyName, ByteString qualifier, long timestamp, ByteString value)

Adds a mutation which sets the value of the specified cell.

Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: `1571902339435000`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |
| `timestamp` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### setCell(String familyName, ByteString qualifier, long timestamp, long value)

    public RowMutation setCell(String familyName, ByteString qualifier, long timestamp, long value)

Adds a mutation which sets the value of the specified cell.

Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: `1571902339435000`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |
| `timestamp` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### setCell(String familyName, String qualifier, String value)

    public RowMutation setCell(String familyName, String qualifier, String value)

Adds a mutation which sets the value of the specified cell.

This a convenience method that converts Strings to ByteStrings and uses microseconds since
epoch as the timestamp.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### setCell(String familyName, String qualifier, long value)

    public RowMutation setCell(String familyName, String qualifier, long value)

Adds a mutation which sets the value of the specified cell.

This a convenience method that converts Strings to ByteStrings and uses microseconds since
epoch as the timestamp. Also it accepts long value.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### setCell(String familyName, String qualifier, long timestamp, String value)

    public RowMutation setCell(String familyName, String qualifier, long timestamp, String value)

Adds a mutation which sets the value of the specified cell.

This is a convenience override that converts Strings to ByteStrings.

Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: `1571902339435000`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `timestamp` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### setCell(String familyName, String qualifier, long timestamp, long value)

    public RowMutation setCell(String familyName, String qualifier, long timestamp, long value)

Adds a mutation which sets the value of the specified cell.

This is a convenience override that converts Strings to ByteStrings.

Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: `1571902339435000`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `familyName` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `qualifier` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `timestamp` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.RowMutation` |   |

### toBulkProto(RequestContext requestContext)

    public MutateRowsRequest toBulkProto(RequestContext requestContext)

> [!WARNING]
> **Internal Only**: This feature is not stable for application use.

Creates a single entry bulk com.google.bigtable.v2.MutateRowsRequest, which will be
merged by the batching logic in the callable chain.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `requestContext` | `com.google.cloud.bigtable.data.v2.internal.RequestContext` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.bigtable.v2.MutateRowsRequest` |   |

### toProto(RequestContext requestContext)

    public MutateRowRequest toProto(RequestContext requestContext)

> [!WARNING]
> **Internal Only**: This feature is not stable for application use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `requestContext` | `com.google.cloud.bigtable.data.v2.internal.RequestContext` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.bigtable.v2.MutateRowRequest` |   |

### toSessionProto()

    public SessionMutateRowRequest toSessionProto()

> [!WARNING]
> **Internal Only**: This feature is not stable for application use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.bigtable.v2.SessionMutateRowRequest` |   |