Cloud Translation V3 Client - Class AdaptiveMtTranslateResponse (1.17.5)

Reference documentation and code samples for the Cloud Translation V3 Client class AdaptiveMtTranslateResponse.

An AdaptiveMtTranslate response.

Generated from protobuf message google.cloud.translation.v3.AdaptiveMtTranslateResponse

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ translations array<Google\Cloud\Translate\V3\AdaptiveMtTranslation>

Output only. The translation.

↳ language_code string

Output only. The translation's language code.

getTranslations

Output only. The translation.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTranslations

Output only. The translation.

Parameter
NameDescription
var array<Google\Cloud\Translate\V3\AdaptiveMtTranslation>
Returns
TypeDescription
$this

getLanguageCode

Output only. The translation's language code.

Returns
TypeDescription
string

setLanguageCode

Output only. The translation's language code.

Parameter
NameDescription
var string
Returns
TypeDescription
$this