UserInfo.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: proto/game.proto
  4. namespace Uraus\Kku\Response;
  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>uraus.kku.Response.UserInfo</code>
  12. */
  13. class UserInfo extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. *玩家id
  17. *
  18. * Generated from protobuf field <code>int64 user_id = 1;</code>
  19. */
  20. protected $user_id = 0;
  21. /**
  22. *农场皮肤
  23. *
  24. * Generated from protobuf field <code>int64 skin_id = 2;</code>
  25. */
  26. protected $skin_id = 0;
  27. /**
  28. *玩家头像
  29. *
  30. * Generated from protobuf field <code>int64 avatar = 3;</code>
  31. */
  32. protected $avatar = 0;
  33. /**
  34. *玩家昵称
  35. *
  36. * Generated from protobuf field <code>string nick_name = 4;</code>
  37. */
  38. protected $nick_name = '';
  39. /**
  40. * 手机
  41. *
  42. * Generated from protobuf field <code>string mobile = 5;</code>
  43. */
  44. protected $mobile = '';
  45. /**
  46. * Constructor.
  47. *
  48. * @param array $data {
  49. * Optional. Data for populating the Message object.
  50. *
  51. * @type int|string $user_id
  52. * 玩家id
  53. * @type int|string $skin_id
  54. * 农场皮肤
  55. * @type int|string $avatar
  56. * 玩家头像
  57. * @type string $nick_name
  58. * 玩家昵称
  59. * @type string $mobile
  60. * 手机
  61. * }
  62. */
  63. public function __construct($data = NULL) {
  64. \GPBMetadata\Proto\Game::initOnce();
  65. parent::__construct($data);
  66. }
  67. /**
  68. *玩家id
  69. *
  70. * Generated from protobuf field <code>int64 user_id = 1;</code>
  71. * @return int|string
  72. */
  73. public function getUserId()
  74. {
  75. return $this->user_id;
  76. }
  77. /**
  78. *玩家id
  79. *
  80. * Generated from protobuf field <code>int64 user_id = 1;</code>
  81. * @param int|string $var
  82. * @return $this
  83. */
  84. public function setUserId($var)
  85. {
  86. GPBUtil::checkInt64($var);
  87. $this->user_id = $var;
  88. return $this;
  89. }
  90. /**
  91. *农场皮肤
  92. *
  93. * Generated from protobuf field <code>int64 skin_id = 2;</code>
  94. * @return int|string
  95. */
  96. public function getSkinId()
  97. {
  98. return $this->skin_id;
  99. }
  100. /**
  101. *农场皮肤
  102. *
  103. * Generated from protobuf field <code>int64 skin_id = 2;</code>
  104. * @param int|string $var
  105. * @return $this
  106. */
  107. public function setSkinId($var)
  108. {
  109. GPBUtil::checkInt64($var);
  110. $this->skin_id = $var;
  111. return $this;
  112. }
  113. /**
  114. *玩家头像
  115. *
  116. * Generated from protobuf field <code>int64 avatar = 3;</code>
  117. * @return int|string
  118. */
  119. public function getAvatar()
  120. {
  121. return $this->avatar;
  122. }
  123. /**
  124. *玩家头像
  125. *
  126. * Generated from protobuf field <code>int64 avatar = 3;</code>
  127. * @param int|string $var
  128. * @return $this
  129. */
  130. public function setAvatar($var)
  131. {
  132. GPBUtil::checkInt64($var);
  133. $this->avatar = $var;
  134. return $this;
  135. }
  136. /**
  137. *玩家昵称
  138. *
  139. * Generated from protobuf field <code>string nick_name = 4;</code>
  140. * @return string
  141. */
  142. public function getNickName()
  143. {
  144. return $this->nick_name;
  145. }
  146. /**
  147. *玩家昵称
  148. *
  149. * Generated from protobuf field <code>string nick_name = 4;</code>
  150. * @param string $var
  151. * @return $this
  152. */
  153. public function setNickName($var)
  154. {
  155. GPBUtil::checkString($var, True);
  156. $this->nick_name = $var;
  157. return $this;
  158. }
  159. /**
  160. * 手机
  161. *
  162. * Generated from protobuf field <code>string mobile = 5;</code>
  163. * @return string
  164. */
  165. public function getMobile()
  166. {
  167. return $this->mobile;
  168. }
  169. /**
  170. * 手机
  171. *
  172. * Generated from protobuf field <code>string mobile = 5;</code>
  173. * @param string $var
  174. * @return $this
  175. */
  176. public function setMobile($var)
  177. {
  178. GPBUtil::checkString($var, True);
  179. $this->mobile = $var;
  180. return $this;
  181. }
  182. }
  183. // Adding a class alias for backwards compatibility with the previous class name.
  184. class_alias(UserInfo::class, \Uraus\Kku\Response_UserInfo::class);