RequestTaskQueryData.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.RequestTaskQueryData</code>
  12. */
  13. class RequestTaskQueryData extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * 任务ID,必填
  17. *
  18. * Generated from protobuf field <code>int64 task_id = 1;</code>
  19. */
  20. protected $task_id = 0;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type int|string $task_id
  28. * 任务ID,必填
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Proto\Game::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * 任务ID,必填
  37. *
  38. * Generated from protobuf field <code>int64 task_id = 1;</code>
  39. * @return int|string
  40. */
  41. public function getTaskId()
  42. {
  43. return $this->task_id;
  44. }
  45. /**
  46. * 任务ID,必填
  47. *
  48. * Generated from protobuf field <code>int64 task_id = 1;</code>
  49. * @param int|string $var
  50. * @return $this
  51. */
  52. public function setTaskId($var)
  53. {
  54. GPBUtil::checkInt64($var);
  55. $this->task_id = $var;
  56. return $this;
  57. }
  58. }
  59. // Adding a class alias for backwards compatibility with the previous class name.
  60. class_alias(RequestTaskQueryData::class, \Uraus\Kku\Request_RequestTaskQueryData::class);