<?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;

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

/**
 * IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination ("Update-with-Start") when both
 *   1. the workflow update for the requested update ID has already completed, and
 *   2. the workflow for the requested workflow ID has already been closed,
 * then you'll receive
 *   - an update response containing the update's outcome, and
 *   - a start response with a `status` field that reflects the workflow's current state.
 *
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.ExecuteMultiOperationResponse</code>
 */
class ExecuteMultiOperationResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response responses = 1;</code>
     */
    private $responses;

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

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response responses = 1;</code>
     * @return RepeatedField<\Temporal\Api\Workflowservice\V1\ExecuteMultiOperationResponse\Response>
     */
    public function getResponses()
    {
        return $this->responses;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response responses = 1;</code>
     * @param \Temporal\Api\Workflowservice\V1\ExecuteMultiOperationResponse\Response[] $var
     * @return $this
     */
    public function setResponses($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflowservice\V1\ExecuteMultiOperationResponse\Response::class);
        $this->responses = $arr;

        return $this;
    }

}

