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

namespace Google\Cloud\Translate\V3;

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

/**
 * A list of AdaptiveMtDatasets.
 *
 * Generated from protobuf message <code>google.cloud.translation.v3.ListAdaptiveMtDatasetsResponse</code>
 */
class ListAdaptiveMtDatasetsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. A list of Adaptive MT datasets.
     *
     * Generated from protobuf field <code>repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $adaptive_mt_datasets;
    /**
     * Optional. A token to retrieve a page of results. Pass this value in the
     * [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to
     * `ListAdaptiveMtDatasets` method to retrieve the next page of results.
     *
     * Generated from protobuf field <code>string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $next_page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Translate\V3\AdaptiveMtDataset>|\Google\Protobuf\Internal\RepeatedField $adaptive_mt_datasets
     *           Output only. A list of Adaptive MT datasets.
     *     @type string $next_page_token
     *           Optional. A token to retrieve a page of results. Pass this value in the
     *           [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to
     *           `ListAdaptiveMtDatasets` method to retrieve the next page of results.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Translate\V3\AdaptiveMt::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. A list of Adaptive MT datasets.
     *
     * Generated from protobuf field <code>repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAdaptiveMtDatasets()
    {
        return $this->adaptive_mt_datasets;
    }

    /**
     * Output only. A list of Adaptive MT datasets.
     *
     * Generated from protobuf field <code>repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array<\Google\Cloud\Translate\V3\AdaptiveMtDataset>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAdaptiveMtDatasets($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Translate\V3\AdaptiveMtDataset::class);
        $this->adaptive_mt_datasets = $arr;

        return $this;
    }

    /**
     * Optional. A token to retrieve a page of results. Pass this value in the
     * [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to
     * `ListAdaptiveMtDatasets` method to retrieve the next page of results.
     *
     * Generated from protobuf field <code>string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * Optional. A token to retrieve a page of results. Pass this value in the
     * [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to
     * `ListAdaptiveMtDatasets` method to retrieve the next page of results.
     *
     * Generated from protobuf field <code>string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

}

