<?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.TeamRankingMatchParam</code>
 */
class TeamRankingMatchParam 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;
    /**
     *位置1玩家Id,如果为0为缺少改位置
     *
     * Generated from protobuf field <code>uint64 Position1PlayerId = 5;</code>
     */
    protected $Position1PlayerId = 0;
    /**
     *位置1概率
     *
     * Generated from protobuf field <code>int32 Position1Ratio = 6;</code>
     */
    protected $Position1Ratio = 0;
    /**
     * Generated from protobuf field <code>uint64 Position2PlayerId = 7;</code>
     */
    protected $Position2PlayerId = 0;
    /**
     * Generated from protobuf field <code>int32 Position2Ratio = 8;</code>
     */
    protected $Position2Ratio = 0;
    /**
     * Generated from protobuf field <code>uint64 Position3PlayerId = 9;</code>
     */
    protected $Position3PlayerId = 0;
    /**
     * Generated from protobuf field <code>int32 Position3Ratio = 10;</code>
     */
    protected $Position3Ratio = 0;

    /**
     * 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
     *          匹配时间和匹配分范围
     *     @type int|string $Position1PlayerId
     *          位置1玩家Id,如果为0为缺少改位置
     *     @type int $Position1Ratio
     *          位置1概率
     *     @type int|string $Position2PlayerId
     *     @type int $Position2Ratio
     *     @type int|string $Position3PlayerId
     *     @type int $Position3Ratio
     * }
     */
    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;
    }

    /**
     *位置1玩家Id,如果为0为缺少改位置
     *
     * Generated from protobuf field <code>uint64 Position1PlayerId = 5;</code>
     * @return int|string
     */
    public function getPosition1PlayerId()
    {
        return $this->Position1PlayerId;
    }

    /**
     *位置1玩家Id,如果为0为缺少改位置
     *
     * Generated from protobuf field <code>uint64 Position1PlayerId = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPosition1PlayerId($var)
    {
        GPBUtil::checkUint64($var);
        $this->Position1PlayerId = $var;

        return $this;
    }

    /**
     *位置1概率
     *
     * Generated from protobuf field <code>int32 Position1Ratio = 6;</code>
     * @return int
     */
    public function getPosition1Ratio()
    {
        return $this->Position1Ratio;
    }

    /**
     *位置1概率
     *
     * Generated from protobuf field <code>int32 Position1Ratio = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setPosition1Ratio($var)
    {
        GPBUtil::checkInt32($var);
        $this->Position1Ratio = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 Position2PlayerId = 7;</code>
     * @return int|string
     */
    public function getPosition2PlayerId()
    {
        return $this->Position2PlayerId;
    }

    /**
     * Generated from protobuf field <code>uint64 Position2PlayerId = 7;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPosition2PlayerId($var)
    {
        GPBUtil::checkUint64($var);
        $this->Position2PlayerId = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 Position3PlayerId = 9;</code>
     * @return int|string
     */
    public function getPosition3PlayerId()
    {
        return $this->Position3PlayerId;
    }

    /**
     * Generated from protobuf field <code>uint64 Position3PlayerId = 9;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPosition3PlayerId($var)
    {
        GPBUtil::checkUint64($var);
        $this->Position3PlayerId = $var;

        return $this;
    }

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

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

        return $this;
    }

}

