<?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.MapChallengeMapInfo</code>
 */
class MapChallengeMapInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 MapId = 1;</code>
     */
    protected $MapId = 0;
    /**
     *最佳时间,没有为0
     *
     * Generated from protobuf field <code>int32 BestTime = 2;</code>
     */
    protected $BestTime = 0;
    /**
     *完成挑战数量
     *
     * Generated from protobuf field <code>int32 CompleteNum = 3;</code>
     */
    protected $CompleteNum = 0;
    /**
     *已挑战完成的id(ChallengeTask表Id),0为未完成
     *
     * Generated from protobuf field <code>int32 CompleteTaskId = 4;</code>
     */
    protected $CompleteTaskId = 0;
    /**
     *已领取的挑战id(ChallengeTask表Id)
     *
     * Generated from protobuf field <code>int32 GetTaskId = 5;</code>
     */
    protected $GetTaskId = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $MapId
     *     @type int $BestTime
     *          最佳时间,没有为0
     *     @type int $CompleteNum
     *          完成挑战数量
     *     @type int $CompleteTaskId
     *          已挑战完成的id(ChallengeTask表Id),0为未完成
     *     @type int $GetTaskId
     *          已领取的挑战id(ChallengeTask表Id)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     *最佳时间,没有为0
     *
     * Generated from protobuf field <code>int32 BestTime = 2;</code>
     * @return int
     */
    public function getBestTime()
    {
        return $this->BestTime;
    }

    /**
     *最佳时间,没有为0
     *
     * Generated from protobuf field <code>int32 BestTime = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setBestTime($var)
    {
        GPBUtil::checkInt32($var);
        $this->BestTime = $var;

        return $this;
    }

    /**
     *完成挑战数量
     *
     * Generated from protobuf field <code>int32 CompleteNum = 3;</code>
     * @return int
     */
    public function getCompleteNum()
    {
        return $this->CompleteNum;
    }

    /**
     *完成挑战数量
     *
     * Generated from protobuf field <code>int32 CompleteNum = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setCompleteNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->CompleteNum = $var;

        return $this;
    }

    /**
     *已挑战完成的id(ChallengeTask表Id),0为未完成
     *
     * Generated from protobuf field <code>int32 CompleteTaskId = 4;</code>
     * @return int
     */
    public function getCompleteTaskId()
    {
        return $this->CompleteTaskId;
    }

    /**
     *已挑战完成的id(ChallengeTask表Id),0为未完成
     *
     * Generated from protobuf field <code>int32 CompleteTaskId = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setCompleteTaskId($var)
    {
        GPBUtil::checkInt32($var);
        $this->CompleteTaskId = $var;

        return $this;
    }

    /**
     *已领取的挑战id(ChallengeTask表Id)
     *
     * Generated from protobuf field <code>int32 GetTaskId = 5;</code>
     * @return int
     */
    public function getGetTaskId()
    {
        return $this->GetTaskId;
    }

    /**
     *已领取的挑战id(ChallengeTask表Id)
     *
     * Generated from protobuf field <code>int32 GetTaskId = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setGetTaskId($var)
    {
        GPBUtil::checkInt32($var);
        $this->GetTaskId = $var;

        return $this;
    }

}

