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

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

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

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

## Namespace

Google \\ Developers \\ Knowledge \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ results` | `array<https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.DocumentChunk>` Contains the search results for the given query. Each [DocumentChunk](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.DocumentChunk) in this list contains a snippet of content relevant to the search query. Use the [DocumentChunk.parent](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.DocumentChunk#_Google_Developers_Knowledge_V1_DocumentChunk__getParent__) field of each result with [DeveloperKnowledge.GetDocument](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__getDocument__) or [DeveloperKnowledge.BatchGetDocuments](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__batchGetDocuments__) to retrieve the full document content. |
| `↳ next_page_token` | `string` Optional. Provides a token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

### getResults

Contains the search results for the given query. Each
[DocumentChunk](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.DocumentChunk) in this list
contains a snippet of content relevant to the search query. Use the
[DocumentChunk.parent](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.DocumentChunk#_Google_Developers_Knowledge_V1_DocumentChunk__getParent__)
field of each result with
[DeveloperKnowledge.GetDocument](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__getDocument__)
or
[DeveloperKnowledge.BatchGetDocuments](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__batchGetDocuments__)
to retrieve the full document content.

| **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.DocumentChunk>` |   |

### setResults

Contains the search results for the given query. Each
[DocumentChunk](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.DocumentChunk) in this list
contains a snippet of content relevant to the search query. Use the
[DocumentChunk.parent](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.DocumentChunk#_Google_Developers_Knowledge_V1_DocumentChunk__getParent__)
field of each result with
[DeveloperKnowledge.GetDocument](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__getDocument__)
or
[DeveloperKnowledge.BatchGetDocuments](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__batchGetDocuments__)
to retrieve the full document content.

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

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

### getNextPageToken

Optional. Provides a token that can be sent as `page_token` to retrieve the
next page. If this field is omitted, there are no subsequent pages.

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

### setNextPageToken

Optional. Provides a token that can be sent as `page_token` to retrieve the
next page. If this field is omitted, there are no subsequent pages.

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

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