# Cloud Firestore V1 Client - Class BatchGetDocumentsResponse (2.2.0-RC1)

2.2.0-RC1 2.1.0 (latest) 2.0.2-RC1 1.55.0 1.54.4 1.53.1 1.52.0 1.51.0 1.50.0 1.48.1 1.47.3 1.46.0 1.45.2 1.44.1 1.43.3 1.40.0 1.39.0 1.38.0 1.37.7 1.36.1 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.28.0 1.27.3 Reference documentation and code samples for the Cloud Firestore V1 Client class BatchGetDocumentsResponse.

The streamed response for
Firestore.BatchGetDocuments.

Generated from protobuf message `google.firestore.v1.BatchGetDocumentsResponse`

## Namespace

Google \\ Cloud \\ Firestore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ found` | `https://docs.cloud.google.com/php/docs/reference/cloud-firestore/latest/V1.Document` A document that was requested. |
| `↳ missing` | `string` A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. |
| `↳ transaction` | `string` The transaction that was started as part of this request. Will only be set in the first response, and only if [BatchGetDocumentsRequest.new_transaction](https://docs.cloud.google.com/php/docs/reference/cloud-firestore/latest/V1.BatchGetDocumentsRequest#_Google_Cloud_Firestore_V1_BatchGetDocumentsRequest__getNewTransaction__) was set in the request. |
| `↳ read_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one. |

### getFound

A document that was requested.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-firestore/latest/V1.Document|null` |   |

### hasFound

### setFound

A document that was requested.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-firestore/latest/V1.Document` |

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

### getMissing

A document name that was requested but does not exist. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.

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

### hasMissing

### setMissing

A document name that was requested but does not exist. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.

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

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

### getTransaction

The transaction that was started as part of this request.

Will only be set in the first response, and only if
[BatchGetDocumentsRequest.new_transaction](https://docs.cloud.google.com/php/docs/reference/cloud-firestore/latest/V1.BatchGetDocumentsRequest#_Google_Cloud_Firestore_V1_BatchGetDocumentsRequest__getNewTransaction__)
was set in the request.

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

### setTransaction

The transaction that was started as part of this request.

Will only be set in the first response, and only if
[BatchGetDocumentsRequest.new_transaction](https://docs.cloud.google.com/php/docs/reference/cloud-firestore/latest/V1.BatchGetDocumentsRequest#_Google_Cloud_Firestore_V1_BatchGetDocumentsRequest__getNewTransaction__)
was set in the request.

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

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

### getReadTime

The time at which the document was read.

This may be monotically increasing, in this case the previous documents in
the result stream are guaranteed not to have changed between their
read_time and this one.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasReadTime

### clearReadTime

### setReadTime

The time at which the document was read.

This may be monotically increasing, in this case the previous documents in
the result stream are guaranteed not to have changed between their
read_time and this one.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getResult

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