<?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.GCZLInfo</code>
 */
class GCZLInfo extends \Google\Protobuf\Internal\Message
{
    /**
     *经验
     *
     * Generated from protobuf field <code>int32 Exp = 1;</code>
     */
    protected $Exp = 0;
    /**
     * 开通标志
     *
     * Generated from protobuf field <code>int32 ExpertFlag = 2;</code>
     */
    protected $ExpertFlag = 0;
    /**
     *初级领取进度
     *
     * Generated from protobuf field <code>repeated int32 PrimaryId = 3;</code>
     */
    private $PrimaryId;
    /**
     *高阶领取进度
     *
     * Generated from protobuf field <code>repeated int32 ExpertId = 4;</code>
     */
    private $ExpertId;
    /**
     *当前在赛季第几周
     *
     * Generated from protobuf field <code>int32 Week = 5;</code>
     */
    protected $Week = 0;
    /**
     *每日任务周经验
     *
     * Generated from protobuf field <code>int32 WeekExp = 6;</code>
     */
    protected $WeekExp = 0;
    /**
     * Generated from protobuf field <code>int32 OverFlowExp = 7;</code>
     */
    protected $OverFlowExp = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Exp
     *          经验
     *     @type int $ExpertFlag
     *           开通标志
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $PrimaryId
     *          初级领取进度
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $ExpertId
     *          高阶领取进度
     *     @type int $Week
     *          当前在赛季第几周
     *     @type int $WeekExp
     *          每日任务周经验
     *     @type int $OverFlowExp
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * 开通标志
     *
     * Generated from protobuf field <code>int32 ExpertFlag = 2;</code>
     * @return int
     */
    public function getExpertFlag()
    {
        return $this->ExpertFlag;
    }

    /**
     * 开通标志
     *
     * Generated from protobuf field <code>int32 ExpertFlag = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setExpertFlag($var)
    {
        GPBUtil::checkInt32($var);
        $this->ExpertFlag = $var;

        return $this;
    }

    /**
     *初级领取进度
     *
     * Generated from protobuf field <code>repeated int32 PrimaryId = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPrimaryId()
    {
        return $this->PrimaryId;
    }

    /**
     *初级领取进度
     *
     * Generated from protobuf field <code>repeated int32 PrimaryId = 3;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPrimaryId($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->PrimaryId = $arr;

        return $this;
    }

    /**
     *高阶领取进度
     *
     * Generated from protobuf field <code>repeated int32 ExpertId = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getExpertId()
    {
        return $this->ExpertId;
    }

    /**
     *高阶领取进度
     *
     * Generated from protobuf field <code>repeated int32 ExpertId = 4;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setExpertId($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->ExpertId = $arr;

        return $this;
    }

    /**
     *当前在赛季第几周
     *
     * Generated from protobuf field <code>int32 Week = 5;</code>
     * @return int
     */
    public function getWeek()
    {
        return $this->Week;
    }

    /**
     *当前在赛季第几周
     *
     * Generated from protobuf field <code>int32 Week = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setWeek($var)
    {
        GPBUtil::checkInt32($var);
        $this->Week = $var;

        return $this;
    }

    /**
     *每日任务周经验
     *
     * Generated from protobuf field <code>int32 WeekExp = 6;</code>
     * @return int
     */
    public function getWeekExp()
    {
        return $this->WeekExp;
    }

    /**
     *每日任务周经验
     *
     * Generated from protobuf field <code>int32 WeekExp = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setWeekExp($var)
    {
        GPBUtil::checkInt32($var);
        $this->WeekExp = $var;

        return $this;
    }

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

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

        return $this;
    }

}

