<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/translate/v3/adaptive_mt.proto

namespace Google\Cloud\Translate\V3\AdaptiveMtTranslateRequest;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * A list of reference sentence pairs.
 *
 * Generated from protobuf message <code>google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList</code>
 */
class ReferenceSentencePairList extends \Google\Protobuf\Internal\Message
{
    /**
     * Reference sentence pairs.
     *
     * Generated from protobuf field <code>repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;</code>
     */
    private $reference_sentence_pairs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Translate\V3\AdaptiveMtTranslateRequest\ReferenceSentencePair>|\Google\Protobuf\Internal\RepeatedField $reference_sentence_pairs
     *           Reference sentence pairs.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Translate\V3\AdaptiveMt::initOnce();
        parent::__construct($data);
    }

    /**
     * Reference sentence pairs.
     *
     * Generated from protobuf field <code>repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getReferenceSentencePairs()
    {
        return $this->reference_sentence_pairs;
    }

    /**
     * Reference sentence pairs.
     *
     * Generated from protobuf field <code>repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;</code>
     * @param array<\Google\Cloud\Translate\V3\AdaptiveMtTranslateRequest\ReferenceSentencePair>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setReferenceSentencePairs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Translate\V3\AdaptiveMtTranslateRequest\ReferenceSentencePair::class);
        $this->reference_sentence_pairs = $arr;

        return $this;
    }

}


