ExecuteQueryResult.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. * One QueryResult can contain multiple tables
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.ExecuteQueryResult</code>
  12. */
  13. class ExecuteQueryResult extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Result rets (for each table)
  17. *
  18. * Generated from protobuf field <code>repeated .Ydb.ResultSet result_sets = 1;</code>
  19. */
  20. private $result_sets;
  21. /**
  22. * Transaction metadata
  23. *
  24. * Generated from protobuf field <code>.Ydb.Table.TransactionMeta tx_meta = 2;</code>
  25. */
  26. protected $tx_meta = null;
  27. /**
  28. * Query metadata
  29. *
  30. * Generated from protobuf field <code>.Ydb.Table.QueryMeta query_meta = 3;</code>
  31. */
  32. protected $query_meta = null;
  33. /**
  34. * Query execution statistics
  35. *
  36. * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 4;</code>
  37. */
  38. protected $query_stats = null;
  39. /**
  40. * Constructor.
  41. *
  42. * @param array $data {
  43. * Optional. Data for populating the Message object.
  44. *
  45. * @type array<\Ydb\ResultSet>|\Google\Protobuf\Internal\RepeatedField $result_sets
  46. * Result rets (for each table)
  47. * @type \Ydb\Table\TransactionMeta $tx_meta
  48. * Transaction metadata
  49. * @type \Ydb\Table\QueryMeta $query_meta
  50. * Query metadata
  51. * @type \Ydb\TableStats\QueryStats $query_stats
  52. * Query execution statistics
  53. * }
  54. */
  55. public function __construct($data = NULL) {
  56. \GPBMetadata\Protos\YdbTable::initOnce();
  57. parent::__construct($data);
  58. }
  59. /**
  60. * Result rets (for each table)
  61. *
  62. * Generated from protobuf field <code>repeated .Ydb.ResultSet result_sets = 1;</code>
  63. * @return \Google\Protobuf\Internal\RepeatedField
  64. */
  65. public function getResultSets()
  66. {
  67. return $this->result_sets;
  68. }
  69. /**
  70. * Result rets (for each table)
  71. *
  72. * Generated from protobuf field <code>repeated .Ydb.ResultSet result_sets = 1;</code>
  73. * @param array<\Ydb\ResultSet>|\Google\Protobuf\Internal\RepeatedField $var
  74. * @return $this
  75. */
  76. public function setResultSets($var)
  77. {
  78. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\ResultSet::class);
  79. $this->result_sets = $arr;
  80. return $this;
  81. }
  82. /**
  83. * Transaction metadata
  84. *
  85. * Generated from protobuf field <code>.Ydb.Table.TransactionMeta tx_meta = 2;</code>
  86. * @return \Ydb\Table\TransactionMeta|null
  87. */
  88. public function getTxMeta()
  89. {
  90. return $this->tx_meta;
  91. }
  92. public function hasTxMeta()
  93. {
  94. return isset($this->tx_meta);
  95. }
  96. public function clearTxMeta()
  97. {
  98. unset($this->tx_meta);
  99. }
  100. /**
  101. * Transaction metadata
  102. *
  103. * Generated from protobuf field <code>.Ydb.Table.TransactionMeta tx_meta = 2;</code>
  104. * @param \Ydb\Table\TransactionMeta $var
  105. * @return $this
  106. */
  107. public function setTxMeta($var)
  108. {
  109. GPBUtil::checkMessage($var, \Ydb\Table\TransactionMeta::class);
  110. $this->tx_meta = $var;
  111. return $this;
  112. }
  113. /**
  114. * Query metadata
  115. *
  116. * Generated from protobuf field <code>.Ydb.Table.QueryMeta query_meta = 3;</code>
  117. * @return \Ydb\Table\QueryMeta|null
  118. */
  119. public function getQueryMeta()
  120. {
  121. return $this->query_meta;
  122. }
  123. public function hasQueryMeta()
  124. {
  125. return isset($this->query_meta);
  126. }
  127. public function clearQueryMeta()
  128. {
  129. unset($this->query_meta);
  130. }
  131. /**
  132. * Query metadata
  133. *
  134. * Generated from protobuf field <code>.Ydb.Table.QueryMeta query_meta = 3;</code>
  135. * @param \Ydb\Table\QueryMeta $var
  136. * @return $this
  137. */
  138. public function setQueryMeta($var)
  139. {
  140. GPBUtil::checkMessage($var, \Ydb\Table\QueryMeta::class);
  141. $this->query_meta = $var;
  142. return $this;
  143. }
  144. /**
  145. * Query execution statistics
  146. *
  147. * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 4;</code>
  148. * @return \Ydb\TableStats\QueryStats|null
  149. */
  150. public function getQueryStats()
  151. {
  152. return $this->query_stats;
  153. }
  154. public function hasQueryStats()
  155. {
  156. return isset($this->query_stats);
  157. }
  158. public function clearQueryStats()
  159. {
  160. unset($this->query_stats);
  161. }
  162. /**
  163. * Query execution statistics
  164. *
  165. * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 4;</code>
  166. * @param \Ydb\TableStats\QueryStats $var
  167. * @return $this
  168. */
  169. public function setQueryStats($var)
  170. {
  171. GPBUtil::checkMessage($var, \Ydb\TableStats\QueryStats::class);
  172. $this->query_stats = $var;
  173. return $this;
  174. }
  175. }