<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Gm_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.Item</code>
 */
class Item extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 ID = 1;</code>
     */
    protected $ID = 0;
    /**
     * Generated from protobuf field <code>int64 ItemID = 2;</code>
     */
    protected $ItemID = 0;
    /**
     * Generated from protobuf field <code>int64 ItemNum = 3;</code>
     */
    protected $ItemNum = 0;
    /**
     * Generated from protobuf field <code>int64 TimeOut = 4;</code>
     */
    protected $TimeOut = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $ID
     *     @type int|string $ItemID
     *     @type int|string $ItemNum
     *     @type int|string $TimeOut
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GmGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 ID = 1;</code>
     * @return int
     */
    public function getID()
    {
        return $this->ID;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 ItemID = 2;</code>
     * @return int|string
     */
    public function getItemID()
    {
        return $this->ItemID;
    }

    /**
     * Generated from protobuf field <code>int64 ItemID = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setItemID($var)
    {
        GPBUtil::checkInt64($var);
        $this->ItemID = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 ItemNum = 3;</code>
     * @return int|string
     */
    public function getItemNum()
    {
        return $this->ItemNum;
    }

    /**
     * Generated from protobuf field <code>int64 ItemNum = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setItemNum($var)
    {
        GPBUtil::checkInt64($var);
        $this->ItemNum = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 TimeOut = 4;</code>
     * @return int|string
     */
    public function getTimeOut()
    {
        return $this->TimeOut;
    }

    /**
     * Generated from protobuf field <code>int64 TimeOut = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTimeOut($var)
    {
        GPBUtil::checkInt64($var);
        $this->TimeOut = $var;

        return $this;
    }

}

