_bidiRequest('/grpc.testing.WorkerService/RunServer', ['\Grpc\Testing\ServerStatus','decode'], $metadata, $options); } /** * Start client with specified workload. * First request sent specifies the ClientConfig followed by ClientStatus * response. After that, a "Mark" can be sent anytime to request the latest * stats. Closing the stream will initiate shutdown of the test client * and once the shutdown has finished, the OK status is sent to terminate * this RPC. * @param array $metadata metadata * @param array $options call options */ public function RunClient($metadata = [], $options = []) { return $this->_bidiRequest('/grpc.testing.WorkerService/RunClient', ['\Grpc\Testing\ClientStatus','decode'], $metadata, $options); } /** * Just return the core count - unary call * @param \Grpc\Testing\CoreRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function CoreCount(\Grpc\Testing\CoreRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/grpc.testing.WorkerService/CoreCount', $argument, ['\Grpc\Testing\CoreResponse', 'decode'], $metadata, $options); } /** * Quit this worker * @param \Grpc\Testing\PBVoid $argument input argument * @param array $metadata metadata * @param array $options call options */ public function QuitWorker(\Grpc\Testing\PBVoid $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/grpc.testing.WorkerService/QuitWorker', $argument, ['\Grpc\Testing\PBVoid', 'decode'], $metadata, $options); } }