Reference documentation and code samples for the Cloud Translation V3 Client class Example.
A sentence pair.
Generated from protobuf message google.cloud.translation.v3.Example
Namespace
Google \ Cloud \ Translate \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The resource name of the example, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}
↳ source_text
string
Sentence in source language.
↳ target_text
string
Sentence in target language.
↳ usage
string
Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.
getName
Output only. The resource name of the example, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}
string
setName
Output only. The resource name of the example, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}
var
string
$this
getSourceText
Sentence in source language.
string
setSourceText
Sentence in source language.
var
string
$this
getTargetText
Sentence in target language.
string
setTargetText
Sentence in target language.
var
string
$this
getUsage
Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.
string
setUsage
Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.
var
string
$this