UserInfo.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: common.proto
  4. namespace Common_pack;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. *用户信息
  10. *
  11. * Generated from protobuf message <code>common_pack.UserInfo</code>
  12. */
  13. class UserInfo extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>string UserId = 1;</code>
  17. */
  18. protected $UserId = '';
  19. /**
  20. * Generated from protobuf field <code>string m_head = 2;</code>
  21. */
  22. protected $m_head = '';
  23. /**
  24. * Generated from protobuf field <code>int32 m_coin = 3;</code>
  25. */
  26. protected $m_coin = 0;
  27. /**
  28. * Generated from protobuf field <code>string name = 4;</code>
  29. */
  30. protected $name = '';
  31. /**
  32. *如果用户在某一个房间玩,他的id就一直存在,
  33. *
  34. * Generated from protobuf field <code>int32 room_id = 5;</code>
  35. */
  36. protected $room_id = 0;
  37. /**
  38. *在线=1 离线等0
  39. *
  40. * Generated from protobuf field <code>int32 online_status = 6;</code>
  41. */
  42. protected $online_status = 0;
  43. /**
  44. * Constructor.
  45. *
  46. * @param array $data {
  47. * Optional. Data for populating the Message object.
  48. *
  49. * @type string $UserId
  50. * @type string $m_head
  51. * @type int $m_coin
  52. * @type string $name
  53. * @type int $room_id
  54. * 如果用户在某一个房间玩,他的id就一直存在,
  55. * @type int $online_status
  56. * 在线=1 离线等0
  57. * }
  58. */
  59. public function __construct($data = NULL) {
  60. \GPBMetadata\Common::initOnce();
  61. parent::__construct($data);
  62. }
  63. /**
  64. * Generated from protobuf field <code>string UserId = 1;</code>
  65. * @return string
  66. */
  67. public function getUserId()
  68. {
  69. return $this->UserId;
  70. }
  71. /**
  72. * Generated from protobuf field <code>string UserId = 1;</code>
  73. * @param string $var
  74. * @return $this
  75. */
  76. public function setUserId($var)
  77. {
  78. GPBUtil::checkString($var, True);
  79. $this->UserId = $var;
  80. return $this;
  81. }
  82. /**
  83. * Generated from protobuf field <code>string m_head = 2;</code>
  84. * @return string
  85. */
  86. public function getMHead()
  87. {
  88. return $this->m_head;
  89. }
  90. /**
  91. * Generated from protobuf field <code>string m_head = 2;</code>
  92. * @param string $var
  93. * @return $this
  94. */
  95. public function setMHead($var)
  96. {
  97. GPBUtil::checkString($var, True);
  98. $this->m_head = $var;
  99. return $this;
  100. }
  101. /**
  102. * Generated from protobuf field <code>int32 m_coin = 3;</code>
  103. * @return int
  104. */
  105. public function getMCoin()
  106. {
  107. return $this->m_coin;
  108. }
  109. /**
  110. * Generated from protobuf field <code>int32 m_coin = 3;</code>
  111. * @param int $var
  112. * @return $this
  113. */
  114. public function setMCoin($var)
  115. {
  116. GPBUtil::checkInt32($var);
  117. $this->m_coin = $var;
  118. return $this;
  119. }
  120. /**
  121. * Generated from protobuf field <code>string name = 4;</code>
  122. * @return string
  123. */
  124. public function getName()
  125. {
  126. return $this->name;
  127. }
  128. /**
  129. * Generated from protobuf field <code>string name = 4;</code>
  130. * @param string $var
  131. * @return $this
  132. */
  133. public function setName($var)
  134. {
  135. GPBUtil::checkString($var, True);
  136. $this->name = $var;
  137. return $this;
  138. }
  139. /**
  140. *如果用户在某一个房间玩,他的id就一直存在,
  141. *
  142. * Generated from protobuf field <code>int32 room_id = 5;</code>
  143. * @return int
  144. */
  145. public function getRoomId()
  146. {
  147. return $this->room_id;
  148. }
  149. /**
  150. *如果用户在某一个房间玩,他的id就一直存在,
  151. *
  152. * Generated from protobuf field <code>int32 room_id = 5;</code>
  153. * @param int $var
  154. * @return $this
  155. */
  156. public function setRoomId($var)
  157. {
  158. GPBUtil::checkInt32($var);
  159. $this->room_id = $var;
  160. return $this;
  161. }
  162. /**
  163. *在线=1 离线等0
  164. *
  165. * Generated from protobuf field <code>int32 online_status = 6;</code>
  166. * @return int
  167. */
  168. public function getOnlineStatus()
  169. {
  170. return $this->online_status;
  171. }
  172. /**
  173. *在线=1 离线等0
  174. *
  175. * Generated from protobuf field <code>int32 online_status = 6;</code>
  176. * @param int $var
  177. * @return $this
  178. */
  179. public function setOnlineStatus($var)
  180. {
  181. GPBUtil::checkInt32($var);
  182. $this->online_status = $var;
  183. return $this;
  184. }
  185. }