Class: Google::Apis::DatastoreV1beta3::ReadOptions
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DatastoreV1beta3::ReadOptions
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/datastore_v1beta3/classes.rb,
generated/google/apis/datastore_v1beta3/representations.rb,
generated/google/apis/datastore_v1beta3/representations.rb 
Overview
The options shared by read requests.
Instance Attribute Summary collapse
- 
  
    
      #read_consistency  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The non-transactional read consistency to use.
 - 
  
    
      #transaction  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The identifier of the transaction in which to read.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ReadOptions 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ReadOptions.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReadOptions
Returns a new instance of ReadOptions
      1562 1563 1564  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1562 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#read_consistency ⇒ String
The non-transactional read consistency to use.
Cannot be set to STRONG for global queries.
Corresponds to the JSON property readConsistency
      1552 1553 1554  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1552 def read_consistency @read_consistency end  | 
  
#transaction ⇒ String
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.
      1560 1561 1562  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1560 def transaction @transaction end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1567 1568 1569 1570  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1567 def update!(**args) @read_consistency = args[:read_consistency] if args.key?(:read_consistency) @transaction = args[:transaction] if args.key?(:transaction) end  |