123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_value.proto
- namespace Ydb;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Represents table-like structure with ordered set of rows and columns
- *
- * Generated from protobuf message <code>Ydb.ResultSet</code>
- */
- class ResultSet extends \Google\Protobuf\Internal\Message
- {
- /**
- * Metadata of columns
- *
- * Generated from protobuf field <code>repeated .Ydb.Column columns = 1;</code>
- */
- private $columns;
- /**
- * Rows of table
- *
- * Generated from protobuf field <code>repeated .Ydb.Value rows = 2;</code>
- */
- private $rows;
- /**
- * Flag indicates the result was truncated
- *
- * Generated from protobuf field <code>bool truncated = 3;</code>
- */
- protected $truncated = false;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Ydb\Column>|\Google\Protobuf\Internal\RepeatedField $columns
- * Metadata of columns
- * @type array<\Ydb\Value>|\Google\Protobuf\Internal\RepeatedField $rows
- * Rows of table
- * @type bool $truncated
- * Flag indicates the result was truncated
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbValue::initOnce();
- parent::__construct($data);
- }
- /**
- * Metadata of columns
- *
- * Generated from protobuf field <code>repeated .Ydb.Column columns = 1;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getColumns()
- {
- return $this->columns;
- }
- /**
- * Metadata of columns
- *
- * Generated from protobuf field <code>repeated .Ydb.Column columns = 1;</code>
- * @param array<\Ydb\Column>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setColumns($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Column::class);
- $this->columns = $arr;
- return $this;
- }
- /**
- * Rows of table
- *
- * Generated from protobuf field <code>repeated .Ydb.Value rows = 2;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRows()
- {
- return $this->rows;
- }
- /**
- * Rows of table
- *
- * Generated from protobuf field <code>repeated .Ydb.Value rows = 2;</code>
- * @param array<\Ydb\Value>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRows($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Value::class);
- $this->rows = $arr;
- return $this;
- }
- /**
- * Flag indicates the result was truncated
- *
- * Generated from protobuf field <code>bool truncated = 3;</code>
- * @return bool
- */
- public function getTruncated()
- {
- return $this->truncated;
- }
- /**
- * Flag indicates the result was truncated
- *
- * Generated from protobuf field <code>bool truncated = 3;</code>
- * @param bool $var
- * @return $this
- */
- public function setTruncated($var)
- {
- GPBUtil::checkBool($var);
- $this->truncated = $var;
- return $this;
- }
- }
|