CreateSessionRequest.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. * Create new session
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.CreateSessionRequest</code>
  12. */
  13. class CreateSessionRequest extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  17. */
  18. protected $operation_params = null;
  19. /**
  20. * Constructor.
  21. *
  22. * @param array $data {
  23. * Optional. Data for populating the Message object.
  24. *
  25. * @type \Ydb\Operations\OperationParams $operation_params
  26. * }
  27. */
  28. public function __construct($data = NULL) {
  29. \GPBMetadata\Protos\YdbTable::initOnce();
  30. parent::__construct($data);
  31. }
  32. /**
  33. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  34. * @return \Ydb\Operations\OperationParams|null
  35. */
  36. public function getOperationParams()
  37. {
  38. return $this->operation_params;
  39. }
  40. public function hasOperationParams()
  41. {
  42. return isset($this->operation_params);
  43. }
  44. public function clearOperationParams()
  45. {
  46. unset($this->operation_params);
  47. }
  48. /**
  49. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  50. * @param \Ydb\Operations\OperationParams $var
  51. * @return $this
  52. */
  53. public function setOperationParams($var)
  54. {
  55. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  56. $this->operation_params = $var;
  57. return $this;
  58. }
  59. }