common_pack.UserInfo
*/
class UserInfo extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string UserId = 1;
*/
protected $UserId = '';
/**
* Generated from protobuf field string m_head = 2;
*/
protected $m_head = '';
/**
* Generated from protobuf field int32 m_coin = 3;
*/
protected $m_coin = 0;
/**
* Generated from protobuf field string name = 4;
*/
protected $name = '';
/**
*如果用户在某一个房间玩,他的id就一直存在,
*
* Generated from protobuf field int32 room_id = 5;
*/
protected $room_id = 0;
/**
*在线=1 离线等0
*
* Generated from protobuf field int32 online_status = 6;
*/
protected $online_status = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $UserId
* @type string $m_head
* @type int $m_coin
* @type string $name
* @type int $room_id
* 如果用户在某一个房间玩,他的id就一直存在,
* @type int $online_status
* 在线=1 离线等0
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Common::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string UserId = 1;
* @return string
*/
public function getUserId()
{
return $this->UserId;
}
/**
* Generated from protobuf field string UserId = 1;
* @param string $var
* @return $this
*/
public function setUserId($var)
{
GPBUtil::checkString($var, True);
$this->UserId = $var;
return $this;
}
/**
* Generated from protobuf field string m_head = 2;
* @return string
*/
public function getMHead()
{
return $this->m_head;
}
/**
* Generated from protobuf field string m_head = 2;
* @param string $var
* @return $this
*/
public function setMHead($var)
{
GPBUtil::checkString($var, True);
$this->m_head = $var;
return $this;
}
/**
* Generated from protobuf field int32 m_coin = 3;
* @return int
*/
public function getMCoin()
{
return $this->m_coin;
}
/**
* Generated from protobuf field int32 m_coin = 3;
* @param int $var
* @return $this
*/
public function setMCoin($var)
{
GPBUtil::checkInt32($var);
$this->m_coin = $var;
return $this;
}
/**
* Generated from protobuf field string name = 4;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 4;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
*如果用户在某一个房间玩,他的id就一直存在,
*
* Generated from protobuf field int32 room_id = 5;
* @return int
*/
public function getRoomId()
{
return $this->room_id;
}
/**
*如果用户在某一个房间玩,他的id就一直存在,
*
* Generated from protobuf field int32 room_id = 5;
* @param int $var
* @return $this
*/
public function setRoomId($var)
{
GPBUtil::checkInt32($var);
$this->room_id = $var;
return $this;
}
/**
*在线=1 离线等0
*
* Generated from protobuf field int32 online_status = 6;
* @return int
*/
public function getOnlineStatus()
{
return $this->online_status;
}
/**
*在线=1 离线等0
*
* Generated from protobuf field int32 online_status = 6;
* @param int $var
* @return $this
*/
public function setOnlineStatus($var)
{
GPBUtil::checkInt32($var);
$this->online_status = $var;
return $this;
}
}