ExecuteSchemeQueryRequest.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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.ExecuteSchemeQueryRequest</code>
  10. */
  11. class ExecuteSchemeQueryRequest 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. * SQL text
  21. *
  22. * Generated from protobuf field <code>string yql_text = 2;</code>
  23. */
  24. protected $yql_text = '';
  25. /**
  26. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 3;</code>
  27. */
  28. protected $operation_params = null;
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type string $session_id
  36. * Session identifier
  37. * @type string $yql_text
  38. * SQL text
  39. * @type \Ydb\Operations\OperationParams $operation_params
  40. * }
  41. */
  42. public function __construct($data = NULL) {
  43. \GPBMetadata\Protos\YdbTable::initOnce();
  44. parent::__construct($data);
  45. }
  46. /**
  47. * Session identifier
  48. *
  49. * Generated from protobuf field <code>string session_id = 1;</code>
  50. * @return string
  51. */
  52. public function getSessionId()
  53. {
  54. return $this->session_id;
  55. }
  56. /**
  57. * Session identifier
  58. *
  59. * Generated from protobuf field <code>string session_id = 1;</code>
  60. * @param string $var
  61. * @return $this
  62. */
  63. public function setSessionId($var)
  64. {
  65. GPBUtil::checkString($var, True);
  66. $this->session_id = $var;
  67. return $this;
  68. }
  69. /**
  70. * SQL text
  71. *
  72. * Generated from protobuf field <code>string yql_text = 2;</code>
  73. * @return string
  74. */
  75. public function getYqlText()
  76. {
  77. return $this->yql_text;
  78. }
  79. /**
  80. * SQL text
  81. *
  82. * Generated from protobuf field <code>string yql_text = 2;</code>
  83. * @param string $var
  84. * @return $this
  85. */
  86. public function setYqlText($var)
  87. {
  88. GPBUtil::checkString($var, True);
  89. $this->yql_text = $var;
  90. return $this;
  91. }
  92. /**
  93. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 3;</code>
  94. * @return \Ydb\Operations\OperationParams|null
  95. */
  96. public function getOperationParams()
  97. {
  98. return $this->operation_params;
  99. }
  100. public function hasOperationParams()
  101. {
  102. return isset($this->operation_params);
  103. }
  104. public function clearOperationParams()
  105. {
  106. unset($this->operation_params);
  107. }
  108. /**
  109. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 3;</code>
  110. * @param \Ydb\Operations\OperationParams $var
  111. * @return $this
  112. */
  113. public function setOperationParams($var)
  114. {
  115. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  116. $this->operation_params = $var;
  117. return $this;
  118. }
  119. }