Reference documentation and code samples for the Google Developers Knowledge V1 Client class SearchDocumentChunksResponse.
Response message for DeveloperKnowledge.SearchDocumentChunks.
Generated from protobuf message google.developers.knowledge.v1.SearchDocumentChunksResponse
Namespace
Google \ Developers \ Knowledge \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ results |
array<DocumentChunk>
Contains the search results for the given query. Each DocumentChunk in this list contains a snippet of content relevant to the search query. Use the DocumentChunk.parent field of each result with DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments to retrieve the full document content. |
↳ next_page_token |
string
Optional. Provides a token that can be sent as |
getResults
Contains the search results for the given query. Each DocumentChunk in this list contains a snippet of content relevant to the search query. Use the DocumentChunk.parent field of each result with DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments to retrieve the full document content.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<DocumentChunk> |
|
setResults
Contains the search results for the given query. Each DocumentChunk in this list contains a snippet of content relevant to the search query. Use the DocumentChunk.parent field of each result with DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments to retrieve the full document content.
| Parameter | |
|---|---|
| Name | Description |
var |
array<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 |
|