<?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.MatchPlayer</code>
 */
class MatchPlayer extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 PlayerID = 1;</code>
     */
    protected $PlayerID = 0;
    /**
     * Generated from protobuf field <code>int32 ServerID = 2;</code>
     */
    protected $ServerID = 0;
    /**
     * Generated from protobuf field <code>int64 JoinID = 3;</code>
     */
    protected $JoinID = 0;
    /**
     * Generated from protobuf field <code>int32 GroupID = 4;</code>
     */
    protected $GroupID = 0;
    /**
     *根据MatchType类型不同,参数不同.MatchType为排位赛时,代表位置,排位赛用.个人排位1-6,组队排位1,2竞速位 3,4干扰位 5,6辅助位
     *
     * Generated from protobuf field <code>string Param = 5;</code>
     */
    protected $Param = '';
    /**
     *玩家显示信息,原样返回 Json
     *
     * Generated from protobuf field <code>string PlayerShow = 6;</code>
     */
    protected $PlayerShow = '';
    /**
     *玩家赛车信息,发送后原样返回 Json
     *
     * Generated from protobuf field <code>string CarShow = 7;</code>
     */
    protected $CarShow = '';
    /**
     * 玩家角色类型 1 玩家 2 观战
     *
     * Generated from protobuf field <code>int32 RoleType = 8;</code>
     */
    protected $RoleType = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerID
     *     @type int $ServerID
     *     @type int|string $JoinID
     *     @type int $GroupID
     *     @type string $Param
     *          根据MatchType类型不同,参数不同.MatchType为排位赛时,代表位置,排位赛用.个人排位1-6,组队排位1,2竞速位 3,4干扰位 5,6辅助位
     *     @type string $PlayerShow
     *          玩家显示信息,原样返回 Json
     *     @type string $CarShow
     *          玩家赛车信息,发送后原样返回 Json
     *     @type int $RoleType
     *           玩家角色类型 1 玩家 2 观战
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GameMatchRoomPacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int64 PlayerID = 1;</code>
     * @return int|string
     */
    public function getPlayerID()
    {
        return $this->PlayerID;
    }

    /**
     * Generated from protobuf field <code>int64 PlayerID = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPlayerID($var)
    {
        GPBUtil::checkInt64($var);
        $this->PlayerID = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 JoinID = 3;</code>
     * @return int|string
     */
    public function getJoinID()
    {
        return $this->JoinID;
    }

    /**
     * Generated from protobuf field <code>int64 JoinID = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setJoinID($var)
    {
        GPBUtil::checkInt64($var);
        $this->JoinID = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     *根据MatchType类型不同,参数不同.MatchType为排位赛时,代表位置,排位赛用.个人排位1-6,组队排位1,2竞速位 3,4干扰位 5,6辅助位
     *
     * Generated from protobuf field <code>string Param = 5;</code>
     * @return string
     */
    public function getParam()
    {
        return $this->Param;
    }

    /**
     *根据MatchType类型不同,参数不同.MatchType为排位赛时,代表位置,排位赛用.个人排位1-6,组队排位1,2竞速位 3,4干扰位 5,6辅助位
     *
     * Generated from protobuf field <code>string Param = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setParam($var)
    {
        GPBUtil::checkString($var, True);
        $this->Param = $var;

        return $this;
    }

    /**
     *玩家显示信息,原样返回 Json
     *
     * Generated from protobuf field <code>string PlayerShow = 6;</code>
     * @return string
     */
    public function getPlayerShow()
    {
        return $this->PlayerShow;
    }

    /**
     *玩家显示信息,原样返回 Json
     *
     * Generated from protobuf field <code>string PlayerShow = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setPlayerShow($var)
    {
        GPBUtil::checkString($var, True);
        $this->PlayerShow = $var;

        return $this;
    }

    /**
     *玩家赛车信息,发送后原样返回 Json
     *
     * Generated from protobuf field <code>string CarShow = 7;</code>
     * @return string
     */
    public function getCarShow()
    {
        return $this->CarShow;
    }

    /**
     *玩家赛车信息,发送后原样返回 Json
     *
     * Generated from protobuf field <code>string CarShow = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setCarShow($var)
    {
        GPBUtil::checkString($var, True);
        $this->CarShow = $var;

        return $this;
    }

    /**
     * 玩家角色类型 1 玩家 2 观战
     *
     * Generated from protobuf field <code>int32 RoleType = 8;</code>
     * @return int
     */
    public function getRoleType()
    {
        return $this->RoleType;
    }

    /**
     * 玩家角色类型 1 玩家 2 观战
     *
     * Generated from protobuf field <code>int32 RoleType = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setRoleType($var)
    {
        GPBUtil::checkInt32($var);
        $this->RoleType = $var;

        return $this;
    }

}

