<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\BotQuotaMetadata;

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

/**
 * Generated from protobuf message <code>proto.BotQuotaMetadata.BotFeatureQuotaMetadata</code>
 */
class BotFeatureQuotaMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.BotQuotaMetadata.BotFeatureQuotaMetadata.BotFeatureType featureType = 1;</code>
     */
    protected $featureType = null;
    /**
     * Generated from protobuf field <code>optional uint32 remainingQuota = 2;</code>
     */
    protected $remainingQuota = null;
    /**
     * Generated from protobuf field <code>optional uint64 expirationTimestamp = 3;</code>
     */
    protected $expirationTimestamp = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $featureType
     *     @type int $remainingQuota
     *     @type int|string $expirationTimestamp
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotQuotaMetadata.BotFeatureQuotaMetadata.BotFeatureType featureType = 1;</code>
     * @return int
     */
    public function getFeatureType()
    {
        return isset($this->featureType) ? $this->featureType : 0;
    }

    public function hasFeatureType()
    {
        return isset($this->featureType);
    }

    public function clearFeatureType()
    {
        unset($this->featureType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotQuotaMetadata.BotFeatureQuotaMetadata.BotFeatureType featureType = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setFeatureType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotQuotaMetadata\BotFeatureQuotaMetadata\BotFeatureType::class);
        $this->featureType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 remainingQuota = 2;</code>
     * @return int
     */
    public function getRemainingQuota()
    {
        return isset($this->remainingQuota) ? $this->remainingQuota : 0;
    }

    public function hasRemainingQuota()
    {
        return isset($this->remainingQuota);
    }

    public function clearRemainingQuota()
    {
        unset($this->remainingQuota);
    }

    /**
     * Generated from protobuf field <code>optional uint32 remainingQuota = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setRemainingQuota($var)
    {
        GPBUtil::checkUint32($var);
        $this->remainingQuota = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 expirationTimestamp = 3;</code>
     * @return int|string
     */
    public function getExpirationTimestamp()
    {
        return isset($this->expirationTimestamp) ? $this->expirationTimestamp : 0;
    }

    public function hasExpirationTimestamp()
    {
        return isset($this->expirationTimestamp);
    }

    public function clearExpirationTimestamp()
    {
        unset($this->expirationTimestamp);
    }

    /**
     * Generated from protobuf field <code>optional uint64 expirationTimestamp = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExpirationTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->expirationTimestamp = $var;

        return $this;
    }

}

