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

A request to perform a batch of search operations.

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

## Namespace

Google \\ Cloud \\ VectorSearch \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The resource name of the Collection for which to search. Format: `projects/{project}/locations/{location}/collections/{collection}` |
| `↳ searches` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.Search>` Required. A list of search requests to execute in parallel. |
| `↳ combine` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.BatchSearchDataObjectsRequest.CombineResultsOptions` Optional. Options for combining the results of the batch search operations. |

### getParent

Required. The resource name of the Collection for which to search.

Format: `projects/{project}/locations/{location}/collections/{collection}`

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

### setParent

Required. The resource name of the Collection for which to search.

Format: `projects/{project}/locations/{location}/collections/{collection}`

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

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

### getSearches

Required. A list of search requests to execute in parallel.

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

### setSearches

Required. A list of search requests to execute in parallel.

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

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

### getCombine

Optional. Options for combining the results of the batch search operations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.BatchSearchDataObjectsRequest.CombineResultsOptions|null` |   |

### hasCombine

### clearCombine

### setCombine

Optional. Options for combining the results of the batch search operations.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.BatchSearchDataObjectsRequest.CombineResultsOptions` |

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