Model Armor v1beta API - Class MultiLanguageDetectionMetadata (1.0.0-beta06)

public sealed class MultiLanguageDetectionMetadata : IMessage<MultiLanguageDetectionMetadata>, IEquatable<MultiLanguageDetectionMetadata>, IDeepCloneable<MultiLanguageDetectionMetadata>, IBufferMessage, IMessage

Reference documentation and code samples for the Model Armor v1beta API class MultiLanguageDetectionMetadata.

Message for Enabling Multi Language Detection.

Inheritance

object > MultiLanguageDetectionMetadata

Namespace

Google.Cloud.ModelArmor.V1Beta

Assembly

Google.Cloud.ModelArmor.V1Beta.dll

Constructors

MultiLanguageDetectionMetadata()

public MultiLanguageDetectionMetadata()

MultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata)

public MultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata other)
Parameter
Name Description
other MultiLanguageDetectionMetadata

Properties

EnableMultiLanguageDetection

public bool EnableMultiLanguageDetection { get; set; }

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

Property Value
Type Description
bool

SourceLanguage

public string SourceLanguage { get; set; }

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.

Property Value
Type Description
string