<?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.ShutdownWorkerRequest</code>
 */
class ShutdownWorkerRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string namespace = 1;</code>
     */
    protected $namespace = '';
    /**
     * Generated from protobuf field <code>string sticky_task_queue = 2;</code>
     */
    protected $sticky_task_queue = '';
    /**
     * Generated from protobuf field <code>string identity = 3;</code>
     */
    protected $identity = '';
    /**
     * Generated from protobuf field <code>string reason = 4;</code>
     */
    protected $reason = '';
    /**
     * Generated from protobuf field <code>.temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;</code>
     */
    protected $worker_heartbeat = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $namespace
     *     @type string $sticky_task_queue
     *     @type string $identity
     *     @type string $reason
     *     @type \Temporal\Api\Worker\V1\WorkerHeartbeat $worker_heartbeat
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string namespace = 1;</code>
     * @return string
     */
    public function getNamespace()
    {
        return $this->namespace;
    }

    /**
     * Generated from protobuf field <code>string namespace = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setNamespace($var)
    {
        GPBUtil::checkString($var, True);
        $this->namespace = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string sticky_task_queue = 2;</code>
     * @return string
     */
    public function getStickyTaskQueue()
    {
        return $this->sticky_task_queue;
    }

    /**
     * Generated from protobuf field <code>string sticky_task_queue = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setStickyTaskQueue($var)
    {
        GPBUtil::checkString($var, True);
        $this->sticky_task_queue = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string identity = 3;</code>
     * @return string
     */
    public function getIdentity()
    {
        return $this->identity;
    }

    /**
     * Generated from protobuf field <code>string identity = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setIdentity($var)
    {
        GPBUtil::checkString($var, True);
        $this->identity = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string reason = 4;</code>
     * @return string
     */
    public function getReason()
    {
        return $this->reason;
    }

    /**
     * Generated from protobuf field <code>string reason = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setReason($var)
    {
        GPBUtil::checkString($var, True);
        $this->reason = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;</code>
     * @return \Temporal\Api\Worker\V1\WorkerHeartbeat|null
     */
    public function getWorkerHeartbeat()
    {
        return $this->worker_heartbeat;
    }

    public function hasWorkerHeartbeat()
    {
        return isset($this->worker_heartbeat);
    }

    public function clearWorkerHeartbeat()
    {
        unset($this->worker_heartbeat);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;</code>
     * @param \Temporal\Api\Worker\V1\WorkerHeartbeat $var
     * @return $this
     */
    public function setWorkerHeartbeat($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Worker\V1\WorkerHeartbeat::class);
        $this->worker_heartbeat = $var;

        return $this;
    }

}

