<?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 'ListResourceChanges' call. Contains a list of
 * ResourceChanges.
 *
 * Generated from protobuf message <code>google.cloud.config.v1.ListResourceChangesResponse</code>
 */
class ListResourceChangesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of ResourceChanges.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.ResourceChange resource_changes = 1;</code>
     */
    private $resource_changes;
    /**
     * A token to request the next page of resources from the
     * 'ListResourceChanges' 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\ResourceChange>|\Google\Protobuf\Internal\RepeatedField $resource_changes
     *           List of ResourceChanges.
     *     @type string $next_page_token
     *           A token to request the next page of resources from the
     *           'ListResourceChanges' 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 ResourceChanges.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.ResourceChange resource_changes = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getResourceChanges()
    {
        return $this->resource_changes;
    }

    /**
     * List of ResourceChanges.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.ResourceChange resource_changes = 1;</code>
     * @param array<\Google\Cloud\Config\V1\ResourceChange>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setResourceChanges($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\ResourceChange::class);
        $this->resource_changes = $arr;

        return $this;
    }

    /**
     * A token to request the next page of resources from the
     * 'ListResourceChanges' 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
     * 'ListResourceChanges' 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;
    }

}

