# Google Cloud Vector Search V1 Client - Class BatchSearchDataObjectsResponse (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 BatchSearchDataObjectsResponse.

A response from a batch search operation.

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

## 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.SearchDataObjectsResponse>` Output only. A list of search responses, one for each request in the batch. If a ranker is used, a single ranked list of results is returned. |

### getResults

Output only. A list of search responses, one for each request in the batch.

If a ranker is used, a single ranked list of results is returned.

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

### setResults

Output only. A list of search responses, one for each request in the batch.

If a ranker is used, a single ranked list of results is returned.

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

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