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