grpc.testing.ServerStats
*/
class ServerStats extends \Google\Protobuf\Internal\Message
{
/**
* wall clock time change in seconds since last reset
*
* Generated from protobuf field double time_elapsed = 1;
*/
private $time_elapsed = 0.0;
/**
* change in user time (in seconds) used by the server since last reset
*
* Generated from protobuf field double time_user = 2;
*/
private $time_user = 0.0;
/**
* change in server time (in seconds) used by the server process and all
* threads since last reset
*
* Generated from protobuf field double time_system = 3;
*/
private $time_system = 0.0;
/**
* change in total cpu time of the server (data from proc/stat)
*
* Generated from protobuf field uint64 total_cpu_time = 4;
*/
private $total_cpu_time = 0;
/**
* change in idle time of the server (data from proc/stat)
*
* Generated from protobuf field uint64 idle_cpu_time = 5;
*/
private $idle_cpu_time = 0;
/**
* Number of polls called inside completion queue
*
* Generated from protobuf field uint64 cq_poll_count = 6;
*/
private $cq_poll_count = 0;
/**
* Core library stats
*
* Generated from protobuf field .grpc.core.Stats core_stats = 7;
*/
private $core_stats = null;
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Stats::initOnce();
parent::__construct();
}
/**
* wall clock time change in seconds since last reset
*
* Generated from protobuf field double time_elapsed = 1;
* @return float
*/
public function getTimeElapsed()
{
return $this->time_elapsed;
}
/**
* wall clock time change in seconds since last reset
*
* Generated from protobuf field double time_elapsed = 1;
* @param float $var
* @return $this
*/
public function setTimeElapsed($var)
{
GPBUtil::checkDouble($var);
$this->time_elapsed = $var;
return $this;
}
/**
* change in user time (in seconds) used by the server since last reset
*
* Generated from protobuf field double time_user = 2;
* @return float
*/
public function getTimeUser()
{
return $this->time_user;
}
/**
* change in user time (in seconds) used by the server since last reset
*
* Generated from protobuf field double time_user = 2;
* @param float $var
* @return $this
*/
public function setTimeUser($var)
{
GPBUtil::checkDouble($var);
$this->time_user = $var;
return $this;
}
/**
* change in server time (in seconds) used by the server process and all
* threads since last reset
*
* Generated from protobuf field double time_system = 3;
* @return float
*/
public function getTimeSystem()
{
return $this->time_system;
}
/**
* change in server time (in seconds) used by the server process and all
* threads since last reset
*
* Generated from protobuf field double time_system = 3;
* @param float $var
* @return $this
*/
public function setTimeSystem($var)
{
GPBUtil::checkDouble($var);
$this->time_system = $var;
return $this;
}
/**
* change in total cpu time of the server (data from proc/stat)
*
* Generated from protobuf field uint64 total_cpu_time = 4;
* @return int|string
*/
public function getTotalCpuTime()
{
return $this->total_cpu_time;
}
/**
* change in total cpu time of the server (data from proc/stat)
*
* Generated from protobuf field uint64 total_cpu_time = 4;
* @param int|string $var
* @return $this
*/
public function setTotalCpuTime($var)
{
GPBUtil::checkUint64($var);
$this->total_cpu_time = $var;
return $this;
}
/**
* change in idle time of the server (data from proc/stat)
*
* Generated from protobuf field uint64 idle_cpu_time = 5;
* @return int|string
*/
public function getIdleCpuTime()
{
return $this->idle_cpu_time;
}
/**
* change in idle time of the server (data from proc/stat)
*
* Generated from protobuf field uint64 idle_cpu_time = 5;
* @param int|string $var
* @return $this
*/
public function setIdleCpuTime($var)
{
GPBUtil::checkUint64($var);
$this->idle_cpu_time = $var;
return $this;
}
/**
* Number of polls called inside completion queue
*
* Generated from protobuf field uint64 cq_poll_count = 6;
* @return int|string
*/
public function getCqPollCount()
{
return $this->cq_poll_count;
}
/**
* Number of polls called inside completion queue
*
* Generated from protobuf field uint64 cq_poll_count = 6;
* @param int|string $var
* @return $this
*/
public function setCqPollCount($var)
{
GPBUtil::checkUint64($var);
$this->cq_poll_count = $var;
return $this;
}
/**
* Core library stats
*
* Generated from protobuf field .grpc.core.Stats core_stats = 7;
* @return \Grpc\Core\Stats
*/
public function getCoreStats()
{
return $this->core_stats;
}
/**
* Core library stats
*
* Generated from protobuf field .grpc.core.Stats core_stats = 7;
* @param \Grpc\Core\Stats $var
* @return $this
*/
public function setCoreStats($var)
{
GPBUtil::checkMessage($var, \Grpc\Core\Stats::class);
$this->core_stats = $var;
return $this;
}
}