<?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.Task</code>
 */
class Task extends \Google\Protobuf\Internal\Message
{
    /**
     *任务id
     *
     * Generated from protobuf field <code>int32 TaskId = 1;</code>
     */
    protected $TaskId = 0;
    /**
     *状态 0进行中 1完成未领取 2完成已领取
     *
     * Generated from protobuf field <code>int32 Status = 2;</code>
     */
    protected $Status = 0;
    /**
     *进度
     *
     * Generated from protobuf field <code>int32 Schedule = 3;</code>
     */
    protected $Schedule = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $TaskId
     *          任务id
     *     @type int $Status
     *          状态 0进行中 1完成未领取 2完成已领取
     *     @type int $Schedule
     *          进度
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *任务id
     *
     * Generated from protobuf field <code>int32 TaskId = 1;</code>
     * @return int
     */
    public function getTaskId()
    {
        return $this->TaskId;
    }

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

        return $this;
    }

    /**
     *状态 0进行中 1完成未领取 2完成已领取
     *
     * Generated from protobuf field <code>int32 Status = 2;</code>
     * @return int
     */
    public function getStatus()
    {
        return $this->Status;
    }

    /**
     *状态 0进行中 1完成未领取 2完成已领取
     *
     * Generated from protobuf field <code>int32 Status = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkInt32($var);
        $this->Status = $var;

        return $this;
    }

    /**
     *进度
     *
     * Generated from protobuf field <code>int32 Schedule = 3;</code>
     * @return int
     */
    public function getSchedule()
    {
        return $this->Schedule;
    }

    /**
     *进度
     *
     * Generated from protobuf field <code>int32 Schedule = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setSchedule($var)
    {
        GPBUtil::checkInt32($var);
        $this->Schedule = $var;

        return $this;
    }

}

