2.2.0 (latest) 2.0.6 1.34.2 1.33.1 1.32.3 1.31.0 1.30.0 1.29.2 1.28.2 1.26.0 1.25.0 1.24.4 1.23.0 1.22.1 1.21.2 1.19.0 1.18.1 1.17.1 Reference documentation and code samples for the Cloud Datastore V1 Client class LookupResponse.

The response for [Datastore.Lookup](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.Client.DatastoreClient#_Google_Cloud_Datastore_V1_Client_DatastoreClient__lookup__).

Generated from protobuf message `google.datastore.v1.LookupResponse`

## Namespace

Google \\ Cloud \\ Datastore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ found` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/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<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/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<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/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. |
| `↳ transaction` | `string` The identifier of the transaction that was started as part of this Lookup request. Set only when [ReadOptions.new_transaction](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.ReadOptions#_Google_Cloud_Datastore_V1_ReadOptions__getNewTransaction__) was set in [LookupRequest.read_options](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.LookupRequest#_Google_Cloud_Datastore_V1_LookupRequest__getReadOptions__). |
| `↳ 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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.EntityResult>` |   |

### 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.EntityResult>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.EntityResult>` |   |

### 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.EntityResult>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.Key>` |   |

### 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.Key>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTransaction

The identifier of the transaction that was started as part of this Lookup
request.

Set only when
[ReadOptions.new_transaction](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.ReadOptions#_Google_Cloud_Datastore_V1_ReadOptions__getNewTransaction__)
was set in
[LookupRequest.read_options](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.LookupRequest#_Google_Cloud_Datastore_V1_LookupRequest__getReadOptions__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setTransaction

The identifier of the transaction that was started as part of this Lookup
request.

Set only when
[ReadOptions.new_transaction](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.ReadOptions#_Google_Cloud_Datastore_V1_ReadOptions__getNewTransaction__)
was set in
[LookupRequest.read_options](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.LookupRequest#_Google_Cloud_Datastore_V1_LookupRequest__getReadOptions__).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReadTime

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasReadTime

### clearReadTime

### setReadTime

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |