Ydb.Scripting.ExecuteYqlPartialResult */ class ExecuteYqlPartialResult extends \Google\Protobuf\Internal\Message { /** * Index of current result * * Generated from protobuf field uint32 result_set_index = 1; */ protected $result_set_index = 0; /** * Result set (or a result set part) for one data or scan query * * Generated from protobuf field .Ydb.ResultSet result_set = 2; */ protected $result_set = null; /** * Generated from protobuf field .Ydb.TableStats.QueryStats query_stats = 3; */ protected $query_stats = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $result_set_index * Index of current result * @type \Ydb\ResultSet $result_set * Result set (or a result set part) for one data or scan query * @type \Ydb\TableStats\QueryStats $query_stats * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbScripting::initOnce(); parent::__construct($data); } /** * Index of current result * * Generated from protobuf field uint32 result_set_index = 1; * @return int */ public function getResultSetIndex() { return $this->result_set_index; } /** * Index of current result * * Generated from protobuf field uint32 result_set_index = 1; * @param int $var * @return $this */ public function setResultSetIndex($var) { GPBUtil::checkUint32($var); $this->result_set_index = $var; return $this; } /** * Result set (or a result set part) for one data or scan query * * Generated from protobuf field .Ydb.ResultSet result_set = 2; * @return \Ydb\ResultSet|null */ public function getResultSet() { return $this->result_set; } public function hasResultSet() { return isset($this->result_set); } public function clearResultSet() { unset($this->result_set); } /** * Result set (or a result set part) for one data or scan query * * Generated from protobuf field .Ydb.ResultSet result_set = 2; * @param \Ydb\ResultSet $var * @return $this */ public function setResultSet($var) { GPBUtil::checkMessage($var, \Ydb\ResultSet::class); $this->result_set = $var; return $this; } /** * Generated from protobuf field .Ydb.TableStats.QueryStats query_stats = 3; * @return \Ydb\TableStats\QueryStats|null */ public function getQueryStats() { return $this->query_stats; } public function hasQueryStats() { return isset($this->query_stats); } public function clearQueryStats() { unset($this->query_stats); } /** * Generated from protobuf field .Ydb.TableStats.QueryStats query_stats = 3; * @param \Ydb\TableStats\QueryStats $var * @return $this */ public function setQueryStats($var) { GPBUtil::checkMessage($var, \Ydb\TableStats\QueryStats::class); $this->query_stats = $var; return $this; } }