"""
This type stub file was generated by pyright.
"""

import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys
import temporalio.api.common.v1.message_pb2
import temporalio.api.enums.v1.event_type_pb2
import temporalio.api.enums.v1.failed_cause_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.taskqueue.v1.message_pb2
import temporalio.api.update.v1.message_pb2
import temporalio.api.workflow.v1.message_pb2
import typing as typing_extensions

"""
This type stub file was generated by pyright.
"""
if sys.version_info >= (3, 8):
    ...
else:
    ...
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
    @property
    def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType:
        ...
    
    parent_workflow_namespace: builtins.str
    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
    @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
    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
    identity: builtins.str
    first_execution_run_id: builtins.str
    @property
    def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy:
        ...
    
    attempt: builtins.int
    @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
    @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
    workflow_id: builtins.str
    @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.
        """
        ...
    
    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 = ...) -> 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", "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", "retry_policy", b"retry_policy", "search_attributes", b"search_attributes", "source_version_stamp", b"source_version_stamp", "task_queue", b"task_queue", "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", "continued_execution_run_id", b"continued_execution_run_id", "continued_failure", b"continued_failure", "cron_schedule", b"cron_schedule", "first_execution_run_id", b"first_execution_run_id", "first_workflow_task_backoff", b"first_workflow_task_backoff", "header", b"header", "identity", b"identity", "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_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", "retry_policy", b"retry_policy", "search_attributes", b"search_attributes", "source_version_stamp", b"source_version_stamp", "task_queue", b"task_queue", "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
    new_execution_run_id: builtins.str
    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
    new_execution_run_id: builtins.str
    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
    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
    USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int
    new_execution_run_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_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
    @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:
        ...
    
    use_compatible_version: builtins.bool
    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 = ..., use_compatible_version: 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", "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", "use_compatible_version", b"use_compatible_version", "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
    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
    scheduled_event_id: builtins.int
    identity: builtins.str
    request_id: builtins.str
    suggest_continue_as_new: builtins.bool
    history_size_bytes: builtins.int
    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 = ...) -> None:
        ...
    
    def ClearField(self, field_name: typing_extensions.Literal["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",]) -> 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
    scheduled_event_id: builtins.int
    started_event_id: builtins.int
    identity: builtins.str
    binary_checksum: builtins.str
    @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).
        """
        ...
    
    @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"""
        ...
    
    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 = ...) -> None:
        ...
    
    def HasField(self, field_name: typing_extensions.Literal["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", "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", "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
    started_event_id: builtins.int
    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
    started_event_id: builtins.int
    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
    base_run_id: builtins.str
    new_run_id: builtins.str
    fork_event_version: builtins.int
    binary_checksum: builtins.str
    @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).
        """
        ...
    
    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_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int
    activity_id: builtins.str
    @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
    @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_compatible_version: builtins.bool
    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_compatible_version: builtins.bool = ...) -> 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", "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", "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_compatible_version", b"use_compatible_version", "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
    scheduled_event_id: builtins.int
    identity: builtins.str
    request_id: builtins.str
    attempt: builtins.int
    @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.
        """
        ...
    
    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 = ...) -> None:
        ...
    
    def HasField(self, field_name: typing_extensions.Literal["last_failure", b"last_failure"]) -> builtins.bool:
        ...
    
    def ClearField(self, field_name: typing_extensions.Literal["attempt", b"attempt", "identity", b"identity", "last_failure", b"last_failure", "request_id", b"request_id", "scheduled_event_id", b"scheduled_event_id",]) -> 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
    started_event_id: builtins.int
    identity: builtins.str
    @property
    def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """Version info of the worker who processed this workflow task."""
        ...
    
    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
    started_event_id: builtins.int
    identity: builtins.str
    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."""
        ...
    
    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
    started_event_id: builtins.int
    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
    workflow_task_completed_event_id: builtins.int
    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
    scheduled_event_id: builtins.int
    started_event_id: builtins.int
    identity: builtins.str
    @property
    def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp:
        """Version info of the worker who processed this workflow task."""
        ...
    
    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
    @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
    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
    started_event_id: builtins.int
    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
    started_event_id: builtins.int
    workflow_task_completed_event_id: builtins.int
    identity: builtins.str
    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
    external_initiated_event_id: builtins.int
    @property
    def external_workflow_execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution:
        ...
    
    identity: builtins.str
    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
    @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
    @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
    @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
    signal_name: builtins.str
    @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
    @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
    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 = ...) -> None:
        ...
    
    def HasField(self, field_name: typing_extensions.Literal["header", b"header", "input", b"input"]) -> builtins.bool:
        ...
    
    def ClearField(self, field_name: typing_extensions.Literal["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
    @property
    def details(self) -> temporalio.api.common.v1.message_pb2.Payloads:
        ...
    
    identity: builtins.str
    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
    namespace: builtins.str
    namespace_id: builtins.str
    @property
    def workflow_execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution:
        ...
    
    control: builtins.str
    child_workflow_only: builtins.bool
    reason: builtins.str
    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
    namespace: builtins.str
    namespace_id: builtins.str
    @property
    def workflow_execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution:
        ...
    
    initiated_event_id: builtins.int
    control: builtins.str
    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
    namespace: builtins.str
    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
    namespace: builtins.str
    namespace_id: builtins.str
    @property
    def workflow_execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution:
        ...
    
    signal_name: builtins.str
    @property
    def input(self) -> temporalio.api.common.v1.message_pb2.Payloads:
        """Serialized arguments to provide to the signal handler"""
        ...
    
    control: builtins.str
    child_workflow_only: builtins.bool
    @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
    namespace: builtins.str
    namespace_id: builtins.str
    @property
    def workflow_execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution:
        ...
    
    initiated_event_id: builtins.int
    control: builtins.str
    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
    namespace: builtins.str
    namespace_id: builtins.str
    @property
    def workflow_execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution:
        ...
    
    control: builtins.str
    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
    @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
    @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
    USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int
    namespace: builtins.str
    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
    control: builtins.str
    workflow_task_completed_event_id: builtins.int
    workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType
    @property
    def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy:
        ...
    
    cron_schedule: builtins.str
    @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:
        ...
    
    use_compatible_version: builtins.bool
    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 = ..., use_compatible_version: builtins.bool = ...) -> None:
        ...
    
    def HasField(self, field_name: typing_extensions.Literal["header", b"header", "input", b"input", "memo", b"memo", "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", "input", b"input", "memo", b"memo", "namespace", b"namespace", "namespace_id", b"namespace_id", "parent_close_policy", b"parent_close_policy", "retry_policy", b"retry_policy", "search_attributes", b"search_attributes", "task_queue", b"task_queue", "use_compatible_version", b"use_compatible_version", "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_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
    initiated_event_id: builtins.int
    workflow_task_completed_event_id: builtins.int
    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_id: builtins.str
    initiated_event_id: builtins.int
    @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_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
    started_event_id: builtins.int
    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_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
    started_event_id: builtins.int
    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_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
    started_event_id: builtins.int
    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_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
    started_event_id: builtins.int
    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_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
    started_event_id: builtins.int
    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 WorkflowPropertiesModifiedExternallyEventAttributes(google.protobuf.message.Message):
    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
    @property
    def new_workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """If set, update the workflow task timeout to this value."""
        ...
    
    @property
    def new_workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """If set, update the workflow run timeout to this value. May be set to 0 for no timeout."""
        ...
    
    @property
    def new_workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration:
        """If set, update the workflow execution timeout to this value. May be set to 0 for no timeout."""
        ...
    
    @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, *, 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
    @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
    accepted_request_message_id: builtins.str
    accepted_request_sequencing_event_id: builtins.int
    @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
    @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
    rejected_request_message_id: builtins.str
    rejected_request_sequencing_event_id: builtins.int
    @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 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
    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
    event_id: builtins.int
    @property
    def event_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
        ...
    
    event_type: temporalio.api.enums.v1.event_type_pb2.EventType.ValueType
    version: builtins.int
    task_id: builtins.int
    worker_may_ignore: builtins.bool
    @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:
        ...
    
    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 = ..., 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 = ...) -> 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", "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", "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_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_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", "marker_recorded_event_attributes", b"marker_recorded_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", "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_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_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",] | 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
