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

/**
 * A response to a 'ListResourceDrifts' call. Contains a list of ResourceDrifts.
 *
 * Generated from protobuf message <code>google.cloud.config.v1.ListResourceDriftsResponse</code>
 */
class ListResourceDriftsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of ResourceDrifts.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1;</code>
     */
    private $resource_drifts;
    /**
     * A token to request the next page of resources from the
     * 'ListResourceDrifts' method. The value of an empty string means that
     * there are no more resources to return.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    protected $next_page_token = '';
    /**
     * Unreachable resources, if any.
     *
     * 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\ResourceDrift[] $resource_drifts
     *           List of ResourceDrifts.
     *     @type string $next_page_token
     *           A token to request the next page of resources from the
     *           'ListResourceDrifts' method. The value of an empty string means that
     *           there are no more resources to return.
     *     @type string[] $unreachable
     *           Unreachable resources, if any.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce();
        parent::__construct($data);
    }

    /**
     * List of ResourceDrifts.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1;</code>
     * @return RepeatedField<\Google\Cloud\Config\V1\ResourceDrift>
     */
    public function getResourceDrifts()
    {
        return $this->resource_drifts;
    }

    /**
     * List of ResourceDrifts.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1;</code>
     * @param \Google\Cloud\Config\V1\ResourceDrift[] $var
     * @return $this
     */
    public function setResourceDrifts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\ResourceDrift::class);
        $this->resource_drifts = $arr;

        return $this;
    }

    /**
     * A token to request the next page of resources from the
     * 'ListResourceDrifts' method. The value of an empty string means that
     * there are no more resources to return.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * A token to request the next page of resources from the
     * 'ListResourceDrifts' method. The value of an empty string means that
     * there are no more resources to return.
     *
     * 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;
    }

    /**
     * Unreachable resources, if any.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     * @return RepeatedField<string>
     */
    public function getUnreachable()
    {
        return $this->unreachable;
    }

    /**
     * Unreachable resources, if any.
     *
     * 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;
    }

}

