# Google Cloud Discovery Engine V1 Client - Class DataStoreSpec (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class DataStoreSpec.

A struct to define data stores to filter on in a search call and
configurations for those data stores. Otherwise, an `INVALID_ARGUMENT`
error is returned.

Generated from protobuf message `google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ SearchRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_store` | `string` Required. Full resource name of [DataStore](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.DataStore), such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. The path must include the project number, project id is not supported for this field. |
| `↳ filter` | `string` Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) |
| `↳ boost_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.SearchRequest.BoostSpec` Optional. Boost specification to boost certain documents. For more information on boosting, see [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) |
| `↳ custom_search_operators` | `string` Optional. Custom search operators which if specified will be used to filter results from workspace data stores. For more information on custom search operators, see [SearchOperators](https://support.google.com/cloudsearch/answer/6172299). |

### getDataStore

Required. Full resource name of
[DataStore](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.DataStore), such as
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.

The path must include the project number, project id is not supported for
this field.

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

### setDataStore

Required. Full resource name of
[DataStore](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.DataStore), such as
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.

The path must include the project number, project id is not supported for
this field.

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

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

### getFilter

Optional. Filter specification to filter documents in the data store
specified by data_store field. For more information on filtering, see
[Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)

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

### setFilter

Optional. Filter specification to filter documents in the data store
specified by data_store field. For more information on filtering, see
[Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)

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

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

### getBoostSpec

Optional. Boost specification to boost certain documents.

For more information on boosting, see
[Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)

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

### hasBoostSpec

### clearBoostSpec

### setBoostSpec

Optional. Boost specification to boost certain documents.

For more information on boosting, see
[Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)

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

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

### getCustomSearchOperators

Optional. Custom search operators which if specified will be used to
filter results from workspace data stores. For more information on custom
search operators, see
[SearchOperators](https://support.google.com/cloudsearch/answer/6172299).

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

### setCustomSearchOperators

Optional. Custom search operators which if specified will be used to
filter results from workspace data stores. For more information on custom
search operators, see
[SearchOperators](https://support.google.com/cloudsearch/answer/6172299).

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

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