<?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.GCPaiweiLevelInfo</code>
 */
class GCPaiweiLevelInfo extends \Google\Protobuf\Internal\Message
{
    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 LevelId = 1;</code>
     */
    protected $LevelId = 0;
    /**
     *段位积分
     *
     * Generated from protobuf field <code>int32 Score = 2;</code>
     */
    protected $Score = 0;
    /**
     *历史最高段位
     *
     * Generated from protobuf field <code>int32 MaxLevelId = 3;</code>
     */
    protected $MaxLevelId = 0;
    /**
     *保护分
     *
     * Generated from protobuf field <code>int32 GuardScore = 4;</code>
     */
    protected $GuardScore = 0;
    /**
     *当前赛季Id
     *
     * Generated from protobuf field <code>int32 SeasonId = 5;</code>
     */
    protected $SeasonId = 0;
    /**
     *位置排序[1,2,3] 0随机位置 1竞速位 2干扰位 3辅助位 第一位为0代表随机任意位置
     *
     * Generated from protobuf field <code>repeated int32 PositionOrder = 6;</code>
     */
    private $PositionOrder;
    /**
     *位置排序是否随机
     *
     * Generated from protobuf field <code>int32 IsRandom = 7;</code>
     */
    protected $IsRandom = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $LevelId
     *          段位等级
     *     @type int $Score
     *          段位积分
     *     @type int $MaxLevelId
     *          历史最高段位
     *     @type int $GuardScore
     *          保护分
     *     @type int $SeasonId
     *          当前赛季Id
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $PositionOrder
     *          位置排序[1,2,3] 0随机位置 1竞速位 2干扰位 3辅助位 第一位为0代表随机任意位置
     *     @type int $IsRandom
     *          位置排序是否随机
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 LevelId = 1;</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 = 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>int32 MaxLevelId = 3;</code>
     * @return int
     */
    public function getMaxLevelId()
    {
        return $this->MaxLevelId;
    }

    /**
     *历史最高段位
     *
     * Generated from protobuf field <code>int32 MaxLevelId = 3;</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 = 4;</code>
     * @return int
     */
    public function getGuardScore()
    {
        return $this->GuardScore;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     *位置排序[1,2,3] 0随机位置 1竞速位 2干扰位 3辅助位 第一位为0代表随机任意位置
     *
     * Generated from protobuf field <code>repeated int32 PositionOrder = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPositionOrder()
    {
        return $this->PositionOrder;
    }

    /**
     *位置排序[1,2,3] 0随机位置 1竞速位 2干扰位 3辅助位 第一位为0代表随机任意位置
     *
     * Generated from protobuf field <code>repeated int32 PositionOrder = 6;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPositionOrder($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->PositionOrder = $arr;

        return $this;
    }

    /**
     *位置排序是否随机
     *
     * Generated from protobuf field <code>int32 IsRandom = 7;</code>
     * @return int
     */
    public function getIsRandom()
    {
        return $this->IsRandom;
    }

    /**
     *位置排序是否随机
     *
     * Generated from protobuf field <code>int32 IsRandom = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setIsRandom($var)
    {
        GPBUtil::checkInt32($var);
        $this->IsRandom = $var;

        return $this;
    }

}

