RequestItemDismantle.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. * dismantle 分解
  10. *
  11. * Generated from protobuf message <code>uraus.kku.Request.RequestItemDismantle</code>
  12. */
  13. class RequestItemDismantle extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * 配方ID
  17. *
  18. * Generated from protobuf field <code>int64 id = 1;</code>
  19. */
  20. protected $id = 0;
  21. /**
  22. * 分解 物品数量
  23. *
  24. * Generated from protobuf field <code>int64 number = 2;</code>
  25. */
  26. protected $number = 0;
  27. /**
  28. * Constructor.
  29. *
  30. * @param array $data {
  31. * Optional. Data for populating the Message object.
  32. *
  33. * @type int|string $id
  34. * 配方ID
  35. * @type int|string $number
  36. * 分解 物品数量
  37. * }
  38. */
  39. public function __construct($data = NULL) {
  40. \GPBMetadata\Proto\Game::initOnce();
  41. parent::__construct($data);
  42. }
  43. /**
  44. * 配方ID
  45. *
  46. * Generated from protobuf field <code>int64 id = 1;</code>
  47. * @return int|string
  48. */
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. /**
  54. * 配方ID
  55. *
  56. * Generated from protobuf field <code>int64 id = 1;</code>
  57. * @param int|string $var
  58. * @return $this
  59. */
  60. public function setId($var)
  61. {
  62. GPBUtil::checkInt64($var);
  63. $this->id = $var;
  64. return $this;
  65. }
  66. /**
  67. * 分解 物品数量
  68. *
  69. * Generated from protobuf field <code>int64 number = 2;</code>
  70. * @return int|string
  71. */
  72. public function getNumber()
  73. {
  74. return $this->number;
  75. }
  76. /**
  77. * 分解 物品数量
  78. *
  79. * Generated from protobuf field <code>int64 number = 2;</code>
  80. * @param int|string $var
  81. * @return $this
  82. */
  83. public function setNumber($var)
  84. {
  85. GPBUtil::checkInt64($var);
  86. $this->number = $var;
  87. return $this;
  88. }
  89. }
  90. // Adding a class alias for backwards compatibility with the previous class name.
  91. class_alias(RequestItemDismantle::class, \Uraus\Kku\Request_RequestItemDismantle::class);