<?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.CGTaskSearch</code>
 */
class CGTaskSearch extends \Google\Protobuf\Internal\Message
{
    /**
     *任务类型 1日常 2支线 3主线 4战令 7日常挑战
     *
     * Generated from protobuf field <code>int32 Type = 1;</code>
     */
    protected $Type = 0;
    /**
     *默认为0 支线任务用 车辆模板Id 
     *
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     */
    protected $CarTplId = 0;
    /**
     *默认为0 战令任务用 0为高级任务 1~x为对应周
     *
     * Generated from protobuf field <code>int32 Week = 3;</code>
     */
    protected $Week = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Type
     *          任务类型 1日常 2支线 3主线 4战令 7日常挑战
     *     @type int $CarTplId
     *          默认为0 支线任务用 车辆模板Id 
     *     @type int $Week
     *          默认为0 战令任务用 0为高级任务 1~x为对应周
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *任务类型 1日常 2支线 3主线 4战令 7日常挑战
     *
     * Generated from protobuf field <code>int32 Type = 1;</code>
     * @return int
     */
    public function getType()
    {
        return $this->Type;
    }

    /**
     *任务类型 1日常 2支线 3主线 4战令 7日常挑战
     *
     * Generated from protobuf field <code>int32 Type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkInt32($var);
        $this->Type = $var;

        return $this;
    }

    /**
     *默认为0 支线任务用 车辆模板Id 
     *
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     * @return int
     */
    public function getCarTplId()
    {
        return $this->CarTplId;
    }

    /**
     *默认为0 支线任务用 车辆模板Id 
     *
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCarTplId($var)
    {
        GPBUtil::checkInt32($var);
        $this->CarTplId = $var;

        return $this;
    }

    /**
     *默认为0 战令任务用 0为高级任务 1~x为对应周
     *
     * Generated from protobuf field <code>int32 Week = 3;</code>
     * @return int
     */
    public function getWeek()
    {
        return $this->Week;
    }

    /**
     *默认为0 战令任务用 0为高级任务 1~x为对应周
     *
     * Generated from protobuf field <code>int32 Week = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setWeek($var)
    {
        GPBUtil::checkInt32($var);
        $this->Week = $var;

        return $this;
    }

}

