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

Request for performing a single search.

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

## Namespace

Google \\ Cloud \\ VectorSearch \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ vector_search` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.VectorSearch` A vector search operation. |
| `↳ semantic_search` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.SemanticSearch` A semantic search operation. |
| `↳ text_search` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.TextSearch` Optional. A text search operation. |
| `↳ parent` | `string` Required. The resource name of the Collection for which to search. Format: `projects/{project}/locations/{location}/collections/{collection}` |
| `↳ page_size` | `int` Optional. The standard list page size. Only supported for KNN. If not set, up to search_type.top_k results will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| `↳ page_token` | `string` Optional. The standard list page token. Typically obtained via [SearchDataObjectsResponse.next_page_token](https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.SearchDataObjectsResponse#_Google_Cloud_VectorSearch_V1_SearchDataObjectsResponse__getNextPageToken__) of the previous [DataObjectSearchService.SearchDataObjects](https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.Client.DataObjectSearchServiceClient#_Google_Cloud_VectorSearch_V1_Client_DataObjectSearchServiceClient__searchDataObjects__) call. |

### getVectorSearch

A vector search operation.

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

### hasVectorSearch

### setVectorSearch

A vector search operation.

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

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

### getSemanticSearch

A semantic search operation.

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

### hasSemanticSearch

### setSemanticSearch

A semantic search operation.

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

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

### getTextSearch

Optional. A text search operation.

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

### hasTextSearch

### setTextSearch

Optional. A text search operation.

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

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

### 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` |   |

### getPageSize

Optional. The standard list page size. Only supported for KNN. If not set,
up to search_type.top_k results will be returned. The maximum value is
1000; values above 1000 will be coerced to 1000.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPageSize

Optional. The standard list page size. Only supported for KNN. If not set,
up to search_type.top_k results will be returned. The maximum value is
1000; values above 1000 will be coerced to 1000.

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

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

### getPageToken

Optional. The standard list page token.

Typically obtained via
[SearchDataObjectsResponse.next_page_token](https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.SearchDataObjectsResponse#_Google_Cloud_VectorSearch_V1_SearchDataObjectsResponse__getNextPageToken__)
of the previous
[DataObjectSearchService.SearchDataObjects](https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.Client.DataObjectSearchServiceClient#_Google_Cloud_VectorSearch_V1_Client_DataObjectSearchServiceClient__searchDataObjects__)
call.

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

### setPageToken

Optional. The standard list page token.

Typically obtained via
[SearchDataObjectsResponse.next_page_token](https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.SearchDataObjectsResponse#_Google_Cloud_VectorSearch_V1_SearchDataObjectsResponse__getNextPageToken__)
of the previous
[DataObjectSearchService.SearchDataObjects](https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.Client.DataObjectSearchServiceClient#_Google_Cloud_VectorSearch_V1_Client_DataObjectSearchServiceClient__searchDataObjects__)
call.

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

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

### getSearchType

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