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

namespace Google\Cloud\LicenseManager\V1;

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

/**
 * Message describing total counts of users who accessed a VM.
 *
 * Generated from protobuf message <code>google.cloud.licensemanager.v1.Usage</code>
 */
class Usage extends \Google\Protobuf\Internal\Message
{
    /**
     * LiMa Instance resource name, i.e.
     * projects/{project}/locations/{location}/instances/{instance}
     *
     * Generated from protobuf field <code>string lima_instance = 1 [(.google.api.resource_reference) = {</code>
     */
    protected $lima_instance = '';
    /**
     * Number of unique users accessing the VM.
     *
     * Generated from protobuf field <code>int32 users = 2;</code>
     */
    protected $users = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $lima_instance
     *           LiMa Instance resource name, i.e.
     *           projects/{project}/locations/{location}/instances/{instance}
     *     @type int $users
     *           Number of unique users accessing the VM.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Licensemanager\V1\ApiEntities::initOnce();
        parent::__construct($data);
    }

    /**
     * LiMa Instance resource name, i.e.
     * projects/{project}/locations/{location}/instances/{instance}
     *
     * Generated from protobuf field <code>string lima_instance = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getLimaInstance()
    {
        return $this->lima_instance;
    }

    /**
     * LiMa Instance resource name, i.e.
     * projects/{project}/locations/{location}/instances/{instance}
     *
     * Generated from protobuf field <code>string lima_instance = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setLimaInstance($var)
    {
        GPBUtil::checkString($var, True);
        $this->lima_instance = $var;

        return $this;
    }

    /**
     * Number of unique users accessing the VM.
     *
     * Generated from protobuf field <code>int32 users = 2;</code>
     * @return int
     */
    public function getUsers()
    {
        return $this->users;
    }

    /**
     * Number of unique users accessing the VM.
     *
     * Generated from protobuf field <code>int32 users = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setUsers($var)
    {
        GPBUtil::checkInt32($var);
        $this->users = $var;

        return $this;
    }

}

