RequestItemOpenbox.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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.RequestItemOpenbox</code>
  12. */
  13. class RequestItemOpenbox extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * 宝箱 item_id
  17. *
  18. * Generated from protobuf field <code>int64 item_id = 1;</code>
  19. */
  20. protected $item_id = 0;
  21. /**
  22. * 宝箱,实例ID
  23. *
  24. * Generated from protobuf field <code>int64 item_instance_id = 2;</code>
  25. */
  26. protected $item_instance_id = 0;
  27. /**
  28. * 自选参数
  29. *
  30. * Generated from protobuf field <code>repeated int64 select_ids = 3;</code>
  31. */
  32. private $select_ids;
  33. /**
  34. * Constructor.
  35. *
  36. * @param array $data {
  37. * Optional. Data for populating the Message object.
  38. *
  39. * @type int|string $item_id
  40. * 宝箱 item_id
  41. * @type int|string $item_instance_id
  42. * 宝箱,实例ID
  43. * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $select_ids
  44. * 自选参数
  45. * }
  46. */
  47. public function __construct($data = NULL) {
  48. \GPBMetadata\Proto\Game::initOnce();
  49. parent::__construct($data);
  50. }
  51. /**
  52. * 宝箱 item_id
  53. *
  54. * Generated from protobuf field <code>int64 item_id = 1;</code>
  55. * @return int|string
  56. */
  57. public function getItemId()
  58. {
  59. return $this->item_id;
  60. }
  61. /**
  62. * 宝箱 item_id
  63. *
  64. * Generated from protobuf field <code>int64 item_id = 1;</code>
  65. * @param int|string $var
  66. * @return $this
  67. */
  68. public function setItemId($var)
  69. {
  70. GPBUtil::checkInt64($var);
  71. $this->item_id = $var;
  72. return $this;
  73. }
  74. /**
  75. * 宝箱,实例ID
  76. *
  77. * Generated from protobuf field <code>int64 item_instance_id = 2;</code>
  78. * @return int|string
  79. */
  80. public function getItemInstanceId()
  81. {
  82. return $this->item_instance_id;
  83. }
  84. /**
  85. * 宝箱,实例ID
  86. *
  87. * Generated from protobuf field <code>int64 item_instance_id = 2;</code>
  88. * @param int|string $var
  89. * @return $this
  90. */
  91. public function setItemInstanceId($var)
  92. {
  93. GPBUtil::checkInt64($var);
  94. $this->item_instance_id = $var;
  95. return $this;
  96. }
  97. /**
  98. * 自选参数
  99. *
  100. * Generated from protobuf field <code>repeated int64 select_ids = 3;</code>
  101. * @return \Google\Protobuf\Internal\RepeatedField
  102. */
  103. public function getSelectIds()
  104. {
  105. return $this->select_ids;
  106. }
  107. /**
  108. * 自选参数
  109. *
  110. * Generated from protobuf field <code>repeated int64 select_ids = 3;</code>
  111. * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var
  112. * @return $this
  113. */
  114. public function setSelectIds($var)
  115. {
  116. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64);
  117. $this->select_ids = $arr;
  118. return $this;
  119. }
  120. }
  121. // Adding a class alias for backwards compatibility with the previous class name.
  122. class_alias(RequestItemOpenbox::class, \Uraus\Kku\Request_RequestItemOpenbox::class);