Cloud Translation V3 Client - Class ReferenceSentencePairList (1.18.0)

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

A list of reference sentence pairs.

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

Namespace

Google \ Cloud \ Translate \ V3 \ AdaptiveMtTranslateRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ reference_sentence_pairs array<Google\Cloud\Translate\V3\AdaptiveMtTranslateRequest\ReferenceSentencePair>

Reference sentence pairs.

getReferenceSentencePairs

Reference sentence pairs.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setReferenceSentencePairs

Reference sentence pairs.

Parameter
Name Description
var array<Google\Cloud\Translate\V3\AdaptiveMtTranslateRequest\ReferenceSentencePair>
Returns
Type Description
$this