<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Game_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.RGSettlement</code>
 */
class RGSettlement extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 MatchType = 1;</code>
     */
    protected $MatchType = 0;
    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.SettlementPlayer Player = 2;</code>
     */
    private $Player;

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

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

    /**
     * Generated from protobuf field <code>int32 MatchType = 1;</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.SettlementPlayer Player = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPlayer()
    {
        return $this->Player;
    }

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

        return $this;
    }

}

