# Class ReadModifyWriteRow (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 ReadModifyWriteRow implements Serializable

Wraps a ReadModifyWriteRowRequest.

## Inheritance

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

## Implements

[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 ReadModifyWriteRow create(TargetId targetId, ByteString key)

Creates a new instance of the ReadModifyWriteRow 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.ReadModifyWriteRow` |   |

### create(TargetId targetId, String key)

    public static ReadModifyWriteRow create(TargetId targetId, String key)

Creates a new instance of the ReadModifyWriteRow 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.ReadModifyWriteRow` |   |

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

    public static ReadModifyWriteRow create(String tableId, ByteString key)

**Deprecated.** *Please use [ReadModifyWriteRow#create(TargetId, ByteString)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow#com_google_cloud_bigtable_data_v2_models_ReadModifyWriteRow_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.ReadModifyWriteRow` |   |

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

    public static ReadModifyWriteRow create(String tableId, String key)

**Deprecated.** *Please use [ReadModifyWriteRow#create(TargetId, String)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow#com_google_cloud_bigtable_data_v2_models_ReadModifyWriteRow_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.ReadModifyWriteRow` |   |

### fromProto(ReadModifyWriteRowRequest request)

    public static ReadModifyWriteRow fromProto(ReadModifyWriteRowRequest 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 ReadModifyWriteRowRequest.

WARNING: Please note that the table_name will be overwritten by the configuration in the
BigtableDataClient.

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

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

## Methods

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

    public ReadModifyWriteRow append(String familyName, ByteString qualifier, ByteString value)

Appends the value to the existing value of the cell. If the targeted cell is unset, it will be
treated as containing the empty string.

| **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.ReadModifyWriteRow` |   |

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

    public ReadModifyWriteRow append(String familyName, String qualifier, String value)

Appends the value to the existing value of the cell. If the targeted cell is unset, it will be
treated as containing the empty string.

| **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.ReadModifyWriteRow` |   |

### increment(String familyName, ByteString qualifier, long amount)

    public ReadModifyWriteRow increment(String familyName, ByteString qualifier, long amount)

Adds `amount` be added to the existing value. If the targeted cell is unset, it will be treated
as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as
a 64-bit big-endian signed integer), or the entire request will fail.

| **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` |
| `amount` | `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.ReadModifyWriteRow` |   |

### increment(String familyName, String qualifier, long amount)

    public ReadModifyWriteRow increment(String familyName, String qualifier, long amount)

Adds `amount` be added to the existing value. If the targeted cell is unset, it will be treated
as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as
a 64-bit big-endian signed integer), or the entire request will fail.

| **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` |
| `amount` | `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.ReadModifyWriteRow` |   |

### toProto(RequestContext requestContext)

    public ReadModifyWriteRowRequest 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.ReadModifyWriteRowRequest` |   |