# Google Cloud Dialogflow Cx V3 Client - Class MultiLanguageSettings (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 MultiLanguageSettings.

Settings for multi-lingual agents.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enable_multi_language_detection` | `bool` Optional. Enable multi-language detection for this flow. This can be set only if agent level multi language setting is enabled. |
| `↳ supported_response_language_codes` | `string[]` Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the [agent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Agent#_Google_Cloud_Dialogflow_Cx_V3_Agent__getEnableMultiLanguageTraining__) and multi-language detection is enabled in the [flow](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Flow.MultiLanguageSettings#_Google_Cloud_Dialogflow_Cx_V3_Flow_MultiLanguageSettings__getEnableMultiLanguageDetection__). The supported languages must be a subset of the languages supported by the agent. |

### getEnableMultiLanguageDetection

Optional. Enable multi-language detection for this flow. This can be set
only if agent level multi language setting is enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableMultiLanguageDetection

Optional. Enable multi-language detection for this flow. This can be set
only if agent level multi language setting is enabled.

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

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

### getSupportedResponseLanguageCodes

Optional. Agent will respond in the detected language if the detected
language code is in the supported resolved languages for this flow. This
will be used only if multi-language training is enabled in the
[agent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Agent#_Google_Cloud_Dialogflow_Cx_V3_Agent__getEnableMultiLanguageTraining__)
and multi-language detection is enabled in the
[flow](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Flow.MultiLanguageSettings#_Google_Cloud_Dialogflow_Cx_V3_Flow_MultiLanguageSettings__getEnableMultiLanguageDetection__).

The supported languages must be a subset of the languages supported by
the agent.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setSupportedResponseLanguageCodes

Optional. Agent will respond in the detected language if the detected
language code is in the supported resolved languages for this flow. This
will be used only if multi-language training is enabled in the
[agent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Agent#_Google_Cloud_Dialogflow_Cx_V3_Agent__getEnableMultiLanguageTraining__)
and multi-language detection is enabled in the
[flow](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Flow.MultiLanguageSettings#_Google_Cloud_Dialogflow_Cx_V3_Flow_MultiLanguageSettings__getEnableMultiLanguageDetection__).

The supported languages must be a subset of the languages supported by
the agent.

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

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