ReadOptions

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.
}
Fields
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:
readConsistency

enum(ReadConsistency)

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

transaction

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.

ReadConsistency

The possible values for read consistencies.

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

Send feedback about...

Cloud Datastore