ResultSet.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_value.proto
  4. namespace Ydb;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Represents table-like structure with ordered set of rows and columns
  10. *
  11. * Generated from protobuf message <code>Ydb.ResultSet</code>
  12. */
  13. class ResultSet extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Metadata of columns
  17. *
  18. * Generated from protobuf field <code>repeated .Ydb.Column columns = 1;</code>
  19. */
  20. private $columns;
  21. /**
  22. * Rows of table
  23. *
  24. * Generated from protobuf field <code>repeated .Ydb.Value rows = 2;</code>
  25. */
  26. private $rows;
  27. /**
  28. * Flag indicates the result was truncated
  29. *
  30. * Generated from protobuf field <code>bool truncated = 3;</code>
  31. */
  32. protected $truncated = false;
  33. /**
  34. * Constructor.
  35. *
  36. * @param array $data {
  37. * Optional. Data for populating the Message object.
  38. *
  39. * @type array<\Ydb\Column>|\Google\Protobuf\Internal\RepeatedField $columns
  40. * Metadata of columns
  41. * @type array<\Ydb\Value>|\Google\Protobuf\Internal\RepeatedField $rows
  42. * Rows of table
  43. * @type bool $truncated
  44. * Flag indicates the result was truncated
  45. * }
  46. */
  47. public function __construct($data = NULL) {
  48. \GPBMetadata\Protos\YdbValue::initOnce();
  49. parent::__construct($data);
  50. }
  51. /**
  52. * Metadata of columns
  53. *
  54. * Generated from protobuf field <code>repeated .Ydb.Column columns = 1;</code>
  55. * @return \Google\Protobuf\Internal\RepeatedField
  56. */
  57. public function getColumns()
  58. {
  59. return $this->columns;
  60. }
  61. /**
  62. * Metadata of columns
  63. *
  64. * Generated from protobuf field <code>repeated .Ydb.Column columns = 1;</code>
  65. * @param array<\Ydb\Column>|\Google\Protobuf\Internal\RepeatedField $var
  66. * @return $this
  67. */
  68. public function setColumns($var)
  69. {
  70. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Column::class);
  71. $this->columns = $arr;
  72. return $this;
  73. }
  74. /**
  75. * Rows of table
  76. *
  77. * Generated from protobuf field <code>repeated .Ydb.Value rows = 2;</code>
  78. * @return \Google\Protobuf\Internal\RepeatedField
  79. */
  80. public function getRows()
  81. {
  82. return $this->rows;
  83. }
  84. /**
  85. * Rows of table
  86. *
  87. * Generated from protobuf field <code>repeated .Ydb.Value rows = 2;</code>
  88. * @param array<\Ydb\Value>|\Google\Protobuf\Internal\RepeatedField $var
  89. * @return $this
  90. */
  91. public function setRows($var)
  92. {
  93. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Value::class);
  94. $this->rows = $arr;
  95. return $this;
  96. }
  97. /**
  98. * Flag indicates the result was truncated
  99. *
  100. * Generated from protobuf field <code>bool truncated = 3;</code>
  101. * @return bool
  102. */
  103. public function getTruncated()
  104. {
  105. return $this->truncated;
  106. }
  107. /**
  108. * Flag indicates the result was truncated
  109. *
  110. * Generated from protobuf field <code>bool truncated = 3;</code>
  111. * @param bool $var
  112. * @return $this
  113. */
  114. public function setTruncated($var)
  115. {
  116. GPBUtil::checkBool($var);
  117. $this->truncated = $var;
  118. return $this;
  119. }
  120. }