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

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

/**
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.UnpauseActivityByIdRequest.ResetOperation</code>
 */
class ResetOperation extends \Google\Protobuf\Internal\Message
{
    /**
     * Indicates that the activity should be scheduled immediately.
     * Note that this may run simultaneously with any existing executions of the activity.
     *
     * Generated from protobuf field <code>bool no_wait = 1;</code>
     */
    protected $no_wait = false;
    /**
     * If set, the Heartbeat Details will be cleared out to make the Activity start over from the beginning
     *
     * Generated from protobuf field <code>bool reset_heartbeat = 2;</code>
     */
    protected $reset_heartbeat = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $no_wait
     *           Indicates that the activity should be scheduled immediately.
     *           Note that this may run simultaneously with any existing executions of the activity.
     *     @type bool $reset_heartbeat
     *           If set, the Heartbeat Details will be cleared out to make the Activity start over from the beginning
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Indicates that the activity should be scheduled immediately.
     * Note that this may run simultaneously with any existing executions of the activity.
     *
     * Generated from protobuf field <code>bool no_wait = 1;</code>
     * @return bool
     */
    public function getNoWait()
    {
        return $this->no_wait;
    }

    /**
     * Indicates that the activity should be scheduled immediately.
     * Note that this may run simultaneously with any existing executions of the activity.
     *
     * Generated from protobuf field <code>bool no_wait = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setNoWait($var)
    {
        GPBUtil::checkBool($var);
        $this->no_wait = $var;

        return $this;
    }

    /**
     * If set, the Heartbeat Details will be cleared out to make the Activity start over from the beginning
     *
     * Generated from protobuf field <code>bool reset_heartbeat = 2;</code>
     * @return bool
     */
    public function getResetHeartbeat()
    {
        return $this->reset_heartbeat;
    }

    /**
     * If set, the Heartbeat Details will be cleared out to make the Activity start over from the beginning
     *
     * Generated from protobuf field <code>bool reset_heartbeat = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setResetHeartbeat($var)
    {
        GPBUtil::checkBool($var);
        $this->reset_heartbeat = $var;

        return $this;
    }

}

