RequestPetGet.php 2.3 KB

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