<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Game_Match_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.SingleRankingMatchParam</code>
 */
class SingleRankingMatchParam extends \Google\Protobuf\Internal\Message
{
    /**
     *段位
     *
     * Generated from protobuf field <code>int32 Level = 1;</code>
     */
    protected $Level = 0;
    /**
     *段位范围
     *
     * Generated from protobuf field <code>int32 LevelRange = 2;</code>
     */
    protected $LevelRange = 0;
    /**
     *匹配分
     *
     * Generated from protobuf field <code>int32 Score = 3;</code>
     */
    protected $Score = 0;
    /**
     *匹配时间和匹配分范围
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.MatchTimeScoreRange MatchTimeScore = 4;</code>
     */
    private $MatchTimeScore;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Level
     *          段位
     *     @type int $LevelRange
     *          段位范围
     *     @type int $Score
     *          匹配分
     *     @type \Game\Protobuf\MatchTimeScoreRange[]|\Google\Protobuf\Internal\RepeatedField $MatchTimeScore
     *          匹配时间和匹配分范围
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GameMatchPacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     *段位范围
     *
     * Generated from protobuf field <code>int32 LevelRange = 2;</code>
     * @return int
     */
    public function getLevelRange()
    {
        return $this->LevelRange;
    }

    /**
     *段位范围
     *
     * Generated from protobuf field <code>int32 LevelRange = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setLevelRange($var)
    {
        GPBUtil::checkInt32($var);
        $this->LevelRange = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     *匹配时间和匹配分范围
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.MatchTimeScoreRange MatchTimeScore = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMatchTimeScore()
    {
        return $this->MatchTimeScore;
    }

    /**
     *匹配时间和匹配分范围
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.MatchTimeScoreRange MatchTimeScore = 4;</code>
     * @param \Game\Protobuf\MatchTimeScoreRange[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMatchTimeScore($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\MatchTimeScoreRange::class);
        $this->MatchTimeScore = $arr;

        return $this;
    }

}

