Class: Google::Apis::DatastoreV1::LookupResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastore_v1/classes.rb,
lib/google/apis/datastore_v1/representations.rb,
lib/google/apis/datastore_v1/representations.rb

Overview

The response for Datastore.Lookup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LookupResponse

Returns a new instance of LookupResponse.



1868
1869
1870
# File 'lib/google/apis/datastore_v1/classes.rb', line 1868

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#deferredArray<Google::Apis::DatastoreV1::Key>

A list of keys that were not looked up due to resource constraints. The order of results in this field is undefined and has no relation to the order of the keys in the input. Corresponds to the JSON property deferred

Returns:



1840
1841
1842
# File 'lib/google/apis/datastore_v1/classes.rb', line 1840

def deferred
  @deferred
end

#foundArray<Google::Apis::DatastoreV1::EntityResult>

Entities found as ResultType.FULL entities. The order of results in this field is undefined and has no relation to the order of the keys in the input. Corresponds to the JSON property found



1846
1847
1848
# File 'lib/google/apis/datastore_v1/classes.rb', line 1846

def found
  @found
end

#missingArray<Google::Apis::DatastoreV1::EntityResult>

Entities not found as ResultType.KEY_ONLY entities. The order of results in this field is undefined and has no relation to the order of the keys in the input. Corresponds to the JSON property missing



1853
1854
1855
# File 'lib/google/apis/datastore_v1/classes.rb', line 1853

def missing
  @missing
end

#read_timeString

The time at which these entities were read or found missing. Corresponds to the JSON property readTime

Returns:

  • (String)


1858
1859
1860
# File 'lib/google/apis/datastore_v1/classes.rb', line 1858

def read_time
  @read_time
end

#transactionString

The identifier of the transaction that was started as part of this Lookup request. Set only when ReadOptions.new_transaction was set in LookupRequest. read_options. Corresponds to the JSON property transaction NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


1866
1867
1868
# File 'lib/google/apis/datastore_v1/classes.rb', line 1866

def transaction
  @transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1873
1874
1875
1876
1877
1878
1879
# File 'lib/google/apis/datastore_v1/classes.rb', line 1873

def update!(**args)
  @deferred = args[:deferred] if args.key?(:deferred)
  @found = args[:found] if args.key?(:found)
  @missing = args[:missing] if args.key?(:missing)
  @read_time = args[:read_time] if args.key?(:read_time)
  @transaction = args[:transaction] if args.key?(:transaction)
end