<?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.GCFindSeasonReward</code>
 */
class GCFindSeasonReward extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 Code = 1;</code>
     */
    protected $Code = 0;
    /**
     * 积分   
     *
     * Generated from protobuf field <code>int32 Score = 2;</code>
     */
    protected $Score = 0;
    /**
     * 已经领取记录
     *
     * Generated from protobuf field <code>repeated int32 Reward = 3;</code>
     */
    private $Reward;
    /**
     * 循环经验
     *
     * Generated from protobuf field <code>int32 OverFlowExp = 4;</code>
     */
    protected $OverFlowExp = 0;
    /**
     * 可领取次数
     *
     * Generated from protobuf field <code>int32 HaveNum = 5;</code>
     */
    protected $HaveNum = 0;
    /**
     * 总领取次数
     *
     * Generated from protobuf field <code>int32 Num = 6;</code>
     */
    protected $Num = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Code
     *     @type int $Score
     *           积分   
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $Reward
     *           已经领取记录
     *     @type int $OverFlowExp
     *           循环经验
     *     @type int $HaveNum
     *           可领取次数
     *     @type int $Num
     *           总领取次数
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * 已经领取记录
     *
     * Generated from protobuf field <code>repeated int32 Reward = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getReward()
    {
        return $this->Reward;
    }

    /**
     * 已经领取记录
     *
     * Generated from protobuf field <code>repeated int32 Reward = 3;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setReward($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->Reward = $arr;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * 可领取次数
     *
     * Generated from protobuf field <code>int32 HaveNum = 5;</code>
     * @return int
     */
    public function getHaveNum()
    {
        return $this->HaveNum;
    }

    /**
     * 可领取次数
     *
     * Generated from protobuf field <code>int32 HaveNum = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setHaveNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->HaveNum = $var;

        return $this;
    }

    /**
     * 总领取次数
     *
     * Generated from protobuf field <code>int32 Num = 6;</code>
     * @return int
     */
    public function getNum()
    {
        return $this->Num;
    }

    /**
     * 总领取次数
     *
     * Generated from protobuf field <code>int32 Num = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->Num = $var;

        return $this;
    }

}

