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

namespace Google\Analytics\Data\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.data.v1alpha.QuotaStatus</code>
 */
class QuotaStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * Quota consumed by this request.
     *
     * Generated from protobuf field <code>int32 consumed = 1;</code>
     */
    protected $consumed = 0;
    /**
     * Quota remaining after this request.
     *
     * Generated from protobuf field <code>int32 remaining = 2;</code>
     */
    protected $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\Data\V1Alpha\Data::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;
    }

}

