Cloud Datastore V1 Client - Class LookupResponse (1.17.1)

Reference documentation and code samples for the Cloud Datastore V1 Client class LookupResponse.

The response for Datastore.Lookup.

Generated from protobuf message google.datastore.v1.LookupResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ found array<Google\Cloud\Datastore\V1\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.

↳ missing array<Google\Cloud\Datastore\V1\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.

↳ deferred array<Google\Cloud\Datastore\V1\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.

↳ read_time Google\Protobuf\Timestamp

The time at which these entities were read or found missing.

getFound

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.

Generated from protobuf field repeated .google.datastore.v1.EntityResult found = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFound

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.

Generated from protobuf field repeated .google.datastore.v1.EntityResult found = 1;

Parameter
NameDescription
var array<Google\Cloud\Datastore\V1\EntityResult>
Returns
TypeDescription
$this

getMissing

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.

Generated from protobuf field repeated .google.datastore.v1.EntityResult missing = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMissing

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.

Generated from protobuf field repeated .google.datastore.v1.EntityResult missing = 2;

Parameter
NameDescription
var array<Google\Cloud\Datastore\V1\EntityResult>
Returns
TypeDescription
$this

getDeferred

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.

Generated from protobuf field repeated .google.datastore.v1.Key deferred = 3;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDeferred

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.

Generated from protobuf field repeated .google.datastore.v1.Key deferred = 3;

Parameter
NameDescription
var array<Google\Cloud\Datastore\V1\Key>
Returns
TypeDescription
$this

getReadTime

The time at which these entities were read or found missing.

Generated from protobuf field .google.protobuf.Timestamp read_time = 7;

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasReadTime

clearReadTime

setReadTime

The time at which these entities were read or found missing.

Generated from protobuf field .google.protobuf.Timestamp read_time = 7;

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this