Cloud Translation V3 Client - Class AdaptiveMtTranslateResponse (2.0.0)

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
dataarray

Optional. Data for populating the Message object.

↳ translationsarray<AdaptiveMtTranslation>

Output only. The translation.

↳ language_codestring

Output only. The translation's language code.

↳ glossary_translationsarray<AdaptiveMtTranslation>

Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.

getTranslations

Output only. The translation.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTranslations

Output only. The translation.

Parameter
NameDescription
vararray<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
varstring
Returns
TypeDescription
$this

getGlossaryTranslations

Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setGlossaryTranslations

Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.

Parameter
NameDescription
vararray<AdaptiveMtTranslation>
Returns
TypeDescription
$this