RequestPromotionList.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: proto/game.proto
  4. namespace Uraus\Kku\Request;
  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.Request.RequestPromotionList</code>
  12. */
  13. class RequestPromotionList extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * 分页
  17. *
  18. * Generated from protobuf field <code>.uraus.kku.Common.RequestPage page = 1;</code>
  19. */
  20. protected $page = null;
  21. /**
  22. * 等级
  23. *
  24. * Generated from protobuf field <code>int64 level = 2;</code>
  25. */
  26. protected $level = 0;
  27. /**
  28. * Constructor.
  29. *
  30. * @param array $data {
  31. * Optional. Data for populating the Message object.
  32. *
  33. * @type \Uraus\Kku\Common\RequestPage $page
  34. * 分页
  35. * @type int|string $level
  36. * 等级
  37. * }
  38. */
  39. public function __construct($data = NULL) {
  40. \GPBMetadata\Proto\Game::initOnce();
  41. parent::__construct($data);
  42. }
  43. /**
  44. * 分页
  45. *
  46. * Generated from protobuf field <code>.uraus.kku.Common.RequestPage page = 1;</code>
  47. * @return \Uraus\Kku\Common\RequestPage
  48. */
  49. public function getPage()
  50. {
  51. return isset($this->page) ? $this->page : null;
  52. }
  53. public function hasPage()
  54. {
  55. return isset($this->page);
  56. }
  57. public function clearPage()
  58. {
  59. unset($this->page);
  60. }
  61. /**
  62. * 分页
  63. *
  64. * Generated from protobuf field <code>.uraus.kku.Common.RequestPage page = 1;</code>
  65. * @param \Uraus\Kku\Common\RequestPage $var
  66. * @return $this
  67. */
  68. public function setPage($var)
  69. {
  70. GPBUtil::checkMessage($var, \Uraus\Kku\Common\RequestPage::class);
  71. $this->page = $var;
  72. return $this;
  73. }
  74. /**
  75. * 等级
  76. *
  77. * Generated from protobuf field <code>int64 level = 2;</code>
  78. * @return int|string
  79. */
  80. public function getLevel()
  81. {
  82. return $this->level;
  83. }
  84. /**
  85. * 等级
  86. *
  87. * Generated from protobuf field <code>int64 level = 2;</code>
  88. * @param int|string $var
  89. * @return $this
  90. */
  91. public function setLevel($var)
  92. {
  93. GPBUtil::checkInt64($var);
  94. $this->level = $var;
  95. return $this;
  96. }
  97. }
  98. // Adding a class alias for backwards compatibility with the previous class name.
  99. class_alias(RequestPromotionList::class, \Uraus\Kku\Request_RequestPromotionList::class);