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


class _UpdateWorkflowExecutionLifecycleStageEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_UpdateWorkflowExecutionLifecycleStage.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED: _UpdateWorkflowExecutionLifecycleStage.ValueType
    UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED: _UpdateWorkflowExecutionLifecycleStage.ValueType
    UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED: _UpdateWorkflowExecutionLifecycleStage.ValueType
    UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED: _UpdateWorkflowExecutionLifecycleStage.ValueType
    ...


class UpdateWorkflowExecutionLifecycleStage(_UpdateWorkflowExecutionLifecycleStage, metaclass=_UpdateWorkflowExecutionLifecycleStageEnumTypeWrapper):
    """UpdateWorkflowExecutionLifecycleStage is specified by clients invoking
    workflow execution updates and used to indicate to the server how long the
    client wishes to wait for a return value from the RPC. If any value other
    than UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED is sent by the
    client then the RPC will complete before the update is finished and will
    return a handle to the running update so that it can later be polled for
    completion.
    """
    ...


UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED: UpdateWorkflowExecutionLifecycleStage.ValueType
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED: UpdateWorkflowExecutionLifecycleStage.ValueType
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED: UpdateWorkflowExecutionLifecycleStage.ValueType
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED: UpdateWorkflowExecutionLifecycleStage.ValueType
global___UpdateWorkflowExecutionLifecycleStage = UpdateWorkflowExecutionLifecycleStage
class _UpdateRequestedEventOrigin:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ...


class _UpdateRequestedEventOriginEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_UpdateRequestedEventOrigin.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    UPDATE_REQUESTED_EVENT_ORIGIN_UNSPECIFIED: _UpdateRequestedEventOrigin.ValueType
    UPDATE_REQUESTED_EVENT_ORIGIN_REAPPLY: _UpdateRequestedEventOrigin.ValueType
    ...


class UpdateRequestedEventOrigin(_UpdateRequestedEventOrigin, metaclass=_UpdateRequestedEventOriginEnumTypeWrapper):
    """UpdateRequestedEventOrigin records why an
    WorkflowExecutionUpdateRequestedEvent was written to history. Note that not
    all update requests result in a WorkflowExecutionUpdateRequestedEvent.
    """
    ...


UPDATE_REQUESTED_EVENT_ORIGIN_UNSPECIFIED: UpdateRequestedEventOrigin.ValueType
UPDATE_REQUESTED_EVENT_ORIGIN_REAPPLY: UpdateRequestedEventOrigin.ValueType
global___UpdateRequestedEventOrigin = UpdateRequestedEventOrigin
