Reference documentation and code samples for the Google Cloud Model Armor V1beta Client class MultiLanguageDetectionMetadata.
Message for Enabling Multi Language Detection.
Generated from protobuf message google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata
Namespace
Google \ Cloud \ ModelArmor \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ source_language
string
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.
↳ enable_multi_language_detection
bool
Optional. Enable detection of multi-language prompts and responses.
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.
Returns
Type
Description
string
setSourceLanguage
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getEnableMultiLanguageDetection
Optional. Enable detection of multi-language prompts and responses.
Returns
Type
Description
bool
setEnableMultiLanguageDetection
Optional. Enable detection of multi-language prompts and responses.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Model Armor V1beta Client - Class MultiLanguageDetectionMetadata (0.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.0 (latest)](/php/docs/reference/cloud-modelarmor/latest/V1beta.MultiLanguageDetectionMetadata)\n- [0.3.1](/php/docs/reference/cloud-modelarmor/0.3.1/V1beta.MultiLanguageDetectionMetadata)\n- [0.2.0](/php/docs/reference/cloud-modelarmor/0.2.0/V1beta.MultiLanguageDetectionMetadata)\n- [0.1.0](/php/docs/reference/cloud-modelarmor/0.1.0/V1beta.MultiLanguageDetectionMetadata) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Model Armor V1beta Client class MultiLanguageDetectionMetadata.\n\nMessage for Enabling Multi Language Detection.\n\nGenerated from protobuf message `google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ModelArmor \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSourceLanguage\n\nOptional. Optional Source language of the user prompt.\n\nIf multi-language detection is enabled but language is not set in that case\nwe would automatically detect the source language.\n\n### setSourceLanguage\n\nOptional. Optional Source language of the user prompt.\n\nIf multi-language detection is enabled but language is not set in that case\nwe would automatically detect the source language.\n\n### getEnableMultiLanguageDetection\n\nOptional. Enable detection of multi-language prompts and responses.\n\n### setEnableMultiLanguageDetection\n\nOptional. Enable detection of multi-language prompts and responses."]]