# Interface MultiLanguageDetectionMetadataOrBuilder (0.34.0)

0.34.0 (latest) 0.32.0 0.29.0 0.28.0 0.26.0 0.24.0 0.23.0 0.21.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.11.0 0.9.0 0.8.0 0.5.0 0.4.0 0.3.0 0.1.0

    public interface MultiLanguageDetectionMetadataOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getEnableMultiLanguageDetection()

    public abstract boolean getEnableMultiLanguageDetection()

Optional. Enable detection of multi-language prompts and responses.

`bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getSourceLanguage()

    public abstract String getSourceLanguage()

Optional. Optional Source language of the user prompt.

If multi-language detection is enabled but language is not set in that case
we would automatically detect the source language.

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

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

### getSourceLanguageBytes()

    public abstract ByteString getSourceLanguageBytes()

Optional. Optional Source language of the user prompt.

If multi-language detection is enabled but language is not set in that case
we would automatically detect the source language.

`string source_language = 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 sourceLanguage. |