<?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.RoomPlayers</code>
 */
class RoomPlayers extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 PlayerID = 1;</code>
     */
    protected $PlayerID = 0;
    /**
     *玩家显示信息,发送后原样返回 Json
     *
     * Generated from protobuf field <code>string PlayerShow = 2;</code>
     */
    protected $PlayerShow = '';
    /**
     *玩家赛车信息,发送后原样返回 Json
     *
     * Generated from protobuf field <code>string CarShow = 3;</code>
     */
    protected $CarShow = '';
    /**
     *角色类型 1 选手 2 观战 
     *
     * Generated from protobuf field <code>int32 RoleType = 4;</code>
     */
    protected $RoleType = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerID
     *     @type string $PlayerShow
     *          玩家显示信息,发送后原样返回 Json
     *     @type string $CarShow
     *          玩家赛车信息,发送后原样返回 Json
     *     @type int $RoleType
     *          角色类型 1 选手 2 观战 
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GameMatchPacket::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;
    }

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

    /**
     *玩家显示信息,发送后原样返回 Json
     *
     * Generated from protobuf field <code>string PlayerShow = 2;</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 = 3;</code>
     * @return string
     */
    public function getCarShow()
    {
        return $this->CarShow;
    }

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

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

        return $this;
    }

}

