* Server-streaming request.
*
*
* Protobuf type grpc.testing.StreamingOutputCallRequest
*/
class StreamingOutputCallRequest extends \Google\Protobuf\Internal\Message
{
/**
*
* DEPRECATED, don't use. To be removed shortly. * Desired payload type in the response from the server. * If response_type is RANDOM, the payload from each response in the stream * might be of different types. This is to simulate a mixed type of payload * stream. ** *
.grpc.testing.PayloadType response_type = 1;
*/
private $response_type = 0;
/**
* * Configuration for each expected response message. ** *
repeated .grpc.testing.ResponseParameters response_parameters = 2;
*/
private $response_parameters;
/**
* * Optional input payload sent along with the request. ** *
.grpc.testing.Payload payload = 3;
*/
private $payload = null;
/**
* * Whether server should return a given status ** *
.grpc.testing.EchoStatus response_status = 7;
*/
private $response_status = null;
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
parent::__construct();
}
/**
* * DEPRECATED, don't use. To be removed shortly. * Desired payload type in the response from the server. * If response_type is RANDOM, the payload from each response in the stream * might be of different types. This is to simulate a mixed type of payload * stream. ** *
.grpc.testing.PayloadType response_type = 1;
*/
public function getResponseType()
{
return $this->response_type;
}
/**
* * DEPRECATED, don't use. To be removed shortly. * Desired payload type in the response from the server. * If response_type is RANDOM, the payload from each response in the stream * might be of different types. This is to simulate a mixed type of payload * stream. ** *
.grpc.testing.PayloadType response_type = 1;
*/
public function setResponseType($var)
{
GPBUtil::checkEnum($var, \Grpc\Testing\PayloadType::class);
$this->response_type = $var;
}
/**
* * Configuration for each expected response message. ** *
repeated .grpc.testing.ResponseParameters response_parameters = 2;
*/
public function getResponseParameters()
{
return $this->response_parameters;
}
/**
* * Configuration for each expected response message. ** *
repeated .grpc.testing.ResponseParameters response_parameters = 2;
*/
public function setResponseParameters(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\ResponseParameters::class);
$this->response_parameters = $var;
}
/**
* * Optional input payload sent along with the request. ** *
.grpc.testing.Payload payload = 3;
*/
public function getPayload()
{
return $this->payload;
}
/**
* * Optional input payload sent along with the request. ** *
.grpc.testing.Payload payload = 3;
*/
public function setPayload(&$var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\Payload::class);
$this->payload = $var;
}
/**
* * Whether server should return a given status ** *
.grpc.testing.EchoStatus response_status = 7;
*/
public function getResponseStatus()
{
return $this->response_status;
}
/**
* * Whether server should return a given status ** *
.grpc.testing.EchoStatus response_status = 7;
*/
public function setResponseStatus(&$var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\EchoStatus::class);
$this->response_status = $var;
}
}