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

namespace Google\Cloud\Bigtable\Admin\V2;

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

/**
 * Limits for the number of nodes a Cluster can autoscale up/down to.
 *
 * Generated from protobuf message <code>google.bigtable.admin.v2.AutoscalingLimits</code>
 */
class AutoscalingLimits extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Minimum number of nodes to scale down to.
     *
     * Generated from protobuf field <code>int32 min_serve_nodes = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $min_serve_nodes = 0;
    /**
     * Required. Maximum number of nodes to scale up to.
     *
     * Generated from protobuf field <code>int32 max_serve_nodes = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $max_serve_nodes = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $min_serve_nodes
     *           Required. Minimum number of nodes to scale down to.
     *     @type int $max_serve_nodes
     *           Required. Maximum number of nodes to scale up to.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Minimum number of nodes to scale down to.
     *
     * Generated from protobuf field <code>int32 min_serve_nodes = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getMinServeNodes()
    {
        return $this->min_serve_nodes;
    }

    /**
     * Required. Minimum number of nodes to scale down to.
     *
     * Generated from protobuf field <code>int32 min_serve_nodes = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setMinServeNodes($var)
    {
        GPBUtil::checkInt32($var);
        $this->min_serve_nodes = $var;

        return $this;
    }

    /**
     * Required. Maximum number of nodes to scale up to.
     *
     * Generated from protobuf field <code>int32 max_serve_nodes = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getMaxServeNodes()
    {
        return $this->max_serve_nodes;
    }

    /**
     * Required. Maximum number of nodes to scale up to.
     *
     * Generated from protobuf field <code>int32 max_serve_nodes = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setMaxServeNodes($var)
    {
        GPBUtil::checkInt32($var);
        $this->max_serve_nodes = $var;

        return $this;
    }

}

