class Google::Apis::DatastoreV1::ReadOptions

The options shared by read requests.

Attributes

read_consistency[RW]

The non-transactional read consistency to use. Cannot be set to `STRONG` for global queries. Corresponds to the JSON property `readConsistency` @return [String]

transaction[RW]

The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction. Corresponds to the JSON property `transaction` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datastore_v1/classes.rb, line 1766
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datastore_v1/classes.rb, line 1771
def update!(**args)
  @read_consistency = args[:read_consistency] if args.key?(:read_consistency)
  @transaction = args[:transaction] if args.key?(:transaction)
end