# DataStoreConnection

- [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/DataStoreConnection#SCHEMA_REPRESENTATION)
- [DataStoreType](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/DataStoreConnection#DataStoreType)
- [DocumentProcessingMode](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/DataStoreConnection#DocumentProcessingMode)

A data store connection. It represents a data store in Discovery Engine and the type of the contents it contains.

| JSON representation |
|---|
| ``` { "dataStoreType": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/DataStoreConnection#DataStoreType`), "dataStore": string, "documentProcessingMode": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/DataStoreConnection#DocumentProcessingMode`) } ``` |

| Fields ||
|---|---|
| `dataStoreType` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/DataStoreConnection#DataStoreType`)`` The type of the connected data store. |
| `dataStore` | `string` The full name of the referenced data store. Formats: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` `projects/{project}/locations/{location}/dataStores/{dataStore}` |
| `documentProcessingMode` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/DataStoreConnection#DocumentProcessingMode`)`` The document processing mode for the data store connection. Should only be set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is considered as DOCUMENTS, as this is the legacy mode. |

## DataStoreType

Type of a data store. Determines how search is performed in the data store.

| Enums ||
|---|---|
| `DATA_STORE_TYPE_UNSPECIFIED` | Not specified. This value indicates that the data store type is not specified, so it will not be used during search. |
| `PUBLIC_WEB` | A data store that contains public web content. |
| `UNSTRUCTURED` | A data store that contains unstructured private data. |
| `STRUCTURED` | A data store that contains structured data (for example FAQ). |

## DocumentProcessingMode

The document processing mode of the data store.

| Enums ||
|---|---|
| `DOCUMENT_PROCESSING_MODE_UNSPECIFIED` | Not specified. This should be set for STRUCTURED type data stores. Due to legacy reasons this is considered as DOCUMENTS for STRUCTURED and PUBLIC_WEB data stores. |
| `DOCUMENTS` | Documents are processed as documents. |
| `CHUNKS` | Documents are converted to chunks. |