# Google Cloud Vector Search V1 Client - Class SearchDataObjectsResponse (0.4.0)

0.4.0 (latest) 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vector Search V1 Client class SearchDataObjectsResponse.

Response for a search request.

Generated from protobuf message `google.cloud.vectorsearch.v1.SearchDataObjectsResponse`

## Namespace

Google \\ Cloud \\ VectorSearch \\ 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/cloud-vectorsearch/latest/V1.SearchResult>` Output only. The list of dataObjects that match the search criteria. |
| `↳ next_page_token` | `string` Output only. A token to retrieve next page of results. Pass to DataObjectSearchService.SearchDataObjectsRequest.page_token to obtain that page. |

### getResults

Output only. The list of dataObjects that match the search criteria.

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

### setResults

Output only. The list of dataObjects that match the search criteria.

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

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

### getNextPageToken

Output only. A token to retrieve next page of results.

Pass to DataObjectSearchService.SearchDataObjectsRequest.page_token to
obtain that page.

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

### setNextPageToken

Output only. A token to retrieve next page of results.

Pass to DataObjectSearchService.SearchDataObjectsRequest.page_token to
obtain that page.

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

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