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

import builtins
import collections.abc
import sys

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

import temporalio.api.history.v1.message_pb2

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

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

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

    HISTORY_FIELD_NUMBER: builtins.int
    @property
    def history(self) -> temporalio.api.history.v1.message_pb2.History: ...
    def __init__(
        self,
        *,
        history: temporalio.api.history.v1.message_pb2.History | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["history", b"history"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["history", b"history"]
    ) -> None: ...

global___WorkflowExecution = WorkflowExecution

class WorkflowExecutions(google.protobuf.message.Message):
    """WorkflowExecutions is used by the Cloud Export feature to deserialize
    the exported file. It encapsulates a collection of workflow execution information.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

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

global___WorkflowExecutions = WorkflowExecutions
