<?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.GCUpdateSeason</code>
 */
class GCUpdateSeason extends \Google\Protobuf\Internal\Message
{
    /**
     *当前赛季Id
     *
     * Generated from protobuf field <code>int32 SeasonId = 1;</code>
     */
    protected $SeasonId = 0;
    /**
     *当前赛季状态 1开启,2关闭
     *
     * Generated from protobuf field <code>int32 SeasonStatus = 2;</code>
     */
    protected $SeasonStatus = 0;
    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 LevelId = 3;</code>
     */
    protected $LevelId = 0;
    /**
     *段位积分
     *
     * Generated from protobuf field <code>int32 Score = 4;</code>
     */
    protected $Score = 0;
    /**
     *历史最高段位
     *
     * Generated from protobuf field <code>int32 MaxLevelId = 5;</code>
     */
    protected $MaxLevelId = 0;
    /**
     *保护分
     *
     * Generated from protobuf field <code>int32 GuardScore = 6;</code>
     */
    protected $GuardScore = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $SeasonId
     *          当前赛季Id
     *     @type int $SeasonStatus
     *          当前赛季状态 1开启,2关闭
     *     @type int $LevelId
     *          段位等级
     *     @type int $Score
     *          段位积分
     *     @type int $MaxLevelId
     *          历史最高段位
     *     @type int $GuardScore
     *          保护分
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *当前赛季Id
     *
     * Generated from protobuf field <code>int32 SeasonId = 1;</code>
     * @return int
     */
    public function getSeasonId()
    {
        return $this->SeasonId;
    }

    /**
     *当前赛季Id
     *
     * Generated from protobuf field <code>int32 SeasonId = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setSeasonId($var)
    {
        GPBUtil::checkInt32($var);
        $this->SeasonId = $var;

        return $this;
    }

    /**
     *当前赛季状态 1开启,2关闭
     *
     * Generated from protobuf field <code>int32 SeasonStatus = 2;</code>
     * @return int
     */
    public function getSeasonStatus()
    {
        return $this->SeasonStatus;
    }

    /**
     *当前赛季状态 1开启,2关闭
     *
     * Generated from protobuf field <code>int32 SeasonStatus = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setSeasonStatus($var)
    {
        GPBUtil::checkInt32($var);
        $this->SeasonStatus = $var;

        return $this;
    }

    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 LevelId = 3;</code>
     * @return int
     */
    public function getLevelId()
    {
        return $this->LevelId;
    }

    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 LevelId = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setLevelId($var)
    {
        GPBUtil::checkInt32($var);
        $this->LevelId = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     *历史最高段位
     *
     * Generated from protobuf field <code>int32 MaxLevelId = 5;</code>
     * @return int
     */
    public function getMaxLevelId()
    {
        return $this->MaxLevelId;
    }

    /**
     *历史最高段位
     *
     * Generated from protobuf field <code>int32 MaxLevelId = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setMaxLevelId($var)
    {
        GPBUtil::checkInt32($var);
        $this->MaxLevelId = $var;

        return $this;
    }

    /**
     *保护分
     *
     * Generated from protobuf field <code>int32 GuardScore = 6;</code>
     * @return int
     */
    public function getGuardScore()
    {
        return $this->GuardScore;
    }

    /**
     *保护分
     *
     * Generated from protobuf field <code>int32 GuardScore = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setGuardScore($var)
    {
        GPBUtil::checkInt32($var);
        $this->GuardScore = $var;

        return $this;
    }

}

