Cloud AutoML V1beta1 Client - Class TranslationAnnotation (1.6.5)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class TranslationAnnotation.

Annotation details specific to translation.

Generated from protobuf message google.cloud.automl.v1beta1.TranslationAnnotation

Namespace

Google \ Cloud \ AutoMl \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ translated_content Google\Cloud\AutoMl\V1beta1\TextSnippet

Output only . The translated content.

getTranslatedContent

Output only . The translated content.

Returns
Type Description
Google\Cloud\AutoMl\V1beta1\TextSnippet|null

hasTranslatedContent

clearTranslatedContent

setTranslatedContent

Output only . The translated content.

Parameter
Name Description
var Google\Cloud\AutoMl\V1beta1\TextSnippet
Returns
Type Description
$this