Cloud Translation V3 Client - Class TranslateTextResponse (1.16.0)

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

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

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

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

Text translation responses with no glossary applied. This field has the same length as contents .

↳ glossary_translations
array< Google\Cloud\Translate\V3\Translation >

Text translation responses if a glossary is provided in the request. This can be the same as translations if no terms apply. This field has the same length as contents .

getTranslations

Text translation responses with no glossary applied.

This field has the same length as contents .

Returns
Type
Description

setTranslations

Text translation responses with no glossary applied.

This field has the same length as contents .

Parameter
Name
Description
Returns
Type
Description
$this

getGlossaryTranslations

Text translation responses if a glossary is provided in the request.

This can be the same as translations if no terms apply. This field has the same length as contents .

Returns
Type
Description

setGlossaryTranslations

Text translation responses if a glossary is provided in the request.

This can be the same as translations if no terms apply. This field has the same length as contents .

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: