# Interface DataChangeRecordOrBuilder (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 DataChangeRecordOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getColumnTypes(int index)

    public abstract DataChangeRecord.ColumnType getColumnTypes(int index)

Column types defined in the schema.

`repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getColumnTypesCount()

    public abstract int getColumnTypesCount()

Column types defined in the schema.

`repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;`

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

### getColumnTypesList()

    public abstract List<DataChangeRecord.ColumnType> getColumnTypesList()

Column types defined in the schema.

`repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-spanner/latest/com.google.spanner.executor.v1.DataChangeRecord.ColumnType>` |   |

### getColumnTypesOrBuilder(int index)

    public abstract DataChangeRecord.ColumnTypeOrBuilder getColumnTypesOrBuilder(int index)

Column types defined in the schema.

`repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getColumnTypesOrBuilderList()

    public abstract List<? extends DataChangeRecord.ColumnTypeOrBuilder> getColumnTypesOrBuilderList()

Column types defined in the schema.

`repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder>` |   |

### getCommitTime()

    public abstract Timestamp getCommitTime()

The timestamp in which the change was committed.

`.google.protobuf.Timestamp commit_time = 1;`

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

### getCommitTimeOrBuilder()

    public abstract TimestampOrBuilder getCommitTimeOrBuilder()

The timestamp in which the change was committed.

`.google.protobuf.Timestamp commit_time = 1;`

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

### getIsLastRecord()

    public abstract boolean getIsLastRecord()

Indicates whether this is the last record for a transaction in the current
partition.

`bool is_last_record = 4;`

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

### getIsSystemTransaction()

    public abstract boolean getIsSystemTransaction()

Whether the transaction is a system transactionn.

`bool is_system_transaction = 13;`

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

### getModType()

    public abstract String getModType()

Describes the type of change. One of INSERT, UPDATE or DELETE.

`string mod_type = 8;`

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

### getModTypeBytes()

    public abstract ByteString getModTypeBytes()

Describes the type of change. One of INSERT, UPDATE or DELETE.

`string mod_type = 8;`

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

### getMods(int index)

    public abstract DataChangeRecord.Mod getMods(int index)

Changes made in the transaction.

`repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getModsCount()

    public abstract int getModsCount()

Changes made in the transaction.

`repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;`

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

### getModsList()

    public abstract List<DataChangeRecord.Mod> getModsList()

Changes made in the transaction.

`repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-spanner/latest/com.google.spanner.executor.v1.DataChangeRecord.Mod>` |   |

### getModsOrBuilder(int index)

    public abstract DataChangeRecord.ModOrBuilder getModsOrBuilder(int index)

Changes made in the transaction.

`repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getModsOrBuilderList()

    public abstract List<? extends DataChangeRecord.ModOrBuilder> getModsOrBuilderList()

Changes made in the transaction.

`repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder>` |   |

### getPartitionCount()

    public abstract long getPartitionCount()

Number of partitions in transactions.

`int64 partition_count = 11;`

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

### getRecordCount()

    public abstract long getRecordCount()

Number of records in transactions.

`int64 record_count = 10;`

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

### getRecordSequence()

    public abstract String getRecordSequence()

The sequence number for the record within the transaction.

`string record_sequence = 2;`

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

### getRecordSequenceBytes()

    public abstract ByteString getRecordSequenceBytes()

The sequence number for the record within the transaction.

`string record_sequence = 2;`

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

### getTable()

    public abstract String getTable()

Name of the table affected by the change.

`string table = 5;`

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

### getTableBytes()

    public abstract ByteString getTableBytes()

Name of the table affected by the change.

`string table = 5;`

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

### getTransactionId()

    public abstract String getTransactionId()

A globally unique string that represents the transaction in which the
change was committed.

`string transaction_id = 3;`

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

### getTransactionIdBytes()

    public abstract ByteString getTransactionIdBytes()

A globally unique string that represents the transaction in which the
change was committed.

`string transaction_id = 3;`

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

### getTransactionTag()

    public abstract String getTransactionTag()

Transaction tag info.

`string transaction_tag = 12;`

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

### getTransactionTagBytes()

    public abstract ByteString getTransactionTagBytes()

Transaction tag info.

`string transaction_tag = 12;`

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

### getValueCaptureType()

    public abstract String getValueCaptureType()

One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.

`string value_capture_type = 9;`

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

### getValueCaptureTypeBytes()

    public abstract ByteString getValueCaptureTypeBytes()

One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.

`string value_capture_type = 9;`

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

### hasCommitTime()

    public abstract boolean hasCommitTime()

The timestamp in which the change was committed.

`.google.protobuf.Timestamp commit_time = 1;`

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