ExecuteYqlPartialResult.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_scripting.proto
  4. namespace Ydb\Scripting;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Contains result set (or a result set part) for one data or scan query in the script.
  10. * One result set can be split into several responses with same result_index.
  11. * Only the final response can contain query stats.
  12. *
  13. * Generated from protobuf message <code>Ydb.Scripting.ExecuteYqlPartialResult</code>
  14. */
  15. class ExecuteYqlPartialResult extends \Google\Protobuf\Internal\Message
  16. {
  17. /**
  18. * Index of current result
  19. *
  20. * Generated from protobuf field <code>uint32 result_set_index = 1;</code>
  21. */
  22. protected $result_set_index = 0;
  23. /**
  24. * Result set (or a result set part) for one data or scan query
  25. *
  26. * Generated from protobuf field <code>.Ydb.ResultSet result_set = 2;</code>
  27. */
  28. protected $result_set = null;
  29. /**
  30. * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 3;</code>
  31. */
  32. protected $query_stats = null;
  33. /**
  34. * Constructor.
  35. *
  36. * @param array $data {
  37. * Optional. Data for populating the Message object.
  38. *
  39. * @type int $result_set_index
  40. * Index of current result
  41. * @type \Ydb\ResultSet $result_set
  42. * Result set (or a result set part) for one data or scan query
  43. * @type \Ydb\TableStats\QueryStats $query_stats
  44. * }
  45. */
  46. public function __construct($data = NULL) {
  47. \GPBMetadata\Protos\YdbScripting::initOnce();
  48. parent::__construct($data);
  49. }
  50. /**
  51. * Index of current result
  52. *
  53. * Generated from protobuf field <code>uint32 result_set_index = 1;</code>
  54. * @return int
  55. */
  56. public function getResultSetIndex()
  57. {
  58. return $this->result_set_index;
  59. }
  60. /**
  61. * Index of current result
  62. *
  63. * Generated from protobuf field <code>uint32 result_set_index = 1;</code>
  64. * @param int $var
  65. * @return $this
  66. */
  67. public function setResultSetIndex($var)
  68. {
  69. GPBUtil::checkUint32($var);
  70. $this->result_set_index = $var;
  71. return $this;
  72. }
  73. /**
  74. * Result set (or a result set part) for one data or scan query
  75. *
  76. * Generated from protobuf field <code>.Ydb.ResultSet result_set = 2;</code>
  77. * @return \Ydb\ResultSet|null
  78. */
  79. public function getResultSet()
  80. {
  81. return $this->result_set;
  82. }
  83. public function hasResultSet()
  84. {
  85. return isset($this->result_set);
  86. }
  87. public function clearResultSet()
  88. {
  89. unset($this->result_set);
  90. }
  91. /**
  92. * Result set (or a result set part) for one data or scan query
  93. *
  94. * Generated from protobuf field <code>.Ydb.ResultSet result_set = 2;</code>
  95. * @param \Ydb\ResultSet $var
  96. * @return $this
  97. */
  98. public function setResultSet($var)
  99. {
  100. GPBUtil::checkMessage($var, \Ydb\ResultSet::class);
  101. $this->result_set = $var;
  102. return $this;
  103. }
  104. /**
  105. * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 3;</code>
  106. * @return \Ydb\TableStats\QueryStats|null
  107. */
  108. public function getQueryStats()
  109. {
  110. return $this->query_stats;
  111. }
  112. public function hasQueryStats()
  113. {
  114. return isset($this->query_stats);
  115. }
  116. public function clearQueryStats()
  117. {
  118. unset($this->query_stats);
  119. }
  120. /**
  121. * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 3;</code>
  122. * @param \Ydb\TableStats\QueryStats $var
  123. * @return $this
  124. */
  125. public function setQueryStats($var)
  126. {
  127. GPBUtil::checkMessage($var, \Ydb\TableStats\QueryStats::class);
  128. $this->query_stats = $var;
  129. return $this;
  130. }
  131. }