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

namespace Google\Cloud\CloudDms\V1;

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

/**
 * Response message for 'ListMigrationJobs' request.
 *
 * Generated from protobuf message <code>google.cloud.clouddms.v1.ListMigrationJobsResponse</code>
 */
class ListMigrationJobsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of migration jobs objects.
     *
     * Generated from protobuf field <code>repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;</code>
     */
    private $migration_jobs;
    /**
     * A token which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    protected $next_page_token = '';
    /**
     * Locations that could not be reached.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     */
    private $unreachable;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\CloudDms\V1\MigrationJob>|\Google\Protobuf\Internal\RepeatedField $migration_jobs
     *           The list of migration jobs objects.
     *     @type string $next_page_token
     *           A token which can be sent as `page_token` to retrieve the next page.
     *           If this field is omitted, there are no subsequent pages.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $unreachable
     *           Locations that could not be reached.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Clouddms\V1\Clouddms::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of migration jobs objects.
     *
     * Generated from protobuf field <code>repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMigrationJobs()
    {
        return $this->migration_jobs;
    }

    /**
     * The list of migration jobs objects.
     *
     * Generated from protobuf field <code>repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;</code>
     * @param array<\Google\Cloud\CloudDms\V1\MigrationJob>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMigrationJobs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudDms\V1\MigrationJob::class);
        $this->migration_jobs = $arr;

        return $this;
    }

    /**
     * A token which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * A token which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

    /**
     * Locations that could not be reached.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUnreachable()
    {
        return $this->unreachable;
    }

    /**
     * Locations that could not be reached.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUnreachable($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->unreachable = $arr;

        return $this;
    }

}

