123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: common.proto
- namespace Common_pack;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- *用户信息
- *
- * Generated from protobuf message <code>common_pack.UserInfo</code>
- */
- class UserInfo extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>string UserId = 1;</code>
- */
- protected $UserId = '';
- /**
- * Generated from protobuf field <code>string m_head = 2;</code>
- */
- protected $m_head = '';
- /**
- * Generated from protobuf field <code>int32 m_coin = 3;</code>
- */
- protected $m_coin = 0;
- /**
- * Generated from protobuf field <code>string name = 4;</code>
- */
- protected $name = '';
- /**
- *如果用户在某一个房间玩,他的id就一直存在,
- *
- * Generated from protobuf field <code>int32 room_id = 5;</code>
- */
- protected $room_id = 0;
- /**
- *在线=1 离线等0
- *
- * Generated from protobuf field <code>int32 online_status = 6;</code>
- */
- 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 <code>string UserId = 1;</code>
- * @return string
- */
- public function getUserId()
- {
- return $this->UserId;
- }
- /**
- * Generated from protobuf field <code>string UserId = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setUserId($var)
- {
- GPBUtil::checkString($var, True);
- $this->UserId = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string m_head = 2;</code>
- * @return string
- */
- public function getMHead()
- {
- return $this->m_head;
- }
- /**
- * Generated from protobuf field <code>string m_head = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setMHead($var)
- {
- GPBUtil::checkString($var, True);
- $this->m_head = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 m_coin = 3;</code>
- * @return int
- */
- public function getMCoin()
- {
- return $this->m_coin;
- }
- /**
- * Generated from protobuf field <code>int32 m_coin = 3;</code>
- * @param int $var
- * @return $this
- */
- public function setMCoin($var)
- {
- GPBUtil::checkInt32($var);
- $this->m_coin = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string name = 4;</code>
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Generated from protobuf field <code>string name = 4;</code>
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
- return $this;
- }
- /**
- *如果用户在某一个房间玩,他的id就一直存在,
- *
- * Generated from protobuf field <code>int32 room_id = 5;</code>
- * @return int
- */
- public function getRoomId()
- {
- return $this->room_id;
- }
- /**
- *如果用户在某一个房间玩,他的id就一直存在,
- *
- * Generated from protobuf field <code>int32 room_id = 5;</code>
- * @param int $var
- * @return $this
- */
- public function setRoomId($var)
- {
- GPBUtil::checkInt32($var);
- $this->room_id = $var;
- return $this;
- }
- /**
- *在线=1 离线等0
- *
- * Generated from protobuf field <code>int32 online_status = 6;</code>
- * @return int
- */
- public function getOnlineStatus()
- {
- return $this->online_status;
- }
- /**
- *在线=1 离线等0
- *
- * Generated from protobuf field <code>int32 online_status = 6;</code>
- * @param int $var
- * @return $this
- */
- public function setOnlineStatus($var)
- {
- GPBUtil::checkInt32($var);
- $this->online_status = $var;
- return $this;
- }
- }
|