Ydb.TableStats.QueryStats
*/
class QueryStats extends \Google\Protobuf\Internal\Message
{
/**
* A query might have one or more execution phases
*
* Generated from protobuf field repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1;
*/
private $query_phases;
/**
* Generated from protobuf field .Ydb.TableStats.CompilationStats compilation = 2;
*/
protected $compilation = null;
/**
* Generated from protobuf field uint64 process_cpu_time_us = 3;
*/
protected $process_cpu_time_us = 0;
/**
* Generated from protobuf field string query_plan = 4;
*/
protected $query_plan = '';
/**
* Generated from protobuf field string query_ast = 5;
*/
protected $query_ast = '';
/**
* Generated from protobuf field uint64 total_duration_us = 6;
*/
protected $total_duration_us = 0;
/**
* Generated from protobuf field uint64 total_cpu_time_us = 7;
*/
protected $total_cpu_time_us = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array<\Ydb\TableStats\QueryPhaseStats>|\Google\Protobuf\Internal\RepeatedField $query_phases
* A query might have one or more execution phases
* @type \Ydb\TableStats\CompilationStats $compilation
* @type int|string $process_cpu_time_us
* @type string $query_plan
* @type string $query_ast
* @type int|string $total_duration_us
* @type int|string $total_cpu_time_us
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbQueryStats::initOnce();
parent::__construct($data);
}
/**
* A query might have one or more execution phases
*
* Generated from protobuf field repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getQueryPhases()
{
return $this->query_phases;
}
/**
* A query might have one or more execution phases
*
* Generated from protobuf field repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1;
* @param array<\Ydb\TableStats\QueryPhaseStats>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQueryPhases($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TableStats\QueryPhaseStats::class);
$this->query_phases = $arr;
return $this;
}
/**
* Generated from protobuf field .Ydb.TableStats.CompilationStats compilation = 2;
* @return \Ydb\TableStats\CompilationStats|null
*/
public function getCompilation()
{
return $this->compilation;
}
public function hasCompilation()
{
return isset($this->compilation);
}
public function clearCompilation()
{
unset($this->compilation);
}
/**
* Generated from protobuf field .Ydb.TableStats.CompilationStats compilation = 2;
* @param \Ydb\TableStats\CompilationStats $var
* @return $this
*/
public function setCompilation($var)
{
GPBUtil::checkMessage($var, \Ydb\TableStats\CompilationStats::class);
$this->compilation = $var;
return $this;
}
/**
* Generated from protobuf field uint64 process_cpu_time_us = 3;
* @return int|string
*/
public function getProcessCpuTimeUs()
{
return $this->process_cpu_time_us;
}
/**
* Generated from protobuf field uint64 process_cpu_time_us = 3;
* @param int|string $var
* @return $this
*/
public function setProcessCpuTimeUs($var)
{
GPBUtil::checkUint64($var);
$this->process_cpu_time_us = $var;
return $this;
}
/**
* Generated from protobuf field string query_plan = 4;
* @return string
*/
public function getQueryPlan()
{
return $this->query_plan;
}
/**
* Generated from protobuf field string query_plan = 4;
* @param string $var
* @return $this
*/
public function setQueryPlan($var)
{
GPBUtil::checkString($var, True);
$this->query_plan = $var;
return $this;
}
/**
* Generated from protobuf field string query_ast = 5;
* @return string
*/
public function getQueryAst()
{
return $this->query_ast;
}
/**
* Generated from protobuf field string query_ast = 5;
* @param string $var
* @return $this
*/
public function setQueryAst($var)
{
GPBUtil::checkString($var, True);
$this->query_ast = $var;
return $this;
}
/**
* Generated from protobuf field uint64 total_duration_us = 6;
* @return int|string
*/
public function getTotalDurationUs()
{
return $this->total_duration_us;
}
/**
* Generated from protobuf field uint64 total_duration_us = 6;
* @param int|string $var
* @return $this
*/
public function setTotalDurationUs($var)
{
GPBUtil::checkUint64($var);
$this->total_duration_us = $var;
return $this;
}
/**
* Generated from protobuf field uint64 total_cpu_time_us = 7;
* @return int|string
*/
public function getTotalCpuTimeUs()
{
return $this->total_cpu_time_us;
}
/**
* Generated from protobuf field uint64 total_cpu_time_us = 7;
* @param int|string $var
* @return $this
*/
public function setTotalCpuTimeUs($var)
{
GPBUtil::checkUint64($var);
$this->total_cpu_time_us = $var;
return $this;
}
}