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 Mode.

The modes available for commits.

Protobuf type `google.datastore.v1.CommitRequest.Mode`

## Namespace

Google \\ Cloud \\ Datastore \\ V1 \\ CommitRequest

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### MODE_UNSPECIFIED

    Value: 0

Unspecified. This value must not be used.

Generated from protobuf enum `MODE_UNSPECIFIED = 0;`

### TRANSACTIONAL

    Value: 1

Transactional: The mutations are either all applied, or none are applied.

Learn about transactions
[here](https://cloud.google.com/datastore/docs/concepts/transactions).

Generated from protobuf enum `TRANSACTIONAL = 1;`

### NON_TRANSACTIONAL

    Value: 2

Non-transactional: The mutations may not apply as all or none.

Generated from protobuf enum `NON_TRANSACTIONAL = 2;`