Interface MultiLanguageDetectionMetadataOrBuilder (0.34.0)

public interface MultiLanguageDetectionMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

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
boolean

The enableMultiLanguageDetection.

getSourceLanguage()

public abstract String getSourceLanguage()

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. For a comprehensive list of language codes, see ISO-639.

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

Returns
Type Description
String

The sourceLanguage.

getSourceLanguageBytes()

public abstract ByteString getSourceLanguageBytes()

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. For a comprehensive list of language codes, see ISO-639.

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

Returns
Type Description
ByteString

The bytes for sourceLanguage.