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

namespace Google\Cloud\Container\V1;

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

/**
 * Contains information about amount of some resource in the cluster.
 * For memory, value should be in GB.
 *
 * Generated from protobuf message <code>google.container.v1.ResourceLimit</code>
 */
class ResourceLimit extends \Google\Protobuf\Internal\Message
{
    /**
     * Resource name "cpu", "memory" or gpu-specific string.
     *
     * Generated from protobuf field <code>string resource_type = 1;</code>
     */
    private $resource_type = '';
    /**
     * Minimum amount of the resource in the cluster.
     *
     * Generated from protobuf field <code>int64 minimum = 2;</code>
     */
    private $minimum = 0;
    /**
     * Maximum amount of the resource in the cluster.
     *
     * Generated from protobuf field <code>int64 maximum = 3;</code>
     */
    private $maximum = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_type
     *           Resource name "cpu", "memory" or gpu-specific string.
     *     @type int|string $minimum
     *           Minimum amount of the resource in the cluster.
     *     @type int|string $maximum
     *           Maximum amount of the resource in the cluster.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Resource name "cpu", "memory" or gpu-specific string.
     *
     * Generated from protobuf field <code>string resource_type = 1;</code>
     * @return string
     */
    public function getResourceType()
    {
        return $this->resource_type;
    }

    /**
     * Resource name "cpu", "memory" or gpu-specific string.
     *
     * Generated from protobuf field <code>string resource_type = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setResourceType($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_type = $var;

        return $this;
    }

    /**
     * Minimum amount of the resource in the cluster.
     *
     * Generated from protobuf field <code>int64 minimum = 2;</code>
     * @return int|string
     */
    public function getMinimum()
    {
        return $this->minimum;
    }

    /**
     * Minimum amount of the resource in the cluster.
     *
     * Generated from protobuf field <code>int64 minimum = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMinimum($var)
    {
        GPBUtil::checkInt64($var);
        $this->minimum = $var;

        return $this;
    }

    /**
     * Maximum amount of the resource in the cluster.
     *
     * Generated from protobuf field <code>int64 maximum = 3;</code>
     * @return int|string
     */
    public function getMaximum()
    {
        return $this->maximum;
    }

    /**
     * Maximum amount of the resource in the cluster.
     *
     * Generated from protobuf field <code>int64 maximum = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMaximum($var)
    {
        GPBUtil::checkInt64($var);
        $this->maximum = $var;

        return $this;
    }

}

