"""
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 _TaskQueueKind:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ...


class _TaskQueueKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TaskQueueKind.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    TASK_QUEUE_KIND_UNSPECIFIED: _TaskQueueKind.ValueType
    TASK_QUEUE_KIND_NORMAL: _TaskQueueKind.ValueType
    TASK_QUEUE_KIND_STICKY: _TaskQueueKind.ValueType
    ...


class TaskQueueKind(_TaskQueueKind, metaclass=_TaskQueueKindEnumTypeWrapper):
    ...


TASK_QUEUE_KIND_UNSPECIFIED: TaskQueueKind.ValueType
TASK_QUEUE_KIND_NORMAL: TaskQueueKind.ValueType
TASK_QUEUE_KIND_STICKY: TaskQueueKind.ValueType
global___TaskQueueKind = TaskQueueKind
class _TaskQueueType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ...


class _TaskQueueTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TaskQueueType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    TASK_QUEUE_TYPE_UNSPECIFIED: _TaskQueueType.ValueType
    TASK_QUEUE_TYPE_WORKFLOW: _TaskQueueType.ValueType
    TASK_QUEUE_TYPE_ACTIVITY: _TaskQueueType.ValueType
    ...


class TaskQueueType(_TaskQueueType, metaclass=_TaskQueueTypeEnumTypeWrapper):
    ...


TASK_QUEUE_TYPE_UNSPECIFIED: TaskQueueType.ValueType
TASK_QUEUE_TYPE_WORKFLOW: TaskQueueType.ValueType
TASK_QUEUE_TYPE_ACTIVITY: TaskQueueType.ValueType
global___TaskQueueType = TaskQueueType
class _TaskReachability:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ...


class _TaskReachabilityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TaskReachability.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    TASK_REACHABILITY_UNSPECIFIED: _TaskReachability.ValueType
    TASK_REACHABILITY_NEW_WORKFLOWS: _TaskReachability.ValueType
    TASK_REACHABILITY_EXISTING_WORKFLOWS: _TaskReachability.ValueType
    TASK_REACHABILITY_OPEN_WORKFLOWS: _TaskReachability.ValueType
    TASK_REACHABILITY_CLOSED_WORKFLOWS: _TaskReachability.ValueType
    ...


class TaskReachability(_TaskReachability, metaclass=_TaskReachabilityEnumTypeWrapper):
    """Specifies which category of tasks may reach a worker on a versioned task queue.
    Used both in a reachability query and its response.
    """
    ...


TASK_REACHABILITY_UNSPECIFIED: TaskReachability.ValueType
TASK_REACHABILITY_NEW_WORKFLOWS: TaskReachability.ValueType
TASK_REACHABILITY_EXISTING_WORKFLOWS: TaskReachability.ValueType
TASK_REACHABILITY_OPEN_WORKFLOWS: TaskReachability.ValueType
TASK_REACHABILITY_CLOSED_WORKFLOWS: TaskReachability.ValueType
global___TaskReachability = TaskReachability
