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

/**
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse</code>
 */
class SignalWithStartWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The run id of the workflow that was started - or just signaled, if it was already running.
     *
     * Generated from protobuf field <code>string run_id = 1;</code>
     */
    protected $run_id = '';
    /**
     * If true, a new workflow was started.
     *
     * Generated from protobuf field <code>bool started = 2;</code>
     */
    protected $started = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $run_id
     *           The run id of the workflow that was started - or just signaled, if it was already running.
     *     @type bool $started
     *           If true, a new workflow was started.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * The run id of the workflow that was started - or just signaled, if it was already running.
     *
     * Generated from protobuf field <code>string run_id = 1;</code>
     * @return string
     */
    public function getRunId()
    {
        return $this->run_id;
    }

    /**
     * The run id of the workflow that was started - or just signaled, if it was already running.
     *
     * Generated from protobuf field <code>string run_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setRunId($var)
    {
        GPBUtil::checkString($var, True);
        $this->run_id = $var;

        return $this;
    }

    /**
     * If true, a new workflow was started.
     *
     * Generated from protobuf field <code>bool started = 2;</code>
     * @return bool
     */
    public function getStarted()
    {
        return $this->started;
    }

    /**
     * If true, a new workflow was started.
     *
     * Generated from protobuf field <code>bool started = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setStarted($var)
    {
        GPBUtil::checkBool($var);
        $this->started = $var;

        return $this;
    }

}

