<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Game_Match_Room_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.MRGMatchResult</code>
 */
class MRGMatchResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string Ip = 1;</code>
     */
    protected $Ip = '';
    /**
     * Generated from protobuf field <code>int32 Port = 2;</code>
     */
    protected $Port = 0;
    /**
     * Generated from protobuf field <code>int32 MapID = 3;</code>
     */
    protected $MapID = 0;
    /**
     * Generated from protobuf field <code>int32 MatchType = 4;</code>
     */
    protected $MatchType = 0;
    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.MatchPlayer Player = 5;</code>
     */
    private $Player;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $Ip
     *     @type int $Port
     *     @type int $MapID
     *     @type int $MatchType
     *     @type \Game\Protobuf\MatchPlayer[]|\Google\Protobuf\Internal\RepeatedField $Player
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GameMatchRoomPacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string Ip = 1;</code>
     * @return string
     */
    public function getIp()
    {
        return $this->Ip;
    }

    /**
     * Generated from protobuf field <code>string Ip = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setIp($var)
    {
        GPBUtil::checkString($var, True);
        $this->Ip = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.MatchPlayer Player = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPlayer()
    {
        return $this->Player;
    }

    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.MatchPlayer Player = 5;</code>
     * @param \Game\Protobuf\MatchPlayer[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPlayer($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\MatchPlayer::class);
        $this->Player = $arr;

        return $this;
    }

}

