2.2.0 (latest) 2.0.6 1.34.2 1.33.1 1.32.3 1.31.0 1.30.0 1.29.2 1.28.2 1.26.0 1.25.0 1.24.4 1.23.0 1.22.1 1.21.2 1.19.0 1.18.1 1.17.1 Reference documentation and code samples for the Cloud Datastore V1 Client class CommitResponse.

The response for [Datastore.Commit](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.Client.DatastoreClient#_Google_Cloud_Datastore_V1_Client_DatastoreClient__commit__).

Generated from protobuf message `google.datastore.v1.CommitResponse`

## Namespace

Google \\ Cloud \\ Datastore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ mutation_results` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.MutationResult>` The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request. |
| `↳ index_updates` | `int` The number of index entries updated during the commit, or zero if none were updated. |
| `↳ commit_time` | `Google\Protobuf\Timestamp` The transaction commit timestamp. Not set for non-transactional commits. |

### getMutationResults

The result of performing the mutations.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.MutationResult>` |   |

### setMutationResults

The result of performing the mutations.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.MutationResult>` |

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

### getIndexUpdates

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setIndexUpdates

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

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

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

### getCommitTime

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCommitTime

### clearCommitTime

### setCommitTime

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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