<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto

namespace Google\Cloud\BigQuery\DataPolicies\V1beta1;

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

/**
 * Response message for the ListDataPolicies method.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesResponse</code>
 */
class ListDataPoliciesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Data policies that belong to the requested project.
     *
     * Generated from protobuf field <code>repeated .google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policies = 1;</code>
     */
    private $data_policies;
    /**
     * Token used to retrieve the next page of results, or empty if there are no
     * more results.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    private $next_page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\BigQuery\DataPolicies\V1beta1\DataPolicy>|\Google\Protobuf\Internal\RepeatedField $data_policies
     *           Data policies that belong to the requested project.
     *     @type string $next_page_token
     *           Token used to retrieve the next page of results, or empty if there are no
     *           more results.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Datapolicies\V1Beta1\Datapolicy::initOnce();
        parent::__construct($data);
    }

    /**
     * Data policies that belong to the requested project.
     *
     * Generated from protobuf field <code>repeated .google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policies = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDataPolicies()
    {
        return $this->data_policies;
    }

    /**
     * Data policies that belong to the requested project.
     *
     * Generated from protobuf field <code>repeated .google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policies = 1;</code>
     * @param array<\Google\Cloud\BigQuery\DataPolicies\V1beta1\DataPolicy>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDataPolicies($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\DataPolicies\V1beta1\DataPolicy::class);
        $this->data_policies = $arr;

        return $this;
    }

    /**
     * Token used to retrieve the next page of results, or empty if there are no
     * more results.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * Token used to retrieve the next page of results, or empty if there are no
     * more 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;
    }

}

