# Google Developers Knowledge V1 Client - Class BatchGetDocumentsResponse (0.1.0)

Reference documentation and code samples for the Google Developers Knowledge V1 Client class BatchGetDocumentsResponse.

Response message for
[DeveloperKnowledge.BatchGetDocuments](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__batchGetDocuments__).

Generated from protobuf message `google.developers.knowledge.v1.BatchGetDocumentsResponse`

## Namespace

Google \\ Developers \\ Knowledge \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ documents` | `array<https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Document>` Contains the documents requested. |

### getDocuments

Contains the documents requested.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Document>` |   |

### setDocuments

Contains the documents requested.

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

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