PingPong.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_coordination.proto
  4. namespace Ydb\Coordination\SessionRequest;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. **
  10. * Used for checking liveness of the connection
  11. *
  12. * Generated from protobuf message <code>Ydb.Coordination.SessionRequest.PingPong</code>
  13. */
  14. class PingPong extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Opaque number specified in the ping message is echoed in the pong message
  18. *
  19. * Generated from protobuf field <code>uint64 opaque = 1;</code>
  20. */
  21. protected $opaque = 0;
  22. /**
  23. * Constructor.
  24. *
  25. * @param array $data {
  26. * Optional. Data for populating the Message object.
  27. *
  28. * @type int|string $opaque
  29. * Opaque number specified in the ping message is echoed in the pong message
  30. * }
  31. */
  32. public function __construct($data = NULL) {
  33. \GPBMetadata\Protos\YdbCoordination::initOnce();
  34. parent::__construct($data);
  35. }
  36. /**
  37. * Opaque number specified in the ping message is echoed in the pong message
  38. *
  39. * Generated from protobuf field <code>uint64 opaque = 1;</code>
  40. * @return int|string
  41. */
  42. public function getOpaque()
  43. {
  44. return $this->opaque;
  45. }
  46. /**
  47. * Opaque number specified in the ping message is echoed in the pong message
  48. *
  49. * Generated from protobuf field <code>uint64 opaque = 1;</code>
  50. * @param int|string $var
  51. * @return $this
  52. */
  53. public function setOpaque($var)
  54. {
  55. GPBUtil::checkUint64($var);
  56. $this->opaque = $var;
  57. return $this;
  58. }
  59. }
  60. // Adding a class alias for backwards compatibility with the previous class name.
  61. class_alias(PingPong::class, \Ydb\Coordination\SessionRequest_PingPong::class);