The options shared by read requests.

JSON representation

  // Union field consistency_type can be only one of the following:
  "readConsistency": enum(ReadConsistency),
  "transaction": string,
  // End of list of possible types for union field consistency_type.
Union field consistency_type. If not specified, lookups and ancestor queries default to read_consistency=STRONG, global queries default to read_consistency=EVENTUAL. consistency_type can be only one of the following:


The non-transactional read consistency to use. Cannot be set to STRONG for global queries.


string (bytes format)

The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.

A base64-encoded string.


The possible values for read consistencies.

READ_CONSISTENCY_UNSPECIFIED Unspecified. This value must not be used.
STRONG Strong consistency.
EVENTUAL Eventual consistency.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Datastore