CreateSessionResult.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. * Generated from protobuf message <code>Ydb.Table.CreateSessionResult</code>
  10. */
  11. class CreateSessionResult extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Session identifier
  15. *
  16. * Generated from protobuf field <code>string session_id = 1;</code>
  17. */
  18. protected $session_id = '';
  19. /**
  20. * Constructor.
  21. *
  22. * @param array $data {
  23. * Optional. Data for populating the Message object.
  24. *
  25. * @type string $session_id
  26. * Session identifier
  27. * }
  28. */
  29. public function __construct($data = NULL) {
  30. \GPBMetadata\Protos\YdbTable::initOnce();
  31. parent::__construct($data);
  32. }
  33. /**
  34. * Session identifier
  35. *
  36. * Generated from protobuf field <code>string session_id = 1;</code>
  37. * @return string
  38. */
  39. public function getSessionId()
  40. {
  41. return $this->session_id;
  42. }
  43. /**
  44. * Session identifier
  45. *
  46. * Generated from protobuf field <code>string session_id = 1;</code>
  47. * @param string $var
  48. * @return $this
  49. */
  50. public function setSessionId($var)
  51. {
  52. GPBUtil::checkString($var, True);
  53. $this->session_id = $var;
  54. return $this;
  55. }
  56. }