Interface MultiLanguageDetectionMetadataOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
MultiLanguageDetectionMetadata, MultiLanguageDetectionMetadata.Builder

@Generated public interface MultiLanguageDetectionMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Optional.
    Optional.
    com.google.protobuf.ByteString
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getSourceLanguage

      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]
       (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).
       
      string source_language = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The sourceLanguage.
    • getSourceLanguageBytes

      com.google.protobuf.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]
       (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).
       
      string source_language = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for sourceLanguage.
    • getEnableMultiLanguageDetection

      boolean getEnableMultiLanguageDetection()
       Optional. Enable detection of multi-language prompts and responses.
       
      bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The enableMultiLanguageDetection.