* A single performance scenario: input to qps_json_driver
*
*
* Protobuf type grpc.testing.Scenario
*/
class Scenario extends \Google\Protobuf\Internal\Message
{
/**
*
* Human readable name for this scenario ** *
string name = 1;
*/
private $name = '';
/**
* * Client configuration ** *
.grpc.testing.ClientConfig client_config = 2;
*/
private $client_config = null;
/**
* * Number of clients to start for the test ** *
int32 num_clients = 3;
*/
private $num_clients = 0;
/**
* * Server configuration ** *
.grpc.testing.ServerConfig server_config = 4;
*/
private $server_config = null;
/**
* * Number of servers to start for the test ** *
int32 num_servers = 5;
*/
private $num_servers = 0;
/**
* * Warmup period, in seconds ** *
int32 warmup_seconds = 6;
*/
private $warmup_seconds = 0;
/**
* * Benchmark time, in seconds ** *
int32 benchmark_seconds = 7;
*/
private $benchmark_seconds = 0;
/**
* * Number of workers to spawn locally (usually zero) ** *
int32 spawn_local_worker_count = 8;
*/
private $spawn_local_worker_count = 0;
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
parent::__construct();
}
/**
* * Human readable name for this scenario ** *
string name = 1;
*/
public function getName()
{
return $this->name;
}
/**
* * Human readable name for this scenario ** *
string name = 1;
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
}
/**
* * Client configuration ** *
.grpc.testing.ClientConfig client_config = 2;
*/
public function getClientConfig()
{
return $this->client_config;
}
/**
* * Client configuration ** *
.grpc.testing.ClientConfig client_config = 2;
*/
public function setClientConfig(&$var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\ClientConfig::class);
$this->client_config = $var;
}
/**
* * Number of clients to start for the test ** *
int32 num_clients = 3;
*/
public function getNumClients()
{
return $this->num_clients;
}
/**
* * Number of clients to start for the test ** *
int32 num_clients = 3;
*/
public function setNumClients($var)
{
GPBUtil::checkInt32($var);
$this->num_clients = $var;
}
/**
* * Server configuration ** *
.grpc.testing.ServerConfig server_config = 4;
*/
public function getServerConfig()
{
return $this->server_config;
}
/**
* * Server configuration ** *
.grpc.testing.ServerConfig server_config = 4;
*/
public function setServerConfig(&$var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\ServerConfig::class);
$this->server_config = $var;
}
/**
* * Number of servers to start for the test ** *
int32 num_servers = 5;
*/
public function getNumServers()
{
return $this->num_servers;
}
/**
* * Number of servers to start for the test ** *
int32 num_servers = 5;
*/
public function setNumServers($var)
{
GPBUtil::checkInt32($var);
$this->num_servers = $var;
}
/**
* * Warmup period, in seconds ** *
int32 warmup_seconds = 6;
*/
public function getWarmupSeconds()
{
return $this->warmup_seconds;
}
/**
* * Warmup period, in seconds ** *
int32 warmup_seconds = 6;
*/
public function setWarmupSeconds($var)
{
GPBUtil::checkInt32($var);
$this->warmup_seconds = $var;
}
/**
* * Benchmark time, in seconds ** *
int32 benchmark_seconds = 7;
*/
public function getBenchmarkSeconds()
{
return $this->benchmark_seconds;
}
/**
* * Benchmark time, in seconds ** *
int32 benchmark_seconds = 7;
*/
public function setBenchmarkSeconds($var)
{
GPBUtil::checkInt32($var);
$this->benchmark_seconds = $var;
}
/**
* * Number of workers to spawn locally (usually zero) ** *
int32 spawn_local_worker_count = 8;
*/
public function getSpawnLocalWorkerCount()
{
return $this->spawn_local_worker_count;
}
/**
* * Number of workers to spawn locally (usually zero) ** *
int32 spawn_local_worker_count = 8;
*/
public function setSpawnLocalWorkerCount($var)
{
GPBUtil::checkInt32($var);
$this->spawn_local_worker_count = $var;
}
}