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

namespace Google\Cloud\MigrationCenter\V1\ReportSummary;

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

/**
 * Utilization Chart is a specific type of visualization which displays
 * a metric classified into "Used" and "Free" buckets.
 *
 * Generated from protobuf message <code>google.cloud.migrationcenter.v1.ReportSummary.UtilizationChartData</code>
 */
class UtilizationChartData extends \Google\Protobuf\Internal\Message
{
    /**
     * Aggregate value which falls into the "Used" bucket.
     *
     * Generated from protobuf field <code>int64 used = 1;</code>
     */
    protected $used = 0;
    /**
     * Aggregate value which falls into the "Free" bucket.
     *
     * Generated from protobuf field <code>int64 free = 2;</code>
     */
    protected $free = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $used
     *           Aggregate value which falls into the "Used" bucket.
     *     @type int|string $free
     *           Aggregate value which falls into the "Free" bucket.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Migrationcenter\V1\Migrationcenter::initOnce();
        parent::__construct($data);
    }

    /**
     * Aggregate value which falls into the "Used" bucket.
     *
     * Generated from protobuf field <code>int64 used = 1;</code>
     * @return int|string
     */
    public function getUsed()
    {
        return $this->used;
    }

    /**
     * Aggregate value which falls into the "Used" bucket.
     *
     * Generated from protobuf field <code>int64 used = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setUsed($var)
    {
        GPBUtil::checkInt64($var);
        $this->used = $var;

        return $this;
    }

    /**
     * Aggregate value which falls into the "Free" bucket.
     *
     * Generated from protobuf field <code>int64 free = 2;</code>
     * @return int|string
     */
    public function getFree()
    {
        return $this->free;
    }

    /**
     * Aggregate value which falls into the "Free" bucket.
     *
     * Generated from protobuf field <code>int64 free = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFree($var)
    {
        GPBUtil::checkInt64($var);
        $this->free = $var;

        return $this;
    }

}


