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

import builtins
import collections.abc
import sys
import typing

import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import google.protobuf.timestamp_pb2
import google.protobuf.wrappers_pb2

import temporalio.bridge.proto.activity_task.activity_task_pb2
import temporalio.bridge.proto.core_interface_pb2
import temporalio.bridge.proto.workflow_activation.workflow_activation_pb2
import temporalio.bridge.proto.workflow_completion.workflow_completion_pb2

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

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

class _LogLevel:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _LogLevelEnumTypeWrapper(
    google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LogLevel.ValueType],
    builtins.type,
):  # noqa: F821
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    LOG_LEVEL_UNSPECIFIED: _LogLevel.ValueType  # 0
    OFF: _LogLevel.ValueType  # 1
    ERROR: _LogLevel.ValueType  # 2
    WARN: _LogLevel.ValueType  # 3
    INFO: _LogLevel.ValueType  # 4
    DEBUG: _LogLevel.ValueType  # 5
    TRACE: _LogLevel.ValueType  # 6

class LogLevel(_LogLevel, metaclass=_LogLevelEnumTypeWrapper): ...

LOG_LEVEL_UNSPECIFIED: LogLevel.ValueType  # 0
OFF: LogLevel.ValueType  # 1
ERROR: LogLevel.ValueType  # 2
WARN: LogLevel.ValueType  # 3
INFO: LogLevel.ValueType  # 4
DEBUG: LogLevel.ValueType  # 5
TRACE: LogLevel.ValueType  # 6
global___LogLevel = LogLevel

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

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

        def __init__(
            self,
        ) -> None: ...

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

        LEVEL_FIELD_NUMBER: builtins.int
        level: global___LogLevel.ValueType
        def __init__(
            self,
            *,
            level: global___LogLevel.ValueType = ...,
        ) -> None: ...
        def ClearField(
            self, field_name: typing_extensions.Literal["level", b"level"]
        ) -> None: ...

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

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

            KEY_FIELD_NUMBER: builtins.int
            VALUE_FIELD_NUMBER: builtins.int
            key: builtins.str
            value: builtins.str
            def __init__(
                self,
                *,
                key: builtins.str = ...,
                value: builtins.str = ...,
            ) -> None: ...
            def ClearField(
                self,
                field_name: typing_extensions.Literal["key", b"key", "value", b"value"],
            ) -> None: ...

        URL_FIELD_NUMBER: builtins.int
        HEADERS_FIELD_NUMBER: builtins.int
        url: builtins.str
        @property
        def headers(
            self,
        ) -> google.protobuf.internal.containers.ScalarMap[
            builtins.str, builtins.str
        ]: ...
        def __init__(
            self,
            *,
            url: builtins.str = ...,
            headers: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
        ) -> None: ...
        def ClearField(
            self,
            field_name: typing_extensions.Literal["headers", b"headers", "url", b"url"],
        ) -> None: ...

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

        EXPORT_BIND_ADDRESS_FIELD_NUMBER: builtins.int
        export_bind_address: builtins.str
        def __init__(
            self,
            *,
            export_bind_address: builtins.str = ...,
        ) -> None: ...
        def ClearField(
            self,
            field_name: typing_extensions.Literal[
                "export_bind_address", b"export_bind_address"
            ],
        ) -> None: ...

    TRACING_FILTER_FIELD_NUMBER: builtins.int
    CONSOLE_FIELD_NUMBER: builtins.int
    FORWARD_FIELD_NUMBER: builtins.int
    OTEL_TRACING_FIELD_NUMBER: builtins.int
    OTEL_METRICS_FIELD_NUMBER: builtins.int
    PROMETHEUS_FIELD_NUMBER: builtins.int
    tracing_filter: builtins.str
    @property
    def console(self) -> global___InitTelemetryRequest.ConsoleLoggerOptions: ...
    @property
    def forward(self) -> global___InitTelemetryRequest.ForwardLoggerOptions: ...
    @property
    def otel_tracing(self) -> global___InitTelemetryRequest.OtelCollectorOptions: ...
    @property
    def otel_metrics(self) -> global___InitTelemetryRequest.OtelCollectorOptions: ...
    @property
    def prometheus(self) -> global___InitTelemetryRequest.PrometheusOptions: ...
    def __init__(
        self,
        *,
        tracing_filter: builtins.str = ...,
        console: global___InitTelemetryRequest.ConsoleLoggerOptions | None = ...,
        forward: global___InitTelemetryRequest.ForwardLoggerOptions | None = ...,
        otel_tracing: global___InitTelemetryRequest.OtelCollectorOptions | None = ...,
        otel_metrics: global___InitTelemetryRequest.OtelCollectorOptions | None = ...,
        prometheus: global___InitTelemetryRequest.PrometheusOptions | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "console",
            b"console",
            "forward",
            b"forward",
            "logging",
            b"logging",
            "metrics",
            b"metrics",
            "otel_metrics",
            b"otel_metrics",
            "otel_tracing",
            b"otel_tracing",
            "prometheus",
            b"prometheus",
            "tracing",
            b"tracing",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "console",
            b"console",
            "forward",
            b"forward",
            "logging",
            b"logging",
            "metrics",
            b"metrics",
            "otel_metrics",
            b"otel_metrics",
            "otel_tracing",
            b"otel_tracing",
            "prometheus",
            b"prometheus",
            "tracing",
            b"tracing",
            "tracing_filter",
            b"tracing_filter",
        ],
    ) -> None: ...
    @typing.overload
    def WhichOneof(
        self, oneof_group: typing_extensions.Literal["logging", b"logging"]
    ) -> typing_extensions.Literal["console", "forward"] | None: ...
    @typing.overload
    def WhichOneof(
        self, oneof_group: typing_extensions.Literal["metrics", b"metrics"]
    ) -> typing_extensions.Literal["otel_metrics", "prometheus"] | None: ...
    @typing.overload
    def WhichOneof(
        self, oneof_group: typing_extensions.Literal["tracing", b"tracing"]
    ) -> typing_extensions.Literal["otel_tracing"] | None: ...

global___InitTelemetryRequest = InitTelemetryRequest

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

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

        SERVER_ROOT_CA_CERT_FIELD_NUMBER: builtins.int
        DOMAIN_FIELD_NUMBER: builtins.int
        CLIENT_CERT_FIELD_NUMBER: builtins.int
        CLIENT_PRIVATE_KEY_FIELD_NUMBER: builtins.int
        server_root_ca_cert: builtins.bytes
        domain: builtins.str
        client_cert: builtins.bytes
        client_private_key: builtins.bytes
        def __init__(
            self,
            *,
            server_root_ca_cert: builtins.bytes = ...,
            domain: builtins.str = ...,
            client_cert: builtins.bytes = ...,
            client_private_key: builtins.bytes = ...,
        ) -> None: ...
        def ClearField(
            self,
            field_name: typing_extensions.Literal[
                "client_cert",
                b"client_cert",
                "client_private_key",
                b"client_private_key",
                "domain",
                b"domain",
                "server_root_ca_cert",
                b"server_root_ca_cert",
            ],
        ) -> None: ...

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

        INITIAL_INTERVAL_FIELD_NUMBER: builtins.int
        RANDOMIZATION_FACTOR_FIELD_NUMBER: builtins.int
        MULTIPLIER_FIELD_NUMBER: builtins.int
        MAX_INTERVAL_FIELD_NUMBER: builtins.int
        MAX_ELAPSED_TIME_FIELD_NUMBER: builtins.int
        MAX_RETRIES_FIELD_NUMBER: builtins.int
        @property
        def initial_interval(self) -> google.protobuf.duration_pb2.Duration: ...
        @property
        def randomization_factor(self) -> google.protobuf.wrappers_pb2.DoubleValue: ...
        @property
        def multiplier(self) -> google.protobuf.wrappers_pb2.DoubleValue: ...
        @property
        def max_interval(self) -> google.protobuf.duration_pb2.Duration: ...
        @property
        def max_elapsed_time(self) -> google.protobuf.duration_pb2.Duration: ...
        @property
        def max_retries(self) -> google.protobuf.wrappers_pb2.UInt32Value: ...
        def __init__(
            self,
            *,
            initial_interval: google.protobuf.duration_pb2.Duration | None = ...,
            randomization_factor: google.protobuf.wrappers_pb2.DoubleValue | None = ...,
            multiplier: google.protobuf.wrappers_pb2.DoubleValue | None = ...,
            max_interval: google.protobuf.duration_pb2.Duration | None = ...,
            max_elapsed_time: google.protobuf.duration_pb2.Duration | None = ...,
            max_retries: google.protobuf.wrappers_pb2.UInt32Value | None = ...,
        ) -> None: ...
        def HasField(
            self,
            field_name: typing_extensions.Literal[
                "initial_interval",
                b"initial_interval",
                "max_elapsed_time",
                b"max_elapsed_time",
                "max_interval",
                b"max_interval",
                "max_retries",
                b"max_retries",
                "multiplier",
                b"multiplier",
                "randomization_factor",
                b"randomization_factor",
            ],
        ) -> builtins.bool: ...
        def ClearField(
            self,
            field_name: typing_extensions.Literal[
                "initial_interval",
                b"initial_interval",
                "max_elapsed_time",
                b"max_elapsed_time",
                "max_interval",
                b"max_interval",
                "max_retries",
                b"max_retries",
                "multiplier",
                b"multiplier",
                "randomization_factor",
                b"randomization_factor",
            ],
        ) -> None: ...

    TARGET_URL_FIELD_NUMBER: builtins.int
    NAMESPACE_FIELD_NUMBER: builtins.int
    CLIENT_NAME_FIELD_NUMBER: builtins.int
    CLIENT_VERSION_FIELD_NUMBER: builtins.int
    IDENTITY_FIELD_NUMBER: builtins.int
    TLS_CONFIG_FIELD_NUMBER: builtins.int
    RETRY_CONFIG_FIELD_NUMBER: builtins.int
    target_url: builtins.str
    namespace: builtins.str
    client_name: builtins.str
    client_version: builtins.str
    identity: builtins.str
    @property
    def tls_config(self) -> global___CreateClientRequest.TlsConfig: ...
    @property
    def retry_config(self) -> global___CreateClientRequest.RetryConfig: ...
    def __init__(
        self,
        *,
        target_url: builtins.str = ...,
        namespace: builtins.str = ...,
        client_name: builtins.str = ...,
        client_version: builtins.str = ...,
        identity: builtins.str = ...,
        tls_config: global___CreateClientRequest.TlsConfig | None = ...,
        retry_config: global___CreateClientRequest.RetryConfig | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "retry_config", b"retry_config", "tls_config", b"tls_config"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "client_name",
            b"client_name",
            "client_version",
            b"client_version",
            "identity",
            b"identity",
            "namespace",
            b"namespace",
            "retry_config",
            b"retry_config",
            "target_url",
            b"target_url",
            "tls_config",
            b"tls_config",
        ],
    ) -> None: ...

global___CreateClientRequest = CreateClientRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        message: builtins.str
        def __init__(
            self,
            *,
            message: builtins.str = ...,
        ) -> None: ...
        def ClearField(
            self, field_name: typing_extensions.Literal["message", b"message"]
        ) -> None: ...

    ERROR_FIELD_NUMBER: builtins.int
    @property
    def error(self) -> global___InitResponse.Error: ...
    def __init__(
        self,
        *,
        error: global___InitResponse.Error | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> None: ...

global___InitResponse = InitResponse

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

    TASK_QUEUE_FIELD_NUMBER: builtins.int
    MAX_CACHED_WORKFLOWS_FIELD_NUMBER: builtins.int
    MAX_OUTSTANDING_WORKFLOW_TASKS_FIELD_NUMBER: builtins.int
    MAX_OUTSTANDING_ACTIVITIES_FIELD_NUMBER: builtins.int
    MAX_OUTSTANDING_LOCAL_ACTIVITIES_FIELD_NUMBER: builtins.int
    MAX_CONCURRENT_WFT_POLLS_FIELD_NUMBER: builtins.int
    NONSTICKY_TO_STICKY_POLL_RATIO_FIELD_NUMBER: builtins.int
    MAX_CONCURRENT_AT_POLLS_FIELD_NUMBER: builtins.int
    NO_REMOTE_ACTIVITIES_FIELD_NUMBER: builtins.int
    STICKY_QUEUE_SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER: builtins.int
    MAX_HEARTBEAT_THROTTLE_INTERVAL_FIELD_NUMBER: builtins.int
    DEFAULT_HEARTBEAT_THROTTLE_INTERVAL_FIELD_NUMBER: builtins.int
    task_queue: builtins.str
    @property
    def max_cached_workflows(self) -> google.protobuf.wrappers_pb2.UInt32Value: ...
    @property
    def max_outstanding_workflow_tasks(
        self,
    ) -> google.protobuf.wrappers_pb2.UInt32Value: ...
    @property
    def max_outstanding_activities(
        self,
    ) -> google.protobuf.wrappers_pb2.UInt32Value: ...
    @property
    def max_outstanding_local_activities(
        self,
    ) -> google.protobuf.wrappers_pb2.UInt32Value: ...
    @property
    def max_concurrent_wft_polls(self) -> google.protobuf.wrappers_pb2.UInt32Value: ...
    @property
    def nonsticky_to_sticky_poll_ratio(
        self,
    ) -> google.protobuf.wrappers_pb2.FloatValue: ...
    @property
    def max_concurrent_at_polls(self) -> google.protobuf.wrappers_pb2.UInt32Value: ...
    no_remote_activities: builtins.bool
    @property
    def sticky_queue_schedule_to_start_timeout(
        self,
    ) -> google.protobuf.duration_pb2.Duration: ...
    @property
    def max_heartbeat_throttle_interval(
        self,
    ) -> google.protobuf.duration_pb2.Duration: ...
    @property
    def default_heartbeat_throttle_interval(
        self,
    ) -> google.protobuf.duration_pb2.Duration: ...
    def __init__(
        self,
        *,
        task_queue: builtins.str = ...,
        max_cached_workflows: google.protobuf.wrappers_pb2.UInt32Value | None = ...,
        max_outstanding_workflow_tasks: google.protobuf.wrappers_pb2.UInt32Value
        | None = ...,
        max_outstanding_activities: google.protobuf.wrappers_pb2.UInt32Value
        | None = ...,
        max_outstanding_local_activities: google.protobuf.wrappers_pb2.UInt32Value
        | None = ...,
        max_concurrent_wft_polls: google.protobuf.wrappers_pb2.UInt32Value | None = ...,
        nonsticky_to_sticky_poll_ratio: google.protobuf.wrappers_pb2.FloatValue
        | None = ...,
        max_concurrent_at_polls: google.protobuf.wrappers_pb2.UInt32Value | None = ...,
        no_remote_activities: builtins.bool = ...,
        sticky_queue_schedule_to_start_timeout: google.protobuf.duration_pb2.Duration
        | None = ...,
        max_heartbeat_throttle_interval: google.protobuf.duration_pb2.Duration
        | None = ...,
        default_heartbeat_throttle_interval: google.protobuf.duration_pb2.Duration
        | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "default_heartbeat_throttle_interval",
            b"default_heartbeat_throttle_interval",
            "max_cached_workflows",
            b"max_cached_workflows",
            "max_concurrent_at_polls",
            b"max_concurrent_at_polls",
            "max_concurrent_wft_polls",
            b"max_concurrent_wft_polls",
            "max_heartbeat_throttle_interval",
            b"max_heartbeat_throttle_interval",
            "max_outstanding_activities",
            b"max_outstanding_activities",
            "max_outstanding_local_activities",
            b"max_outstanding_local_activities",
            "max_outstanding_workflow_tasks",
            b"max_outstanding_workflow_tasks",
            "nonsticky_to_sticky_poll_ratio",
            b"nonsticky_to_sticky_poll_ratio",
            "sticky_queue_schedule_to_start_timeout",
            b"sticky_queue_schedule_to_start_timeout",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "default_heartbeat_throttle_interval",
            b"default_heartbeat_throttle_interval",
            "max_cached_workflows",
            b"max_cached_workflows",
            "max_concurrent_at_polls",
            b"max_concurrent_at_polls",
            "max_concurrent_wft_polls",
            b"max_concurrent_wft_polls",
            "max_heartbeat_throttle_interval",
            b"max_heartbeat_throttle_interval",
            "max_outstanding_activities",
            b"max_outstanding_activities",
            "max_outstanding_local_activities",
            b"max_outstanding_local_activities",
            "max_outstanding_workflow_tasks",
            b"max_outstanding_workflow_tasks",
            "no_remote_activities",
            b"no_remote_activities",
            "nonsticky_to_sticky_poll_ratio",
            b"nonsticky_to_sticky_poll_ratio",
            "sticky_queue_schedule_to_start_timeout",
            b"sticky_queue_schedule_to_start_timeout",
            "task_queue",
            b"task_queue",
        ],
    ) -> None: ...

global___CreateWorkerRequest = CreateWorkerRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        message: builtins.str
        def __init__(
            self,
            *,
            message: builtins.str = ...,
        ) -> None: ...
        def ClearField(
            self, field_name: typing_extensions.Literal["message", b"message"]
        ) -> None: ...

    ERROR_FIELD_NUMBER: builtins.int
    @property
    def error(self) -> global___RegisterWorkerResponse.Error: ...
    def __init__(
        self,
        *,
        error: global___RegisterWorkerResponse.Error | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> None: ...

global___RegisterWorkerResponse = RegisterWorkerResponse

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

    def __init__(
        self,
    ) -> None: ...

global___PollWorkflowActivationRequest = PollWorkflowActivationRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        SHUTDOWN_FIELD_NUMBER: builtins.int
        message: builtins.str
        shutdown: builtins.bool
        def __init__(
            self,
            *,
            message: builtins.str = ...,
            shutdown: builtins.bool = ...,
        ) -> None: ...
        def ClearField(
            self,
            field_name: typing_extensions.Literal[
                "message", b"message", "shutdown", b"shutdown"
            ],
        ) -> None: ...

    ACTIVATION_FIELD_NUMBER: builtins.int
    ERROR_FIELD_NUMBER: builtins.int
    @property
    def activation(
        self,
    ) -> temporalio.bridge.proto.workflow_activation.workflow_activation_pb2.WorkflowActivation: ...
    @property
    def error(self) -> global___PollWorkflowActivationResponse.Error: ...
    def __init__(
        self,
        *,
        activation: temporalio.bridge.proto.workflow_activation.workflow_activation_pb2.WorkflowActivation
        | None = ...,
        error: global___PollWorkflowActivationResponse.Error | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "activation", b"activation", "error", b"error", "response", b"response"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "activation", b"activation", "error", b"error", "response", b"response"
        ],
    ) -> None: ...
    def WhichOneof(
        self, oneof_group: typing_extensions.Literal["response", b"response"]
    ) -> typing_extensions.Literal["activation", "error"] | None: ...

global___PollWorkflowActivationResponse = PollWorkflowActivationResponse

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

    def __init__(
        self,
    ) -> None: ...

global___PollActivityTaskRequest = PollActivityTaskRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        SHUTDOWN_FIELD_NUMBER: builtins.int
        message: builtins.str
        shutdown: builtins.bool
        def __init__(
            self,
            *,
            message: builtins.str = ...,
            shutdown: builtins.bool = ...,
        ) -> None: ...
        def ClearField(
            self,
            field_name: typing_extensions.Literal[
                "message", b"message", "shutdown", b"shutdown"
            ],
        ) -> None: ...

    TASK_FIELD_NUMBER: builtins.int
    ERROR_FIELD_NUMBER: builtins.int
    @property
    def task(
        self,
    ) -> temporalio.bridge.proto.activity_task.activity_task_pb2.ActivityTask: ...
    @property
    def error(self) -> global___PollActivityTaskResponse.Error: ...
    def __init__(
        self,
        *,
        task: temporalio.bridge.proto.activity_task.activity_task_pb2.ActivityTask
        | None = ...,
        error: global___PollActivityTaskResponse.Error | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "error", b"error", "response", b"response", "task", b"task"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "error", b"error", "response", b"response", "task", b"task"
        ],
    ) -> None: ...
    def WhichOneof(
        self, oneof_group: typing_extensions.Literal["response", b"response"]
    ) -> typing_extensions.Literal["task", "error"] | None: ...

global___PollActivityTaskResponse = PollActivityTaskResponse

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

    COMPLETION_FIELD_NUMBER: builtins.int
    @property
    def completion(
        self,
    ) -> temporalio.bridge.proto.workflow_completion.workflow_completion_pb2.WorkflowActivationCompletion: ...
    def __init__(
        self,
        *,
        completion: temporalio.bridge.proto.workflow_completion.workflow_completion_pb2.WorkflowActivationCompletion
        | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["completion", b"completion"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["completion", b"completion"]
    ) -> None: ...

global___CompleteWorkflowActivationRequest = CompleteWorkflowActivationRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        message: builtins.str
        def __init__(
            self,
            *,
            message: builtins.str = ...,
        ) -> None: ...
        def ClearField(
            self, field_name: typing_extensions.Literal["message", b"message"]
        ) -> None: ...

    ERROR_FIELD_NUMBER: builtins.int
    @property
    def error(self) -> global___CompleteWorkflowActivationResponse.Error: ...
    def __init__(
        self,
        *,
        error: global___CompleteWorkflowActivationResponse.Error | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> None: ...

global___CompleteWorkflowActivationResponse = CompleteWorkflowActivationResponse

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

    COMPLETION_FIELD_NUMBER: builtins.int
    @property
    def completion(
        self,
    ) -> temporalio.bridge.proto.core_interface_pb2.ActivityTaskCompletion: ...
    def __init__(
        self,
        *,
        completion: temporalio.bridge.proto.core_interface_pb2.ActivityTaskCompletion
        | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["completion", b"completion"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["completion", b"completion"]
    ) -> None: ...

global___CompleteActivityTaskRequest = CompleteActivityTaskRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        message: builtins.str
        def __init__(
            self,
            *,
            message: builtins.str = ...,
        ) -> None: ...
        def ClearField(
            self, field_name: typing_extensions.Literal["message", b"message"]
        ) -> None: ...

    ERROR_FIELD_NUMBER: builtins.int
    @property
    def error(self) -> global___CompleteActivityTaskResponse.Error: ...
    def __init__(
        self,
        *,
        error: global___CompleteActivityTaskResponse.Error | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> None: ...

global___CompleteActivityTaskResponse = CompleteActivityTaskResponse

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

    HEARTBEAT_FIELD_NUMBER: builtins.int
    @property
    def heartbeat(
        self,
    ) -> temporalio.bridge.proto.core_interface_pb2.ActivityHeartbeat: ...
    def __init__(
        self,
        *,
        heartbeat: temporalio.bridge.proto.core_interface_pb2.ActivityHeartbeat
        | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["heartbeat", b"heartbeat"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["heartbeat", b"heartbeat"]
    ) -> None: ...

global___RecordActivityHeartbeatRequest = RecordActivityHeartbeatRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        message: builtins.str
        def __init__(
            self,
            *,
            message: builtins.str = ...,
        ) -> None: ...
        def ClearField(
            self, field_name: typing_extensions.Literal["message", b"message"]
        ) -> None: ...

    ERROR_FIELD_NUMBER: builtins.int
    @property
    def error(self) -> global___RecordActivityHeartbeatResponse.Error: ...
    def __init__(
        self,
        *,
        error: global___RecordActivityHeartbeatResponse.Error | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> None: ...

global___RecordActivityHeartbeatResponse = RecordActivityHeartbeatResponse

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

    RUN_ID_FIELD_NUMBER: builtins.int
    run_id: builtins.str
    def __init__(
        self,
        *,
        run_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["run_id", b"run_id"]
    ) -> None: ...

global___RequestWorkflowEvictionRequest = RequestWorkflowEvictionRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        message: builtins.str
        def __init__(
            self,
            *,
            message: builtins.str = ...,
        ) -> None: ...
        def ClearField(
            self, field_name: typing_extensions.Literal["message", b"message"]
        ) -> None: ...

    ERROR_FIELD_NUMBER: builtins.int
    @property
    def error(self) -> global___RequestWorkflowEvictionResponse.Error: ...
    def __init__(
        self,
        *,
        error: global___RequestWorkflowEvictionResponse.Error | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> None: ...

global___RequestWorkflowEvictionResponse = RequestWorkflowEvictionResponse

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

    def __init__(
        self,
    ) -> None: ...

global___ShutdownWorkerRequest = ShutdownWorkerRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        message: builtins.str
        def __init__(
            self,
            *,
            message: builtins.str = ...,
        ) -> None: ...
        def ClearField(
            self, field_name: typing_extensions.Literal["message", b"message"]
        ) -> None: ...

    ERROR_FIELD_NUMBER: builtins.int
    @property
    def error(self) -> global___ShutdownWorkerResponse.Error: ...
    def __init__(
        self,
        *,
        error: global___ShutdownWorkerResponse.Error | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["error", b"error"]
    ) -> None: ...

global___ShutdownWorkerResponse = ShutdownWorkerResponse

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

    def __init__(
        self,
    ) -> None: ...

global___FetchBufferedLogsRequest = FetchBufferedLogsRequest

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

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

        MESSAGE_FIELD_NUMBER: builtins.int
        TIMESTAMP_FIELD_NUMBER: builtins.int
        LEVEL_FIELD_NUMBER: builtins.int
        message: builtins.str
        @property
        def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
        level: global___LogLevel.ValueType
        def __init__(
            self,
            *,
            message: builtins.str = ...,
            timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
            level: global___LogLevel.ValueType = ...,
        ) -> None: ...
        def HasField(
            self, field_name: typing_extensions.Literal["timestamp", b"timestamp"]
        ) -> builtins.bool: ...
        def ClearField(
            self,
            field_name: typing_extensions.Literal[
                "level", b"level", "message", b"message", "timestamp", b"timestamp"
            ],
        ) -> None: ...

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

global___FetchBufferedLogsResponse = FetchBufferedLogsResponse
