<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/access_report.proto

namespace Google\Analytics\Admin\V1alpha;

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

/**
 * Current state for a particular quota group.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.AccessQuotaStatus</code>
 */
class AccessQuotaStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * Quota consumed by this request.
     *
     * Generated from protobuf field <code>int32 consumed = 1;</code>
     */
    private $consumed = 0;
    /**
     * Quota remaining after this request.
     *
     * Generated from protobuf field <code>int32 remaining = 2;</code>
     */
    private $remaining = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $consumed
     *           Quota consumed by this request.
     *     @type int $remaining
     *           Quota remaining after this request.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce();
        parent::__construct($data);
    }

    /**
     * Quota consumed by this request.
     *
     * Generated from protobuf field <code>int32 consumed = 1;</code>
     * @return int
     */
    public function getConsumed()
    {
        return $this->consumed;
    }

    /**
     * Quota consumed by this request.
     *
     * Generated from protobuf field <code>int32 consumed = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setConsumed($var)
    {
        GPBUtil::checkInt32($var);
        $this->consumed = $var;

        return $this;
    }

    /**
     * Quota remaining after this request.
     *
     * Generated from protobuf field <code>int32 remaining = 2;</code>
     * @return int
     */
    public function getRemaining()
    {
        return $this->remaining;
    }

    /**
     * Quota remaining after this request.
     *
     * Generated from protobuf field <code>int32 remaining = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setRemaining($var)
    {
        GPBUtil::checkInt32($var);
        $this->remaining = $var;

        return $this;
    }

}

