<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Client_Game_Packet.proto

namespace Game\Protobuf;

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

/**
 * Generated from protobuf message <code>Game.Protobuf.UseItemSingle</code>
 */
class UseItemSingle extends \Google\Protobuf\Internal\Message
{
    /**
     * 道具id
     *
     * Generated from protobuf field <code>int32 TplID = 1;</code>
     */
    protected $TplID = 0;
    /**
     * 道具数量
     *
     * Generated from protobuf field <code>int32 Num = 2;</code>
     */
    protected $Num = 0;
    /**
     * 失效时间
     *
     * Generated from protobuf field <code>uint64 Expire = 3;</code>
     */
    protected $Expire = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $TplID
     *           道具id
     *     @type int $Num
     *           道具数量
     *     @type int|string $Expire
     *           失效时间
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * 道具id
     *
     * Generated from protobuf field <code>int32 TplID = 1;</code>
     * @return int
     */
    public function getTplID()
    {
        return $this->TplID;
    }

    /**
     * 道具id
     *
     * Generated from protobuf field <code>int32 TplID = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setTplID($var)
    {
        GPBUtil::checkInt32($var);
        $this->TplID = $var;

        return $this;
    }

    /**
     * 道具数量
     *
     * Generated from protobuf field <code>int32 Num = 2;</code>
     * @return int
     */
    public function getNum()
    {
        return $this->Num;
    }

    /**
     * 道具数量
     *
     * Generated from protobuf field <code>int32 Num = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->Num = $var;

        return $this;
    }

    /**
     * 失效时间
     *
     * Generated from protobuf field <code>uint64 Expire = 3;</code>
     * @return int|string
     */
    public function getExpire()
    {
        return $this->Expire;
    }

    /**
     * 失效时间
     *
     * Generated from protobuf field <code>uint64 Expire = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExpire($var)
    {
        GPBUtil::checkUint64($var);
        $this->Expire = $var;

        return $this;
    }

}

