"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
"""

import builtins
import collections.abc
import sys

import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.message
import google.protobuf.timestamp_pb2

import temporalio.api.common.v1.message_pb2
import temporalio.api.deployment.v1.message_pb2
import temporalio.api.enums.v1.event_type_pb2
import temporalio.api.enums.v1.failed_cause_pb2
import temporalio.api.enums.v1.update_pb2
import temporalio.api.enums.v1.workflow_pb2
import temporalio.api.failure.v1.message_pb2
import temporalio.api.sdk.v1.task_complete_metadata_pb2
import temporalio.api.sdk.v1.user_metadata_pb2
import temporalio.api.taskqueue.v1.message_pb2
import temporalio.api.update.v1.message_pb2
import temporalio.api.workflow.v1.message_pb2

if sys.version_info >= (3, 8):
    import typing as typing_extensions
else:
    import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message):
    """Always the first event in workflow history"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    PARENT_WORKFLOW_NAMESPACE_FIELD_NUMBER: builtins.int
    PARENT_WORKFLOW_NAMESPACE_ID_FIELD_NUMBER: builtins.int
    PARENT_WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    PARENT_INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    TASK_QUEUE_FIELD_NUMBER: builtins.int
    INPUT_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_TIMEOUT_FIELD_NUMBER: builtins.int
    WORKFLOW_RUN_TIMEOUT_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_TIMEOUT_FIELD_NUMBER: builtins.int
    CONTINUED_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int
    INITIATOR_FIELD_NUMBER: builtins.int
    CONTINUED_FAILURE_FIELD_NUMBER: builtins.int
    LAST_COMPLETION_RESULT_FIELD_NUMBER: builtins.int
    ORIGINAL_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    FIRST_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int
    RETRY_POLICY_FIELD_NUMBER: builtins.int
    ATTEMPT_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_EXPIRATION_TIME_FIELD_NUMBER: builtins.int
    CRON_SCHEDULE_FIELD_NUMBER: builtins.int
    FIRST_WORKFLOW_TASK_BACKOFF_FIELD_NUMBER: builtins.int
    MEMO_FIELD_NUMBER: builtins.int
    SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int
    PREV_AUTO_RESET_POINTS_FIELD_NUMBER: builtins.int
    HEADER_FIELD_NUMBER: builtins.int
    PARENT_INITIATED_EVENT_VERSION_FIELD_NUMBER: builtins.int
    WORKFLOW_ID_FIELD_NUMBER: builtins.int
    SOURCE_VERSION_STAMP_FIELD_NUMBER: builtins.int
    COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int
    ROOT_WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    INHERITED_BUILD_ID_FIELD_NUMBER: builtins.int
    VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int
    PARENT_PINNED_WORKER_DEPLOYMENT_VERSION_FIELD_NUMBER: builtins.int
    PRIORITY_FIELD_NUMBER: builtins.int
    INHERITED_PINNED_VERSION_FIELD_NUMBER: builtins.int
    EAGER_EXECUTION_ACCEPTED_FIELD_NUMBER: builtins.int
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    parent_workflow_namespace: builtins.str
    """If this workflow is a child, the namespace our parent lives in.
    SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
    """
    parent_workflow_namespace_id: builtins.str
    @property
    def parent_workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution:
        """Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
        If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
        """
    parent_initiated_event_id: builtins.int
    """EventID of the child execution initiated event in parent workflow"""
    @property
    def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ...
    @property
    def input(self) -> temporalio.api.common.v1.message_pb2.Payloads:
        """SDK will deserialize this and provide it as arguments to the workflow function"""
    @property
    def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Total workflow execution timeout including retries and continue as new."""
    @property
    def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Timeout of a single workflow run."""
    @property
    def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Timeout of a single workflow task."""
    continued_execution_run_id: builtins.str
    """Run id of the previous workflow which continued-as-new or retried or cron executed into this
    workflow.
    """
    initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType
    @property
    def continued_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ...
    @property
    def last_completion_result(
        self,
    ) -> temporalio.api.common.v1.message_pb2.Payloads: ...
    original_execution_run_id: builtins.str
    """This is the run id when the WorkflowExecutionStarted event was written.
    A workflow reset changes the execution run_id, but preserves this field.
    """
    identity: builtins.str
    """Identity of the client who requested this execution"""
    first_execution_run_id: builtins.str
    """This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
    Used to identify a chain.
    """
    @property
    def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: ...
    attempt: builtins.int
    """Starting at 1, the number of times we have tried to execute this workflow"""
    @property
    def workflow_execution_expiration_time(
        self,
    ) -> google.protobuf.timestamp_pb2.Timestamp:
        """The absolute time at which the workflow will be timed out.
        This is passed without change to the next run/retry of a workflow.
        """
    cron_schedule: builtins.str
    """If this workflow runs on a cron schedule, it will appear here"""
    @property
    def first_workflow_task_backoff(self) -> google.protobuf.duration_pb2.Duration:
        """For a cron workflow, this contains the amount of time between when this iteration of
        the cron workflow was scheduled and when it should run next per its cron_schedule.
        """
    @property
    def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: ...
    @property
    def search_attributes(
        self,
    ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ...
    @property
    def prev_auto_reset_points(
        self,
    ) -> temporalio.api.workflow.v1.message_pb2.ResetPoints: ...
    @property
    def header(self) -> temporalio.api.common.v1.message_pb2.Header: ...
    parent_initiated_event_version: builtins.int
    """Version of the child execution initiated event in parent workflow
    It should be used together with parent_initiated_event_id to identify
    a child initiated event for global namespace
    """
    workflow_id: builtins.str
    """This field is new in 1.21."""
    @property
    def source_version_stamp(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """If this workflow intends to use anything other than the current overall default version for
        the queue, then we include it here.
        Deprecated. [cleanup-experimental-wv]
        """
    @property
    def completion_callbacks(
        self,
    ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
        temporalio.api.common.v1.message_pb2.Callback
    ]:
        """Completion callbacks attached when this workflow was started."""
    @property
    def root_workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution:
        """Contains information about the root workflow execution.
        The root workflow execution is defined as follows:
          1. A workflow without parent workflow is its own root workflow.
          2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
        When the workflow is its own root workflow, then root_workflow_execution is nil.
        Note: workflows continued as new or reseted may or may not have parents, check examples below.

        Examples:
          Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
            - The root workflow of all three workflows is W1.
            - W1 has root_workflow_execution set to nil.
            - W2 and W3 have root_workflow_execution set to W1.
          Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
            - The root workflow of all three workflows is W1.
            - W1 has root_workflow_execution set to nil.
            - W2 and W3 have root_workflow_execution set to W1.
          Scenario 3: Workflow W1 continued as new W2.
            - The root workflow of W1 is W1 and the root workflow of W2 is W2.
            - W1 and W2 have root_workflow_execution set to nil.
          Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
            - The root workflow of all three workflows is W1.
            - W1 has root_workflow_execution set to nil.
            - W2 and W3 have root_workflow_execution set to W1.
          Scenario 5: Workflow W1 is reseted, creating W2.
            - The root workflow of W1 is W1 and the root workflow of W2 is W2.
            - W1 and W2 have root_workflow_execution set to nil.
        """
    inherited_build_id: builtins.str
    """When present, this execution is assigned to the build ID of its parent or previous execution.
    Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
    """
    @property
    def versioning_override(
        self,
    ) -> temporalio.api.workflow.v1.message_pb2.VersioningOverride:
        """Versioning override applied to this workflow when it was started.
        Children, crons, retries, and continue-as-new will inherit source run's override if pinned
        and if the new workflow's Task Queue belongs to the override version.
        """
    parent_pinned_worker_deployment_version: builtins.str
    """When present, it means this is a child workflow of a parent that is Pinned to this Worker
    Deployment Version. In this case, child workflow will start as Pinned to this Version instead
    of starting on the Current Version of its Task Queue.
    This is set only if the child workflow is starting on a Task Queue belonging to the same
    Worker Deployment Version.
    Deprecated. Use `parent_versioning_info`.
    """
    @property
    def priority(self) -> temporalio.api.common.v1.message_pb2.Priority:
        """Priority metadata"""
    @property
    def inherited_pinned_version(
        self,
    ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion:
        """If present, the new workflow should start on this version with pinned base behavior.
        Child of pinned parent will inherit the parent's version if the Child's Task Queue belongs to that version.

        New run initiated by workflow ContinueAsNew of pinned run, will inherit the previous run's version if the
        new run's Task Queue belongs to that version.

        New run initiated by workflow Cron will never inherit.

        New run initiated by workflow Retry will only inherit if the retried run is effectively pinned at the time
        of retry, and the retried run inherited a pinned version when it started (ie. it is a child of a pinned
        parent, or a CaN of a pinned run, and is running on a Task Queue in the inherited version).

        Pinned override is inherited if Task Queue of new run is compatible with the override version.
        Override is inherited separately and takes precedence over inherited base version.
        """
    eager_execution_accepted: builtins.bool
    """A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and
    eager execution was accepted by the server.
    Only populated by server with version >= 1.29.0.
    """
    def __init__(
        self,
        *,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        parent_workflow_namespace: builtins.str = ...,
        parent_workflow_namespace_id: builtins.str = ...,
        parent_workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        parent_initiated_event_id: builtins.int = ...,
        task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ...,
        input: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        workflow_execution_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        workflow_run_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        workflow_task_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        continued_execution_run_id: builtins.str = ...,
        initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType = ...,
        continued_failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        last_completion_result: temporalio.api.common.v1.message_pb2.Payloads
        | None = ...,
        original_execution_run_id: builtins.str = ...,
        identity: builtins.str = ...,
        first_execution_run_id: builtins.str = ...,
        retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ...,
        attempt: builtins.int = ...,
        workflow_execution_expiration_time: google.protobuf.timestamp_pb2.Timestamp
        | None = ...,
        cron_schedule: builtins.str = ...,
        first_workflow_task_backoff: google.protobuf.duration_pb2.Duration | None = ...,
        memo: temporalio.api.common.v1.message_pb2.Memo | None = ...,
        search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes
        | None = ...,
        prev_auto_reset_points: temporalio.api.workflow.v1.message_pb2.ResetPoints
        | None = ...,
        header: temporalio.api.common.v1.message_pb2.Header | None = ...,
        parent_initiated_event_version: builtins.int = ...,
        workflow_id: builtins.str = ...,
        source_version_stamp: temporalio.api.common.v1.message_pb2.WorkerVersionStamp
        | None = ...,
        completion_callbacks: collections.abc.Iterable[
            temporalio.api.common.v1.message_pb2.Callback
        ]
        | None = ...,
        root_workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        inherited_build_id: builtins.str = ...,
        versioning_override: temporalio.api.workflow.v1.message_pb2.VersioningOverride
        | None = ...,
        parent_pinned_worker_deployment_version: builtins.str = ...,
        priority: temporalio.api.common.v1.message_pb2.Priority | None = ...,
        inherited_pinned_version: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion
        | None = ...,
        eager_execution_accepted: builtins.bool = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "continued_failure",
            b"continued_failure",
            "first_workflow_task_backoff",
            b"first_workflow_task_backoff",
            "header",
            b"header",
            "inherited_pinned_version",
            b"inherited_pinned_version",
            "input",
            b"input",
            "last_completion_result",
            b"last_completion_result",
            "memo",
            b"memo",
            "parent_workflow_execution",
            b"parent_workflow_execution",
            "prev_auto_reset_points",
            b"prev_auto_reset_points",
            "priority",
            b"priority",
            "retry_policy",
            b"retry_policy",
            "root_workflow_execution",
            b"root_workflow_execution",
            "search_attributes",
            b"search_attributes",
            "source_version_stamp",
            b"source_version_stamp",
            "task_queue",
            b"task_queue",
            "versioning_override",
            b"versioning_override",
            "workflow_execution_expiration_time",
            b"workflow_execution_expiration_time",
            "workflow_execution_timeout",
            b"workflow_execution_timeout",
            "workflow_run_timeout",
            b"workflow_run_timeout",
            "workflow_task_timeout",
            b"workflow_task_timeout",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "attempt",
            b"attempt",
            "completion_callbacks",
            b"completion_callbacks",
            "continued_execution_run_id",
            b"continued_execution_run_id",
            "continued_failure",
            b"continued_failure",
            "cron_schedule",
            b"cron_schedule",
            "eager_execution_accepted",
            b"eager_execution_accepted",
            "first_execution_run_id",
            b"first_execution_run_id",
            "first_workflow_task_backoff",
            b"first_workflow_task_backoff",
            "header",
            b"header",
            "identity",
            b"identity",
            "inherited_build_id",
            b"inherited_build_id",
            "inherited_pinned_version",
            b"inherited_pinned_version",
            "initiator",
            b"initiator",
            "input",
            b"input",
            "last_completion_result",
            b"last_completion_result",
            "memo",
            b"memo",
            "original_execution_run_id",
            b"original_execution_run_id",
            "parent_initiated_event_id",
            b"parent_initiated_event_id",
            "parent_initiated_event_version",
            b"parent_initiated_event_version",
            "parent_pinned_worker_deployment_version",
            b"parent_pinned_worker_deployment_version",
            "parent_workflow_execution",
            b"parent_workflow_execution",
            "parent_workflow_namespace",
            b"parent_workflow_namespace",
            "parent_workflow_namespace_id",
            b"parent_workflow_namespace_id",
            "prev_auto_reset_points",
            b"prev_auto_reset_points",
            "priority",
            b"priority",
            "retry_policy",
            b"retry_policy",
            "root_workflow_execution",
            b"root_workflow_execution",
            "search_attributes",
            b"search_attributes",
            "source_version_stamp",
            b"source_version_stamp",
            "task_queue",
            b"task_queue",
            "versioning_override",
            b"versioning_override",
            "workflow_execution_expiration_time",
            b"workflow_execution_expiration_time",
            "workflow_execution_timeout",
            b"workflow_execution_timeout",
            "workflow_id",
            b"workflow_id",
            "workflow_run_timeout",
            b"workflow_run_timeout",
            "workflow_task_timeout",
            b"workflow_task_timeout",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___WorkflowExecutionStartedEventAttributes = (
    WorkflowExecutionStartedEventAttributes
)

class WorkflowExecutionCompletedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESULT_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    NEW_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int
    @property
    def result(self) -> temporalio.api.common.v1.message_pb2.Payloads:
        """Serialized result of workflow completion (ie: The return value of the workflow function)"""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    new_execution_run_id: builtins.str
    """If another run is started by cron, this contains the new run id."""
    def __init__(
        self,
        *,
        result: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        new_execution_run_id: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["result", b"result"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "new_execution_run_id",
            b"new_execution_run_id",
            "result",
            b"result",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___WorkflowExecutionCompletedEventAttributes = (
    WorkflowExecutionCompletedEventAttributes
)

class WorkflowExecutionFailedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    FAILURE_FIELD_NUMBER: builtins.int
    RETRY_STATE_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    NEW_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """Serialized result of workflow failure (ex: An exception thrown, or error returned)"""
    retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    new_execution_run_id: builtins.str
    """If another run is started by cron or retry, this contains the new run id."""
    def __init__(
        self,
        *,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        new_execution_run_id: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["failure", b"failure"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "new_execution_run_id",
            b"new_execution_run_id",
            "retry_state",
            b"retry_state",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___WorkflowExecutionFailedEventAttributes = WorkflowExecutionFailedEventAttributes

class WorkflowExecutionTimedOutEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RETRY_STATE_FIELD_NUMBER: builtins.int
    NEW_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int
    retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType
    new_execution_run_id: builtins.str
    """If another run is started by cron or retry, this contains the new run id."""
    def __init__(
        self,
        *,
        retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ...,
        new_execution_run_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "new_execution_run_id",
            b"new_execution_run_id",
            "retry_state",
            b"retry_state",
        ],
    ) -> None: ...

global___WorkflowExecutionTimedOutEventAttributes = (
    WorkflowExecutionTimedOutEventAttributes
)

class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    NEW_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    TASK_QUEUE_FIELD_NUMBER: builtins.int
    INPUT_FIELD_NUMBER: builtins.int
    WORKFLOW_RUN_TIMEOUT_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_TIMEOUT_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    BACKOFF_START_INTERVAL_FIELD_NUMBER: builtins.int
    INITIATOR_FIELD_NUMBER: builtins.int
    FAILURE_FIELD_NUMBER: builtins.int
    LAST_COMPLETION_RESULT_FIELD_NUMBER: builtins.int
    HEADER_FIELD_NUMBER: builtins.int
    MEMO_FIELD_NUMBER: builtins.int
    SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int
    INHERIT_BUILD_ID_FIELD_NUMBER: builtins.int
    new_execution_run_id: builtins.str
    """The run ID of the new workflow started by this continue-as-new"""
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    @property
    def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ...
    @property
    def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: ...
    @property
    def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Timeout of a single workflow run."""
    @property
    def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Timeout of a single workflow task."""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    @property
    def backoff_start_interval(self) -> google.protobuf.duration_pb2.Duration:
        """TODO: How and is this used?"""
    initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """TODO: David are these right?
        Deprecated. If a workflow's retry policy would cause a new run to start when the current one
        has failed, this field would be populated with that failure. Now (when supported by server
        and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set.
        """
    @property
    def last_completion_result(self) -> temporalio.api.common.v1.message_pb2.Payloads:
        """TODO: Is this the result of *this* workflow as it continued-as-new?"""
    @property
    def header(self) -> temporalio.api.common.v1.message_pb2.Header: ...
    @property
    def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: ...
    @property
    def search_attributes(
        self,
    ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ...
    inherit_build_id: builtins.bool
    """If this is set, the new execution inherits the Build ID of the current execution. Otherwise,
    the assignment rules will be used to independently assign a Build ID to the new execution.
    Deprecated. Only considered for versioning v0.2.
    """
    def __init__(
        self,
        *,
        new_execution_run_id: builtins.str = ...,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ...,
        input: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        workflow_run_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        workflow_task_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        backoff_start_interval: google.protobuf.duration_pb2.Duration | None = ...,
        initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType = ...,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        last_completion_result: temporalio.api.common.v1.message_pb2.Payloads
        | None = ...,
        header: temporalio.api.common.v1.message_pb2.Header | None = ...,
        memo: temporalio.api.common.v1.message_pb2.Memo | None = ...,
        search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes
        | None = ...,
        inherit_build_id: builtins.bool = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "backoff_start_interval",
            b"backoff_start_interval",
            "failure",
            b"failure",
            "header",
            b"header",
            "input",
            b"input",
            "last_completion_result",
            b"last_completion_result",
            "memo",
            b"memo",
            "search_attributes",
            b"search_attributes",
            "task_queue",
            b"task_queue",
            "workflow_run_timeout",
            b"workflow_run_timeout",
            "workflow_task_timeout",
            b"workflow_task_timeout",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "backoff_start_interval",
            b"backoff_start_interval",
            "failure",
            b"failure",
            "header",
            b"header",
            "inherit_build_id",
            b"inherit_build_id",
            "initiator",
            b"initiator",
            "input",
            b"input",
            "last_completion_result",
            b"last_completion_result",
            "memo",
            b"memo",
            "new_execution_run_id",
            b"new_execution_run_id",
            "search_attributes",
            b"search_attributes",
            "task_queue",
            b"task_queue",
            "workflow_run_timeout",
            b"workflow_run_timeout",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
            "workflow_task_timeout",
            b"workflow_task_timeout",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___WorkflowExecutionContinuedAsNewEventAttributes = (
    WorkflowExecutionContinuedAsNewEventAttributes
)

class WorkflowTaskScheduledEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TASK_QUEUE_FIELD_NUMBER: builtins.int
    START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
    ATTEMPT_FIELD_NUMBER: builtins.int
    @property
    def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue:
        """The task queue this workflow task was enqueued in, which could be a normal or sticky queue"""
    @property
    def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """How long the worker has to process this task once receiving it before it times out

        (-- api-linter: core::0140::prepositions=disabled
            aip.dev/not-precedent: "to" is used to indicate interval. --)
        """
    attempt: builtins.int
    """Starting at 1, how many attempts there have been to complete this task"""
    def __init__(
        self,
        *,
        task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ...,
        start_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        attempt: builtins.int = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "start_to_close_timeout",
            b"start_to_close_timeout",
            "task_queue",
            b"task_queue",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "attempt",
            b"attempt",
            "start_to_close_timeout",
            b"start_to_close_timeout",
            "task_queue",
            b"task_queue",
        ],
    ) -> None: ...

global___WorkflowTaskScheduledEventAttributes = WorkflowTaskScheduledEventAttributes

class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    REQUEST_ID_FIELD_NUMBER: builtins.int
    SUGGEST_CONTINUE_AS_NEW_FIELD_NUMBER: builtins.int
    HISTORY_SIZE_BYTES_FIELD_NUMBER: builtins.int
    WORKER_VERSION_FIELD_NUMBER: builtins.int
    BUILD_ID_REDIRECT_COUNTER_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to"""
    identity: builtins.str
    """Identity of the worker who picked up this task"""
    request_id: builtins.str
    """TODO: ? Appears unused?"""
    suggest_continue_as_new: builtins.bool
    """True if this workflow should continue-as-new soon because its history size (in
    either event count or bytes) is getting large.
    """
    history_size_bytes: builtins.int
    """Total history size in bytes, which the workflow might use to decide when to
    continue-as-new regardless of the suggestion. Note that history event count is
    just the event id of this event, so we don't include it explicitly here.
    """
    @property
    def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """Version info of the worker to whom this task was dispatched.
        Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
        """
    build_id_redirect_counter: builtins.int
    """Used by server internally to properly reapply build ID redirects to an execution
    when rebuilding it from events.
    Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
    """
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        identity: builtins.str = ...,
        request_id: builtins.str = ...,
        suggest_continue_as_new: builtins.bool = ...,
        history_size_bytes: builtins.int = ...,
        worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp
        | None = ...,
        build_id_redirect_counter: builtins.int = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["worker_version", b"worker_version"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "build_id_redirect_counter",
            b"build_id_redirect_counter",
            "history_size_bytes",
            b"history_size_bytes",
            "identity",
            b"identity",
            "request_id",
            b"request_id",
            "scheduled_event_id",
            b"scheduled_event_id",
            "suggest_continue_as_new",
            b"suggest_continue_as_new",
            "worker_version",
            b"worker_version",
        ],
    ) -> None: ...

global___WorkflowTaskStartedEventAttributes = WorkflowTaskStartedEventAttributes

class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    BINARY_CHECKSUM_FIELD_NUMBER: builtins.int
    WORKER_VERSION_FIELD_NUMBER: builtins.int
    SDK_METADATA_FIELD_NUMBER: builtins.int
    METERING_METADATA_FIELD_NUMBER: builtins.int
    DEPLOYMENT_FIELD_NUMBER: builtins.int
    VERSIONING_BEHAVIOR_FIELD_NUMBER: builtins.int
    WORKER_DEPLOYMENT_VERSION_FIELD_NUMBER: builtins.int
    WORKER_DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int
    DEPLOYMENT_VERSION_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to"""
    started_event_id: builtins.int
    """The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to"""
    identity: builtins.str
    """Identity of the worker who completed this task"""
    binary_checksum: builtins.str
    """Binary ID of the worker who completed this task
    Deprecated. Replaced with `deployment_version`.
    """
    @property
    def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """Version info of the worker who processed this workflow task. If present, the `build_id` field
        within is also used as `binary_checksum`, which may be omitted in that case (it may also be
        populated to preserve compatibility).
        Deprecated. Use `deployment_version` and `versioning_behavior` instead.
        """
    @property
    def sdk_metadata(
        self,
    ) -> temporalio.api.sdk.v1.task_complete_metadata_pb2.WorkflowTaskCompletedMetadata:
        """Data the SDK wishes to record for itself, but server need not interpret, and does not
        directly impact workflow state.
        """
    @property
    def metering_metadata(
        self,
    ) -> temporalio.api.common.v1.message_pb2.MeteringMetadata:
        """Local usage data sent during workflow task completion and recorded here for posterity"""
    @property
    def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment:
        """The deployment that completed this task. May or may not be set for unversioned workers,
        depending on whether a value is sent by the SDK. This value updates workflow execution's
        `versioning_info.deployment`.
        Deprecated. Replaced with `deployment_version`.
        """
    versioning_behavior: (
        temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType
    )
    """Versioning behavior sent by the worker that completed this task for this particular workflow
    execution. UNSPECIFIED means the task was completed by an unversioned worker. This value
    updates workflow execution's `versioning_info.behavior`.
    """
    worker_deployment_version: builtins.str
    """The Worker Deployment Version that completed this task. Must be set if `versioning_behavior`
    is set. This value updates workflow execution's `versioning_info.version`.
    Experimental. Worker Deployments are experimental and might significantly change in the future.
    Deprecated. Replaced with `deployment_version`.
    """
    worker_deployment_name: builtins.str
    """The name of Worker Deployment that completed this task. Must be set if `versioning_behavior`
    is set. This value updates workflow execution's `worker_deployment_name`.
    Experimental. Worker Deployments are experimental and might significantly change in the future.
    """
    @property
    def deployment_version(
        self,
    ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion:
        """The Worker Deployment Version that completed this task. Must be set if `versioning_behavior`
        is set. This value updates workflow execution's `versioning_info.deployment_version`.
        Experimental. Worker Deployments are experimental and might significantly change in the future.
        """
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
        identity: builtins.str = ...,
        binary_checksum: builtins.str = ...,
        worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp
        | None = ...,
        sdk_metadata: temporalio.api.sdk.v1.task_complete_metadata_pb2.WorkflowTaskCompletedMetadata
        | None = ...,
        metering_metadata: temporalio.api.common.v1.message_pb2.MeteringMetadata
        | None = ...,
        deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ...,
        versioning_behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType = ...,
        worker_deployment_version: builtins.str = ...,
        worker_deployment_name: builtins.str = ...,
        deployment_version: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "deployment",
            b"deployment",
            "deployment_version",
            b"deployment_version",
            "metering_metadata",
            b"metering_metadata",
            "sdk_metadata",
            b"sdk_metadata",
            "worker_version",
            b"worker_version",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "binary_checksum",
            b"binary_checksum",
            "deployment",
            b"deployment",
            "deployment_version",
            b"deployment_version",
            "identity",
            b"identity",
            "metering_metadata",
            b"metering_metadata",
            "scheduled_event_id",
            b"scheduled_event_id",
            "sdk_metadata",
            b"sdk_metadata",
            "started_event_id",
            b"started_event_id",
            "versioning_behavior",
            b"versioning_behavior",
            "worker_deployment_name",
            b"worker_deployment_name",
            "worker_deployment_version",
            b"worker_deployment_version",
            "worker_version",
            b"worker_version",
        ],
    ) -> None: ...

global___WorkflowTaskCompletedEventAttributes = WorkflowTaskCompletedEventAttributes

class WorkflowTaskTimedOutEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    TIMEOUT_TYPE_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to"""
    started_event_id: builtins.int
    """The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to"""
    timeout_type: temporalio.api.enums.v1.workflow_pb2.TimeoutType.ValueType
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
        timeout_type: temporalio.api.enums.v1.workflow_pb2.TimeoutType.ValueType = ...,
    ) -> None: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "scheduled_event_id",
            b"scheduled_event_id",
            "started_event_id",
            b"started_event_id",
            "timeout_type",
            b"timeout_type",
        ],
    ) -> None: ...

global___WorkflowTaskTimedOutEventAttributes = WorkflowTaskTimedOutEventAttributes

class WorkflowTaskFailedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    CAUSE_FIELD_NUMBER: builtins.int
    FAILURE_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    BASE_RUN_ID_FIELD_NUMBER: builtins.int
    NEW_RUN_ID_FIELD_NUMBER: builtins.int
    FORK_EVENT_VERSION_FIELD_NUMBER: builtins.int
    BINARY_CHECKSUM_FIELD_NUMBER: builtins.int
    WORKER_VERSION_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to"""
    started_event_id: builtins.int
    """The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to"""
    cause: temporalio.api.enums.v1.failed_cause_pb2.WorkflowTaskFailedCause.ValueType
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """The failure details"""
    identity: builtins.str
    """If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?"""
    base_run_id: builtins.str
    """The original run id of the workflow. For reset workflow."""
    new_run_id: builtins.str
    """If the workflow is being reset, the new run id."""
    fork_event_version: builtins.int
    """TODO: ?"""
    binary_checksum: builtins.str
    """Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
    If a worker explicitly failed this task, its binary id
    """
    @property
    def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """Version info of the worker who processed this workflow task. If present, the `build_id` field
        within is also used as `binary_checksum`, which may be omitted in that case (it may also be
        populated to preserve compatibility).
        Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
        """
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
        cause: temporalio.api.enums.v1.failed_cause_pb2.WorkflowTaskFailedCause.ValueType = ...,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        identity: builtins.str = ...,
        base_run_id: builtins.str = ...,
        new_run_id: builtins.str = ...,
        fork_event_version: builtins.int = ...,
        binary_checksum: builtins.str = ...,
        worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "failure", b"failure", "worker_version", b"worker_version"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "base_run_id",
            b"base_run_id",
            "binary_checksum",
            b"binary_checksum",
            "cause",
            b"cause",
            "failure",
            b"failure",
            "fork_event_version",
            b"fork_event_version",
            "identity",
            b"identity",
            "new_run_id",
            b"new_run_id",
            "scheduled_event_id",
            b"scheduled_event_id",
            "started_event_id",
            b"started_event_id",
            "worker_version",
            b"worker_version",
        ],
    ) -> None: ...

global___WorkflowTaskFailedEventAttributes = WorkflowTaskFailedEventAttributes

class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ACTIVITY_ID_FIELD_NUMBER: builtins.int
    ACTIVITY_TYPE_FIELD_NUMBER: builtins.int
    TASK_QUEUE_FIELD_NUMBER: builtins.int
    HEADER_FIELD_NUMBER: builtins.int
    INPUT_FIELD_NUMBER: builtins.int
    SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
    SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER: builtins.int
    START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
    HEARTBEAT_TIMEOUT_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    RETRY_POLICY_FIELD_NUMBER: builtins.int
    USE_WORKFLOW_BUILD_ID_FIELD_NUMBER: builtins.int
    PRIORITY_FIELD_NUMBER: builtins.int
    activity_id: builtins.str
    """The worker/user assigned identifier for the activity"""
    @property
    def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ...
    @property
    def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ...
    @property
    def header(self) -> temporalio.api.common.v1.message_pb2.Header: ...
    @property
    def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: ...
    @property
    def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Indicates how long the caller is willing to wait for an activity completion. Limits how long
        retries will be attempted. Either this or `start_to_close_timeout` must be specified.

        (-- api-linter: core::0140::prepositions=disabled
            aip.dev/not-precedent: "to" is used to indicate interval. --)
        """
    @property
    def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Limits time an activity task can stay in a task queue before a worker picks it up. This
        timeout is always non retryable, as all a retry would achieve is to put it back into the same
        queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
        specified.

        (-- api-linter: core::0140::prepositions=disabled
            aip.dev/not-precedent: "to" is used to indicate interval. --)
        """
    @property
    def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Maximum time an activity is allowed to execute after being picked up by a worker. This
        timeout is always retryable. Either this or `schedule_to_close_timeout` must be
        specified.

        (-- api-linter: core::0140::prepositions=disabled
            aip.dev/not-precedent: "to" is used to indicate interval. --)
        """
    @property
    def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Maximum permitted time between successful worker heartbeats."""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    @property
    def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy:
        """Activities are assigned a default retry policy controlled by the service's dynamic
        configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set
        retry_policy.maximum_attempts to 1.
        """
    use_workflow_build_id: builtins.bool
    """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise,
    Assignment rules of the activity's Task Queue will be used to determine the Build ID.
    Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
    """
    @property
    def priority(self) -> temporalio.api.common.v1.message_pb2.Priority:
        """Priority metadata. If this message is not present, or any fields are not
        present, they inherit the values from the workflow.
        """
    def __init__(
        self,
        *,
        activity_id: builtins.str = ...,
        activity_type: temporalio.api.common.v1.message_pb2.ActivityType | None = ...,
        task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ...,
        header: temporalio.api.common.v1.message_pb2.Header | None = ...,
        input: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        schedule_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        schedule_to_start_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        start_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        heartbeat_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ...,
        use_workflow_build_id: builtins.bool = ...,
        priority: temporalio.api.common.v1.message_pb2.Priority | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "activity_type",
            b"activity_type",
            "header",
            b"header",
            "heartbeat_timeout",
            b"heartbeat_timeout",
            "input",
            b"input",
            "priority",
            b"priority",
            "retry_policy",
            b"retry_policy",
            "schedule_to_close_timeout",
            b"schedule_to_close_timeout",
            "schedule_to_start_timeout",
            b"schedule_to_start_timeout",
            "start_to_close_timeout",
            b"start_to_close_timeout",
            "task_queue",
            b"task_queue",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "activity_id",
            b"activity_id",
            "activity_type",
            b"activity_type",
            "header",
            b"header",
            "heartbeat_timeout",
            b"heartbeat_timeout",
            "input",
            b"input",
            "priority",
            b"priority",
            "retry_policy",
            b"retry_policy",
            "schedule_to_close_timeout",
            b"schedule_to_close_timeout",
            "schedule_to_start_timeout",
            b"schedule_to_start_timeout",
            "start_to_close_timeout",
            b"start_to_close_timeout",
            "task_queue",
            b"task_queue",
            "use_workflow_build_id",
            b"use_workflow_build_id",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___ActivityTaskScheduledEventAttributes = ActivityTaskScheduledEventAttributes

class ActivityTaskStartedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    REQUEST_ID_FIELD_NUMBER: builtins.int
    ATTEMPT_FIELD_NUMBER: builtins.int
    LAST_FAILURE_FIELD_NUMBER: builtins.int
    WORKER_VERSION_FIELD_NUMBER: builtins.int
    BUILD_ID_REDIRECT_COUNTER_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to"""
    identity: builtins.str
    """id of the worker that picked up this task"""
    request_id: builtins.str
    """TODO ??"""
    attempt: builtins.int
    """Starting at 1, the number of times this task has been attempted"""
    @property
    def last_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """Will be set to the most recent failure details, if this task has previously failed and then
        been retried.
        """
    @property
    def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """Version info of the worker to whom this task was dispatched.
        Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
        """
    build_id_redirect_counter: builtins.int
    """Used by server internally to properly reapply build ID redirects to an execution
    when rebuilding it from events.
    Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
    """
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        identity: builtins.str = ...,
        request_id: builtins.str = ...,
        attempt: builtins.int = ...,
        last_failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp
        | None = ...,
        build_id_redirect_counter: builtins.int = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "last_failure", b"last_failure", "worker_version", b"worker_version"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "attempt",
            b"attempt",
            "build_id_redirect_counter",
            b"build_id_redirect_counter",
            "identity",
            b"identity",
            "last_failure",
            b"last_failure",
            "request_id",
            b"request_id",
            "scheduled_event_id",
            b"scheduled_event_id",
            "worker_version",
            b"worker_version",
        ],
    ) -> None: ...

global___ActivityTaskStartedEventAttributes = ActivityTaskStartedEventAttributes

class ActivityTaskCompletedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESULT_FIELD_NUMBER: builtins.int
    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    WORKER_VERSION_FIELD_NUMBER: builtins.int
    @property
    def result(self) -> temporalio.api.common.v1.message_pb2.Payloads:
        """Serialized results of the activity. IE: The return value of the activity function"""
    scheduled_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to"""
    started_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to"""
    identity: builtins.str
    """id of the worker that completed this task"""
    @property
    def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """Version info of the worker who processed this workflow task.
        Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
        """
    def __init__(
        self,
        *,
        result: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        scheduled_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
        identity: builtins.str = ...,
        worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "result", b"result", "worker_version", b"worker_version"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "identity",
            b"identity",
            "result",
            b"result",
            "scheduled_event_id",
            b"scheduled_event_id",
            "started_event_id",
            b"started_event_id",
            "worker_version",
            b"worker_version",
        ],
    ) -> None: ...

global___ActivityTaskCompletedEventAttributes = ActivityTaskCompletedEventAttributes

class ActivityTaskFailedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    FAILURE_FIELD_NUMBER: builtins.int
    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    RETRY_STATE_FIELD_NUMBER: builtins.int
    WORKER_VERSION_FIELD_NUMBER: builtins.int
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """Failure details"""
    scheduled_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to"""
    started_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to"""
    identity: builtins.str
    """id of the worker that failed this task"""
    retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType
    @property
    def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """Version info of the worker who processed this workflow task.
        Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
        """
    def __init__(
        self,
        *,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        scheduled_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
        identity: builtins.str = ...,
        retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ...,
        worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "failure", b"failure", "worker_version", b"worker_version"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "identity",
            b"identity",
            "retry_state",
            b"retry_state",
            "scheduled_event_id",
            b"scheduled_event_id",
            "started_event_id",
            b"started_event_id",
            "worker_version",
            b"worker_version",
        ],
    ) -> None: ...

global___ActivityTaskFailedEventAttributes = ActivityTaskFailedEventAttributes

class ActivityTaskTimedOutEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    FAILURE_FIELD_NUMBER: builtins.int
    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    RETRY_STATE_FIELD_NUMBER: builtins.int
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """If this activity had failed, was retried, and then timed out, that failure is stored as the
        `cause` in here.
        """
    scheduled_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to"""
    started_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to"""
    retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType
    def __init__(
        self,
        *,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        scheduled_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
        retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["failure", b"failure"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "retry_state",
            b"retry_state",
            "scheduled_event_id",
            b"scheduled_event_id",
            "started_event_id",
            b"started_event_id",
        ],
    ) -> None: ...

global___ActivityTaskTimedOutEventAttributes = ActivityTaskTimedOutEventAttributes

class ActivityTaskCancelRequestedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to"""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        workflow_task_completed_event_id: builtins.int = ...,
    ) -> None: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "scheduled_event_id",
            b"scheduled_event_id",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___ActivityTaskCancelRequestedEventAttributes = (
    ActivityTaskCancelRequestedEventAttributes
)

class ActivityTaskCanceledEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    DETAILS_FIELD_NUMBER: builtins.int
    LATEST_CANCEL_REQUESTED_EVENT_ID_FIELD_NUMBER: builtins.int
    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    WORKER_VERSION_FIELD_NUMBER: builtins.int
    @property
    def details(self) -> temporalio.api.common.v1.message_pb2.Payloads:
        """Additional information that the activity reported upon confirming cancellation"""
    latest_cancel_requested_event_id: builtins.int
    """id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same
    activity
    """
    scheduled_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to"""
    started_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to"""
    identity: builtins.str
    """id of the worker who canceled this activity"""
    @property
    def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """Version info of the worker who processed this workflow task.
        Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
        """
    def __init__(
        self,
        *,
        details: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        latest_cancel_requested_event_id: builtins.int = ...,
        scheduled_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
        identity: builtins.str = ...,
        worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "details", b"details", "worker_version", b"worker_version"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "details",
            b"details",
            "identity",
            b"identity",
            "latest_cancel_requested_event_id",
            b"latest_cancel_requested_event_id",
            "scheduled_event_id",
            b"scheduled_event_id",
            "started_event_id",
            b"started_event_id",
            "worker_version",
            b"worker_version",
        ],
    ) -> None: ...

global___ActivityTaskCanceledEventAttributes = ActivityTaskCanceledEventAttributes

class TimerStartedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMER_ID_FIELD_NUMBER: builtins.int
    START_TO_FIRE_TIMEOUT_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    timer_id: builtins.str
    """The worker/user assigned id for this timer"""
    @property
    def start_to_fire_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """How long until this timer fires

        (-- api-linter: core::0140::prepositions=disabled
            aip.dev/not-precedent: "to" is used to indicate interval. --)
        """
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    def __init__(
        self,
        *,
        timer_id: builtins.str = ...,
        start_to_fire_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        workflow_task_completed_event_id: builtins.int = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "start_to_fire_timeout", b"start_to_fire_timeout"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "start_to_fire_timeout",
            b"start_to_fire_timeout",
            "timer_id",
            b"timer_id",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___TimerStartedEventAttributes = TimerStartedEventAttributes

class TimerFiredEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMER_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    timer_id: builtins.str
    """Will match the `timer_id` from `TIMER_STARTED` event for this timer"""
    started_event_id: builtins.int
    """The id of the `TIMER_STARTED` event itself"""
    def __init__(
        self,
        *,
        timer_id: builtins.str = ...,
        started_event_id: builtins.int = ...,
    ) -> None: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "started_event_id", b"started_event_id", "timer_id", b"timer_id"
        ],
    ) -> None: ...

global___TimerFiredEventAttributes = TimerFiredEventAttributes

class TimerCanceledEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMER_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    timer_id: builtins.str
    """Will match the `timer_id` from `TIMER_STARTED` event for this timer"""
    started_event_id: builtins.int
    """The id of the `TIMER_STARTED` event itself"""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    identity: builtins.str
    """The id of the worker who requested this cancel"""
    def __init__(
        self,
        *,
        timer_id: builtins.str = ...,
        started_event_id: builtins.int = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        identity: builtins.str = ...,
    ) -> None: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "identity",
            b"identity",
            "started_event_id",
            b"started_event_id",
            "timer_id",
            b"timer_id",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___TimerCanceledEventAttributes = TimerCanceledEventAttributes

class WorkflowExecutionCancelRequestedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CAUSE_FIELD_NUMBER: builtins.int
    EXTERNAL_INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    EXTERNAL_WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    cause: builtins.str
    """User provided reason for requesting cancellation
    TODO: shall we create a new field with name "reason" and deprecate this one?
    """
    external_initiated_event_id: builtins.int
    """TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?"""
    @property
    def external_workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    identity: builtins.str
    """id of the worker or client who requested this cancel"""
    def __init__(
        self,
        *,
        cause: builtins.str = ...,
        external_initiated_event_id: builtins.int = ...,
        external_workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        identity: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "external_workflow_execution", b"external_workflow_execution"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "cause",
            b"cause",
            "external_initiated_event_id",
            b"external_initiated_event_id",
            "external_workflow_execution",
            b"external_workflow_execution",
            "identity",
            b"identity",
        ],
    ) -> None: ...

global___WorkflowExecutionCancelRequestedEventAttributes = (
    WorkflowExecutionCancelRequestedEventAttributes
)

class WorkflowExecutionCanceledEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    DETAILS_FIELD_NUMBER: builtins.int
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    @property
    def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ...
    def __init__(
        self,
        *,
        workflow_task_completed_event_id: builtins.int = ...,
        details: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["details", b"details"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "details",
            b"details",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___WorkflowExecutionCanceledEventAttributes = (
    WorkflowExecutionCanceledEventAttributes
)

class MarkerRecordedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    class DetailsEntry(google.protobuf.message.Message):
        DESCRIPTOR: google.protobuf.descriptor.Descriptor

        KEY_FIELD_NUMBER: builtins.int
        VALUE_FIELD_NUMBER: builtins.int
        key: builtins.str
        @property
        def value(self) -> temporalio.api.common.v1.message_pb2.Payloads: ...
        def __init__(
            self,
            *,
            key: builtins.str = ...,
            value: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        ) -> None: ...
        def HasField(
            self, field_name: typing_extensions.Literal["value", b"value"]
        ) -> builtins.bool: ...
        def ClearField(
            self,
            field_name: typing_extensions.Literal["key", b"key", "value", b"value"],
        ) -> None: ...

    MARKER_NAME_FIELD_NUMBER: builtins.int
    DETAILS_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    HEADER_FIELD_NUMBER: builtins.int
    FAILURE_FIELD_NUMBER: builtins.int
    marker_name: builtins.str
    """Workers use this to identify the "types" of various markers. Ex: Local activity, side effect."""
    @property
    def details(
        self,
    ) -> google.protobuf.internal.containers.MessageMap[
        builtins.str, temporalio.api.common.v1.message_pb2.Payloads
    ]:
        """Serialized information recorded in the marker"""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    @property
    def header(self) -> temporalio.api.common.v1.message_pb2.Header: ...
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """Some uses of markers, like a local activity, could "fail". If they did that is recorded here."""
    def __init__(
        self,
        *,
        marker_name: builtins.str = ...,
        details: collections.abc.Mapping[
            builtins.str, temporalio.api.common.v1.message_pb2.Payloads
        ]
        | None = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        header: temporalio.api.common.v1.message_pb2.Header | None = ...,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "failure", b"failure", "header", b"header"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "details",
            b"details",
            "failure",
            b"failure",
            "header",
            b"header",
            "marker_name",
            b"marker_name",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___MarkerRecordedEventAttributes = MarkerRecordedEventAttributes

class WorkflowExecutionSignaledEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SIGNAL_NAME_FIELD_NUMBER: builtins.int
    INPUT_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    HEADER_FIELD_NUMBER: builtins.int
    SKIP_GENERATE_WORKFLOW_TASK_FIELD_NUMBER: builtins.int
    EXTERNAL_WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    signal_name: builtins.str
    """The name/type of the signal to fire"""
    @property
    def input(self) -> temporalio.api.common.v1.message_pb2.Payloads:
        """Will be deserialized and provided as argument(s) to the signal handler"""
    identity: builtins.str
    """id of the worker/client who sent this signal"""
    @property
    def header(self) -> temporalio.api.common.v1.message_pb2.Header:
        """Headers that were passed by the sender of the signal and copied by temporal
        server into the workflow task.
        """
    skip_generate_workflow_task: builtins.bool
    """Deprecated. This field is never respected and should always be set to false."""
    @property
    def external_workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution:
        """When signal origin is a workflow execution, this field is set."""
    def __init__(
        self,
        *,
        signal_name: builtins.str = ...,
        input: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        identity: builtins.str = ...,
        header: temporalio.api.common.v1.message_pb2.Header | None = ...,
        skip_generate_workflow_task: builtins.bool = ...,
        external_workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "external_workflow_execution",
            b"external_workflow_execution",
            "header",
            b"header",
            "input",
            b"input",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "external_workflow_execution",
            b"external_workflow_execution",
            "header",
            b"header",
            "identity",
            b"identity",
            "input",
            b"input",
            "signal_name",
            b"signal_name",
            "skip_generate_workflow_task",
            b"skip_generate_workflow_task",
        ],
    ) -> None: ...

global___WorkflowExecutionSignaledEventAttributes = (
    WorkflowExecutionSignaledEventAttributes
)

class WorkflowExecutionTerminatedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    REASON_FIELD_NUMBER: builtins.int
    DETAILS_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    reason: builtins.str
    """User/client provided reason for termination"""
    @property
    def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ...
    identity: builtins.str
    """id of the client who requested termination"""
    def __init__(
        self,
        *,
        reason: builtins.str = ...,
        details: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        identity: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["details", b"details"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "details", b"details", "identity", b"identity", "reason", b"reason"
        ],
    ) -> None: ...

global___WorkflowExecutionTerminatedEventAttributes = (
    WorkflowExecutionTerminatedEventAttributes
)

class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes(
    google.protobuf.message.Message
):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    CONTROL_FIELD_NUMBER: builtins.int
    CHILD_WORKFLOW_ONLY_FIELD_NUMBER: builtins.int
    REASON_FIELD_NUMBER: builtins.int
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    namespace: builtins.str
    """The namespace the workflow to be cancelled lives in.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    control: builtins.str
    """Deprecated."""
    child_workflow_only: builtins.bool
    """Workers are expected to set this to true if the workflow they are requesting to cancel is
    a child of the workflow which issued the request
    """
    reason: builtins.str
    """Reason for requesting the cancellation"""
    def __init__(
        self,
        *,
        workflow_task_completed_event_id: builtins.int = ...,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        control: builtins.str = ...,
        child_workflow_only: builtins.bool = ...,
        reason: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "workflow_execution", b"workflow_execution"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "child_workflow_only",
            b"child_workflow_only",
            "control",
            b"control",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "reason",
            b"reason",
            "workflow_execution",
            b"workflow_execution",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = (
    RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
)

class RequestCancelExternalWorkflowExecutionFailedEventAttributes(
    google.protobuf.message.Message
):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CAUSE_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    CONTROL_FIELD_NUMBER: builtins.int
    cause: temporalio.api.enums.v1.failed_cause_pb2.CancelExternalWorkflowExecutionFailedCause.ValueType
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    namespace: builtins.str
    """Namespace of the workflow which failed to cancel.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    initiated_event_id: builtins.int
    """id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure
    corresponds to
    """
    control: builtins.str
    """Deprecated."""
    def __init__(
        self,
        *,
        cause: temporalio.api.enums.v1.failed_cause_pb2.CancelExternalWorkflowExecutionFailedCause.ValueType = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        initiated_event_id: builtins.int = ...,
        control: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "workflow_execution", b"workflow_execution"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "cause",
            b"cause",
            "control",
            b"control",
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "workflow_execution",
            b"workflow_execution",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___RequestCancelExternalWorkflowExecutionFailedEventAttributes = (
    RequestCancelExternalWorkflowExecutionFailedEventAttributes
)

class ExternalWorkflowExecutionCancelRequestedEventAttributes(
    google.protobuf.message.Message
):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    initiated_event_id: builtins.int
    """id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds
    to
    """
    namespace: builtins.str
    """Namespace of the to-be-cancelled workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    def __init__(
        self,
        *,
        initiated_event_id: builtins.int = ...,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "workflow_execution", b"workflow_execution"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "workflow_execution",
            b"workflow_execution",
        ],
    ) -> None: ...

global___ExternalWorkflowExecutionCancelRequestedEventAttributes = (
    ExternalWorkflowExecutionCancelRequestedEventAttributes
)

class SignalExternalWorkflowExecutionInitiatedEventAttributes(
    google.protobuf.message.Message
):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    SIGNAL_NAME_FIELD_NUMBER: builtins.int
    INPUT_FIELD_NUMBER: builtins.int
    CONTROL_FIELD_NUMBER: builtins.int
    CHILD_WORKFLOW_ONLY_FIELD_NUMBER: builtins.int
    HEADER_FIELD_NUMBER: builtins.int
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    namespace: builtins.str
    """Namespace of the to-be-signalled workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    signal_name: builtins.str
    """name/type of the signal to fire in the external workflow"""
    @property
    def input(self) -> temporalio.api.common.v1.message_pb2.Payloads:
        """Serialized arguments to provide to the signal handler"""
    control: builtins.str
    """Deprecated."""
    child_workflow_only: builtins.bool
    """Workers are expected to set this to true if the workflow they are requesting to cancel is
    a child of the workflow which issued the request
    """
    @property
    def header(self) -> temporalio.api.common.v1.message_pb2.Header: ...
    def __init__(
        self,
        *,
        workflow_task_completed_event_id: builtins.int = ...,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        signal_name: builtins.str = ...,
        input: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        control: builtins.str = ...,
        child_workflow_only: builtins.bool = ...,
        header: temporalio.api.common.v1.message_pb2.Header | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "header",
            b"header",
            "input",
            b"input",
            "workflow_execution",
            b"workflow_execution",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "child_workflow_only",
            b"child_workflow_only",
            "control",
            b"control",
            "header",
            b"header",
            "input",
            b"input",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "signal_name",
            b"signal_name",
            "workflow_execution",
            b"workflow_execution",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___SignalExternalWorkflowExecutionInitiatedEventAttributes = (
    SignalExternalWorkflowExecutionInitiatedEventAttributes
)

class SignalExternalWorkflowExecutionFailedEventAttributes(
    google.protobuf.message.Message
):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CAUSE_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    CONTROL_FIELD_NUMBER: builtins.int
    cause: temporalio.api.enums.v1.failed_cause_pb2.SignalExternalWorkflowExecutionFailedCause.ValueType
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    namespace: builtins.str
    """Namespace of the workflow which failed the signal.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    initiated_event_id: builtins.int
    control: builtins.str
    """Deprecated."""
    def __init__(
        self,
        *,
        cause: temporalio.api.enums.v1.failed_cause_pb2.SignalExternalWorkflowExecutionFailedCause.ValueType = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        initiated_event_id: builtins.int = ...,
        control: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "workflow_execution", b"workflow_execution"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "cause",
            b"cause",
            "control",
            b"control",
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "workflow_execution",
            b"workflow_execution",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___SignalExternalWorkflowExecutionFailedEventAttributes = (
    SignalExternalWorkflowExecutionFailedEventAttributes
)

class ExternalWorkflowExecutionSignaledEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    CONTROL_FIELD_NUMBER: builtins.int
    initiated_event_id: builtins.int
    """id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to"""
    namespace: builtins.str
    """Namespace of the workflow which was signaled.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    control: builtins.str
    """Deprecated."""
    def __init__(
        self,
        *,
        initiated_event_id: builtins.int = ...,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        control: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "workflow_execution", b"workflow_execution"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "control",
            b"control",
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "workflow_execution",
            b"workflow_execution",
        ],
    ) -> None: ...

global___ExternalWorkflowExecutionSignaledEventAttributes = (
    ExternalWorkflowExecutionSignaledEventAttributes
)

class UpsertWorkflowSearchAttributesEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    @property
    def search_attributes(
        self,
    ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ...
    def __init__(
        self,
        *,
        workflow_task_completed_event_id: builtins.int = ...,
        search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "search_attributes", b"search_attributes"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "search_attributes",
            b"search_attributes",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___UpsertWorkflowSearchAttributesEventAttributes = (
    UpsertWorkflowSearchAttributesEventAttributes
)

class WorkflowPropertiesModifiedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    UPSERTED_MEMO_FIELD_NUMBER: builtins.int
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    @property
    def upserted_memo(self) -> temporalio.api.common.v1.message_pb2.Memo:
        """If set, update the workflow memo with the provided values. The values will be merged with
        the existing memo. If the user wants to delete values, a default/empty Payload should be
        used as the value for the key being deleted.
        """
    def __init__(
        self,
        *,
        workflow_task_completed_event_id: builtins.int = ...,
        upserted_memo: temporalio.api.common.v1.message_pb2.Memo | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["upserted_memo", b"upserted_memo"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "upserted_memo",
            b"upserted_memo",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___WorkflowPropertiesModifiedEventAttributes = (
    WorkflowPropertiesModifiedEventAttributes
)

class StartChildWorkflowExecutionInitiatedEventAttributes(
    google.protobuf.message.Message
):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    TASK_QUEUE_FIELD_NUMBER: builtins.int
    INPUT_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_TIMEOUT_FIELD_NUMBER: builtins.int
    WORKFLOW_RUN_TIMEOUT_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_TIMEOUT_FIELD_NUMBER: builtins.int
    PARENT_CLOSE_POLICY_FIELD_NUMBER: builtins.int
    CONTROL_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_ID_REUSE_POLICY_FIELD_NUMBER: builtins.int
    RETRY_POLICY_FIELD_NUMBER: builtins.int
    CRON_SCHEDULE_FIELD_NUMBER: builtins.int
    HEADER_FIELD_NUMBER: builtins.int
    MEMO_FIELD_NUMBER: builtins.int
    SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int
    INHERIT_BUILD_ID_FIELD_NUMBER: builtins.int
    PRIORITY_FIELD_NUMBER: builtins.int
    namespace: builtins.str
    """Namespace of the child workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    workflow_id: builtins.str
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    @property
    def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ...
    @property
    def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: ...
    @property
    def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Total workflow execution timeout including retries and continue as new."""
    @property
    def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Timeout of a single workflow run."""
    @property
    def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Timeout of a single workflow task."""
    parent_close_policy: (
        temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType
    )
    """Default: PARENT_CLOSE_POLICY_TERMINATE."""
    control: builtins.str
    """Deprecated."""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    workflow_id_reuse_policy: (
        temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType
    )
    """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE."""
    @property
    def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: ...
    cron_schedule: builtins.str
    """If this child runs on a cron schedule, it will appear here"""
    @property
    def header(self) -> temporalio.api.common.v1.message_pb2.Header: ...
    @property
    def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: ...
    @property
    def search_attributes(
        self,
    ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ...
    inherit_build_id: builtins.bool
    """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment
    rules of the child's Task Queue will be used to independently assign a Build ID to it.
    Deprecated. Only considered for versioning v0.2.
    """
    @property
    def priority(self) -> temporalio.api.common.v1.message_pb2.Priority:
        """Priority metadata"""
    def __init__(
        self,
        *,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_id: builtins.str = ...,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ...,
        input: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        workflow_execution_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        workflow_run_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        workflow_task_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        parent_close_policy: temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType = ...,
        control: builtins.str = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType = ...,
        retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ...,
        cron_schedule: builtins.str = ...,
        header: temporalio.api.common.v1.message_pb2.Header | None = ...,
        memo: temporalio.api.common.v1.message_pb2.Memo | None = ...,
        search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes
        | None = ...,
        inherit_build_id: builtins.bool = ...,
        priority: temporalio.api.common.v1.message_pb2.Priority | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "header",
            b"header",
            "input",
            b"input",
            "memo",
            b"memo",
            "priority",
            b"priority",
            "retry_policy",
            b"retry_policy",
            "search_attributes",
            b"search_attributes",
            "task_queue",
            b"task_queue",
            "workflow_execution_timeout",
            b"workflow_execution_timeout",
            "workflow_run_timeout",
            b"workflow_run_timeout",
            "workflow_task_timeout",
            b"workflow_task_timeout",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "control",
            b"control",
            "cron_schedule",
            b"cron_schedule",
            "header",
            b"header",
            "inherit_build_id",
            b"inherit_build_id",
            "input",
            b"input",
            "memo",
            b"memo",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "parent_close_policy",
            b"parent_close_policy",
            "priority",
            b"priority",
            "retry_policy",
            b"retry_policy",
            "search_attributes",
            b"search_attributes",
            "task_queue",
            b"task_queue",
            "workflow_execution_timeout",
            b"workflow_execution_timeout",
            "workflow_id",
            b"workflow_id",
            "workflow_id_reuse_policy",
            b"workflow_id_reuse_policy",
            "workflow_run_timeout",
            b"workflow_run_timeout",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
            "workflow_task_timeout",
            b"workflow_task_timeout",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___StartChildWorkflowExecutionInitiatedEventAttributes = (
    StartChildWorkflowExecutionInitiatedEventAttributes
)

class StartChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    CAUSE_FIELD_NUMBER: builtins.int
    CONTROL_FIELD_NUMBER: builtins.int
    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    namespace: builtins.str
    """Namespace of the child workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    workflow_id: builtins.str
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    cause: temporalio.api.enums.v1.failed_cause_pb2.StartChildWorkflowExecutionFailedCause.ValueType
    control: builtins.str
    """Deprecated."""
    initiated_event_id: builtins.int
    """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to"""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with"""
    def __init__(
        self,
        *,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_id: builtins.str = ...,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        cause: temporalio.api.enums.v1.failed_cause_pb2.StartChildWorkflowExecutionFailedCause.ValueType = ...,
        control: builtins.str = ...,
        initiated_event_id: builtins.int = ...,
        workflow_task_completed_event_id: builtins.int = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["workflow_type", b"workflow_type"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "cause",
            b"cause",
            "control",
            b"control",
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "workflow_id",
            b"workflow_id",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___StartChildWorkflowExecutionFailedEventAttributes = (
    StartChildWorkflowExecutionFailedEventAttributes
)

class ChildWorkflowExecutionStartedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    HEADER_FIELD_NUMBER: builtins.int
    namespace: builtins.str
    """Namespace of the child workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    initiated_event_id: builtins.int
    """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to"""
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    @property
    def header(self) -> temporalio.api.common.v1.message_pb2.Header: ...
    def __init__(
        self,
        *,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        initiated_event_id: builtins.int = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        header: temporalio.api.common.v1.message_pb2.Header | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "header",
            b"header",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "header",
            b"header",
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___ChildWorkflowExecutionStartedEventAttributes = (
    ChildWorkflowExecutionStartedEventAttributes
)

class ChildWorkflowExecutionCompletedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESULT_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    @property
    def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: ...
    namespace: builtins.str
    """Namespace of the child workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    initiated_event_id: builtins.int
    """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to"""
    started_event_id: builtins.int
    """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to"""
    def __init__(
        self,
        *,
        result: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        initiated_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "result",
            b"result",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "result",
            b"result",
            "started_event_id",
            b"started_event_id",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___ChildWorkflowExecutionCompletedEventAttributes = (
    ChildWorkflowExecutionCompletedEventAttributes
)

class ChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    FAILURE_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    RETRY_STATE_FIELD_NUMBER: builtins.int
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ...
    namespace: builtins.str
    """Namespace of the child workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    initiated_event_id: builtins.int
    """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to"""
    started_event_id: builtins.int
    """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to"""
    retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType
    def __init__(
        self,
        *,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        initiated_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
        retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "retry_state",
            b"retry_state",
            "started_event_id",
            b"started_event_id",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___ChildWorkflowExecutionFailedEventAttributes = (
    ChildWorkflowExecutionFailedEventAttributes
)

class ChildWorkflowExecutionCanceledEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    DETAILS_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    @property
    def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ...
    namespace: builtins.str
    """Namespace of the child workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    initiated_event_id: builtins.int
    """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to"""
    started_event_id: builtins.int
    """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to"""
    def __init__(
        self,
        *,
        details: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        initiated_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "details",
            b"details",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "details",
            b"details",
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "started_event_id",
            b"started_event_id",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___ChildWorkflowExecutionCanceledEventAttributes = (
    ChildWorkflowExecutionCanceledEventAttributes
)

class ChildWorkflowExecutionTimedOutEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    RETRY_STATE_FIELD_NUMBER: builtins.int
    namespace: builtins.str
    """Namespace of the child workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    initiated_event_id: builtins.int
    """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to"""
    started_event_id: builtins.int
    """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to"""
    retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType
    def __init__(
        self,
        *,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        initiated_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
        retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "retry_state",
            b"retry_state",
            "started_event_id",
            b"started_event_id",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___ChildWorkflowExecutionTimedOutEventAttributes = (
    ChildWorkflowExecutionTimedOutEventAttributes
)

class ChildWorkflowExecutionTerminatedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    NAMESPACE_FIELD_NUMBER: builtins.int
    NAMESPACE_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int
    WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
    INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int
    STARTED_EVENT_ID_FIELD_NUMBER: builtins.int
    namespace: builtins.str
    """Namespace of the child workflow.
    SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
    """
    namespace_id: builtins.str
    @property
    def workflow_execution(
        self,
    ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ...
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
    initiated_event_id: builtins.int
    """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to"""
    started_event_id: builtins.int
    """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to"""
    def __init__(
        self,
        *,
        namespace: builtins.str = ...,
        namespace_id: builtins.str = ...,
        workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution
        | None = ...,
        workflow_type: temporalio.api.common.v1.message_pb2.WorkflowType | None = ...,
        initiated_event_id: builtins.int = ...,
        started_event_id: builtins.int = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "initiated_event_id",
            b"initiated_event_id",
            "namespace",
            b"namespace",
            "namespace_id",
            b"namespace_id",
            "started_event_id",
            b"started_event_id",
            "workflow_execution",
            b"workflow_execution",
            "workflow_type",
            b"workflow_type",
        ],
    ) -> None: ...

global___ChildWorkflowExecutionTerminatedEventAttributes = (
    ChildWorkflowExecutionTerminatedEventAttributes
)

class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int
    UNSET_VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int
    ATTACHED_REQUEST_ID_FIELD_NUMBER: builtins.int
    ATTACHED_COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int
    @property
    def versioning_override(
        self,
    ) -> temporalio.api.workflow.v1.message_pb2.VersioningOverride:
        """Versioning override upserted in this event.
        Ignored if nil or if unset_versioning_override is true.
        """
    unset_versioning_override: builtins.bool
    """Versioning override removed in this event."""
    attached_request_id: builtins.str
    """Request ID attachedto the running workflow execution so that subsequent requests with same
    request ID will be deduped.
    """
    @property
    def attached_completion_callbacks(
        self,
    ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
        temporalio.api.common.v1.message_pb2.Callback
    ]:
        """Completion callbacks attached to the running workflow execution."""
    def __init__(
        self,
        *,
        versioning_override: temporalio.api.workflow.v1.message_pb2.VersioningOverride
        | None = ...,
        unset_versioning_override: builtins.bool = ...,
        attached_request_id: builtins.str = ...,
        attached_completion_callbacks: collections.abc.Iterable[
            temporalio.api.common.v1.message_pb2.Callback
        ]
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "versioning_override", b"versioning_override"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "attached_completion_callbacks",
            b"attached_completion_callbacks",
            "attached_request_id",
            b"attached_request_id",
            "unset_versioning_override",
            b"unset_versioning_override",
            "versioning_override",
            b"versioning_override",
        ],
    ) -> None: ...

global___WorkflowExecutionOptionsUpdatedEventAttributes = (
    WorkflowExecutionOptionsUpdatedEventAttributes
)

class WorkflowPropertiesModifiedExternallyEventAttributes(
    google.protobuf.message.Message
):
    """Not used anywhere. Use case is replaced by WorkflowExecutionOptionsUpdatedEventAttributes"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    NEW_TASK_QUEUE_FIELD_NUMBER: builtins.int
    NEW_WORKFLOW_TASK_TIMEOUT_FIELD_NUMBER: builtins.int
    NEW_WORKFLOW_RUN_TIMEOUT_FIELD_NUMBER: builtins.int
    NEW_WORKFLOW_EXECUTION_TIMEOUT_FIELD_NUMBER: builtins.int
    UPSERTED_MEMO_FIELD_NUMBER: builtins.int
    new_task_queue: builtins.str
    """Not used."""
    @property
    def new_workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Not used."""
    @property
    def new_workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Not used."""
    @property
    def new_workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Not used."""
    @property
    def upserted_memo(self) -> temporalio.api.common.v1.message_pb2.Memo:
        """Not used."""
    def __init__(
        self,
        *,
        new_task_queue: builtins.str = ...,
        new_workflow_task_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        new_workflow_run_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        new_workflow_execution_timeout: google.protobuf.duration_pb2.Duration
        | None = ...,
        upserted_memo: temporalio.api.common.v1.message_pb2.Memo | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "new_workflow_execution_timeout",
            b"new_workflow_execution_timeout",
            "new_workflow_run_timeout",
            b"new_workflow_run_timeout",
            "new_workflow_task_timeout",
            b"new_workflow_task_timeout",
            "upserted_memo",
            b"upserted_memo",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "new_task_queue",
            b"new_task_queue",
            "new_workflow_execution_timeout",
            b"new_workflow_execution_timeout",
            "new_workflow_run_timeout",
            b"new_workflow_run_timeout",
            "new_workflow_task_timeout",
            b"new_workflow_task_timeout",
            "upserted_memo",
            b"upserted_memo",
        ],
    ) -> None: ...

global___WorkflowPropertiesModifiedExternallyEventAttributes = (
    WorkflowPropertiesModifiedExternallyEventAttributes
)

class ActivityPropertiesModifiedExternallyEventAttributes(
    google.protobuf.message.Message
):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    NEW_RETRY_POLICY_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to."""
    @property
    def new_retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy:
        """If set, update the retry policy of the activity, replacing it with the specified one.
        The number of attempts at the activity is preserved.
        """
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        new_retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal["new_retry_policy", b"new_retry_policy"],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "new_retry_policy",
            b"new_retry_policy",
            "scheduled_event_id",
            b"scheduled_event_id",
        ],
    ) -> None: ...

global___ActivityPropertiesModifiedExternallyEventAttributes = (
    ActivityPropertiesModifiedExternallyEventAttributes
)

class WorkflowExecutionUpdateAcceptedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    PROTOCOL_INSTANCE_ID_FIELD_NUMBER: builtins.int
    ACCEPTED_REQUEST_MESSAGE_ID_FIELD_NUMBER: builtins.int
    ACCEPTED_REQUEST_SEQUENCING_EVENT_ID_FIELD_NUMBER: builtins.int
    ACCEPTED_REQUEST_FIELD_NUMBER: builtins.int
    protocol_instance_id: builtins.str
    """The instance ID of the update protocol that generated this event."""
    accepted_request_message_id: builtins.str
    """The message ID of the original request message that initiated this
    update. Needed so that the worker can recreate and deliver that same
    message as part of replay.
    """
    accepted_request_sequencing_event_id: builtins.int
    """The event ID used to sequence the original request message."""
    @property
    def accepted_request(self) -> temporalio.api.update.v1.message_pb2.Request:
        """The message payload of the original request message that initiated this
        update.
        """
    def __init__(
        self,
        *,
        protocol_instance_id: builtins.str = ...,
        accepted_request_message_id: builtins.str = ...,
        accepted_request_sequencing_event_id: builtins.int = ...,
        accepted_request: temporalio.api.update.v1.message_pb2.Request | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal["accepted_request", b"accepted_request"],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "accepted_request",
            b"accepted_request",
            "accepted_request_message_id",
            b"accepted_request_message_id",
            "accepted_request_sequencing_event_id",
            b"accepted_request_sequencing_event_id",
            "protocol_instance_id",
            b"protocol_instance_id",
        ],
    ) -> None: ...

global___WorkflowExecutionUpdateAcceptedEventAttributes = (
    WorkflowExecutionUpdateAcceptedEventAttributes
)

class WorkflowExecutionUpdateCompletedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    META_FIELD_NUMBER: builtins.int
    ACCEPTED_EVENT_ID_FIELD_NUMBER: builtins.int
    OUTCOME_FIELD_NUMBER: builtins.int
    @property
    def meta(self) -> temporalio.api.update.v1.message_pb2.Meta:
        """The metadata about this update."""
    accepted_event_id: builtins.int
    """The event ID indicating the acceptance of this update."""
    @property
    def outcome(self) -> temporalio.api.update.v1.message_pb2.Outcome:
        """The outcome of executing the workflow update function."""
    def __init__(
        self,
        *,
        meta: temporalio.api.update.v1.message_pb2.Meta | None = ...,
        accepted_event_id: builtins.int = ...,
        outcome: temporalio.api.update.v1.message_pb2.Outcome | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal["meta", b"meta", "outcome", b"outcome"],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "accepted_event_id",
            b"accepted_event_id",
            "meta",
            b"meta",
            "outcome",
            b"outcome",
        ],
    ) -> None: ...

global___WorkflowExecutionUpdateCompletedEventAttributes = (
    WorkflowExecutionUpdateCompletedEventAttributes
)

class WorkflowExecutionUpdateRejectedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    PROTOCOL_INSTANCE_ID_FIELD_NUMBER: builtins.int
    REJECTED_REQUEST_MESSAGE_ID_FIELD_NUMBER: builtins.int
    REJECTED_REQUEST_SEQUENCING_EVENT_ID_FIELD_NUMBER: builtins.int
    REJECTED_REQUEST_FIELD_NUMBER: builtins.int
    FAILURE_FIELD_NUMBER: builtins.int
    protocol_instance_id: builtins.str
    """The instance ID of the update protocol that generated this event."""
    rejected_request_message_id: builtins.str
    """The message ID of the original request message that initiated this
    update. Needed so that the worker can recreate and deliver that same
    message as part of replay.
    """
    rejected_request_sequencing_event_id: builtins.int
    """The event ID used to sequence the original request message."""
    @property
    def rejected_request(self) -> temporalio.api.update.v1.message_pb2.Request:
        """The message payload of the original request message that initiated this
        update.
        """
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """The cause of rejection."""
    def __init__(
        self,
        *,
        protocol_instance_id: builtins.str = ...,
        rejected_request_message_id: builtins.str = ...,
        rejected_request_sequencing_event_id: builtins.int = ...,
        rejected_request: temporalio.api.update.v1.message_pb2.Request | None = ...,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "failure", b"failure", "rejected_request", b"rejected_request"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "protocol_instance_id",
            b"protocol_instance_id",
            "rejected_request",
            b"rejected_request",
            "rejected_request_message_id",
            b"rejected_request_message_id",
            "rejected_request_sequencing_event_id",
            b"rejected_request_sequencing_event_id",
        ],
    ) -> None: ...

global___WorkflowExecutionUpdateRejectedEventAttributes = (
    WorkflowExecutionUpdateRejectedEventAttributes
)

class WorkflowExecutionUpdateAdmittedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    REQUEST_FIELD_NUMBER: builtins.int
    ORIGIN_FIELD_NUMBER: builtins.int
    @property
    def request(self) -> temporalio.api.update.v1.message_pb2.Request:
        """The update request associated with this event."""
    origin: temporalio.api.enums.v1.update_pb2.UpdateAdmittedEventOrigin.ValueType
    """An explanation of why this event was written to history."""
    def __init__(
        self,
        *,
        request: temporalio.api.update.v1.message_pb2.Request | None = ...,
        origin: temporalio.api.enums.v1.update_pb2.UpdateAdmittedEventOrigin.ValueType = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["request", b"request"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "origin", b"origin", "request", b"request"
        ],
    ) -> None: ...

global___WorkflowExecutionUpdateAdmittedEventAttributes = (
    WorkflowExecutionUpdateAdmittedEventAttributes
)

class NexusOperationScheduledEventAttributes(google.protobuf.message.Message):
    """Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command."""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    class NexusHeaderEntry(google.protobuf.message.Message):
        DESCRIPTOR: google.protobuf.descriptor.Descriptor

        KEY_FIELD_NUMBER: builtins.int
        VALUE_FIELD_NUMBER: builtins.int
        key: builtins.str
        value: builtins.str
        def __init__(
            self,
            *,
            key: builtins.str = ...,
            value: builtins.str = ...,
        ) -> None: ...
        def ClearField(
            self,
            field_name: typing_extensions.Literal["key", b"key", "value", b"value"],
        ) -> None: ...

    ENDPOINT_FIELD_NUMBER: builtins.int
    SERVICE_FIELD_NUMBER: builtins.int
    OPERATION_FIELD_NUMBER: builtins.int
    INPUT_FIELD_NUMBER: builtins.int
    SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
    NEXUS_HEADER_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    REQUEST_ID_FIELD_NUMBER: builtins.int
    ENDPOINT_ID_FIELD_NUMBER: builtins.int
    endpoint: builtins.str
    """Endpoint name, must exist in the endpoint registry."""
    service: builtins.str
    """Service name."""
    operation: builtins.str
    """Operation name."""
    @property
    def input(self) -> temporalio.api.common.v1.message_pb2.Payload:
        """Input for the operation. The server converts this into Nexus request content and the appropriate content headers
        internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
        content is transformed back to the original Payload stored in this event.
        """
    @property
    def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """Schedule-to-close timeout for this operation.
        Indicates how long the caller is willing to wait for operation completion.
        Calls are retried internally by the server.
        (-- api-linter: core::0140::prepositions=disabled
            aip.dev/not-precedent: "to" is used to indicate interval. --)
        """
    @property
    def nexus_header(
        self,
    ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
        """Header to attach to the Nexus request. Note these headers are not the same as Temporal headers on internal
        activities and child workflows, these are transmitted to Nexus operations that may be external and are not
        traditional payloads.
        """
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event that the corresponding ScheduleNexusOperation command was reported with."""
    request_id: builtins.str
    """A unique ID generated by the history service upon creation of this event.
    The ID will be transmitted with all nexus StartOperation requests and is used as an idempotentency key.
    """
    endpoint_id: builtins.str
    """Endpoint ID as resolved in the endpoint registry at the time this event was generated.
    This is stored on the event and used internally by the server in case the endpoint is renamed from the time the
    event was originally scheduled.
    """
    def __init__(
        self,
        *,
        endpoint: builtins.str = ...,
        service: builtins.str = ...,
        operation: builtins.str = ...,
        input: temporalio.api.common.v1.message_pb2.Payload | None = ...,
        schedule_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
        nexus_header: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        request_id: builtins.str = ...,
        endpoint_id: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "input", b"input", "schedule_to_close_timeout", b"schedule_to_close_timeout"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "endpoint",
            b"endpoint",
            "endpoint_id",
            b"endpoint_id",
            "input",
            b"input",
            "nexus_header",
            b"nexus_header",
            "operation",
            b"operation",
            "request_id",
            b"request_id",
            "schedule_to_close_timeout",
            b"schedule_to_close_timeout",
            "service",
            b"service",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___NexusOperationScheduledEventAttributes = NexusOperationScheduledEventAttributes

class NexusOperationStartedEventAttributes(google.protobuf.message.Message):
    """Event marking an asynchronous operation was started by the responding Nexus handler.
    If the operation completes synchronously, this event is not generated.
    In rare situations, such as request timeouts, the service may fail to record the actual start time and will fabricate
    this event upon receiving the operation completion via callback.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    OPERATION_ID_FIELD_NUMBER: builtins.int
    REQUEST_ID_FIELD_NUMBER: builtins.int
    OPERATION_TOKEN_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to."""
    operation_id: builtins.str
    """The operation ID returned by the Nexus handler in the response to the StartOperation request.
    This ID is used when canceling the operation.

    Deprecated: Renamed to operation_token.
    """
    request_id: builtins.str
    """The request ID allocated at schedule time."""
    operation_token: builtins.str
    """The operation token returned by the Nexus handler in the response to the StartOperation request.
    This token is used when canceling the operation.
    """
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        operation_id: builtins.str = ...,
        request_id: builtins.str = ...,
        operation_token: builtins.str = ...,
    ) -> None: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "operation_id",
            b"operation_id",
            "operation_token",
            b"operation_token",
            "request_id",
            b"request_id",
            "scheduled_event_id",
            b"scheduled_event_id",
        ],
    ) -> None: ...

global___NexusOperationStartedEventAttributes = NexusOperationStartedEventAttributes

class NexusOperationCompletedEventAttributes(google.protobuf.message.Message):
    """Nexus operation completed successfully."""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    RESULT_FIELD_NUMBER: builtins.int
    REQUEST_ID_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation."""
    @property
    def result(self) -> temporalio.api.common.v1.message_pb2.Payload:
        """Serialized result of the Nexus operation. The response of the Nexus handler.
        Delivered either via a completion callback or as a response to a synchronous operation.
        """
    request_id: builtins.str
    """The request ID allocated at schedule time."""
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        result: temporalio.api.common.v1.message_pb2.Payload | None = ...,
        request_id: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["result", b"result"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "request_id",
            b"request_id",
            "result",
            b"result",
            "scheduled_event_id",
            b"scheduled_event_id",
        ],
    ) -> None: ...

global___NexusOperationCompletedEventAttributes = NexusOperationCompletedEventAttributes

class NexusOperationFailedEventAttributes(google.protobuf.message.Message):
    """Nexus operation failed."""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    FAILURE_FIELD_NUMBER: builtins.int
    REQUEST_ID_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation."""
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """Failure details. A NexusOperationFailureInfo wrapping an ApplicationFailureInfo."""
    request_id: builtins.str
    """The request ID allocated at schedule time."""
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        request_id: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["failure", b"failure"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "request_id",
            b"request_id",
            "scheduled_event_id",
            b"scheduled_event_id",
        ],
    ) -> None: ...

global___NexusOperationFailedEventAttributes = NexusOperationFailedEventAttributes

class NexusOperationTimedOutEventAttributes(google.protobuf.message.Message):
    """Nexus operation timed out."""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    FAILURE_FIELD_NUMBER: builtins.int
    REQUEST_ID_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation."""
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo."""
    request_id: builtins.str
    """The request ID allocated at schedule time."""
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        request_id: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["failure", b"failure"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "request_id",
            b"request_id",
            "scheduled_event_id",
            b"scheduled_event_id",
        ],
    ) -> None: ...

global___NexusOperationTimedOutEventAttributes = NexusOperationTimedOutEventAttributes

class NexusOperationCanceledEventAttributes(google.protobuf.message.Message):
    """Nexus operation completed as canceled. May or may not have been due to a cancellation request by the workflow."""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    FAILURE_FIELD_NUMBER: builtins.int
    REQUEST_ID_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation."""
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """Cancellation details."""
    request_id: builtins.str
    """The request ID allocated at schedule time."""
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        request_id: builtins.str = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["failure", b"failure"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "request_id",
            b"request_id",
            "scheduled_event_id",
            b"scheduled_event_id",
        ],
    ) -> None: ...

global___NexusOperationCanceledEventAttributes = NexusOperationCanceledEventAttributes

class NexusOperationCancelRequestedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    scheduled_event_id: builtins.int
    """The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to."""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported
    with.
    """
    def __init__(
        self,
        *,
        scheduled_event_id: builtins.int = ...,
        workflow_task_completed_event_id: builtins.int = ...,
    ) -> None: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "scheduled_event_id",
            b"scheduled_event_id",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___NexusOperationCancelRequestedEventAttributes = (
    NexusOperationCancelRequestedEventAttributes
)

class NexusOperationCancelRequestCompletedEventAttributes(
    google.protobuf.message.Message
):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    REQUESTED_EVENT_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    requested_event_id: builtins.int
    """The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event."""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported
    with.
    """
    scheduled_event_id: builtins.int
    """The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to."""
    def __init__(
        self,
        *,
        requested_event_id: builtins.int = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        scheduled_event_id: builtins.int = ...,
    ) -> None: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "requested_event_id",
            b"requested_event_id",
            "scheduled_event_id",
            b"scheduled_event_id",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___NexusOperationCancelRequestCompletedEventAttributes = (
    NexusOperationCancelRequestCompletedEventAttributes
)

class NexusOperationCancelRequestFailedEventAttributes(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    REQUESTED_EVENT_ID_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
    FAILURE_FIELD_NUMBER: builtins.int
    SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int
    requested_event_id: builtins.int
    """The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event."""
    workflow_task_completed_event_id: builtins.int
    """The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported
    with.
    """
    @property
    def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
        """Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo."""
    scheduled_event_id: builtins.int
    """The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to."""
    def __init__(
        self,
        *,
        requested_event_id: builtins.int = ...,
        workflow_task_completed_event_id: builtins.int = ...,
        failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
        scheduled_event_id: builtins.int = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["failure", b"failure"]
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "failure",
            b"failure",
            "requested_event_id",
            b"requested_event_id",
            "scheduled_event_id",
            b"scheduled_event_id",
            "workflow_task_completed_event_id",
            b"workflow_task_completed_event_id",
        ],
    ) -> None: ...

global___NexusOperationCancelRequestFailedEventAttributes = (
    NexusOperationCancelRequestFailedEventAttributes
)

class HistoryEvent(google.protobuf.message.Message):
    """History events are the method by which Temporal SDKs advance (or recreate) workflow state.
    See the `EventType` enum for more info about what each event is for.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    EVENT_ID_FIELD_NUMBER: builtins.int
    EVENT_TIME_FIELD_NUMBER: builtins.int
    EVENT_TYPE_FIELD_NUMBER: builtins.int
    VERSION_FIELD_NUMBER: builtins.int
    TASK_ID_FIELD_NUMBER: builtins.int
    WORKER_MAY_IGNORE_FIELD_NUMBER: builtins.int
    USER_METADATA_FIELD_NUMBER: builtins.int
    LINKS_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_STARTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_COMPLETED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_TIMED_OUT_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_SCHEDULED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_STARTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_COMPLETED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_TIMED_OUT_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_TASK_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    ACTIVITY_TASK_SCHEDULED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    ACTIVITY_TASK_STARTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    ACTIVITY_TASK_COMPLETED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    ACTIVITY_TASK_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    ACTIVITY_TASK_TIMED_OUT_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    TIMER_STARTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    TIMER_FIRED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    ACTIVITY_TASK_CANCEL_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    ACTIVITY_TASK_CANCELED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    TIMER_CANCELED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    MARKER_RECORDED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_SIGNALED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_TERMINATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_CANCEL_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_CANCELED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: (
        builtins.int
    )
    EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: (
        builtins.int
    )
    WORKFLOW_EXECUTION_CONTINUED_AS_NEW_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    START_CHILD_WORKFLOW_EXECUTION_INITIATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    START_CHILD_WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    CHILD_WORKFLOW_EXECUTION_STARTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    CHILD_WORKFLOW_EXECUTION_COMPLETED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    CHILD_WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    CHILD_WORKFLOW_EXECUTION_CANCELED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    CHILD_WORKFLOW_EXECUTION_TIMED_OUT_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    CHILD_WORKFLOW_EXECUTION_TERMINATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED_EVENT_ATTRIBUTES_FIELD_NUMBER: (
        builtins.int
    )
    SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: (
        builtins.int
    )
    EXTERNAL_WORKFLOW_EXECUTION_SIGNALED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    UPSERT_WORKFLOW_SEARCH_ATTRIBUTES_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_UPDATE_ACCEPTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_UPDATE_REJECTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_UPDATE_COMPLETED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_PROPERTIES_MODIFIED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_UPDATE_ADMITTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    NEXUS_OPERATION_SCHEDULED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    NEXUS_OPERATION_STARTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    NEXUS_OPERATION_COMPLETED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    NEXUS_OPERATION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    NEXUS_OPERATION_CANCELED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    NEXUS_OPERATION_TIMED_OUT_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    NEXUS_OPERATION_CANCEL_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    WORKFLOW_EXECUTION_OPTIONS_UPDATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    NEXUS_OPERATION_CANCEL_REQUEST_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int
    event_id: builtins.int
    """Monotonically increasing event number, starts at 1."""
    @property
    def event_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
    event_type: temporalio.api.enums.v1.event_type_pb2.EventType.ValueType
    version: builtins.int
    """TODO: What is this? Appears unused by SDKs"""
    task_id: builtins.int
    """TODO: What is this? Appears unused by SDKs"""
    worker_may_ignore: builtins.bool
    """Set to true when the SDK may ignore the event as it does not impact workflow state or
    information in any way that the SDK need be concerned with. If an SDK encounters an event
    type which it does not understand, it must error unless this is true. If it is true, it's
    acceptable for the event type and/or attributes to be uninterpretable.
    """
    @property
    def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata:
        """Metadata on the event. This is often carried over from commands and client calls. Most events
        won't have this information, and how this information is used is dependent upon the interface
        that reads it.

        Current well-known uses:
         * workflow_execution_started_event_attributes - summary and details from start workflow.
         * timer_started_event_attributes - summary represents an identifier for the timer for use by
           user interfaces.
        """
    @property
    def links(
        self,
    ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
        temporalio.api.common.v1.message_pb2.Link
    ]:
        """Links associated with the event."""
    @property
    def workflow_execution_started_event_attributes(
        self,
    ) -> global___WorkflowExecutionStartedEventAttributes: ...
    @property
    def workflow_execution_completed_event_attributes(
        self,
    ) -> global___WorkflowExecutionCompletedEventAttributes: ...
    @property
    def workflow_execution_failed_event_attributes(
        self,
    ) -> global___WorkflowExecutionFailedEventAttributes: ...
    @property
    def workflow_execution_timed_out_event_attributes(
        self,
    ) -> global___WorkflowExecutionTimedOutEventAttributes: ...
    @property
    def workflow_task_scheduled_event_attributes(
        self,
    ) -> global___WorkflowTaskScheduledEventAttributes: ...
    @property
    def workflow_task_started_event_attributes(
        self,
    ) -> global___WorkflowTaskStartedEventAttributes: ...
    @property
    def workflow_task_completed_event_attributes(
        self,
    ) -> global___WorkflowTaskCompletedEventAttributes: ...
    @property
    def workflow_task_timed_out_event_attributes(
        self,
    ) -> global___WorkflowTaskTimedOutEventAttributes: ...
    @property
    def workflow_task_failed_event_attributes(
        self,
    ) -> global___WorkflowTaskFailedEventAttributes: ...
    @property
    def activity_task_scheduled_event_attributes(
        self,
    ) -> global___ActivityTaskScheduledEventAttributes: ...
    @property
    def activity_task_started_event_attributes(
        self,
    ) -> global___ActivityTaskStartedEventAttributes: ...
    @property
    def activity_task_completed_event_attributes(
        self,
    ) -> global___ActivityTaskCompletedEventAttributes: ...
    @property
    def activity_task_failed_event_attributes(
        self,
    ) -> global___ActivityTaskFailedEventAttributes: ...
    @property
    def activity_task_timed_out_event_attributes(
        self,
    ) -> global___ActivityTaskTimedOutEventAttributes: ...
    @property
    def timer_started_event_attributes(
        self,
    ) -> global___TimerStartedEventAttributes: ...
    @property
    def timer_fired_event_attributes(self) -> global___TimerFiredEventAttributes: ...
    @property
    def activity_task_cancel_requested_event_attributes(
        self,
    ) -> global___ActivityTaskCancelRequestedEventAttributes: ...
    @property
    def activity_task_canceled_event_attributes(
        self,
    ) -> global___ActivityTaskCanceledEventAttributes: ...
    @property
    def timer_canceled_event_attributes(
        self,
    ) -> global___TimerCanceledEventAttributes: ...
    @property
    def marker_recorded_event_attributes(
        self,
    ) -> global___MarkerRecordedEventAttributes: ...
    @property
    def workflow_execution_signaled_event_attributes(
        self,
    ) -> global___WorkflowExecutionSignaledEventAttributes: ...
    @property
    def workflow_execution_terminated_event_attributes(
        self,
    ) -> global___WorkflowExecutionTerminatedEventAttributes: ...
    @property
    def workflow_execution_cancel_requested_event_attributes(
        self,
    ) -> global___WorkflowExecutionCancelRequestedEventAttributes: ...
    @property
    def workflow_execution_canceled_event_attributes(
        self,
    ) -> global___WorkflowExecutionCanceledEventAttributes: ...
    @property
    def request_cancel_external_workflow_execution_initiated_event_attributes(
        self,
    ) -> global___RequestCancelExternalWorkflowExecutionInitiatedEventAttributes: ...
    @property
    def request_cancel_external_workflow_execution_failed_event_attributes(
        self,
    ) -> global___RequestCancelExternalWorkflowExecutionFailedEventAttributes: ...
    @property
    def external_workflow_execution_cancel_requested_event_attributes(
        self,
    ) -> global___ExternalWorkflowExecutionCancelRequestedEventAttributes: ...
    @property
    def workflow_execution_continued_as_new_event_attributes(
        self,
    ) -> global___WorkflowExecutionContinuedAsNewEventAttributes: ...
    @property
    def start_child_workflow_execution_initiated_event_attributes(
        self,
    ) -> global___StartChildWorkflowExecutionInitiatedEventAttributes: ...
    @property
    def start_child_workflow_execution_failed_event_attributes(
        self,
    ) -> global___StartChildWorkflowExecutionFailedEventAttributes: ...
    @property
    def child_workflow_execution_started_event_attributes(
        self,
    ) -> global___ChildWorkflowExecutionStartedEventAttributes: ...
    @property
    def child_workflow_execution_completed_event_attributes(
        self,
    ) -> global___ChildWorkflowExecutionCompletedEventAttributes: ...
    @property
    def child_workflow_execution_failed_event_attributes(
        self,
    ) -> global___ChildWorkflowExecutionFailedEventAttributes: ...
    @property
    def child_workflow_execution_canceled_event_attributes(
        self,
    ) -> global___ChildWorkflowExecutionCanceledEventAttributes: ...
    @property
    def child_workflow_execution_timed_out_event_attributes(
        self,
    ) -> global___ChildWorkflowExecutionTimedOutEventAttributes: ...
    @property
    def child_workflow_execution_terminated_event_attributes(
        self,
    ) -> global___ChildWorkflowExecutionTerminatedEventAttributes: ...
    @property
    def signal_external_workflow_execution_initiated_event_attributes(
        self,
    ) -> global___SignalExternalWorkflowExecutionInitiatedEventAttributes: ...
    @property
    def signal_external_workflow_execution_failed_event_attributes(
        self,
    ) -> global___SignalExternalWorkflowExecutionFailedEventAttributes: ...
    @property
    def external_workflow_execution_signaled_event_attributes(
        self,
    ) -> global___ExternalWorkflowExecutionSignaledEventAttributes: ...
    @property
    def upsert_workflow_search_attributes_event_attributes(
        self,
    ) -> global___UpsertWorkflowSearchAttributesEventAttributes: ...
    @property
    def workflow_execution_update_accepted_event_attributes(
        self,
    ) -> global___WorkflowExecutionUpdateAcceptedEventAttributes: ...
    @property
    def workflow_execution_update_rejected_event_attributes(
        self,
    ) -> global___WorkflowExecutionUpdateRejectedEventAttributes: ...
    @property
    def workflow_execution_update_completed_event_attributes(
        self,
    ) -> global___WorkflowExecutionUpdateCompletedEventAttributes: ...
    @property
    def workflow_properties_modified_externally_event_attributes(
        self,
    ) -> global___WorkflowPropertiesModifiedExternallyEventAttributes: ...
    @property
    def activity_properties_modified_externally_event_attributes(
        self,
    ) -> global___ActivityPropertiesModifiedExternallyEventAttributes: ...
    @property
    def workflow_properties_modified_event_attributes(
        self,
    ) -> global___WorkflowPropertiesModifiedEventAttributes: ...
    @property
    def workflow_execution_update_admitted_event_attributes(
        self,
    ) -> global___WorkflowExecutionUpdateAdmittedEventAttributes: ...
    @property
    def nexus_operation_scheduled_event_attributes(
        self,
    ) -> global___NexusOperationScheduledEventAttributes: ...
    @property
    def nexus_operation_started_event_attributes(
        self,
    ) -> global___NexusOperationStartedEventAttributes: ...
    @property
    def nexus_operation_completed_event_attributes(
        self,
    ) -> global___NexusOperationCompletedEventAttributes: ...
    @property
    def nexus_operation_failed_event_attributes(
        self,
    ) -> global___NexusOperationFailedEventAttributes: ...
    @property
    def nexus_operation_canceled_event_attributes(
        self,
    ) -> global___NexusOperationCanceledEventAttributes: ...
    @property
    def nexus_operation_timed_out_event_attributes(
        self,
    ) -> global___NexusOperationTimedOutEventAttributes: ...
    @property
    def nexus_operation_cancel_requested_event_attributes(
        self,
    ) -> global___NexusOperationCancelRequestedEventAttributes: ...
    @property
    def workflow_execution_options_updated_event_attributes(
        self,
    ) -> global___WorkflowExecutionOptionsUpdatedEventAttributes: ...
    @property
    def nexus_operation_cancel_request_completed_event_attributes(
        self,
    ) -> global___NexusOperationCancelRequestCompletedEventAttributes: ...
    @property
    def nexus_operation_cancel_request_failed_event_attributes(
        self,
    ) -> global___NexusOperationCancelRequestFailedEventAttributes: ...
    def __init__(
        self,
        *,
        event_id: builtins.int = ...,
        event_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
        event_type: temporalio.api.enums.v1.event_type_pb2.EventType.ValueType = ...,
        version: builtins.int = ...,
        task_id: builtins.int = ...,
        worker_may_ignore: builtins.bool = ...,
        user_metadata: temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata
        | None = ...,
        links: collections.abc.Iterable[temporalio.api.common.v1.message_pb2.Link]
        | None = ...,
        workflow_execution_started_event_attributes: global___WorkflowExecutionStartedEventAttributes
        | None = ...,
        workflow_execution_completed_event_attributes: global___WorkflowExecutionCompletedEventAttributes
        | None = ...,
        workflow_execution_failed_event_attributes: global___WorkflowExecutionFailedEventAttributes
        | None = ...,
        workflow_execution_timed_out_event_attributes: global___WorkflowExecutionTimedOutEventAttributes
        | None = ...,
        workflow_task_scheduled_event_attributes: global___WorkflowTaskScheduledEventAttributes
        | None = ...,
        workflow_task_started_event_attributes: global___WorkflowTaskStartedEventAttributes
        | None = ...,
        workflow_task_completed_event_attributes: global___WorkflowTaskCompletedEventAttributes
        | None = ...,
        workflow_task_timed_out_event_attributes: global___WorkflowTaskTimedOutEventAttributes
        | None = ...,
        workflow_task_failed_event_attributes: global___WorkflowTaskFailedEventAttributes
        | None = ...,
        activity_task_scheduled_event_attributes: global___ActivityTaskScheduledEventAttributes
        | None = ...,
        activity_task_started_event_attributes: global___ActivityTaskStartedEventAttributes
        | None = ...,
        activity_task_completed_event_attributes: global___ActivityTaskCompletedEventAttributes
        | None = ...,
        activity_task_failed_event_attributes: global___ActivityTaskFailedEventAttributes
        | None = ...,
        activity_task_timed_out_event_attributes: global___ActivityTaskTimedOutEventAttributes
        | None = ...,
        timer_started_event_attributes: global___TimerStartedEventAttributes
        | None = ...,
        timer_fired_event_attributes: global___TimerFiredEventAttributes | None = ...,
        activity_task_cancel_requested_event_attributes: global___ActivityTaskCancelRequestedEventAttributes
        | None = ...,
        activity_task_canceled_event_attributes: global___ActivityTaskCanceledEventAttributes
        | None = ...,
        timer_canceled_event_attributes: global___TimerCanceledEventAttributes
        | None = ...,
        marker_recorded_event_attributes: global___MarkerRecordedEventAttributes
        | None = ...,
        workflow_execution_signaled_event_attributes: global___WorkflowExecutionSignaledEventAttributes
        | None = ...,
        workflow_execution_terminated_event_attributes: global___WorkflowExecutionTerminatedEventAttributes
        | None = ...,
        workflow_execution_cancel_requested_event_attributes: global___WorkflowExecutionCancelRequestedEventAttributes
        | None = ...,
        workflow_execution_canceled_event_attributes: global___WorkflowExecutionCanceledEventAttributes
        | None = ...,
        request_cancel_external_workflow_execution_initiated_event_attributes: global___RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
        | None = ...,
        request_cancel_external_workflow_execution_failed_event_attributes: global___RequestCancelExternalWorkflowExecutionFailedEventAttributes
        | None = ...,
        external_workflow_execution_cancel_requested_event_attributes: global___ExternalWorkflowExecutionCancelRequestedEventAttributes
        | None = ...,
        workflow_execution_continued_as_new_event_attributes: global___WorkflowExecutionContinuedAsNewEventAttributes
        | None = ...,
        start_child_workflow_execution_initiated_event_attributes: global___StartChildWorkflowExecutionInitiatedEventAttributes
        | None = ...,
        start_child_workflow_execution_failed_event_attributes: global___StartChildWorkflowExecutionFailedEventAttributes
        | None = ...,
        child_workflow_execution_started_event_attributes: global___ChildWorkflowExecutionStartedEventAttributes
        | None = ...,
        child_workflow_execution_completed_event_attributes: global___ChildWorkflowExecutionCompletedEventAttributes
        | None = ...,
        child_workflow_execution_failed_event_attributes: global___ChildWorkflowExecutionFailedEventAttributes
        | None = ...,
        child_workflow_execution_canceled_event_attributes: global___ChildWorkflowExecutionCanceledEventAttributes
        | None = ...,
        child_workflow_execution_timed_out_event_attributes: global___ChildWorkflowExecutionTimedOutEventAttributes
        | None = ...,
        child_workflow_execution_terminated_event_attributes: global___ChildWorkflowExecutionTerminatedEventAttributes
        | None = ...,
        signal_external_workflow_execution_initiated_event_attributes: global___SignalExternalWorkflowExecutionInitiatedEventAttributes
        | None = ...,
        signal_external_workflow_execution_failed_event_attributes: global___SignalExternalWorkflowExecutionFailedEventAttributes
        | None = ...,
        external_workflow_execution_signaled_event_attributes: global___ExternalWorkflowExecutionSignaledEventAttributes
        | None = ...,
        upsert_workflow_search_attributes_event_attributes: global___UpsertWorkflowSearchAttributesEventAttributes
        | None = ...,
        workflow_execution_update_accepted_event_attributes: global___WorkflowExecutionUpdateAcceptedEventAttributes
        | None = ...,
        workflow_execution_update_rejected_event_attributes: global___WorkflowExecutionUpdateRejectedEventAttributes
        | None = ...,
        workflow_execution_update_completed_event_attributes: global___WorkflowExecutionUpdateCompletedEventAttributes
        | None = ...,
        workflow_properties_modified_externally_event_attributes: global___WorkflowPropertiesModifiedExternallyEventAttributes
        | None = ...,
        activity_properties_modified_externally_event_attributes: global___ActivityPropertiesModifiedExternallyEventAttributes
        | None = ...,
        workflow_properties_modified_event_attributes: global___WorkflowPropertiesModifiedEventAttributes
        | None = ...,
        workflow_execution_update_admitted_event_attributes: global___WorkflowExecutionUpdateAdmittedEventAttributes
        | None = ...,
        nexus_operation_scheduled_event_attributes: global___NexusOperationScheduledEventAttributes
        | None = ...,
        nexus_operation_started_event_attributes: global___NexusOperationStartedEventAttributes
        | None = ...,
        nexus_operation_completed_event_attributes: global___NexusOperationCompletedEventAttributes
        | None = ...,
        nexus_operation_failed_event_attributes: global___NexusOperationFailedEventAttributes
        | None = ...,
        nexus_operation_canceled_event_attributes: global___NexusOperationCanceledEventAttributes
        | None = ...,
        nexus_operation_timed_out_event_attributes: global___NexusOperationTimedOutEventAttributes
        | None = ...,
        nexus_operation_cancel_requested_event_attributes: global___NexusOperationCancelRequestedEventAttributes
        | None = ...,
        workflow_execution_options_updated_event_attributes: global___WorkflowExecutionOptionsUpdatedEventAttributes
        | None = ...,
        nexus_operation_cancel_request_completed_event_attributes: global___NexusOperationCancelRequestCompletedEventAttributes
        | None = ...,
        nexus_operation_cancel_request_failed_event_attributes: global___NexusOperationCancelRequestFailedEventAttributes
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "activity_properties_modified_externally_event_attributes",
            b"activity_properties_modified_externally_event_attributes",
            "activity_task_cancel_requested_event_attributes",
            b"activity_task_cancel_requested_event_attributes",
            "activity_task_canceled_event_attributes",
            b"activity_task_canceled_event_attributes",
            "activity_task_completed_event_attributes",
            b"activity_task_completed_event_attributes",
            "activity_task_failed_event_attributes",
            b"activity_task_failed_event_attributes",
            "activity_task_scheduled_event_attributes",
            b"activity_task_scheduled_event_attributes",
            "activity_task_started_event_attributes",
            b"activity_task_started_event_attributes",
            "activity_task_timed_out_event_attributes",
            b"activity_task_timed_out_event_attributes",
            "attributes",
            b"attributes",
            "child_workflow_execution_canceled_event_attributes",
            b"child_workflow_execution_canceled_event_attributes",
            "child_workflow_execution_completed_event_attributes",
            b"child_workflow_execution_completed_event_attributes",
            "child_workflow_execution_failed_event_attributes",
            b"child_workflow_execution_failed_event_attributes",
            "child_workflow_execution_started_event_attributes",
            b"child_workflow_execution_started_event_attributes",
            "child_workflow_execution_terminated_event_attributes",
            b"child_workflow_execution_terminated_event_attributes",
            "child_workflow_execution_timed_out_event_attributes",
            b"child_workflow_execution_timed_out_event_attributes",
            "event_time",
            b"event_time",
            "external_workflow_execution_cancel_requested_event_attributes",
            b"external_workflow_execution_cancel_requested_event_attributes",
            "external_workflow_execution_signaled_event_attributes",
            b"external_workflow_execution_signaled_event_attributes",
            "marker_recorded_event_attributes",
            b"marker_recorded_event_attributes",
            "nexus_operation_cancel_request_completed_event_attributes",
            b"nexus_operation_cancel_request_completed_event_attributes",
            "nexus_operation_cancel_request_failed_event_attributes",
            b"nexus_operation_cancel_request_failed_event_attributes",
            "nexus_operation_cancel_requested_event_attributes",
            b"nexus_operation_cancel_requested_event_attributes",
            "nexus_operation_canceled_event_attributes",
            b"nexus_operation_canceled_event_attributes",
            "nexus_operation_completed_event_attributes",
            b"nexus_operation_completed_event_attributes",
            "nexus_operation_failed_event_attributes",
            b"nexus_operation_failed_event_attributes",
            "nexus_operation_scheduled_event_attributes",
            b"nexus_operation_scheduled_event_attributes",
            "nexus_operation_started_event_attributes",
            b"nexus_operation_started_event_attributes",
            "nexus_operation_timed_out_event_attributes",
            b"nexus_operation_timed_out_event_attributes",
            "request_cancel_external_workflow_execution_failed_event_attributes",
            b"request_cancel_external_workflow_execution_failed_event_attributes",
            "request_cancel_external_workflow_execution_initiated_event_attributes",
            b"request_cancel_external_workflow_execution_initiated_event_attributes",
            "signal_external_workflow_execution_failed_event_attributes",
            b"signal_external_workflow_execution_failed_event_attributes",
            "signal_external_workflow_execution_initiated_event_attributes",
            b"signal_external_workflow_execution_initiated_event_attributes",
            "start_child_workflow_execution_failed_event_attributes",
            b"start_child_workflow_execution_failed_event_attributes",
            "start_child_workflow_execution_initiated_event_attributes",
            b"start_child_workflow_execution_initiated_event_attributes",
            "timer_canceled_event_attributes",
            b"timer_canceled_event_attributes",
            "timer_fired_event_attributes",
            b"timer_fired_event_attributes",
            "timer_started_event_attributes",
            b"timer_started_event_attributes",
            "upsert_workflow_search_attributes_event_attributes",
            b"upsert_workflow_search_attributes_event_attributes",
            "user_metadata",
            b"user_metadata",
            "workflow_execution_cancel_requested_event_attributes",
            b"workflow_execution_cancel_requested_event_attributes",
            "workflow_execution_canceled_event_attributes",
            b"workflow_execution_canceled_event_attributes",
            "workflow_execution_completed_event_attributes",
            b"workflow_execution_completed_event_attributes",
            "workflow_execution_continued_as_new_event_attributes",
            b"workflow_execution_continued_as_new_event_attributes",
            "workflow_execution_failed_event_attributes",
            b"workflow_execution_failed_event_attributes",
            "workflow_execution_options_updated_event_attributes",
            b"workflow_execution_options_updated_event_attributes",
            "workflow_execution_signaled_event_attributes",
            b"workflow_execution_signaled_event_attributes",
            "workflow_execution_started_event_attributes",
            b"workflow_execution_started_event_attributes",
            "workflow_execution_terminated_event_attributes",
            b"workflow_execution_terminated_event_attributes",
            "workflow_execution_timed_out_event_attributes",
            b"workflow_execution_timed_out_event_attributes",
            "workflow_execution_update_accepted_event_attributes",
            b"workflow_execution_update_accepted_event_attributes",
            "workflow_execution_update_admitted_event_attributes",
            b"workflow_execution_update_admitted_event_attributes",
            "workflow_execution_update_completed_event_attributes",
            b"workflow_execution_update_completed_event_attributes",
            "workflow_execution_update_rejected_event_attributes",
            b"workflow_execution_update_rejected_event_attributes",
            "workflow_properties_modified_event_attributes",
            b"workflow_properties_modified_event_attributes",
            "workflow_properties_modified_externally_event_attributes",
            b"workflow_properties_modified_externally_event_attributes",
            "workflow_task_completed_event_attributes",
            b"workflow_task_completed_event_attributes",
            "workflow_task_failed_event_attributes",
            b"workflow_task_failed_event_attributes",
            "workflow_task_scheduled_event_attributes",
            b"workflow_task_scheduled_event_attributes",
            "workflow_task_started_event_attributes",
            b"workflow_task_started_event_attributes",
            "workflow_task_timed_out_event_attributes",
            b"workflow_task_timed_out_event_attributes",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "activity_properties_modified_externally_event_attributes",
            b"activity_properties_modified_externally_event_attributes",
            "activity_task_cancel_requested_event_attributes",
            b"activity_task_cancel_requested_event_attributes",
            "activity_task_canceled_event_attributes",
            b"activity_task_canceled_event_attributes",
            "activity_task_completed_event_attributes",
            b"activity_task_completed_event_attributes",
            "activity_task_failed_event_attributes",
            b"activity_task_failed_event_attributes",
            "activity_task_scheduled_event_attributes",
            b"activity_task_scheduled_event_attributes",
            "activity_task_started_event_attributes",
            b"activity_task_started_event_attributes",
            "activity_task_timed_out_event_attributes",
            b"activity_task_timed_out_event_attributes",
            "attributes",
            b"attributes",
            "child_workflow_execution_canceled_event_attributes",
            b"child_workflow_execution_canceled_event_attributes",
            "child_workflow_execution_completed_event_attributes",
            b"child_workflow_execution_completed_event_attributes",
            "child_workflow_execution_failed_event_attributes",
            b"child_workflow_execution_failed_event_attributes",
            "child_workflow_execution_started_event_attributes",
            b"child_workflow_execution_started_event_attributes",
            "child_workflow_execution_terminated_event_attributes",
            b"child_workflow_execution_terminated_event_attributes",
            "child_workflow_execution_timed_out_event_attributes",
            b"child_workflow_execution_timed_out_event_attributes",
            "event_id",
            b"event_id",
            "event_time",
            b"event_time",
            "event_type",
            b"event_type",
            "external_workflow_execution_cancel_requested_event_attributes",
            b"external_workflow_execution_cancel_requested_event_attributes",
            "external_workflow_execution_signaled_event_attributes",
            b"external_workflow_execution_signaled_event_attributes",
            "links",
            b"links",
            "marker_recorded_event_attributes",
            b"marker_recorded_event_attributes",
            "nexus_operation_cancel_request_completed_event_attributes",
            b"nexus_operation_cancel_request_completed_event_attributes",
            "nexus_operation_cancel_request_failed_event_attributes",
            b"nexus_operation_cancel_request_failed_event_attributes",
            "nexus_operation_cancel_requested_event_attributes",
            b"nexus_operation_cancel_requested_event_attributes",
            "nexus_operation_canceled_event_attributes",
            b"nexus_operation_canceled_event_attributes",
            "nexus_operation_completed_event_attributes",
            b"nexus_operation_completed_event_attributes",
            "nexus_operation_failed_event_attributes",
            b"nexus_operation_failed_event_attributes",
            "nexus_operation_scheduled_event_attributes",
            b"nexus_operation_scheduled_event_attributes",
            "nexus_operation_started_event_attributes",
            b"nexus_operation_started_event_attributes",
            "nexus_operation_timed_out_event_attributes",
            b"nexus_operation_timed_out_event_attributes",
            "request_cancel_external_workflow_execution_failed_event_attributes",
            b"request_cancel_external_workflow_execution_failed_event_attributes",
            "request_cancel_external_workflow_execution_initiated_event_attributes",
            b"request_cancel_external_workflow_execution_initiated_event_attributes",
            "signal_external_workflow_execution_failed_event_attributes",
            b"signal_external_workflow_execution_failed_event_attributes",
            "signal_external_workflow_execution_initiated_event_attributes",
            b"signal_external_workflow_execution_initiated_event_attributes",
            "start_child_workflow_execution_failed_event_attributes",
            b"start_child_workflow_execution_failed_event_attributes",
            "start_child_workflow_execution_initiated_event_attributes",
            b"start_child_workflow_execution_initiated_event_attributes",
            "task_id",
            b"task_id",
            "timer_canceled_event_attributes",
            b"timer_canceled_event_attributes",
            "timer_fired_event_attributes",
            b"timer_fired_event_attributes",
            "timer_started_event_attributes",
            b"timer_started_event_attributes",
            "upsert_workflow_search_attributes_event_attributes",
            b"upsert_workflow_search_attributes_event_attributes",
            "user_metadata",
            b"user_metadata",
            "version",
            b"version",
            "worker_may_ignore",
            b"worker_may_ignore",
            "workflow_execution_cancel_requested_event_attributes",
            b"workflow_execution_cancel_requested_event_attributes",
            "workflow_execution_canceled_event_attributes",
            b"workflow_execution_canceled_event_attributes",
            "workflow_execution_completed_event_attributes",
            b"workflow_execution_completed_event_attributes",
            "workflow_execution_continued_as_new_event_attributes",
            b"workflow_execution_continued_as_new_event_attributes",
            "workflow_execution_failed_event_attributes",
            b"workflow_execution_failed_event_attributes",
            "workflow_execution_options_updated_event_attributes",
            b"workflow_execution_options_updated_event_attributes",
            "workflow_execution_signaled_event_attributes",
            b"workflow_execution_signaled_event_attributes",
            "workflow_execution_started_event_attributes",
            b"workflow_execution_started_event_attributes",
            "workflow_execution_terminated_event_attributes",
            b"workflow_execution_terminated_event_attributes",
            "workflow_execution_timed_out_event_attributes",
            b"workflow_execution_timed_out_event_attributes",
            "workflow_execution_update_accepted_event_attributes",
            b"workflow_execution_update_accepted_event_attributes",
            "workflow_execution_update_admitted_event_attributes",
            b"workflow_execution_update_admitted_event_attributes",
            "workflow_execution_update_completed_event_attributes",
            b"workflow_execution_update_completed_event_attributes",
            "workflow_execution_update_rejected_event_attributes",
            b"workflow_execution_update_rejected_event_attributes",
            "workflow_properties_modified_event_attributes",
            b"workflow_properties_modified_event_attributes",
            "workflow_properties_modified_externally_event_attributes",
            b"workflow_properties_modified_externally_event_attributes",
            "workflow_task_completed_event_attributes",
            b"workflow_task_completed_event_attributes",
            "workflow_task_failed_event_attributes",
            b"workflow_task_failed_event_attributes",
            "workflow_task_scheduled_event_attributes",
            b"workflow_task_scheduled_event_attributes",
            "workflow_task_started_event_attributes",
            b"workflow_task_started_event_attributes",
            "workflow_task_timed_out_event_attributes",
            b"workflow_task_timed_out_event_attributes",
        ],
    ) -> None: ...
    def WhichOneof(
        self, oneof_group: typing_extensions.Literal["attributes", b"attributes"]
    ) -> (
        typing_extensions.Literal[
            "workflow_execution_started_event_attributes",
            "workflow_execution_completed_event_attributes",
            "workflow_execution_failed_event_attributes",
            "workflow_execution_timed_out_event_attributes",
            "workflow_task_scheduled_event_attributes",
            "workflow_task_started_event_attributes",
            "workflow_task_completed_event_attributes",
            "workflow_task_timed_out_event_attributes",
            "workflow_task_failed_event_attributes",
            "activity_task_scheduled_event_attributes",
            "activity_task_started_event_attributes",
            "activity_task_completed_event_attributes",
            "activity_task_failed_event_attributes",
            "activity_task_timed_out_event_attributes",
            "timer_started_event_attributes",
            "timer_fired_event_attributes",
            "activity_task_cancel_requested_event_attributes",
            "activity_task_canceled_event_attributes",
            "timer_canceled_event_attributes",
            "marker_recorded_event_attributes",
            "workflow_execution_signaled_event_attributes",
            "workflow_execution_terminated_event_attributes",
            "workflow_execution_cancel_requested_event_attributes",
            "workflow_execution_canceled_event_attributes",
            "request_cancel_external_workflow_execution_initiated_event_attributes",
            "request_cancel_external_workflow_execution_failed_event_attributes",
            "external_workflow_execution_cancel_requested_event_attributes",
            "workflow_execution_continued_as_new_event_attributes",
            "start_child_workflow_execution_initiated_event_attributes",
            "start_child_workflow_execution_failed_event_attributes",
            "child_workflow_execution_started_event_attributes",
            "child_workflow_execution_completed_event_attributes",
            "child_workflow_execution_failed_event_attributes",
            "child_workflow_execution_canceled_event_attributes",
            "child_workflow_execution_timed_out_event_attributes",
            "child_workflow_execution_terminated_event_attributes",
            "signal_external_workflow_execution_initiated_event_attributes",
            "signal_external_workflow_execution_failed_event_attributes",
            "external_workflow_execution_signaled_event_attributes",
            "upsert_workflow_search_attributes_event_attributes",
            "workflow_execution_update_accepted_event_attributes",
            "workflow_execution_update_rejected_event_attributes",
            "workflow_execution_update_completed_event_attributes",
            "workflow_properties_modified_externally_event_attributes",
            "activity_properties_modified_externally_event_attributes",
            "workflow_properties_modified_event_attributes",
            "workflow_execution_update_admitted_event_attributes",
            "nexus_operation_scheduled_event_attributes",
            "nexus_operation_started_event_attributes",
            "nexus_operation_completed_event_attributes",
            "nexus_operation_failed_event_attributes",
            "nexus_operation_canceled_event_attributes",
            "nexus_operation_timed_out_event_attributes",
            "nexus_operation_cancel_requested_event_attributes",
            "workflow_execution_options_updated_event_attributes",
            "nexus_operation_cancel_request_completed_event_attributes",
            "nexus_operation_cancel_request_failed_event_attributes",
        ]
        | None
    ): ...

global___HistoryEvent = HistoryEvent

class History(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    EVENTS_FIELD_NUMBER: builtins.int
    @property
    def events(
        self,
    ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
        global___HistoryEvent
    ]: ...
    def __init__(
        self,
        *,
        events: collections.abc.Iterable[global___HistoryEvent] | None = ...,
    ) -> None: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["events", b"events"]
    ) -> None: ...

global___History = History
