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

import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import sys
import typing

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

Copyright (c) 2020 Temporal Technologies Inc.  All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
"""
if sys.version_info >= (3, 10):
    ...
else:
    ...
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class _EventType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ...


class _EventTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EventType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    EVENT_TYPE_UNSPECIFIED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_STARTED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_FAILED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_TASK_SCHEDULED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_TASK_STARTED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_TASK_COMPLETED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_TASK_FAILED: _EventType.ValueType
    EVENT_TYPE_ACTIVITY_TASK_SCHEDULED: _EventType.ValueType
    EVENT_TYPE_ACTIVITY_TASK_STARTED: _EventType.ValueType
    EVENT_TYPE_ACTIVITY_TASK_COMPLETED: _EventType.ValueType
    EVENT_TYPE_ACTIVITY_TASK_FAILED: _EventType.ValueType
    EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT: _EventType.ValueType
    EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED: _EventType.ValueType
    EVENT_TYPE_ACTIVITY_TASK_CANCELED: _EventType.ValueType
    EVENT_TYPE_TIMER_STARTED: _EventType.ValueType
    EVENT_TYPE_TIMER_FIRED: _EventType.ValueType
    EVENT_TYPE_TIMER_CANCELED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED: _EventType.ValueType
    EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: _EventType.ValueType
    EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: _EventType.ValueType
    EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED: _EventType.ValueType
    EVENT_TYPE_MARKER_RECORDED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW: _EventType.ValueType
    EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED: _EventType.ValueType
    EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED: _EventType.ValueType
    EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED: _EventType.ValueType
    EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED: _EventType.ValueType
    EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED: _EventType.ValueType
    EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED: _EventType.ValueType
    EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT: _EventType.ValueType
    EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED: _EventType.ValueType
    EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: _EventType.ValueType
    EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: _EventType.ValueType
    EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED: _EventType.ValueType
    EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY: _EventType.ValueType
    EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED: _EventType.ValueType
    EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REQUESTED: _EventType.ValueType
    ...


class EventType(_EventType, metaclass=_EventTypeEnumTypeWrapper):
    """Whenever this list of events is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering"""
    ...


EVENT_TYPE_UNSPECIFIED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_STARTED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_FAILED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT: EventType.ValueType
EVENT_TYPE_WORKFLOW_TASK_SCHEDULED: EventType.ValueType
EVENT_TYPE_WORKFLOW_TASK_STARTED: EventType.ValueType
EVENT_TYPE_WORKFLOW_TASK_COMPLETED: EventType.ValueType
EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT: EventType.ValueType
EVENT_TYPE_WORKFLOW_TASK_FAILED: EventType.ValueType
EVENT_TYPE_ACTIVITY_TASK_SCHEDULED: EventType.ValueType
EVENT_TYPE_ACTIVITY_TASK_STARTED: EventType.ValueType
EVENT_TYPE_ACTIVITY_TASK_COMPLETED: EventType.ValueType
EVENT_TYPE_ACTIVITY_TASK_FAILED: EventType.ValueType
EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT: EventType.ValueType
EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED: EventType.ValueType
EVENT_TYPE_ACTIVITY_TASK_CANCELED: EventType.ValueType
EVENT_TYPE_TIMER_STARTED: EventType.ValueType
EVENT_TYPE_TIMER_FIRED: EventType.ValueType
EVENT_TYPE_TIMER_CANCELED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED: EventType.ValueType
EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: EventType.ValueType
EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: EventType.ValueType
EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED: EventType.ValueType
EVENT_TYPE_MARKER_RECORDED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW: EventType.ValueType
EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED: EventType.ValueType
EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED: EventType.ValueType
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED: EventType.ValueType
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED: EventType.ValueType
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED: EventType.ValueType
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED: EventType.ValueType
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT: EventType.ValueType
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED: EventType.ValueType
EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: EventType.ValueType
EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: EventType.ValueType
EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED: EventType.ValueType
EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED: EventType.ValueType
EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY: EventType.ValueType
EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY: EventType.ValueType
EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED: EventType.ValueType
EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REQUESTED: EventType.ValueType
global___EventType = EventType
