<?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;

/**
 *-------------------------游戏关卡start-----------------------------//
 *
 * Generated from protobuf message <code>Game.Protobuf.GameLevel</code>
 */
class GameLevel extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 LevelId = 1;</code>
     */
    protected $LevelId = 0;
    /**
     * Generated from protobuf field <code>int32 LevelStar = 2;</code>
     */
    protected $LevelStar = 0;
    /**
     *1解锁 2完成 3停止 
     *
     * Generated from protobuf field <code>int32 LevelStatus = 3;</code>
     */
    protected $LevelStatus = 0;
    /**
     *0-0-0 0不存在 1未完成 2领取奖励
     *
     * Generated from protobuf field <code>string Target = 4;</code>
     */
    protected $Target = '';
    /**
     *历史最佳时间
     *
     * Generated from protobuf field <code>int32 BestTime = 5;</code>
     */
    protected $BestTime = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $LevelId
     *     @type int $LevelStar
     *     @type int $LevelStatus
     *          1解锁 2完成 3停止 
     *     @type string $Target
     *          0-0-0 0不存在 1未完成 2领取奖励
     *     @type int $BestTime
     *          历史最佳时间
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     *1解锁 2完成 3停止 
     *
     * Generated from protobuf field <code>int32 LevelStatus = 3;</code>
     * @return int
     */
    public function getLevelStatus()
    {
        return $this->LevelStatus;
    }

    /**
     *1解锁 2完成 3停止 
     *
     * Generated from protobuf field <code>int32 LevelStatus = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setLevelStatus($var)
    {
        GPBUtil::checkInt32($var);
        $this->LevelStatus = $var;

        return $this;
    }

    /**
     *0-0-0 0不存在 1未完成 2领取奖励
     *
     * Generated from protobuf field <code>string Target = 4;</code>
     * @return string
     */
    public function getTarget()
    {
        return $this->Target;
    }

    /**
     *0-0-0 0不存在 1未完成 2领取奖励
     *
     * Generated from protobuf field <code>string Target = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setTarget($var)
    {
        GPBUtil::checkString($var, True);
        $this->Target = $var;

        return $this;
    }

    /**
     *历史最佳时间
     *
     * Generated from protobuf field <code>int32 BestTime = 5;</code>
     * @return int
     */
    public function getBestTime()
    {
        return $this->BestTime;
    }

    /**
     *历史最佳时间
     *
     * Generated from protobuf field <code>int32 BestTime = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setBestTime($var)
    {
        GPBUtil::checkInt32($var);
        $this->BestTime = $var;

        return $this;
    }

}

