<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/workflowservice/v1/request_response.proto

namespace Temporal\Api\Workflowservice\V1\ExecuteMultiOperationResponse;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response</code>
 */
class Response extends \Google\Protobuf\Internal\Message
{
    protected $response;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Workflowservice\V1\StartWorkflowExecutionResponse $start_workflow
     *     @type \Temporal\Api\Workflowservice\V1\UpdateWorkflowExecutionResponse $update_workflow
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflowservice.v1.StartWorkflowExecutionResponse start_workflow = 1;</code>
     * @return \Temporal\Api\Workflowservice\V1\StartWorkflowExecutionResponse|null
     */
    public function getStartWorkflow()
    {
        return $this->readOneof(1);
    }

    public function hasStartWorkflow()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflowservice.v1.StartWorkflowExecutionResponse start_workflow = 1;</code>
     * @param \Temporal\Api\Workflowservice\V1\StartWorkflowExecutionResponse $var
     * @return $this
     */
    public function setStartWorkflow($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Workflowservice\V1\StartWorkflowExecutionResponse::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse update_workflow = 2;</code>
     * @return \Temporal\Api\Workflowservice\V1\UpdateWorkflowExecutionResponse|null
     */
    public function getUpdateWorkflow()
    {
        return $this->readOneof(2);
    }

    public function hasUpdateWorkflow()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse update_workflow = 2;</code>
     * @param \Temporal\Api\Workflowservice\V1\UpdateWorkflowExecutionResponse $var
     * @return $this
     */
    public function setUpdateWorkflow($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Workflowservice\V1\UpdateWorkflowExecutionResponse::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getResponse()
    {
        return $this->whichOneof("response");
    }

}

