ResponsePromotionInfo.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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. *
  12. * Generated from protobuf message <code>uraus.kku.Response.ResponsePromotionInfo</code>
  13. */
  14. class ResponsePromotionInfo extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * 总人数
  18. *
  19. * Generated from protobuf field <code>int64 total_count = 1;</code>
  20. */
  21. protected $total_count = 0;
  22. /**
  23. * 直推人数
  24. *
  25. * Generated from protobuf field <code>int64 direct_count = 2;</code>
  26. */
  27. protected $direct_count = 0;
  28. /**
  29. * 间推人数
  30. *
  31. * Generated from protobuf field <code>int64 indirect_count = 3;</code>
  32. */
  33. protected $indirect_count = 0;
  34. /**
  35. * 近日 团队新增
  36. *
  37. * Generated from protobuf field <code>int64 day_recent_count = 4;</code>
  38. */
  39. protected $day_recent_count = 0;
  40. /**
  41. * 今日 直推新增
  42. *
  43. * Generated from protobuf field <code>int64 day_direct_count = 5;</code>
  44. */
  45. protected $day_direct_count = 0;
  46. /**
  47. * 团队活跃人数
  48. *
  49. * Generated from protobuf field <code>int64 active_count = 6;</code>
  50. */
  51. protected $active_count = 0;
  52. /**
  53. * 直推活跃人数
  54. *
  55. * Generated from protobuf field <code>int64 direct_active_count = 7;</code>
  56. */
  57. protected $direct_active_count = 0;
  58. /**
  59. * 今天的收益 (推广收益和种植收益)
  60. *
  61. * Generated from protobuf field <code>.uraus.kku.Common.Reward today_reward = 8;</code>
  62. */
  63. protected $today_reward = null;
  64. /**
  65. * 总收益(推广收益和种植收益)
  66. *
  67. * Generated from protobuf field <code>.uraus.kku.Common.Reward total_reward = 9;</code>
  68. */
  69. protected $total_reward = null;
  70. /**
  71. * Constructor.
  72. *
  73. * @param array $data {
  74. * Optional. Data for populating the Message object.
  75. *
  76. * @type int|string $total_count
  77. * 总人数
  78. * @type int|string $direct_count
  79. * 直推人数
  80. * @type int|string $indirect_count
  81. * 间推人数
  82. * @type int|string $day_recent_count
  83. * 近日 团队新增
  84. * @type int|string $day_direct_count
  85. * 今日 直推新增
  86. * @type int|string $active_count
  87. * 团队活跃人数
  88. * @type int|string $direct_active_count
  89. * 直推活跃人数
  90. * @type \Uraus\Kku\Common\Reward $today_reward
  91. * 今天的收益 (推广收益和种植收益)
  92. * @type \Uraus\Kku\Common\Reward $total_reward
  93. * 总收益(推广收益和种植收益)
  94. * }
  95. */
  96. public function __construct($data = NULL) {
  97. \GPBMetadata\Proto\Game::initOnce();
  98. parent::__construct($data);
  99. }
  100. /**
  101. * 总人数
  102. *
  103. * Generated from protobuf field <code>int64 total_count = 1;</code>
  104. * @return int|string
  105. */
  106. public function getTotalCount()
  107. {
  108. return $this->total_count;
  109. }
  110. /**
  111. * 总人数
  112. *
  113. * Generated from protobuf field <code>int64 total_count = 1;</code>
  114. * @param int|string $var
  115. * @return $this
  116. */
  117. public function setTotalCount($var)
  118. {
  119. GPBUtil::checkInt64($var);
  120. $this->total_count = $var;
  121. return $this;
  122. }
  123. /**
  124. * 直推人数
  125. *
  126. * Generated from protobuf field <code>int64 direct_count = 2;</code>
  127. * @return int|string
  128. */
  129. public function getDirectCount()
  130. {
  131. return $this->direct_count;
  132. }
  133. /**
  134. * 直推人数
  135. *
  136. * Generated from protobuf field <code>int64 direct_count = 2;</code>
  137. * @param int|string $var
  138. * @return $this
  139. */
  140. public function setDirectCount($var)
  141. {
  142. GPBUtil::checkInt64($var);
  143. $this->direct_count = $var;
  144. return $this;
  145. }
  146. /**
  147. * 间推人数
  148. *
  149. * Generated from protobuf field <code>int64 indirect_count = 3;</code>
  150. * @return int|string
  151. */
  152. public function getIndirectCount()
  153. {
  154. return $this->indirect_count;
  155. }
  156. /**
  157. * 间推人数
  158. *
  159. * Generated from protobuf field <code>int64 indirect_count = 3;</code>
  160. * @param int|string $var
  161. * @return $this
  162. */
  163. public function setIndirectCount($var)
  164. {
  165. GPBUtil::checkInt64($var);
  166. $this->indirect_count = $var;
  167. return $this;
  168. }
  169. /**
  170. * 近日 团队新增
  171. *
  172. * Generated from protobuf field <code>int64 day_recent_count = 4;</code>
  173. * @return int|string
  174. */
  175. public function getDayRecentCount()
  176. {
  177. return $this->day_recent_count;
  178. }
  179. /**
  180. * 近日 团队新增
  181. *
  182. * Generated from protobuf field <code>int64 day_recent_count = 4;</code>
  183. * @param int|string $var
  184. * @return $this
  185. */
  186. public function setDayRecentCount($var)
  187. {
  188. GPBUtil::checkInt64($var);
  189. $this->day_recent_count = $var;
  190. return $this;
  191. }
  192. /**
  193. * 今日 直推新增
  194. *
  195. * Generated from protobuf field <code>int64 day_direct_count = 5;</code>
  196. * @return int|string
  197. */
  198. public function getDayDirectCount()
  199. {
  200. return $this->day_direct_count;
  201. }
  202. /**
  203. * 今日 直推新增
  204. *
  205. * Generated from protobuf field <code>int64 day_direct_count = 5;</code>
  206. * @param int|string $var
  207. * @return $this
  208. */
  209. public function setDayDirectCount($var)
  210. {
  211. GPBUtil::checkInt64($var);
  212. $this->day_direct_count = $var;
  213. return $this;
  214. }
  215. /**
  216. * 团队活跃人数
  217. *
  218. * Generated from protobuf field <code>int64 active_count = 6;</code>
  219. * @return int|string
  220. */
  221. public function getActiveCount()
  222. {
  223. return $this->active_count;
  224. }
  225. /**
  226. * 团队活跃人数
  227. *
  228. * Generated from protobuf field <code>int64 active_count = 6;</code>
  229. * @param int|string $var
  230. * @return $this
  231. */
  232. public function setActiveCount($var)
  233. {
  234. GPBUtil::checkInt64($var);
  235. $this->active_count = $var;
  236. return $this;
  237. }
  238. /**
  239. * 直推活跃人数
  240. *
  241. * Generated from protobuf field <code>int64 direct_active_count = 7;</code>
  242. * @return int|string
  243. */
  244. public function getDirectActiveCount()
  245. {
  246. return $this->direct_active_count;
  247. }
  248. /**
  249. * 直推活跃人数
  250. *
  251. * Generated from protobuf field <code>int64 direct_active_count = 7;</code>
  252. * @param int|string $var
  253. * @return $this
  254. */
  255. public function setDirectActiveCount($var)
  256. {
  257. GPBUtil::checkInt64($var);
  258. $this->direct_active_count = $var;
  259. return $this;
  260. }
  261. /**
  262. * 今天的收益 (推广收益和种植收益)
  263. *
  264. * Generated from protobuf field <code>.uraus.kku.Common.Reward today_reward = 8;</code>
  265. * @return \Uraus\Kku\Common\Reward
  266. */
  267. public function getTodayReward()
  268. {
  269. return isset($this->today_reward) ? $this->today_reward : null;
  270. }
  271. public function hasTodayReward()
  272. {
  273. return isset($this->today_reward);
  274. }
  275. public function clearTodayReward()
  276. {
  277. unset($this->today_reward);
  278. }
  279. /**
  280. * 今天的收益 (推广收益和种植收益)
  281. *
  282. * Generated from protobuf field <code>.uraus.kku.Common.Reward today_reward = 8;</code>
  283. * @param \Uraus\Kku\Common\Reward $var
  284. * @return $this
  285. */
  286. public function setTodayReward($var)
  287. {
  288. GPBUtil::checkMessage($var, \Uraus\Kku\Common\Reward::class);
  289. $this->today_reward = $var;
  290. return $this;
  291. }
  292. /**
  293. * 总收益(推广收益和种植收益)
  294. *
  295. * Generated from protobuf field <code>.uraus.kku.Common.Reward total_reward = 9;</code>
  296. * @return \Uraus\Kku\Common\Reward
  297. */
  298. public function getTotalReward()
  299. {
  300. return isset($this->total_reward) ? $this->total_reward : null;
  301. }
  302. public function hasTotalReward()
  303. {
  304. return isset($this->total_reward);
  305. }
  306. public function clearTotalReward()
  307. {
  308. unset($this->total_reward);
  309. }
  310. /**
  311. * 总收益(推广收益和种植收益)
  312. *
  313. * Generated from protobuf field <code>.uraus.kku.Common.Reward total_reward = 9;</code>
  314. * @param \Uraus\Kku\Common\Reward $var
  315. * @return $this
  316. */
  317. public function setTotalReward($var)
  318. {
  319. GPBUtil::checkMessage($var, \Uraus\Kku\Common\Reward::class);
  320. $this->total_reward = $var;
  321. return $this;
  322. }
  323. }
  324. // Adding a class alias for backwards compatibility with the previous class name.
  325. class_alias(ResponsePromotionInfo::class, \Uraus\Kku\Response_ResponsePromotionInfo::class);