grpc.testing.ScenarioResult
*/
class ScenarioResult extends \Google\Protobuf\Internal\Message
{
/**
* Inputs used to run the scenario.
*
* Generated from protobuf field .grpc.testing.Scenario scenario = 1;
*/
private $scenario = null;
/**
* Histograms from all clients merged into one histogram.
*
* Generated from protobuf field .grpc.testing.HistogramData latencies = 2;
*/
private $latencies = null;
/**
* Client stats for each client
*
* Generated from protobuf field repeated .grpc.testing.ClientStats client_stats = 3;
*/
private $client_stats;
/**
* Server stats for each server
*
* Generated from protobuf field repeated .grpc.testing.ServerStats server_stats = 4;
*/
private $server_stats;
/**
* Number of cores available to each server
*
* Generated from protobuf field repeated int32 server_cores = 5;
*/
private $server_cores;
/**
* An after-the-fact computed summary
*
* Generated from protobuf field .grpc.testing.ScenarioResultSummary summary = 6;
*/
private $summary = null;
/**
* Information on success or failure of each worker
*
* Generated from protobuf field repeated bool client_success = 7;
*/
private $client_success;
/**
* Generated from protobuf field repeated bool server_success = 8;
*/
private $server_success;
/**
* Number of failed requests (one row per status code seen)
*
* Generated from protobuf field repeated .grpc.testing.RequestResultCount request_results = 9;
*/
private $request_results;
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
parent::__construct();
}
/**
* Inputs used to run the scenario.
*
* Generated from protobuf field .grpc.testing.Scenario scenario = 1;
* @return \Grpc\Testing\Scenario
*/
public function getScenario()
{
return $this->scenario;
}
/**
* Inputs used to run the scenario.
*
* Generated from protobuf field .grpc.testing.Scenario scenario = 1;
* @param \Grpc\Testing\Scenario $var
* @return $this
*/
public function setScenario($var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\Scenario::class);
$this->scenario = $var;
return $this;
}
/**
* Histograms from all clients merged into one histogram.
*
* Generated from protobuf field .grpc.testing.HistogramData latencies = 2;
* @return \Grpc\Testing\HistogramData
*/
public function getLatencies()
{
return $this->latencies;
}
/**
* Histograms from all clients merged into one histogram.
*
* Generated from protobuf field .grpc.testing.HistogramData latencies = 2;
* @param \Grpc\Testing\HistogramData $var
* @return $this
*/
public function setLatencies($var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\HistogramData::class);
$this->latencies = $var;
return $this;
}
/**
* Client stats for each client
*
* Generated from protobuf field repeated .grpc.testing.ClientStats client_stats = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getClientStats()
{
return $this->client_stats;
}
/**
* Client stats for each client
*
* Generated from protobuf field repeated .grpc.testing.ClientStats client_stats = 3;
* @param \Grpc\Testing\ClientStats[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setClientStats($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\ClientStats::class);
$this->client_stats = $arr;
return $this;
}
/**
* Server stats for each server
*
* Generated from protobuf field repeated .grpc.testing.ServerStats server_stats = 4;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getServerStats()
{
return $this->server_stats;
}
/**
* Server stats for each server
*
* Generated from protobuf field repeated .grpc.testing.ServerStats server_stats = 4;
* @param \Grpc\Testing\ServerStats[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setServerStats($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\ServerStats::class);
$this->server_stats = $arr;
return $this;
}
/**
* Number of cores available to each server
*
* Generated from protobuf field repeated int32 server_cores = 5;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getServerCores()
{
return $this->server_cores;
}
/**
* Number of cores available to each server
*
* Generated from protobuf field repeated int32 server_cores = 5;
* @param int[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setServerCores($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
$this->server_cores = $arr;
return $this;
}
/**
* An after-the-fact computed summary
*
* Generated from protobuf field .grpc.testing.ScenarioResultSummary summary = 6;
* @return \Grpc\Testing\ScenarioResultSummary
*/
public function getSummary()
{
return $this->summary;
}
/**
* An after-the-fact computed summary
*
* Generated from protobuf field .grpc.testing.ScenarioResultSummary summary = 6;
* @param \Grpc\Testing\ScenarioResultSummary $var
* @return $this
*/
public function setSummary($var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\ScenarioResultSummary::class);
$this->summary = $var;
return $this;
}
/**
* Information on success or failure of each worker
*
* Generated from protobuf field repeated bool client_success = 7;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getClientSuccess()
{
return $this->client_success;
}
/**
* Information on success or failure of each worker
*
* Generated from protobuf field repeated bool client_success = 7;
* @param bool[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setClientSuccess($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BOOL);
$this->client_success = $arr;
return $this;
}
/**
* Generated from protobuf field repeated bool server_success = 8;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getServerSuccess()
{
return $this->server_success;
}
/**
* Generated from protobuf field repeated bool server_success = 8;
* @param bool[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setServerSuccess($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BOOL);
$this->server_success = $arr;
return $this;
}
/**
* Number of failed requests (one row per status code seen)
*
* Generated from protobuf field repeated .grpc.testing.RequestResultCount request_results = 9;
* @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 = 9;
* @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;
}
}