<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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 array<\Google\Cloud\Config\V1\ResourceDrift>|\Google\Protobuf\Internal\RepeatedField $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 array<string>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<\Google\Cloud\Config\V1\ResourceDrift>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    public function getUnreachable()
    {
        return $this->unreachable;
    }

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

}

