ExecuteScanQueryPartialResult.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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.ExecuteScanQueryPartialResult</code>
  10. */
  11. class ExecuteScanQueryPartialResult extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.ResultSet result_set = 1;</code>
  15. */
  16. protected $result_set = null;
  17. /**
  18. * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 6;</code>
  19. */
  20. protected $query_stats = null;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type \Ydb\ResultSet $result_set
  28. * @type \Ydb\TableStats\QueryStats $query_stats
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\YdbTable::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Generated from protobuf field <code>.Ydb.ResultSet result_set = 1;</code>
  37. * @return \Ydb\ResultSet|null
  38. */
  39. public function getResultSet()
  40. {
  41. return $this->result_set;
  42. }
  43. public function hasResultSet()
  44. {
  45. return isset($this->result_set);
  46. }
  47. public function clearResultSet()
  48. {
  49. unset($this->result_set);
  50. }
  51. /**
  52. * Generated from protobuf field <code>.Ydb.ResultSet result_set = 1;</code>
  53. * @param \Ydb\ResultSet $var
  54. * @return $this
  55. */
  56. public function setResultSet($var)
  57. {
  58. GPBUtil::checkMessage($var, \Ydb\ResultSet::class);
  59. $this->result_set = $var;
  60. return $this;
  61. }
  62. /**
  63. * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 6;</code>
  64. * @return \Ydb\TableStats\QueryStats|null
  65. */
  66. public function getQueryStats()
  67. {
  68. return $this->query_stats;
  69. }
  70. public function hasQueryStats()
  71. {
  72. return isset($this->query_stats);
  73. }
  74. public function clearQueryStats()
  75. {
  76. unset($this->query_stats);
  77. }
  78. /**
  79. * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 6;</code>
  80. * @param \Ydb\TableStats\QueryStats $var
  81. * @return $this
  82. */
  83. public function setQueryStats($var)
  84. {
  85. GPBUtil::checkMessage($var, \Ydb\TableStats\QueryStats::class);
  86. $this->query_stats = $var;
  87. return $this;
  88. }
  89. }