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

namespace Google\Cloud\Iot\V1;

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

/**
 * Response for `ListDeviceRegistries`.
 *
 * Generated from protobuf message <code>google.cloud.iot.v1.ListDeviceRegistriesResponse</code>
 */
class ListDeviceRegistriesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The registries that matched the query.
     *
     * Generated from protobuf field <code>repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1;</code>
     */
    private $device_registries;
    /**
     * If not empty, indicates that there may be more registries that match the
     * request; this value should be passed in a new
     * `ListDeviceRegistriesRequest`.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    private $next_page_token = '';

    public function __construct() {
        \GPBMetadata\Google\Cloud\Iot\V1\DeviceManager::initOnce();
        parent::__construct();
    }

    /**
     * The registries that matched the query.
     *
     * Generated from protobuf field <code>repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeviceRegistries()
    {
        return $this->device_registries;
    }

    /**
     * The registries that matched the query.
     *
     * Generated from protobuf field <code>repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1;</code>
     * @param \Google\Cloud\Iot\V1\DeviceRegistry[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDeviceRegistries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iot\V1\DeviceRegistry::class);
        $this->device_registries = $arr;

        return $this;
    }

    /**
     * If not empty, indicates that there may be more registries that match the
     * request; this value should be passed in a new
     * `ListDeviceRegistriesRequest`.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * If not empty, indicates that there may be more registries that match the
     * request; this value should be passed in a new
     * `ListDeviceRegistriesRequest`.
     *
     * 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;
    }

}

