# Interface CommitResponseOrBuilder (3.1.0)

3.1.0 (latest) 2.40.0 2.37.0 2.36.0 2.34.0 2.33.3 2.32.3 2.31.4 2.30.0 2.29.1 2.28.2 2.27.1 2.26.4 2.25.2 2.24.3 2.23.0 2.22.0 2.21.3 2.20.2 2.19.2 2.18.5 2.17.6

    public interface CommitResponseOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCommitTime()

    public abstract Timestamp getCommitTime()

The transaction commit timestamp. Not set for non-transactional commits.

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

| **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 transaction commit timestamp. Not set for non-transactional commits.

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

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

### getIndexUpdates()

    public abstract int getIndexUpdates()

The number of index entries updated during the commit, or zero if none were
updated.

`int32 index_updates = 4;`

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

### getMutationResults(int index)

    public abstract MutationResult getMutationResults(int index)

The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.

`repeated .google.datastore.v1.MutationResult mutation_results = 3;`

| **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-datastore/latest/com.google.datastore.v1.MutationResult` |   |

### getMutationResultsCount()

    public abstract int getMutationResultsCount()

The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.

`repeated .google.datastore.v1.MutationResult mutation_results = 3;`

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

### getMutationResultsList()

    public abstract List<MutationResult> getMutationResultsList()

The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.

`repeated .google.datastore.v1.MutationResult mutation_results = 3;`

| **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-datastore/latest/com.google.datastore.v1.MutationResult>` |   |

### getMutationResultsOrBuilder(int index)

    public abstract MutationResultOrBuilder getMutationResultsOrBuilder(int index)

The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.

`repeated .google.datastore.v1.MutationResult mutation_results = 3;`

| **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-datastore/latest/com.google.datastore.v1.MutationResultOrBuilder` |   |

### getMutationResultsOrBuilderList()

    public abstract List<? extends MutationResultOrBuilder> getMutationResultsOrBuilderList()

The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.

`repeated .google.datastore.v1.MutationResult mutation_results = 3;`

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

### hasCommitTime()

    public abstract boolean hasCommitTime()

The transaction commit timestamp. Not set for non-transactional commits.

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

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