0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class LanguageSettings.

Language settings of the app.

Generated from protobuf message `google.cloud.ces.v1.LanguageSettings`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ default_language_code` | `string` Optional. The default language code of the app. |
| `↳ supported_language_codes` | `string[]` Optional. List of languages codes supported by the app, in addition to the `default_language_code`. |
| `↳ enable_multilingual_support` | `bool` Optional. Enables multilingual support. If true, agents in the app will use pre-built instructions to improve handling of multilingual input. |
| `↳ fallback_action` | `string` Optional. Deprecated: This feature is no longer supported. Use `enable_multilingual_support` instead to improve handling of multilingual input. The action to perform when an agent receives input in an unsupported language. This can be a predefined action or a custom tool call. Valid values are: - A tool's full resource name, which triggers a specific tool execution. - A predefined system action, such as "escalate" or "exit", which triggers an [EndSession](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.EndSession.md.txt) signal with corresponding [metadata](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.EndSession.md.txt#_Google_Cloud_Ces_V1_EndSession__getMetadata__) to terminate the conversation. |

### getDefaultLanguageCode

Optional. The default language code of the app.

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

### setDefaultLanguageCode

Optional. The default language code of the app.

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

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

### getSupportedLanguageCodes

Optional. List of languages codes supported by the app, in addition to the
`default_language_code`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setSupportedLanguageCodes

Optional. List of languages codes supported by the app, in addition to the
`default_language_code`.

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

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

### getEnableMultilingualSupport

Optional. Enables multilingual support. If true, agents in the app will use
pre-built instructions to improve handling of multilingual input.

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

### setEnableMultilingualSupport

Optional. Enables multilingual support. If true, agents in the app will use
pre-built instructions to improve handling of multilingual input.

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

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

### getFallbackAction

Optional. Deprecated: This feature is no longer supported. Use
`enable_multilingual_support` instead to improve handling of multilingual
input.

The action to perform when an agent receives input in an unsupported
language.
This can be a predefined action or a custom tool call.
Valid values are:

- A tool's full resource name, which triggers a specific tool execution.
- A predefined system action, such as "escalate" or "exit", which triggers an [EndSession](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.EndSession.md.txt) signal with corresponding [metadata](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.EndSession.md.txt#_Google_Cloud_Ces_V1_EndSession__getMetadata__) to terminate the conversation.

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

### setFallbackAction

Optional. Deprecated: This feature is no longer supported. Use
`enable_multilingual_support` instead to improve handling of multilingual
input.

The action to perform when an agent receives input in an unsupported
language.
This can be a predefined action or a custom tool call.
Valid values are:

- A tool's full resource name, which triggers a specific tool execution.
- A predefined system action, such as "escalate" or "exit", which triggers an [EndSession](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.EndSession.md.txt) signal with corresponding [metadata](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.EndSession.md.txt#_Google_Cloud_Ces_V1_EndSession__getMetadata__) to terminate the conversation.

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

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