PromotionListItem.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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.PromotionListItem</code>
  12. */
  13. class PromotionListItem 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>string nickname = 2;</code>
  25. */
  26. protected $nickname = '';
  27. /**
  28. * 头像
  29. *
  30. * Generated from protobuf field <code>string avatar = 3;</code>
  31. */
  32. protected $avatar = '';
  33. /**
  34. * 财富
  35. *
  36. * Generated from protobuf field <code>int64 fund2 = 4;</code>
  37. */
  38. protected $fund2 = 0;
  39. /**
  40. * 贡献
  41. *
  42. * Generated from protobuf field <code>int64 contribution = 5;</code>
  43. */
  44. protected $contribution = 0;
  45. /**
  46. * 房屋等级
  47. *
  48. * Generated from protobuf field <code>int64 house_level = 6;</code>
  49. */
  50. protected $house_level = 0;
  51. /**
  52. * Constructor.
  53. *
  54. * @param array $data {
  55. * Optional. Data for populating the Message object.
  56. *
  57. * @type int|string $user_id
  58. * 用户ID
  59. * @type string $nickname
  60. * 昵称
  61. * @type string $avatar
  62. * 头像
  63. * @type int|string $fund2
  64. * 财富
  65. * @type int|string $contribution
  66. * 贡献
  67. * @type int|string $house_level
  68. * 房屋等级
  69. * }
  70. */
  71. public function __construct($data = NULL) {
  72. \GPBMetadata\Proto\Game::initOnce();
  73. parent::__construct($data);
  74. }
  75. /**
  76. * 用户ID
  77. *
  78. * Generated from protobuf field <code>int64 user_id = 1;</code>
  79. * @return int|string
  80. */
  81. public function getUserId()
  82. {
  83. return $this->user_id;
  84. }
  85. /**
  86. * 用户ID
  87. *
  88. * Generated from protobuf field <code>int64 user_id = 1;</code>
  89. * @param int|string $var
  90. * @return $this
  91. */
  92. public function setUserId($var)
  93. {
  94. GPBUtil::checkInt64($var);
  95. $this->user_id = $var;
  96. return $this;
  97. }
  98. /**
  99. * 昵称
  100. *
  101. * Generated from protobuf field <code>string nickname = 2;</code>
  102. * @return string
  103. */
  104. public function getNickname()
  105. {
  106. return $this->nickname;
  107. }
  108. /**
  109. * 昵称
  110. *
  111. * Generated from protobuf field <code>string nickname = 2;</code>
  112. * @param string $var
  113. * @return $this
  114. */
  115. public function setNickname($var)
  116. {
  117. GPBUtil::checkString($var, True);
  118. $this->nickname = $var;
  119. return $this;
  120. }
  121. /**
  122. * 头像
  123. *
  124. * Generated from protobuf field <code>string avatar = 3;</code>
  125. * @return string
  126. */
  127. public function getAvatar()
  128. {
  129. return $this->avatar;
  130. }
  131. /**
  132. * 头像
  133. *
  134. * Generated from protobuf field <code>string avatar = 3;</code>
  135. * @param string $var
  136. * @return $this
  137. */
  138. public function setAvatar($var)
  139. {
  140. GPBUtil::checkString($var, True);
  141. $this->avatar = $var;
  142. return $this;
  143. }
  144. /**
  145. * 财富
  146. *
  147. * Generated from protobuf field <code>int64 fund2 = 4;</code>
  148. * @return int|string
  149. */
  150. public function getFund2()
  151. {
  152. return $this->fund2;
  153. }
  154. /**
  155. * 财富
  156. *
  157. * Generated from protobuf field <code>int64 fund2 = 4;</code>
  158. * @param int|string $var
  159. * @return $this
  160. */
  161. public function setFund2($var)
  162. {
  163. GPBUtil::checkInt64($var);
  164. $this->fund2 = $var;
  165. return $this;
  166. }
  167. /**
  168. * 贡献
  169. *
  170. * Generated from protobuf field <code>int64 contribution = 5;</code>
  171. * @return int|string
  172. */
  173. public function getContribution()
  174. {
  175. return $this->contribution;
  176. }
  177. /**
  178. * 贡献
  179. *
  180. * Generated from protobuf field <code>int64 contribution = 5;</code>
  181. * @param int|string $var
  182. * @return $this
  183. */
  184. public function setContribution($var)
  185. {
  186. GPBUtil::checkInt64($var);
  187. $this->contribution = $var;
  188. return $this;
  189. }
  190. /**
  191. * 房屋等级
  192. *
  193. * Generated from protobuf field <code>int64 house_level = 6;</code>
  194. * @return int|string
  195. */
  196. public function getHouseLevel()
  197. {
  198. return $this->house_level;
  199. }
  200. /**
  201. * 房屋等级
  202. *
  203. * Generated from protobuf field <code>int64 house_level = 6;</code>
  204. * @param int|string $var
  205. * @return $this
  206. */
  207. public function setHouseLevel($var)
  208. {
  209. GPBUtil::checkInt64($var);
  210. $this->house_level = $var;
  211. return $this;
  212. }
  213. }
  214. // Adding a class alias for backwards compatibility with the previous class name.
  215. class_alias(PromotionListItem::class, \Uraus\Kku\Response_PromotionListItem::class);