PrepareDataQueryRequest.php 3.2 KB

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