<?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;

/**
 * The response for listing all AdaptiveMt files under a given dataset.
 *
 * Generated from protobuf message <code>google.cloud.translation.v3.ListAdaptiveMtFilesResponse</code>
 */
class ListAdaptiveMtFilesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The Adaptive MT files.
     *
     * Generated from protobuf field <code>repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $adaptive_mt_files;
    /**
     * Optional. A token to retrieve a page of results. Pass this value in the
     * ListAdaptiveMtFilesRequest.page_token field in the subsequent call to
     * `ListAdaptiveMtFiles` method to retrieve the next page of results.
     *
     * Generated from protobuf field <code>string next_page_token = 3 [(.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\AdaptiveMtFile>|\Google\Protobuf\Internal\RepeatedField $adaptive_mt_files
     *           Output only. The Adaptive MT files.
     *     @type string $next_page_token
     *           Optional. A token to retrieve a page of results. Pass this value in the
     *           ListAdaptiveMtFilesRequest.page_token field in the subsequent call to
     *           `ListAdaptiveMtFiles` 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. The Adaptive MT files.
     *
     * Generated from protobuf field <code>repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAdaptiveMtFiles()
    {
        return $this->adaptive_mt_files;
    }

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

        return $this;
    }

    /**
     * Optional. A token to retrieve a page of results. Pass this value in the
     * ListAdaptiveMtFilesRequest.page_token field in the subsequent call to
     * `ListAdaptiveMtFiles` method to retrieve the next page of results.
     *
     * Generated from protobuf field <code>string next_page_token = 3 [(.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
     * ListAdaptiveMtFilesRequest.page_token field in the subsequent call to
     * `ListAdaptiveMtFiles` method to retrieve the next page of results.
     *
     * Generated from protobuf field <code>string next_page_token = 3 [(.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;
    }

}

