# Interface LanguageSettingsOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface LanguageSettingsOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDefaultLanguageCode()

    public abstract String getDefaultLanguageCode()

Optional. The default language code of the app.

`string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The defaultLanguageCode. |

### getDefaultLanguageCodeBytes()

    public abstract ByteString getDefaultLanguageCodeBytes()

Optional. The default language code of the app.

`string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for defaultLanguageCode. |

### getEnableMultilingualSupport()

    public abstract boolean getEnableMultilingualSupport()

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

`bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enableMultilingualSupport. |

### getFallbackAction() (deprecated)

    public abstract String getFallbackAction()

**Deprecated.** *google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See
google/cloud/ces/v1beta/app.proto;l=255*

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 signal with corresponding metadata to terminate the conversation.

`string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The fallbackAction. |

### getFallbackActionBytes() (deprecated)

    public abstract ByteString getFallbackActionBytes()

**Deprecated.** *google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See
google/cloud/ces/v1beta/app.proto;l=255*

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 signal with corresponding metadata to terminate the conversation.

`string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for fallbackAction. |

### getSupportedLanguageCodes(int index)

    public abstract String getSupportedLanguageCodes(int index)

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

`repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The supportedLanguageCodes at the given index. |

### getSupportedLanguageCodesBytes(int index)

    public abstract ByteString getSupportedLanguageCodesBytes(int index)

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

`repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the supportedLanguageCodes at the given index. |

### getSupportedLanguageCodesCount()

    public abstract int getSupportedLanguageCodesCount()

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

`repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of supportedLanguageCodes. |

### getSupportedLanguageCodesList()

    public abstract List<String> getSupportedLanguageCodesList()

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

`repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the supportedLanguageCodes. |