SessionStopped.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_coordination.proto
  4. namespace Ydb\Coordination\SessionResponse;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. **
  10. * Used to report a successful graceful termination of the session
  11. *
  12. * Generated from protobuf message <code>Ydb.Coordination.SessionResponse.SessionStopped</code>
  13. */
  14. class SessionStopped extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Generated from protobuf field <code>uint64 session_id = 1;</code>
  18. */
  19. protected $session_id = 0;
  20. /**
  21. * Constructor.
  22. *
  23. * @param array $data {
  24. * Optional. Data for populating the Message object.
  25. *
  26. * @type int|string $session_id
  27. * }
  28. */
  29. public function __construct($data = NULL) {
  30. \GPBMetadata\Protos\YdbCoordination::initOnce();
  31. parent::__construct($data);
  32. }
  33. /**
  34. * Generated from protobuf field <code>uint64 session_id = 1;</code>
  35. * @return int|string
  36. */
  37. public function getSessionId()
  38. {
  39. return $this->session_id;
  40. }
  41. /**
  42. * Generated from protobuf field <code>uint64 session_id = 1;</code>
  43. * @param int|string $var
  44. * @return $this
  45. */
  46. public function setSessionId($var)
  47. {
  48. GPBUtil::checkUint64($var);
  49. $this->session_id = $var;
  50. return $this;
  51. }
  52. }
  53. // Adding a class alias for backwards compatibility with the previous class name.
  54. class_alias(SessionStopped::class, \Ydb\Coordination\SessionResponse_SessionStopped::class);