Cloud Translation V3 Client - Class AdaptiveMtTranslateRequest (1.17.5)

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 \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
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. For now only one sentence per request is supported.

getParent

Required. Location to make a regional call.

Format: projects/{project-number-or-id}/locations/{location-id}.

Returns
TypeDescription
string

setParent

Required. Location to make a regional call.

Format: projects/{project-number-or-id}/locations/{location-id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDataset

Required. The resource name for the dataset to use for adaptive MT.

projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}

Returns
TypeDescription
string

setDataset

Required. The resource name for the dataset to use for adaptive MT.

projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getContent

Required. The content of the input in string format.

For now only one sentence per request is supported.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setContent

Required. The content of the input in string format.

For now only one sentence per request is supported.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. Location to make a regional call.

Format: projects/{project-number-or-id}/locations/{location-id}. Please see Google\Cloud\Translate\V3\TranslationServiceClient::locationName() for help formatting this field.

content string[]

Required. The content of the input in string format. For now only one sentence per request is supported.

Returns
TypeDescription
Google\Cloud\Translate\V3\AdaptiveMtTranslateRequest