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

namespace Google\Cloud\Config\V1;

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

/**
 * The response message for the ListDeploymentGroups method.
 *
 * Generated from protobuf message <code>google.cloud.config.v1.ListDeploymentGroupsResponse</code>
 */
class ListDeploymentGroupsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The deployment groups from the specified collection.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1;</code>
     */
    private $deployment_groups;
    /**
     * Token to be supplied to the next ListDeploymentGroups request via
     * `page_token` to obtain the next set of results.
     *
     * 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 \Google\Cloud\Config\V1\DeploymentGroup[] $deployment_groups
     *           The deployment groups from the specified collection.
     *     @type string $next_page_token
     *           Token to be supplied to the next ListDeploymentGroups request via
     *           `page_token` to obtain the next set of results.
     *     @type string[] $unreachable
     *           Locations that could not be reached.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce();
        parent::__construct($data);
    }

    /**
     * The deployment groups from the specified collection.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1;</code>
     * @return RepeatedField<\Google\Cloud\Config\V1\DeploymentGroup>
     */
    public function getDeploymentGroups()
    {
        return $this->deployment_groups;
    }

    /**
     * The deployment groups from the specified collection.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1;</code>
     * @param \Google\Cloud\Config\V1\DeploymentGroup[] $var
     * @return $this
     */
    public function setDeploymentGroups($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\DeploymentGroup::class);
        $this->deployment_groups = $arr;

        return $this;
    }

    /**
     * Token to be supplied to the next ListDeploymentGroups request via
     * `page_token` to obtain the next set of results.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * Token to be supplied to the next ListDeploymentGroups request via
     * `page_token` to obtain the next set of results.
     *
     * 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 RepeatedField<string>
     */
    public function getUnreachable()
    {
        return $this->unreachable;
    }

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

        return $this;
    }

}

