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

namespace Temporal\Api\History\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.history.v1.NexusOperationCancelRequestCompletedEventAttributes</code>
 */
class NexusOperationCancelRequestCompletedEventAttributes extends \Google\Protobuf\Internal\Message
{
    /**
     * The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event.
     *
     * Generated from protobuf field <code>int64 requested_event_id = 1;</code>
     */
    protected $requested_event_id = 0;
    /**
     * The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported
     * with.
     *
     * Generated from protobuf field <code>int64 workflow_task_completed_event_id = 2;</code>
     */
    protected $workflow_task_completed_event_id = 0;
    /**
     * The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to.
     *
     * Generated from protobuf field <code>int64 scheduled_event_id = 3;</code>
     */
    protected $scheduled_event_id = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $requested_event_id
     *           The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event.
     *     @type int|string $workflow_task_completed_event_id
     *           The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported
     *           with.
     *     @type int|string $scheduled_event_id
     *           The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event.
     *
     * Generated from protobuf field <code>int64 requested_event_id = 1;</code>
     * @return int|string
     */
    public function getRequestedEventId()
    {
        return $this->requested_event_id;
    }

    /**
     * The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event.
     *
     * Generated from protobuf field <code>int64 requested_event_id = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRequestedEventId($var)
    {
        GPBUtil::checkInt64($var);
        $this->requested_event_id = $var;

        return $this;
    }

    /**
     * The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported
     * with.
     *
     * Generated from protobuf field <code>int64 workflow_task_completed_event_id = 2;</code>
     * @return int|string
     */
    public function getWorkflowTaskCompletedEventId()
    {
        return $this->workflow_task_completed_event_id;
    }

    /**
     * The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported
     * with.
     *
     * Generated from protobuf field <code>int64 workflow_task_completed_event_id = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setWorkflowTaskCompletedEventId($var)
    {
        GPBUtil::checkInt64($var);
        $this->workflow_task_completed_event_id = $var;

        return $this;
    }

    /**
     * The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to.
     *
     * Generated from protobuf field <code>int64 scheduled_event_id = 3;</code>
     * @return int|string
     */
    public function getScheduledEventId()
    {
        return $this->scheduled_event_id;
    }

    /**
     * The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to.
     *
     * Generated from protobuf field <code>int64 scheduled_event_id = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setScheduledEventId($var)
    {
        GPBUtil::checkInt64($var);
        $this->scheduled_event_id = $var;

        return $this;
    }

}

