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 \ V1betaMethods
__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.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|