ExecuteDataQueryRequest.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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.ExecuteDataQueryRequest</code>
  10. */
  11. class ExecuteDataQueryRequest 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. * Generated from protobuf field <code>.Ydb.Table.TransactionControl tx_control = 2;</code>
  21. */
  22. protected $tx_control = null;
  23. /**
  24. * Generated from protobuf field <code>.Ydb.Table.Query query = 3;</code>
  25. */
  26. protected $query = null;
  27. /**
  28. * Map of query parameters (optional)
  29. *
  30. * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 4;</code>
  31. */
  32. private $parameters;
  33. /**
  34. * Generated from protobuf field <code>.Ydb.Table.QueryCachePolicy query_cache_policy = 5;</code>
  35. */
  36. protected $query_cache_policy = null;
  37. /**
  38. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 6;</code>
  39. */
  40. protected $operation_params = null;
  41. /**
  42. * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 7;</code>
  43. */
  44. protected $collect_stats = 0;
  45. /**
  46. * Constructor.
  47. *
  48. * @param array $data {
  49. * Optional. Data for populating the Message object.
  50. *
  51. * @type string $session_id
  52. * Session identifier
  53. * @type \Ydb\Table\TransactionControl $tx_control
  54. * @type \Ydb\Table\Query $query
  55. * @type array|\Google\Protobuf\Internal\MapField $parameters
  56. * Map of query parameters (optional)
  57. * @type \Ydb\Table\QueryCachePolicy $query_cache_policy
  58. * @type \Ydb\Operations\OperationParams $operation_params
  59. * @type int $collect_stats
  60. * }
  61. */
  62. public function __construct($data = NULL) {
  63. \GPBMetadata\Protos\YdbTable::initOnce();
  64. parent::__construct($data);
  65. }
  66. /**
  67. * Session identifier
  68. *
  69. * Generated from protobuf field <code>string session_id = 1;</code>
  70. * @return string
  71. */
  72. public function getSessionId()
  73. {
  74. return $this->session_id;
  75. }
  76. /**
  77. * Session identifier
  78. *
  79. * Generated from protobuf field <code>string session_id = 1;</code>
  80. * @param string $var
  81. * @return $this
  82. */
  83. public function setSessionId($var)
  84. {
  85. GPBUtil::checkString($var, True);
  86. $this->session_id = $var;
  87. return $this;
  88. }
  89. /**
  90. * Generated from protobuf field <code>.Ydb.Table.TransactionControl tx_control = 2;</code>
  91. * @return \Ydb\Table\TransactionControl|null
  92. */
  93. public function getTxControl()
  94. {
  95. return $this->tx_control;
  96. }
  97. public function hasTxControl()
  98. {
  99. return isset($this->tx_control);
  100. }
  101. public function clearTxControl()
  102. {
  103. unset($this->tx_control);
  104. }
  105. /**
  106. * Generated from protobuf field <code>.Ydb.Table.TransactionControl tx_control = 2;</code>
  107. * @param \Ydb\Table\TransactionControl $var
  108. * @return $this
  109. */
  110. public function setTxControl($var)
  111. {
  112. GPBUtil::checkMessage($var, \Ydb\Table\TransactionControl::class);
  113. $this->tx_control = $var;
  114. return $this;
  115. }
  116. /**
  117. * Generated from protobuf field <code>.Ydb.Table.Query query = 3;</code>
  118. * @return \Ydb\Table\Query|null
  119. */
  120. public function getQuery()
  121. {
  122. return $this->query;
  123. }
  124. public function hasQuery()
  125. {
  126. return isset($this->query);
  127. }
  128. public function clearQuery()
  129. {
  130. unset($this->query);
  131. }
  132. /**
  133. * Generated from protobuf field <code>.Ydb.Table.Query query = 3;</code>
  134. * @param \Ydb\Table\Query $var
  135. * @return $this
  136. */
  137. public function setQuery($var)
  138. {
  139. GPBUtil::checkMessage($var, \Ydb\Table\Query::class);
  140. $this->query = $var;
  141. return $this;
  142. }
  143. /**
  144. * Map of query parameters (optional)
  145. *
  146. * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 4;</code>
  147. * @return \Google\Protobuf\Internal\MapField
  148. */
  149. public function getParameters()
  150. {
  151. return $this->parameters;
  152. }
  153. /**
  154. * Map of query parameters (optional)
  155. *
  156. * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 4;</code>
  157. * @param array|\Google\Protobuf\Internal\MapField $var
  158. * @return $this
  159. */
  160. public function setParameters($var)
  161. {
  162. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TypedValue::class);
  163. $this->parameters = $arr;
  164. return $this;
  165. }
  166. /**
  167. * Generated from protobuf field <code>.Ydb.Table.QueryCachePolicy query_cache_policy = 5;</code>
  168. * @return \Ydb\Table\QueryCachePolicy|null
  169. */
  170. public function getQueryCachePolicy()
  171. {
  172. return $this->query_cache_policy;
  173. }
  174. public function hasQueryCachePolicy()
  175. {
  176. return isset($this->query_cache_policy);
  177. }
  178. public function clearQueryCachePolicy()
  179. {
  180. unset($this->query_cache_policy);
  181. }
  182. /**
  183. * Generated from protobuf field <code>.Ydb.Table.QueryCachePolicy query_cache_policy = 5;</code>
  184. * @param \Ydb\Table\QueryCachePolicy $var
  185. * @return $this
  186. */
  187. public function setQueryCachePolicy($var)
  188. {
  189. GPBUtil::checkMessage($var, \Ydb\Table\QueryCachePolicy::class);
  190. $this->query_cache_policy = $var;
  191. return $this;
  192. }
  193. /**
  194. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 6;</code>
  195. * @return \Ydb\Operations\OperationParams|null
  196. */
  197. public function getOperationParams()
  198. {
  199. return $this->operation_params;
  200. }
  201. public function hasOperationParams()
  202. {
  203. return isset($this->operation_params);
  204. }
  205. public function clearOperationParams()
  206. {
  207. unset($this->operation_params);
  208. }
  209. /**
  210. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 6;</code>
  211. * @param \Ydb\Operations\OperationParams $var
  212. * @return $this
  213. */
  214. public function setOperationParams($var)
  215. {
  216. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  217. $this->operation_params = $var;
  218. return $this;
  219. }
  220. /**
  221. * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 7;</code>
  222. * @return int
  223. */
  224. public function getCollectStats()
  225. {
  226. return $this->collect_stats;
  227. }
  228. /**
  229. * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 7;</code>
  230. * @param int $var
  231. * @return $this
  232. */
  233. public function setCollectStats($var)
  234. {
  235. GPBUtil::checkEnum($var, \Ydb\Table\QueryStatsCollection\Mode::class);
  236. $this->collect_stats = $var;
  237. return $this;
  238. }
  239. }