from .request_response_pb2 import (
    CountWorkflowExecutionsRequest,
    CountWorkflowExecutionsResponse,
    CreateScheduleRequest,
    CreateScheduleResponse,
    CreateWorkflowRuleRequest,
    CreateWorkflowRuleResponse,
    DeleteScheduleRequest,
    DeleteScheduleResponse,
    DeleteWorkerDeploymentRequest,
    DeleteWorkerDeploymentResponse,
    DeleteWorkerDeploymentVersionRequest,
    DeleteWorkerDeploymentVersionResponse,
    DeleteWorkflowExecutionRequest,
    DeleteWorkflowExecutionResponse,
    DeleteWorkflowRuleRequest,
    DeleteWorkflowRuleResponse,
    DeprecateNamespaceRequest,
    DeprecateNamespaceResponse,
    DescribeBatchOperationRequest,
    DescribeBatchOperationResponse,
    DescribeDeploymentRequest,
    DescribeDeploymentResponse,
    DescribeNamespaceRequest,
    DescribeNamespaceResponse,
    DescribeScheduleRequest,
    DescribeScheduleResponse,
    DescribeTaskQueueRequest,
    DescribeTaskQueueResponse,
    DescribeWorkerDeploymentRequest,
    DescribeWorkerDeploymentResponse,
    DescribeWorkerDeploymentVersionRequest,
    DescribeWorkerDeploymentVersionResponse,
    DescribeWorkerRequest,
    DescribeWorkerResponse,
    DescribeWorkflowExecutionRequest,
    DescribeWorkflowExecutionResponse,
    DescribeWorkflowRuleRequest,
    DescribeWorkflowRuleResponse,
    ExecuteMultiOperationRequest,
    ExecuteMultiOperationResponse,
    FetchWorkerConfigRequest,
    FetchWorkerConfigResponse,
    GetClusterInfoRequest,
    GetClusterInfoResponse,
    GetCurrentDeploymentRequest,
    GetCurrentDeploymentResponse,
    GetDeploymentReachabilityRequest,
    GetDeploymentReachabilityResponse,
    GetSearchAttributesRequest,
    GetSearchAttributesResponse,
    GetSystemInfoRequest,
    GetSystemInfoResponse,
    GetWorkerBuildIdCompatibilityRequest,
    GetWorkerBuildIdCompatibilityResponse,
    GetWorkerTaskReachabilityRequest,
    GetWorkerTaskReachabilityResponse,
    GetWorkerVersioningRulesRequest,
    GetWorkerVersioningRulesResponse,
    GetWorkflowExecutionHistoryRequest,
    GetWorkflowExecutionHistoryResponse,
    GetWorkflowExecutionHistoryReverseRequest,
    GetWorkflowExecutionHistoryReverseResponse,
    ListArchivedWorkflowExecutionsRequest,
    ListArchivedWorkflowExecutionsResponse,
    ListBatchOperationsRequest,
    ListBatchOperationsResponse,
    ListClosedWorkflowExecutionsRequest,
    ListClosedWorkflowExecutionsResponse,
    ListDeploymentsRequest,
    ListDeploymentsResponse,
    ListNamespacesRequest,
    ListNamespacesResponse,
    ListOpenWorkflowExecutionsRequest,
    ListOpenWorkflowExecutionsResponse,
    ListScheduleMatchingTimesRequest,
    ListScheduleMatchingTimesResponse,
    ListSchedulesRequest,
    ListSchedulesResponse,
    ListTaskQueuePartitionsRequest,
    ListTaskQueuePartitionsResponse,
    ListWorkerDeploymentsRequest,
    ListWorkerDeploymentsResponse,
    ListWorkersRequest,
    ListWorkersResponse,
    ListWorkflowExecutionsRequest,
    ListWorkflowExecutionsResponse,
    ListWorkflowRulesRequest,
    ListWorkflowRulesResponse,
    PatchScheduleRequest,
    PatchScheduleResponse,
    PauseActivityRequest,
    PauseActivityResponse,
    PollActivityTaskQueueRequest,
    PollActivityTaskQueueResponse,
    PollNexusTaskQueueRequest,
    PollNexusTaskQueueResponse,
    PollWorkflowExecutionUpdateRequest,
    PollWorkflowExecutionUpdateResponse,
    PollWorkflowTaskQueueRequest,
    PollWorkflowTaskQueueResponse,
    QueryWorkflowRequest,
    QueryWorkflowResponse,
    RecordActivityTaskHeartbeatByIdRequest,
    RecordActivityTaskHeartbeatByIdResponse,
    RecordActivityTaskHeartbeatRequest,
    RecordActivityTaskHeartbeatResponse,
    RecordWorkerHeartbeatRequest,
    RecordWorkerHeartbeatResponse,
    RegisterNamespaceRequest,
    RegisterNamespaceResponse,
    RequestCancelWorkflowExecutionRequest,
    RequestCancelWorkflowExecutionResponse,
    ResetActivityRequest,
    ResetActivityResponse,
    ResetStickyTaskQueueRequest,
    ResetStickyTaskQueueResponse,
    ResetWorkflowExecutionRequest,
    ResetWorkflowExecutionResponse,
    RespondActivityTaskCanceledByIdRequest,
    RespondActivityTaskCanceledByIdResponse,
    RespondActivityTaskCanceledRequest,
    RespondActivityTaskCanceledResponse,
    RespondActivityTaskCompletedByIdRequest,
    RespondActivityTaskCompletedByIdResponse,
    RespondActivityTaskCompletedRequest,
    RespondActivityTaskCompletedResponse,
    RespondActivityTaskFailedByIdRequest,
    RespondActivityTaskFailedByIdResponse,
    RespondActivityTaskFailedRequest,
    RespondActivityTaskFailedResponse,
    RespondNexusTaskCompletedRequest,
    RespondNexusTaskCompletedResponse,
    RespondNexusTaskFailedRequest,
    RespondNexusTaskFailedResponse,
    RespondQueryTaskCompletedRequest,
    RespondQueryTaskCompletedResponse,
    RespondWorkflowTaskCompletedRequest,
    RespondWorkflowTaskCompletedResponse,
    RespondWorkflowTaskFailedRequest,
    RespondWorkflowTaskFailedResponse,
    ScanWorkflowExecutionsRequest,
    ScanWorkflowExecutionsResponse,
    SetCurrentDeploymentRequest,
    SetCurrentDeploymentResponse,
    SetWorkerDeploymentCurrentVersionRequest,
    SetWorkerDeploymentCurrentVersionResponse,
    SetWorkerDeploymentManagerRequest,
    SetWorkerDeploymentManagerResponse,
    SetWorkerDeploymentRampingVersionRequest,
    SetWorkerDeploymentRampingVersionResponse,
    ShutdownWorkerRequest,
    ShutdownWorkerResponse,
    SignalWithStartWorkflowExecutionRequest,
    SignalWithStartWorkflowExecutionResponse,
    SignalWorkflowExecutionRequest,
    SignalWorkflowExecutionResponse,
    StartBatchOperationRequest,
    StartBatchOperationResponse,
    StartWorkflowExecutionRequest,
    StartWorkflowExecutionResponse,
    StopBatchOperationRequest,
    StopBatchOperationResponse,
    TerminateWorkflowExecutionRequest,
    TerminateWorkflowExecutionResponse,
    TriggerWorkflowRuleRequest,
    TriggerWorkflowRuleResponse,
    UnpauseActivityRequest,
    UnpauseActivityResponse,
    UpdateActivityOptionsRequest,
    UpdateActivityOptionsResponse,
    UpdateNamespaceRequest,
    UpdateNamespaceResponse,
    UpdateScheduleRequest,
    UpdateScheduleResponse,
    UpdateTaskQueueConfigRequest,
    UpdateTaskQueueConfigResponse,
    UpdateWorkerBuildIdCompatibilityRequest,
    UpdateWorkerBuildIdCompatibilityResponse,
    UpdateWorkerConfigRequest,
    UpdateWorkerConfigResponse,
    UpdateWorkerDeploymentVersionMetadataRequest,
    UpdateWorkerDeploymentVersionMetadataResponse,
    UpdateWorkerVersioningRulesRequest,
    UpdateWorkerVersioningRulesResponse,
    UpdateWorkflowExecutionOptionsRequest,
    UpdateWorkflowExecutionOptionsResponse,
    UpdateWorkflowExecutionRequest,
    UpdateWorkflowExecutionResponse,
)

__all__ = [
    "CountWorkflowExecutionsRequest",
    "CountWorkflowExecutionsResponse",
    "CreateScheduleRequest",
    "CreateScheduleResponse",
    "CreateWorkflowRuleRequest",
    "CreateWorkflowRuleResponse",
    "DeleteScheduleRequest",
    "DeleteScheduleResponse",
    "DeleteWorkerDeploymentRequest",
    "DeleteWorkerDeploymentResponse",
    "DeleteWorkerDeploymentVersionRequest",
    "DeleteWorkerDeploymentVersionResponse",
    "DeleteWorkflowExecutionRequest",
    "DeleteWorkflowExecutionResponse",
    "DeleteWorkflowRuleRequest",
    "DeleteWorkflowRuleResponse",
    "DeprecateNamespaceRequest",
    "DeprecateNamespaceResponse",
    "DescribeBatchOperationRequest",
    "DescribeBatchOperationResponse",
    "DescribeDeploymentRequest",
    "DescribeDeploymentResponse",
    "DescribeNamespaceRequest",
    "DescribeNamespaceResponse",
    "DescribeScheduleRequest",
    "DescribeScheduleResponse",
    "DescribeTaskQueueRequest",
    "DescribeTaskQueueResponse",
    "DescribeWorkerDeploymentRequest",
    "DescribeWorkerDeploymentResponse",
    "DescribeWorkerDeploymentVersionRequest",
    "DescribeWorkerDeploymentVersionResponse",
    "DescribeWorkerRequest",
    "DescribeWorkerResponse",
    "DescribeWorkflowExecutionRequest",
    "DescribeWorkflowExecutionResponse",
    "DescribeWorkflowRuleRequest",
    "DescribeWorkflowRuleResponse",
    "ExecuteMultiOperationRequest",
    "ExecuteMultiOperationResponse",
    "FetchWorkerConfigRequest",
    "FetchWorkerConfigResponse",
    "GetClusterInfoRequest",
    "GetClusterInfoResponse",
    "GetCurrentDeploymentRequest",
    "GetCurrentDeploymentResponse",
    "GetDeploymentReachabilityRequest",
    "GetDeploymentReachabilityResponse",
    "GetSearchAttributesRequest",
    "GetSearchAttributesResponse",
    "GetSystemInfoRequest",
    "GetSystemInfoResponse",
    "GetWorkerBuildIdCompatibilityRequest",
    "GetWorkerBuildIdCompatibilityResponse",
    "GetWorkerTaskReachabilityRequest",
    "GetWorkerTaskReachabilityResponse",
    "GetWorkerVersioningRulesRequest",
    "GetWorkerVersioningRulesResponse",
    "GetWorkflowExecutionHistoryRequest",
    "GetWorkflowExecutionHistoryResponse",
    "GetWorkflowExecutionHistoryReverseRequest",
    "GetWorkflowExecutionHistoryReverseResponse",
    "ListArchivedWorkflowExecutionsRequest",
    "ListArchivedWorkflowExecutionsResponse",
    "ListBatchOperationsRequest",
    "ListBatchOperationsResponse",
    "ListClosedWorkflowExecutionsRequest",
    "ListClosedWorkflowExecutionsResponse",
    "ListDeploymentsRequest",
    "ListDeploymentsResponse",
    "ListNamespacesRequest",
    "ListNamespacesResponse",
    "ListOpenWorkflowExecutionsRequest",
    "ListOpenWorkflowExecutionsResponse",
    "ListScheduleMatchingTimesRequest",
    "ListScheduleMatchingTimesResponse",
    "ListSchedulesRequest",
    "ListSchedulesResponse",
    "ListTaskQueuePartitionsRequest",
    "ListTaskQueuePartitionsResponse",
    "ListWorkerDeploymentsRequest",
    "ListWorkerDeploymentsResponse",
    "ListWorkersRequest",
    "ListWorkersResponse",
    "ListWorkflowExecutionsRequest",
    "ListWorkflowExecutionsResponse",
    "ListWorkflowRulesRequest",
    "ListWorkflowRulesResponse",
    "PatchScheduleRequest",
    "PatchScheduleResponse",
    "PauseActivityRequest",
    "PauseActivityResponse",
    "PollActivityTaskQueueRequest",
    "PollActivityTaskQueueResponse",
    "PollNexusTaskQueueRequest",
    "PollNexusTaskQueueResponse",
    "PollWorkflowExecutionUpdateRequest",
    "PollWorkflowExecutionUpdateResponse",
    "PollWorkflowTaskQueueRequest",
    "PollWorkflowTaskQueueResponse",
    "QueryWorkflowRequest",
    "QueryWorkflowResponse",
    "RecordActivityTaskHeartbeatByIdRequest",
    "RecordActivityTaskHeartbeatByIdResponse",
    "RecordActivityTaskHeartbeatRequest",
    "RecordActivityTaskHeartbeatResponse",
    "RecordWorkerHeartbeatRequest",
    "RecordWorkerHeartbeatResponse",
    "RegisterNamespaceRequest",
    "RegisterNamespaceResponse",
    "RequestCancelWorkflowExecutionRequest",
    "RequestCancelWorkflowExecutionResponse",
    "ResetActivityRequest",
    "ResetActivityResponse",
    "ResetStickyTaskQueueRequest",
    "ResetStickyTaskQueueResponse",
    "ResetWorkflowExecutionRequest",
    "ResetWorkflowExecutionResponse",
    "RespondActivityTaskCanceledByIdRequest",
    "RespondActivityTaskCanceledByIdResponse",
    "RespondActivityTaskCanceledRequest",
    "RespondActivityTaskCanceledResponse",
    "RespondActivityTaskCompletedByIdRequest",
    "RespondActivityTaskCompletedByIdResponse",
    "RespondActivityTaskCompletedRequest",
    "RespondActivityTaskCompletedResponse",
    "RespondActivityTaskFailedByIdRequest",
    "RespondActivityTaskFailedByIdResponse",
    "RespondActivityTaskFailedRequest",
    "RespondActivityTaskFailedResponse",
    "RespondNexusTaskCompletedRequest",
    "RespondNexusTaskCompletedResponse",
    "RespondNexusTaskFailedRequest",
    "RespondNexusTaskFailedResponse",
    "RespondQueryTaskCompletedRequest",
    "RespondQueryTaskCompletedResponse",
    "RespondWorkflowTaskCompletedRequest",
    "RespondWorkflowTaskCompletedResponse",
    "RespondWorkflowTaskFailedRequest",
    "RespondWorkflowTaskFailedResponse",
    "ScanWorkflowExecutionsRequest",
    "ScanWorkflowExecutionsResponse",
    "SetCurrentDeploymentRequest",
    "SetCurrentDeploymentResponse",
    "SetWorkerDeploymentCurrentVersionRequest",
    "SetWorkerDeploymentCurrentVersionResponse",
    "SetWorkerDeploymentManagerRequest",
    "SetWorkerDeploymentManagerResponse",
    "SetWorkerDeploymentRampingVersionRequest",
    "SetWorkerDeploymentRampingVersionResponse",
    "ShutdownWorkerRequest",
    "ShutdownWorkerResponse",
    "SignalWithStartWorkflowExecutionRequest",
    "SignalWithStartWorkflowExecutionResponse",
    "SignalWorkflowExecutionRequest",
    "SignalWorkflowExecutionResponse",
    "StartBatchOperationRequest",
    "StartBatchOperationResponse",
    "StartWorkflowExecutionRequest",
    "StartWorkflowExecutionResponse",
    "StopBatchOperationRequest",
    "StopBatchOperationResponse",
    "TerminateWorkflowExecutionRequest",
    "TerminateWorkflowExecutionResponse",
    "TriggerWorkflowRuleRequest",
    "TriggerWorkflowRuleResponse",
    "UnpauseActivityRequest",
    "UnpauseActivityResponse",
    "UpdateActivityOptionsRequest",
    "UpdateActivityOptionsResponse",
    "UpdateNamespaceRequest",
    "UpdateNamespaceResponse",
    "UpdateScheduleRequest",
    "UpdateScheduleResponse",
    "UpdateTaskQueueConfigRequest",
    "UpdateTaskQueueConfigResponse",
    "UpdateWorkerBuildIdCompatibilityRequest",
    "UpdateWorkerBuildIdCompatibilityResponse",
    "UpdateWorkerConfigRequest",
    "UpdateWorkerConfigResponse",
    "UpdateWorkerDeploymentVersionMetadataRequest",
    "UpdateWorkerDeploymentVersionMetadataResponse",
    "UpdateWorkerVersioningRulesRequest",
    "UpdateWorkerVersioningRulesResponse",
    "UpdateWorkflowExecutionOptionsRequest",
    "UpdateWorkflowExecutionOptionsResponse",
    "UpdateWorkflowExecutionRequest",
    "UpdateWorkflowExecutionResponse",
]

# gRPC is optional
try:
    import grpc

    from .service_pb2_grpc import (
        WorkflowServiceServicer,
        WorkflowServiceStub,
        add_WorkflowServiceServicer_to_server,
    )

    __all__.extend(
        [
            "WorkflowServiceServicer",
            "WorkflowServiceStub",
            "add_WorkflowServiceServicer_to_server",
        ]
    )
except ImportError:
    pass
