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

namespace Temporal\Api\Workflow\V1\PostResetOperation;

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

/**
 * SignalWorkflow represents sending a signal after a workflow reset.
 * Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.
 *
 * Generated from protobuf message <code>temporal.api.workflow.v1.PostResetOperation.SignalWorkflow</code>
 */
class SignalWorkflow extends \Google\Protobuf\Internal\Message
{
    /**
     * The workflow author-defined name of the signal to send to the workflow.
     *
     * Generated from protobuf field <code>string signal_name = 1;</code>
     */
    protected $signal_name = '';
    /**
     * Serialized value(s) to provide with the signal.
     *
     * Generated from protobuf field <code>.temporal.api.common.v1.Payloads input = 2;</code>
     */
    protected $input = null;
    /**
     * Headers that are passed with the signal to the processing workflow.
     *
     * Generated from protobuf field <code>.temporal.api.common.v1.Header header = 3;</code>
     */
    protected $header = null;
    /**
     * Links to be associated with the WorkflowExecutionSignaled event.
     *
     * Generated from protobuf field <code>repeated .temporal.api.common.v1.Link links = 4;</code>
     */
    private $links;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $signal_name
     *           The workflow author-defined name of the signal to send to the workflow.
     *     @type \Temporal\Api\Common\V1\Payloads $input
     *           Serialized value(s) to provide with the signal.
     *     @type \Temporal\Api\Common\V1\Header $header
     *           Headers that are passed with the signal to the processing workflow.
     *     @type \Temporal\Api\Common\V1\Link[] $links
     *           Links to be associated with the WorkflowExecutionSignaled event.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * The workflow author-defined name of the signal to send to the workflow.
     *
     * Generated from protobuf field <code>string signal_name = 1;</code>
     * @return string
     */
    public function getSignalName()
    {
        return $this->signal_name;
    }

    /**
     * The workflow author-defined name of the signal to send to the workflow.
     *
     * Generated from protobuf field <code>string signal_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setSignalName($var)
    {
        GPBUtil::checkString($var, True);
        $this->signal_name = $var;

        return $this;
    }

    /**
     * Serialized value(s) to provide with the signal.
     *
     * Generated from protobuf field <code>.temporal.api.common.v1.Payloads input = 2;</code>
     * @return \Temporal\Api\Common\V1\Payloads|null
     */
    public function getInput()
    {
        return $this->input;
    }

    public function hasInput()
    {
        return isset($this->input);
    }

    public function clearInput()
    {
        unset($this->input);
    }

    /**
     * Serialized value(s) to provide with the signal.
     *
     * Generated from protobuf field <code>.temporal.api.common.v1.Payloads input = 2;</code>
     * @param \Temporal\Api\Common\V1\Payloads $var
     * @return $this
     */
    public function setInput($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
        $this->input = $var;

        return $this;
    }

    /**
     * Headers that are passed with the signal to the processing workflow.
     *
     * Generated from protobuf field <code>.temporal.api.common.v1.Header header = 3;</code>
     * @return \Temporal\Api\Common\V1\Header|null
     */
    public function getHeader()
    {
        return $this->header;
    }

    public function hasHeader()
    {
        return isset($this->header);
    }

    public function clearHeader()
    {
        unset($this->header);
    }

    /**
     * Headers that are passed with the signal to the processing workflow.
     *
     * Generated from protobuf field <code>.temporal.api.common.v1.Header header = 3;</code>
     * @param \Temporal\Api\Common\V1\Header $var
     * @return $this
     */
    public function setHeader($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
        $this->header = $var;

        return $this;
    }

    /**
     * Links to be associated with the WorkflowExecutionSignaled event.
     *
     * Generated from protobuf field <code>repeated .temporal.api.common.v1.Link links = 4;</code>
     * @return RepeatedField<\Temporal\Api\Common\V1\Link>
     */
    public function getLinks()
    {
        return $this->links;
    }

    /**
     * Links to be associated with the WorkflowExecutionSignaled event.
     *
     * Generated from protobuf field <code>repeated .temporal.api.common.v1.Link links = 4;</code>
     * @param \Temporal\Api\Common\V1\Link[] $var
     * @return $this
     */
    public function setLinks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\Link::class);
        $this->links = $arr;

        return $this;
    }

}

