# MultiLanguageDetectionMetadata

- [JSON representation](https://docs.cloud.google.com/model-armor/reference/rest/v1/MultiLanguageDetectionMetadata#SCHEMA_REPRESENTATION)

Message for Enabling Multi Language Detection.

| JSON representation |
|---|
| ``` { "sourceLanguage": string, "enableMultiLanguageDetection": boolean } ``` |

| Fields ||
|---|---|
| `sourceLanguage` | `string` Optional. Optional Source language of the user prompt. If multi-language detection is enabled and this field is not set, the source language will be automatically detected. When a source language is provided, Model Armor uses it to sanitize the input. In that case the system does not perform auto-detection and relies solely on the specified language. This string field accepts a language code from the ISO-639 standard. For a list of languages supported by Model Armor, see [Model Armor supported languages](https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported). For a comprehensive list of language codes, see [ISO-639](https://cloud.google.com/translate/docs/languages#nmt). |
| `enableMultiLanguageDetection` | `boolean` Optional. Enable detection of multi-language prompts and responses. |