# Google Cloud Dialogflow Cx V3 Client - Class DataStoreConnection (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class DataStoreConnection.

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

Generated from protobuf message `google.cloud.dialogflow.cx.v3.DataStoreConnection`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_store_type` | `int` The type of the connected data store. |
| `↳ data_store` | `string` The full name of the referenced data store. Formats: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` `projects/{project}/locations/{location}/dataStores/{data_store}` |
| `↳ document_processing_mode` | `int` 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. |

### getDataStoreType

The type of the connected data store.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DataStoreType](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreType). |

### setDataStoreType

The type of the connected data store.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DataStoreType](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreType). |

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

### getDataStore

The full name of the referenced data store.

Formats:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
`projects/{project}/locations/{location}/dataStores/{data_store}`

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

### setDataStore

The full name of the referenced data store.

Formats:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
`projects/{project}/locations/{location}/dataStores/{data_store}`

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

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

### getDocumentProcessingMode

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DocumentProcessingMode](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DocumentProcessingMode). |

### setDocumentProcessingMode

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DocumentProcessingMode](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DocumentProcessingMode). |

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