Ydb.ResultSet
*/
class ResultSet extends \Google\Protobuf\Internal\Message
{
/**
* Metadata of columns
*
* Generated from protobuf field repeated .Ydb.Column columns = 1;
*/
private $columns;
/**
* Rows of table
*
* Generated from protobuf field repeated .Ydb.Value rows = 2;
*/
private $rows;
/**
* Flag indicates the result was truncated
*
* Generated from protobuf field bool truncated = 3;
*/
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 repeated .Ydb.Column columns = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getColumns()
{
return $this->columns;
}
/**
* Metadata of columns
*
* Generated from protobuf field repeated .Ydb.Column columns = 1;
* @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 repeated .Ydb.Value rows = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getRows()
{
return $this->rows;
}
/**
* Rows of table
*
* Generated from protobuf field repeated .Ydb.Value rows = 2;
* @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 bool truncated = 3;
* @return bool
*/
public function getTruncated()
{
return $this->truncated;
}
/**
* Flag indicates the result was truncated
*
* Generated from protobuf field bool truncated = 3;
* @param bool $var
* @return $this
*/
public function setTruncated($var)
{
GPBUtil::checkBool($var);
$this->truncated = $var;
return $this;
}
}