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

namespace Google\Cloud\Bigtable\Admin\V2\Cluster;

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

/**
 * Autoscaling config for a cluster.
 *
 * Generated from protobuf message <code>google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig</code>
 */
class ClusterAutoscalingConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Autoscaling limits for this cluster.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $autoscaling_limits = null;
    /**
     * Required. Autoscaling targets for this cluster.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $autoscaling_targets = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits $autoscaling_limits
     *           Required. Autoscaling limits for this cluster.
     *     @type \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets $autoscaling_targets
     *           Required. Autoscaling targets for this cluster.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Autoscaling limits for this cluster.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits|null
     */
    public function getAutoscalingLimits()
    {
        return $this->autoscaling_limits;
    }

    public function hasAutoscalingLimits()
    {
        return isset($this->autoscaling_limits);
    }

    public function clearAutoscalingLimits()
    {
        unset($this->autoscaling_limits);
    }

    /**
     * Required. Autoscaling limits for this cluster.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits $var
     * @return $this
     */
    public function setAutoscalingLimits($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits::class);
        $this->autoscaling_limits = $var;

        return $this;
    }

    /**
     * Required. Autoscaling targets for this cluster.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets|null
     */
    public function getAutoscalingTargets()
    {
        return $this->autoscaling_targets;
    }

    public function hasAutoscalingTargets()
    {
        return isset($this->autoscaling_targets);
    }

    public function clearAutoscalingTargets()
    {
        unset($this->autoscaling_targets);
    }

    /**
     * Required. Autoscaling targets for this cluster.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets $var
     * @return $this
     */
    public function setAutoscalingTargets($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets::class);
        $this->autoscaling_targets = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterAutoscalingConfig::class, \Google\Cloud\Bigtable\Admin\V2\Cluster_ClusterAutoscalingConfig::class);

