grpc.testing.PayloadConfig
*/
class PayloadConfig extends \Google\Protobuf\Internal\Message
{
protected $payload;
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Payloads::initOnce();
parent::__construct();
}
/**
* .grpc.testing.ByteBufferParams bytebuf_params = 1;
*/
public function getBytebufParams()
{
return $this->readOneof(1);
}
/**
* .grpc.testing.ByteBufferParams bytebuf_params = 1;
*/
public function setBytebufParams(&$var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\ByteBufferParams::class);
$this->writeOneof(1, $var);
}
/**
* .grpc.testing.SimpleProtoParams simple_params = 2;
*/
public function getSimpleParams()
{
return $this->readOneof(2);
}
/**
* .grpc.testing.SimpleProtoParams simple_params = 2;
*/
public function setSimpleParams(&$var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\SimpleProtoParams::class);
$this->writeOneof(2, $var);
}
/**
* .grpc.testing.ComplexProtoParams complex_params = 3;
*/
public function getComplexParams()
{
return $this->readOneof(3);
}
/**
* .grpc.testing.ComplexProtoParams complex_params = 3;
*/
public function setComplexParams(&$var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\ComplexProtoParams::class);
$this->writeOneof(3, $var);
}
public function getPayload()
{
return $this->whichOneof("payload");
}
}