Cloud Translation V3 Client - Class ReferenceSentencePair (2.0.0)

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

A pair of sentences used as reference in source and target languages.

Generated from protobuf message google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair

Namespace

Google \ Cloud \ Translate \ V3 \ AdaptiveMtTranslateRequest

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ source_sentencestring

Source sentence in the sentence pair.

↳ target_sentencestring

Target sentence in the sentence pair.

getSourceSentence

Source sentence in the sentence pair.

Returns
TypeDescription
string

setSourceSentence

Source sentence in the sentence pair.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getTargetSentence

Target sentence in the sentence pair.

Returns
TypeDescription
string

setTargetSentence

Target sentence in the sentence pair.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this