grpc.testing.ClientConfig */ class ClientConfig extends \Google\Protobuf\Internal\Message { /** *
     * List of targets to connect to. At least one target needs to be specified.
     * 
* * repeated string server_targets = 1; */ private $server_targets; /** * .grpc.testing.ClientType client_type = 2; */ private $client_type = 0; /** * .grpc.testing.SecurityParams security_params = 3; */ private $security_params = null; /** *
     * How many concurrent RPCs to start for each channel.
     * For synchronous client, use a separate thread for each outstanding RPC.
     * 
* * int32 outstanding_rpcs_per_channel = 4; */ private $outstanding_rpcs_per_channel = 0; /** *
     * Number of independent client channels to create.
     * i-th channel will connect to server_target[i % server_targets.size()]
     * 
* * int32 client_channels = 5; */ private $client_channels = 0; /** *
     * Only for async client. Number of threads to use to start/manage RPCs.
     * 
* * int32 async_client_threads = 7; */ private $async_client_threads = 0; /** * .grpc.testing.RpcType rpc_type = 8; */ private $rpc_type = 0; /** *
     * The requested load for the entire client (aggregated over all the threads).
     * 
* * .grpc.testing.LoadParams load_params = 10; */ private $load_params = null; /** * .grpc.testing.PayloadConfig payload_config = 11; */ private $payload_config = null; /** * .grpc.testing.HistogramParams histogram_params = 12; */ private $histogram_params = null; /** *
     * Specify the cores we should run the client on, if desired
     * 
* * repeated int32 core_list = 13; */ private $core_list; /** * int32 core_limit = 14; */ private $core_limit = 0; /** *
     * If we use an OTHER_CLIENT client_type, this string gives more detail
     * 
* * string other_client_api = 15; */ private $other_client_api = ''; /** * repeated .grpc.testing.ChannelArg channel_args = 16; */ private $channel_args; public function __construct() { \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce(); parent::__construct(); } /** *
     * List of targets to connect to. At least one target needs to be specified.
     * 
* * repeated string server_targets = 1; */ public function getServerTargets() { return $this->server_targets; } /** *
     * List of targets to connect to. At least one target needs to be specified.
     * 
* * repeated string server_targets = 1; */ public function setServerTargets(&$var) { GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->server_targets = $var; } /** * .grpc.testing.ClientType client_type = 2; */ public function getClientType() { return $this->client_type; } /** * .grpc.testing.ClientType client_type = 2; */ public function setClientType($var) { GPBUtil::checkEnum($var, \Grpc\Testing\ClientType::class); $this->client_type = $var; } /** * .grpc.testing.SecurityParams security_params = 3; */ public function getSecurityParams() { return $this->security_params; } /** * .grpc.testing.SecurityParams security_params = 3; */ public function setSecurityParams(&$var) { GPBUtil::checkMessage($var, \Grpc\Testing\SecurityParams::class); $this->security_params = $var; } /** *
     * How many concurrent RPCs to start for each channel.
     * For synchronous client, use a separate thread for each outstanding RPC.
     * 
* * int32 outstanding_rpcs_per_channel = 4; */ public function getOutstandingRpcsPerChannel() { return $this->outstanding_rpcs_per_channel; } /** *
     * How many concurrent RPCs to start for each channel.
     * For synchronous client, use a separate thread for each outstanding RPC.
     * 
* * int32 outstanding_rpcs_per_channel = 4; */ public function setOutstandingRpcsPerChannel($var) { GPBUtil::checkInt32($var); $this->outstanding_rpcs_per_channel = $var; } /** *
     * Number of independent client channels to create.
     * i-th channel will connect to server_target[i % server_targets.size()]
     * 
* * int32 client_channels = 5; */ public function getClientChannels() { return $this->client_channels; } /** *
     * Number of independent client channels to create.
     * i-th channel will connect to server_target[i % server_targets.size()]
     * 
* * int32 client_channels = 5; */ public function setClientChannels($var) { GPBUtil::checkInt32($var); $this->client_channels = $var; } /** *
     * Only for async client. Number of threads to use to start/manage RPCs.
     * 
* * int32 async_client_threads = 7; */ public function getAsyncClientThreads() { return $this->async_client_threads; } /** *
     * Only for async client. Number of threads to use to start/manage RPCs.
     * 
* * int32 async_client_threads = 7; */ public function setAsyncClientThreads($var) { GPBUtil::checkInt32($var); $this->async_client_threads = $var; } /** * .grpc.testing.RpcType rpc_type = 8; */ public function getRpcType() { return $this->rpc_type; } /** * .grpc.testing.RpcType rpc_type = 8; */ public function setRpcType($var) { GPBUtil::checkEnum($var, \Grpc\Testing\RpcType::class); $this->rpc_type = $var; } /** *
     * The requested load for the entire client (aggregated over all the threads).
     * 
* * .grpc.testing.LoadParams load_params = 10; */ public function getLoadParams() { return $this->load_params; } /** *
     * The requested load for the entire client (aggregated over all the threads).
     * 
* * .grpc.testing.LoadParams load_params = 10; */ public function setLoadParams(&$var) { GPBUtil::checkMessage($var, \Grpc\Testing\LoadParams::class); $this->load_params = $var; } /** * .grpc.testing.PayloadConfig payload_config = 11; */ public function getPayloadConfig() { return $this->payload_config; } /** * .grpc.testing.PayloadConfig payload_config = 11; */ public function setPayloadConfig(&$var) { GPBUtil::checkMessage($var, \Grpc\Testing\PayloadConfig::class); $this->payload_config = $var; } /** * .grpc.testing.HistogramParams histogram_params = 12; */ public function getHistogramParams() { return $this->histogram_params; } /** * .grpc.testing.HistogramParams histogram_params = 12; */ public function setHistogramParams(&$var) { GPBUtil::checkMessage($var, \Grpc\Testing\HistogramParams::class); $this->histogram_params = $var; } /** *
     * Specify the cores we should run the client on, if desired
     * 
* * repeated int32 core_list = 13; */ public function getCoreList() { return $this->core_list; } /** *
     * Specify the cores we should run the client on, if desired
     * 
* * repeated int32 core_list = 13; */ public function setCoreList(&$var) { GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); $this->core_list = $var; } /** * int32 core_limit = 14; */ public function getCoreLimit() { return $this->core_limit; } /** * int32 core_limit = 14; */ public function setCoreLimit($var) { GPBUtil::checkInt32($var); $this->core_limit = $var; } /** *
     * If we use an OTHER_CLIENT client_type, this string gives more detail
     * 
* * string other_client_api = 15; */ public function getOtherClientApi() { return $this->other_client_api; } /** *
     * If we use an OTHER_CLIENT client_type, this string gives more detail
     * 
* * string other_client_api = 15; */ public function setOtherClientApi($var) { GPBUtil::checkString($var, True); $this->other_client_api = $var; } /** * repeated .grpc.testing.ChannelArg channel_args = 16; */ public function getChannelArgs() { return $this->channel_args; } /** * repeated .grpc.testing.ChannelArg channel_args = 16; */ public function setChannelArgs(&$var) { GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\ChannelArg::class); $this->channel_args = $var; } }