grpc.testing.ClientStats */ class ClientStats extends \Google\Protobuf\Internal\Message { /** * Latency histogram. Data points are in nanoseconds. * * Generated from protobuf field .grpc.testing.HistogramData latencies = 1; */ protected $latencies = null; /** * See ServerStats for details. * * Generated from protobuf field double time_elapsed = 2; */ protected $time_elapsed = 0.0; /** * Generated from protobuf field double time_user = 3; */ protected $time_user = 0.0; /** * Generated from protobuf field double time_system = 4; */ protected $time_system = 0.0; /** * Number of failed requests (one row per status code seen) * * Generated from protobuf field repeated .grpc.testing.RequestResultCount request_results = 5; */ private $request_results; /** * Number of polls called inside completion queue * * Generated from protobuf field uint64 cq_poll_count = 6; */ protected $cq_poll_count = 0; /** * Core library stats * * Generated from protobuf field .grpc.core.Stats core_stats = 7; */ protected $core_stats = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Grpc\Testing\HistogramData $latencies * Latency histogram. Data points are in nanoseconds. * @type float $time_elapsed * See ServerStats for details. * @type float $time_user * @type float $time_system * @type \Grpc\Testing\RequestResultCount[]|\Google\Protobuf\Internal\RepeatedField $request_results * Number of failed requests (one row per status code seen) * @type int|string $cq_poll_count * Number of polls called inside completion queue * @type \Grpc\Core\Stats $core_stats * Core library stats * } */ public function __construct($data = NULL) { \GPBMetadata\Src\Proto\Grpc\Testing\Stats::initOnce(); parent::__construct($data); } /** * Latency histogram. Data points are in nanoseconds. * * Generated from protobuf field .grpc.testing.HistogramData latencies = 1; * @return \Grpc\Testing\HistogramData */ public function getLatencies() { return $this->latencies; } /** * Latency histogram. Data points are in nanoseconds. * * Generated from protobuf field .grpc.testing.HistogramData latencies = 1; * @param \Grpc\Testing\HistogramData $var * @return $this */ public function setLatencies($var) { GPBUtil::checkMessage($var, \Grpc\Testing\HistogramData::class); $this->latencies = $var; return $this; } /** * See ServerStats for details. * * Generated from protobuf field double time_elapsed = 2; * @return float */ public function getTimeElapsed() { return $this->time_elapsed; } /** * See ServerStats for details. * * Generated from protobuf field double time_elapsed = 2; * @param float $var * @return $this */ public function setTimeElapsed($var) { GPBUtil::checkDouble($var); $this->time_elapsed = $var; return $this; } /** * Generated from protobuf field double time_user = 3; * @return float */ public function getTimeUser() { return $this->time_user; } /** * Generated from protobuf field double time_user = 3; * @param float $var * @return $this */ public function setTimeUser($var) { GPBUtil::checkDouble($var); $this->time_user = $var; return $this; } /** * Generated from protobuf field double time_system = 4; * @return float */ public function getTimeSystem() { return $this->time_system; } /** * Generated from protobuf field double time_system = 4; * @param float $var * @return $this */ public function setTimeSystem($var) { GPBUtil::checkDouble($var); $this->time_system = $var; return $this; } /** * Number of failed requests (one row per status code seen) * * Generated from protobuf field repeated .grpc.testing.RequestResultCount request_results = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRequestResults() { return $this->request_results; } /** * Number of failed requests (one row per status code seen) * * Generated from protobuf field repeated .grpc.testing.RequestResultCount request_results = 5; * @param \Grpc\Testing\RequestResultCount[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRequestResults($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\RequestResultCount::class); $this->request_results = $arr; 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; } }