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