Reference documentation and code samples for the Cloud Translation V3 Client class AdaptiveMtTranslateRequest.
The request for sending an AdaptiveMt translation query.
Generated from protobuf message google.cloud.translation.v3.AdaptiveMtTranslateRequest
Namespace
Google \ Cloud \ Translate \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. Location to make a regional call. Format: projects/{project-number-or-id}/locations/{location-id}
.
↳ dataset
string
Required. The resource name for the dataset to use for adaptive MT. projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}
↳ content
array
Required. The content of the input in string format.
↳ reference_sentence_config
AdaptiveMtTranslateRequest\ReferenceSentenceConfig
Configuration for caller provided reference sentences.
↳ glossary_config
AdaptiveMtTranslateRequest\GlossaryConfig
Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
getParent
Required. Location to make a regional call.
Format: projects/{project-number-or-id}/locations/{location-id}
.
string
setParent
Required. Location to make a regional call.
Format: projects/{project-number-or-id}/locations/{location-id}
.
var
string
$this
getDataset
Required. The resource name for the dataset to use for adaptive MT.
projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}
string
setDataset
Required. The resource name for the dataset to use for adaptive MT.
projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}
var
string
$this
getContent
Required. The content of the input in string format.
setContent
Required. The content of the input in string format.
var
string[]
$this
getReferenceSentenceConfig
Configuration for caller provided reference sentences.
hasReferenceSentenceConfig
clearReferenceSentenceConfig
setReferenceSentenceConfig
Configuration for caller provided reference sentences.
$this
getGlossaryConfig
Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
hasGlossaryConfig
clearGlossaryConfig
setGlossaryConfig
Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
$this
static::build
parent
string
Required. Location to make a regional call.
Format: projects/{project-number-or-id}/locations/{location-id}
. Please see TranslationServiceClient::locationName()
for help formatting this field.
content
string[]
Required. The content of the input in string format.