<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/bigtable/admin/v2/bigtable_instance_admin.proto

namespace Google\Cloud\Bigtable\Admin\V2;

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

/**
 * Response message for BigtableInstanceAdmin.ListHotTablets.
 *
 * Generated from protobuf message <code>google.bigtable.admin.v2.ListHotTabletsResponse</code>
 */
class ListHotTabletsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of hot tablets in the tables of the requested cluster that fall
     * within the requested time range. Hot tablets are ordered by node cpu usage
     * percent. If there are multiple hot tablets that correspond to the same
     * tablet within a 15-minute interval, only the hot tablet with the highest
     * node cpu usage will be included in the response.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1;</code>
     */
    private $hot_tablets;
    /**
     * Set if not all hot tablets could be returned in a single response.
     * Pass this value to `page_token` in another request to get the next
     * page of 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\Bigtable\Admin\V2\HotTablet>|\Google\Protobuf\Internal\RepeatedField $hot_tablets
     *           List of hot tablets in the tables of the requested cluster that fall
     *           within the requested time range. Hot tablets are ordered by node cpu usage
     *           percent. If there are multiple hot tablets that correspond to the same
     *           tablet within a 15-minute interval, only the hot tablet with the highest
     *           node cpu usage will be included in the response.
     *     @type string $next_page_token
     *           Set if not all hot tablets could be returned in a single response.
     *           Pass this value to `page_token` in another request to get the next
     *           page of results.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce();
        parent::__construct($data);
    }

    /**
     * List of hot tablets in the tables of the requested cluster that fall
     * within the requested time range. Hot tablets are ordered by node cpu usage
     * percent. If there are multiple hot tablets that correspond to the same
     * tablet within a 15-minute interval, only the hot tablet with the highest
     * node cpu usage will be included in the response.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getHotTablets()
    {
        return $this->hot_tablets;
    }

    /**
     * List of hot tablets in the tables of the requested cluster that fall
     * within the requested time range. Hot tablets are ordered by node cpu usage
     * percent. If there are multiple hot tablets that correspond to the same
     * tablet within a 15-minute interval, only the hot tablet with the highest
     * node cpu usage will be included in the response.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1;</code>
     * @param array<\Google\Cloud\Bigtable\Admin\V2\HotTablet>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setHotTablets($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\HotTablet::class);
        $this->hot_tablets = $arr;

        return $this;
    }

    /**
     * Set if not all hot tablets could be returned in a single response.
     * Pass this value to `page_token` in another request to get the next
     * page of results.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * Set if not all hot tablets could be returned in a single response.
     * Pass this value to `page_token` in another request to get the next
     * page of 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;
    }

}

