KeepAliveRequest.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_table.proto
  4. namespace Ydb\Table;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Keep session alive
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.KeepAliveRequest</code>
  12. */
  13. class KeepAliveRequest extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Session identifier
  17. *
  18. * Generated from protobuf field <code>string session_id = 1;</code>
  19. */
  20. protected $session_id = '';
  21. /**
  22. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 2;</code>
  23. */
  24. protected $operation_params = null;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type string $session_id
  32. * Session identifier
  33. * @type \Ydb\Operations\OperationParams $operation_params
  34. * }
  35. */
  36. public function __construct($data = NULL) {
  37. \GPBMetadata\Protos\YdbTable::initOnce();
  38. parent::__construct($data);
  39. }
  40. /**
  41. * Session identifier
  42. *
  43. * Generated from protobuf field <code>string session_id = 1;</code>
  44. * @return string
  45. */
  46. public function getSessionId()
  47. {
  48. return $this->session_id;
  49. }
  50. /**
  51. * Session identifier
  52. *
  53. * Generated from protobuf field <code>string session_id = 1;</code>
  54. * @param string $var
  55. * @return $this
  56. */
  57. public function setSessionId($var)
  58. {
  59. GPBUtil::checkString($var, True);
  60. $this->session_id = $var;
  61. return $this;
  62. }
  63. /**
  64. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 2;</code>
  65. * @return \Ydb\Operations\OperationParams|null
  66. */
  67. public function getOperationParams()
  68. {
  69. return $this->operation_params;
  70. }
  71. public function hasOperationParams()
  72. {
  73. return isset($this->operation_params);
  74. }
  75. public function clearOperationParams()
  76. {
  77. unset($this->operation_params);
  78. }
  79. /**
  80. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 2;</code>
  81. * @param \Ydb\Operations\OperationParams $var
  82. * @return $this
  83. */
  84. public function setOperationParams($var)
  85. {
  86. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  87. $this->operation_params = $var;
  88. return $this;
  89. }
  90. }