From e2d9c24ffa9f78a93d98a4e4eeb2960f276d3b25 Mon Sep 17 00:00:00 2001 From: Chad Retz Date: Tue, 4 Jun 2024 11:04:05 -0500 Subject: [PATCH] Update core/dependencies and call worker.validate Fixes #520 Fixes #532 --- .github/workflows/ci.yml | 2 +- README.md | 4 +- temporalio/api/command/v1/__init__.py | 4 + temporalio/api/command/v1/message_pb2.py | 119 +- temporalio/api/command/v1/message_pb2.pyi | 188 ++- temporalio/api/common/v1/__init__.py | 2 + temporalio/api/common/v1/message_pb2.py | 54 +- temporalio/api/common/v1/message_pb2.pyi | 99 +- temporalio/api/enums/v1/__init__.py | 31 +- temporalio/api/enums/v1/command_type_pb2.py | 6 +- temporalio/api/enums/v1/command_type_pb2.pyi | 4 + temporalio/api/enums/v1/common_pb2.py | 38 +- temporalio/api/enums/v1/common_pb2.pyi | 120 ++ temporalio/api/enums/v1/event_type_pb2.py | 13 +- temporalio/api/enums/v1/event_type_pb2.pyi | 40 +- temporalio/api/enums/v1/failed_cause_pb2.py | 31 +- temporalio/api/enums/v1/failed_cause_pb2.pyi | 50 + temporalio/api/enums/v1/task_queue_pb2.py | 25 +- temporalio/api/enums/v1/task_queue_pb2.pyi | 86 ++ temporalio/api/enums/v1/update_pb2.py | 18 +- temporalio/api/enums/v1/update_pb2.pyi | 33 +- temporalio/api/enums/v1/workflow_pb2.py | 42 +- temporalio/api/enums/v1/workflow_pb2.pyi | 55 +- temporalio/api/errordetails/v1/__init__.py | 2 + temporalio/api/errordetails/v1/message_pb2.py | 95 +- .../api/errordetails/v1/message_pb2.pyi | 70 +- temporalio/api/failure/v1/__init__.py | 4 + temporalio/api/failure/v1/message_pb2.py | 72 +- temporalio/api/failure/v1/message_pb2.pyi | 92 +- temporalio/api/history/v1/__init__.py | 18 +- temporalio/api/history/v1/message_pb2.py | 345 +++-- temporalio/api/history/v1/message_pb2.pyi | 554 ++++++- temporalio/api/namespace/v1/message_pb2.py | 53 +- temporalio/api/namespace/v1/message_pb2.pyi | 43 + temporalio/api/nexus/__init__.py | 0 temporalio/api/nexus/v1/__init__.py | 29 + temporalio/api/nexus/v1/message_pb2.py | 299 ++++ temporalio/api/nexus/v1/message_pb2.pyi | 691 +++++++++ temporalio/api/operatorservice/v1/__init__.py | 20 + .../v1/request_response_pb2.py | 239 +++- .../v1/request_response_pb2.pyi | 276 +++- .../api/operatorservice/v1/service_pb2.py | 30 +- .../operatorservice/v1/service_pb2_grpc.py | 244 +++- .../operatorservice/v1/service_pb2_grpc.pyi | 108 +- temporalio/api/schedule/v1/message_pb2.py | 44 +- temporalio/api/schedule/v1/message_pb2.pyi | 8 + .../api/sdk/v1/workflow_metadata_pb2.pyi | 2 +- temporalio/api/taskqueue/v1/__init__.py | 16 + temporalio/api/taskqueue/v1/message_pb2.py | 171 ++- temporalio/api/taskqueue/v1/message_pb2.pyi | 320 +++++ temporalio/api/workflow/v1/__init__.py | 6 + temporalio/api/workflow/v1/message_pb2.py | 110 +- temporalio/api/workflow/v1/message_pb2.pyi | 431 ++++++ temporalio/api/workflowservice/v1/__init__.py | 24 + .../v1/request_response_pb2.py | 883 ++++++++---- .../v1/request_response_pb2.pyi | 1269 +++++++++++++++-- .../api/workflowservice/v1/service_pb2.py | 12 +- .../workflowservice/v1/service_pb2_grpc.py | 312 +++- .../workflowservice/v1/service_pb2_grpc.pyi | 168 ++- temporalio/bridge/Cargo.lock | 1139 ++++++++------- temporalio/bridge/sdk-core | 2 +- temporalio/bridge/src/client.rs | 19 + temporalio/bridge/src/worker.rs | 9 + temporalio/bridge/worker.py | 4 + temporalio/service.py | 60 + temporalio/worker/_worker.py | 3 + tests/test_service.py | 5 +- tests/worker/test_worker.py | 14 + 68 files changed, 7991 insertions(+), 1388 deletions(-) create mode 100644 temporalio/api/nexus/__init__.py create mode 100644 temporalio/api/nexus/v1/__init__.py create mode 100644 temporalio/api/nexus/v1/message_pb2.py create mode 100644 temporalio/api/nexus/v1/message_pb2.pyi diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20e75c4e3..6e3503b7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: poetry add "protobuf<4" poe gen-protos poe format - [[ -z $(git status --porcelain temporalio) ]] || (git diff; echo "Protos changed"; exit 1) + [[ -z $(git status --porcelain temporalio) ]] || (git diff temporalio; echo "Protos changed"; exit 1) poe test -s -o log_cli_level=DEBUG # Do docs stuff (only on one host) diff --git a/README.md b/README.md index f98e76423..75226fef1 100644 --- a/README.md +++ b/README.md @@ -1477,10 +1477,10 @@ to `1` prior to running tests. Do not commit `poetry.lock` or `pyproject.toml` changes. To go back from this downgrade, restore `pyproject.toml` and run `poetry update protobuf grpcio-tools`. -For a less system-intrusive approach, you can: +For a less system-intrusive approach, you can (note this approach [may have a bug](https://github.com/temporalio/sdk-python/issues/543)): ```shell docker build -f scripts/_proto/Dockerfile . -docker run -v "${PWD}/temporalio/api:/api_new" -v "${PWD}/temporalio/bridge/proto:/bridge_new" +docker run --rm -v "${PWD}/temporalio/api:/api_new" -v "${PWD}/temporalio/bridge/proto:/bridge_new" poe format ``` diff --git a/temporalio/api/command/v1/__init__.py b/temporalio/api/command/v1/__init__.py index d8b774cc5..e0ce8f712 100644 --- a/temporalio/api/command/v1/__init__.py +++ b/temporalio/api/command/v1/__init__.py @@ -10,7 +10,9 @@ RecordMarkerCommandAttributes, RequestCancelActivityTaskCommandAttributes, RequestCancelExternalWorkflowExecutionCommandAttributes, + RequestCancelNexusOperationCommandAttributes, ScheduleActivityTaskCommandAttributes, + ScheduleNexusOperationCommandAttributes, SignalExternalWorkflowExecutionCommandAttributes, StartChildWorkflowExecutionCommandAttributes, StartTimerCommandAttributes, @@ -29,7 +31,9 @@ "RecordMarkerCommandAttributes", "RequestCancelActivityTaskCommandAttributes", "RequestCancelExternalWorkflowExecutionCommandAttributes", + "RequestCancelNexusOperationCommandAttributes", "ScheduleActivityTaskCommandAttributes", + "ScheduleNexusOperationCommandAttributes", "SignalExternalWorkflowExecutionCommandAttributes", "StartChildWorkflowExecutionCommandAttributes", "StartTimerCommandAttributes", diff --git a/temporalio/api/command/v1/message_pb2.py b/temporalio/api/command/v1/message_pb2.py index 9a4c31f6e..d64c3d586 100644 --- a/temporalio/api/command/v1/message_pb2.py +++ b/temporalio/api/command/v1/message_pb2.py @@ -32,7 +32,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n%temporal/api/command/v1/message.proto\x12\x17temporal.api.command.v1\x1a\x1egoogle/protobuf/duration.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a(temporal/api/enums/v1/command_type.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto"\x83\x05\n%ScheduleActivityTaskCommandAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x1f\n\x17request_eager_execution\x18\x0c \x01(\x08\x12\x1e\n\x16use_compatible_version\x18\r \x01(\x08J\x04\x08\x03\x10\x04"H\n*RequestCancelActivityTaskCommandAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03"i\n\x1bStartTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"^\n*CompleteWorkflowExecutionCommandAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"[\n&FailWorkflowExecutionCommandAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"0\n\x1c\x43\x61ncelTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t"]\n(CancelWorkflowExecutionCommandAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xaf\x01\n7RequestCancelExternalWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xa7\x02\n0SignalExternalWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x05 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x06 \x01(\x08\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"v\n/UpsertWorkflowSearchAttributesCommandAttributes\x12\x43\n\x11search_attributes\x18\x01 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"`\n)ModifyWorkflowPropertiesCommandAttributes\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xbf\x02\n\x1dRecordMarkerCommandAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xd1\x06\n/ContinueAsNewWorkflowExecutionCommandAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x07 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12@\n\tinitiator\x18\x08 \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x31\n\x07\x66\x61ilure\x18\t \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\n \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rcron_schedule\x18\x0b \x01(\t\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1e\n\x16use_compatible_version\x18\x0f \x01(\x08"\xeb\x06\n,StartChildWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12.\n\x06header\x18\x0e \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x0f \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x10 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1e\n\x16use_compatible_version\x18\x11 \x01(\x08"6\n ProtocolMessageCommandAttributes\x12\x12\n\nmessage_id\x18\x01 \x01(\t"\x89\x0f\n\x07\x43ommand\x12\x38\n\x0c\x63ommand_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.CommandType\x12s\n)schedule_activity_task_command_attributes\x18\x02 \x01(\x0b\x32>.temporal.api.command.v1.ScheduleActivityTaskCommandAttributesH\x00\x12^\n\x1estart_timer_command_attributes\x18\x03 \x01(\x0b\x32\x34.temporal.api.command.v1.StartTimerCommandAttributesH\x00\x12}\n.complete_workflow_execution_command_attributes\x18\x04 \x01(\x0b\x32\x43.temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributesH\x00\x12u\n*fail_workflow_execution_command_attributes\x18\x05 \x01(\x0b\x32?.temporal.api.command.v1.FailWorkflowExecutionCommandAttributesH\x00\x12~\n/request_cancel_activity_task_command_attributes\x18\x06 \x01(\x0b\x32\x43.temporal.api.command.v1.RequestCancelActivityTaskCommandAttributesH\x00\x12`\n\x1f\x63\x61ncel_timer_command_attributes\x18\x07 \x01(\x0b\x32\x35.temporal.api.command.v1.CancelTimerCommandAttributesH\x00\x12y\n,cancel_workflow_execution_command_attributes\x18\x08 \x01(\x0b\x32\x41.temporal.api.command.v1.CancelWorkflowExecutionCommandAttributesH\x00\x12\x99\x01\n=request_cancel_external_workflow_execution_command_attributes\x18\t \x01(\x0b\x32P.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributesH\x00\x12\x62\n record_marker_command_attributes\x18\n \x01(\x0b\x32\x36.temporal.api.command.v1.RecordMarkerCommandAttributesH\x00\x12\x89\x01\n5continue_as_new_workflow_execution_command_attributes\x18\x0b \x01(\x0b\x32H.temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributesH\x00\x12\x82\x01\n1start_child_workflow_execution_command_attributes\x18\x0c \x01(\x0b\x32\x45.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributesH\x00\x12\x8a\x01\n5signal_external_workflow_execution_command_attributes\x18\r \x01(\x0b\x32I.temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributesH\x00\x12\x88\x01\n4upsert_workflow_search_attributes_command_attributes\x18\x0e \x01(\x0b\x32H.temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributesH\x00\x12h\n#protocol_message_command_attributes\x18\x0f \x01(\x0b\x32\x39.temporal.api.command.v1.ProtocolMessageCommandAttributesH\x00\x12{\n-modify_workflow_properties_command_attributes\x18\x11 \x01(\x0b\x32\x42.temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributesH\x00\x42\x0c\n\nattributesB\x8e\x01\n\x1aio.temporal.api.command.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/command/v1;command\xaa\x02\x19Temporalio.Api.Command.V1\xea\x02\x1cTemporalio::Api::Command::V1b\x06proto3' + b'\n%temporal/api/command/v1/message.proto\x12\x17temporal.api.command.v1\x1a\x1egoogle/protobuf/duration.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a(temporal/api/enums/v1/command_type.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto"\x82\x05\n%ScheduleActivityTaskCommandAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x1f\n\x17request_eager_execution\x18\x0c \x01(\x08\x12\x1d\n\x15use_workflow_build_id\x18\r \x01(\x08J\x04\x08\x03\x10\x04"H\n*RequestCancelActivityTaskCommandAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03"i\n\x1bStartTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"^\n*CompleteWorkflowExecutionCommandAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"[\n&FailWorkflowExecutionCommandAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"0\n\x1c\x43\x61ncelTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t"]\n(CancelWorkflowExecutionCommandAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xaf\x01\n7RequestCancelExternalWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xa7\x02\n0SignalExternalWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x05 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x06 \x01(\x08\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"v\n/UpsertWorkflowSearchAttributesCommandAttributes\x12\x43\n\x11search_attributes\x18\x01 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"`\n)ModifyWorkflowPropertiesCommandAttributes\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xbf\x02\n\x1dRecordMarkerCommandAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xcb\x06\n/ContinueAsNewWorkflowExecutionCommandAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x07 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12@\n\tinitiator\x18\x08 \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x31\n\x07\x66\x61ilure\x18\t \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\n \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rcron_schedule\x18\x0b \x01(\t\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x0f \x01(\x08"\xe5\x06\n,StartChildWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12.\n\x06header\x18\x0e \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x0f \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x10 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x11 \x01(\x08"6\n ProtocolMessageCommandAttributes\x12\x12\n\nmessage_id\x18\x01 \x01(\t"\xea\x02\n\'ScheduleNexusOperationCommandAttributes\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12g\n\x0cnexus_header\x18\x06 \x03(\x0b\x32Q.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntry\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"J\n,RequestCancelNexusOperationCommandAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03"\x87\x11\n\x07\x43ommand\x12\x38\n\x0c\x63ommand_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.CommandType\x12s\n)schedule_activity_task_command_attributes\x18\x02 \x01(\x0b\x32>.temporal.api.command.v1.ScheduleActivityTaskCommandAttributesH\x00\x12^\n\x1estart_timer_command_attributes\x18\x03 \x01(\x0b\x32\x34.temporal.api.command.v1.StartTimerCommandAttributesH\x00\x12}\n.complete_workflow_execution_command_attributes\x18\x04 \x01(\x0b\x32\x43.temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributesH\x00\x12u\n*fail_workflow_execution_command_attributes\x18\x05 \x01(\x0b\x32?.temporal.api.command.v1.FailWorkflowExecutionCommandAttributesH\x00\x12~\n/request_cancel_activity_task_command_attributes\x18\x06 \x01(\x0b\x32\x43.temporal.api.command.v1.RequestCancelActivityTaskCommandAttributesH\x00\x12`\n\x1f\x63\x61ncel_timer_command_attributes\x18\x07 \x01(\x0b\x32\x35.temporal.api.command.v1.CancelTimerCommandAttributesH\x00\x12y\n,cancel_workflow_execution_command_attributes\x18\x08 \x01(\x0b\x32\x41.temporal.api.command.v1.CancelWorkflowExecutionCommandAttributesH\x00\x12\x99\x01\n=request_cancel_external_workflow_execution_command_attributes\x18\t \x01(\x0b\x32P.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributesH\x00\x12\x62\n record_marker_command_attributes\x18\n \x01(\x0b\x32\x36.temporal.api.command.v1.RecordMarkerCommandAttributesH\x00\x12\x89\x01\n5continue_as_new_workflow_execution_command_attributes\x18\x0b \x01(\x0b\x32H.temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributesH\x00\x12\x82\x01\n1start_child_workflow_execution_command_attributes\x18\x0c \x01(\x0b\x32\x45.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributesH\x00\x12\x8a\x01\n5signal_external_workflow_execution_command_attributes\x18\r \x01(\x0b\x32I.temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributesH\x00\x12\x88\x01\n4upsert_workflow_search_attributes_command_attributes\x18\x0e \x01(\x0b\x32H.temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributesH\x00\x12h\n#protocol_message_command_attributes\x18\x0f \x01(\x0b\x32\x39.temporal.api.command.v1.ProtocolMessageCommandAttributesH\x00\x12{\n-modify_workflow_properties_command_attributes\x18\x11 \x01(\x0b\x32\x42.temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributesH\x00\x12w\n+schedule_nexus_operation_command_attributes\x18\x12 \x01(\x0b\x32@.temporal.api.command.v1.ScheduleNexusOperationCommandAttributesH\x00\x12\x82\x01\n1request_cancel_nexus_operation_command_attributes\x18\x13 \x01(\x0b\x32\x45.temporal.api.command.v1.RequestCancelNexusOperationCommandAttributesH\x00\x42\x0c\n\nattributesB\x8e\x01\n\x1aio.temporal.api.command.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/command/v1;command\xaa\x02\x19Temporalio.Api.Command.V1\xea\x02\x1cTemporalio::Api::Command::V1b\x06proto3' ) @@ -86,6 +86,15 @@ _PROTOCOLMESSAGECOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ "ProtocolMessageCommandAttributes" ] +_SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "ScheduleNexusOperationCommandAttributes" +] +_SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY = ( + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES.nested_types_by_name["NexusHeaderEntry"] +) +_REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "RequestCancelNexusOperationCommandAttributes" +] _COMMAND = DESCRIPTOR.message_types_by_name["Command"] ScheduleActivityTaskCommandAttributes = _reflection.GeneratedProtocolMessageType( "ScheduleActivityTaskCommandAttributes", @@ -262,6 +271,38 @@ ) _sym_db.RegisterMessage(ProtocolMessageCommandAttributes) +ScheduleNexusOperationCommandAttributes = _reflection.GeneratedProtocolMessageType( + "ScheduleNexusOperationCommandAttributes", + (_message.Message,), + { + "NexusHeaderEntry": _reflection.GeneratedProtocolMessageType( + "NexusHeaderEntry", + (_message.Message,), + { + "DESCRIPTOR": _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY, + "__module__": "temporal.api.command.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntry) + }, + ), + "DESCRIPTOR": _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES, + "__module__": "temporal.api.command.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleNexusOperationCommandAttributes) + }, +) +_sym_db.RegisterMessage(ScheduleNexusOperationCommandAttributes) +_sym_db.RegisterMessage(ScheduleNexusOperationCommandAttributes.NexusHeaderEntry) + +RequestCancelNexusOperationCommandAttributes = _reflection.GeneratedProtocolMessageType( + "RequestCancelNexusOperationCommandAttributes", + (_message.Message,), + { + "DESCRIPTOR": _REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES, + "__module__": "temporal.api.command.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RequestCancelNexusOperationCommandAttributes) + }, +) +_sym_db.RegisterMessage(RequestCancelNexusOperationCommandAttributes) + Command = _reflection.GeneratedProtocolMessageType( "Command", (_message.Message,), @@ -278,38 +319,48 @@ DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.command.v1B\014MessageProtoP\001Z%go.temporal.io/api/command/v1;command\252\002\031Temporalio.Api.Command.V1\352\002\034Temporalio::Api::Command::V1" _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._options = None _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._serialized_options = b"8\001" + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY._options = None + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY._serialized_options = ( + b"8\001" + ) _SCHEDULEACTIVITYTASKCOMMANDATTRIBUTES._serialized_start = 297 - _SCHEDULEACTIVITYTASKCOMMANDATTRIBUTES._serialized_end = 940 - _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES._serialized_start = 942 - _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES._serialized_end = 1014 - _STARTTIMERCOMMANDATTRIBUTES._serialized_start = 1016 - _STARTTIMERCOMMANDATTRIBUTES._serialized_end = 1121 - _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1123 - _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1217 - _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1219 - _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1310 - _CANCELTIMERCOMMANDATTRIBUTES._serialized_start = 1312 - _CANCELTIMERCOMMANDATTRIBUTES._serialized_end = 1360 - _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1362 - _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1455 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1458 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1633 - _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1636 - _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1931 - _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES._serialized_start = 1933 - _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES._serialized_end = 2051 - _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES._serialized_start = 2053 - _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES._serialized_end = 2149 - _RECORDMARKERCOMMANDATTRIBUTES._serialized_start = 2152 - _RECORDMARKERCOMMANDATTRIBUTES._serialized_end = 2471 - _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._serialized_start = 2391 - _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._serialized_end = 2471 - _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 2474 - _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 3323 - _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 3326 - _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 4201 - _PROTOCOLMESSAGECOMMANDATTRIBUTES._serialized_start = 4203 - _PROTOCOLMESSAGECOMMANDATTRIBUTES._serialized_end = 4257 - _COMMAND._serialized_start = 4260 - _COMMAND._serialized_end = 6189 + _SCHEDULEACTIVITYTASKCOMMANDATTRIBUTES._serialized_end = 939 + _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES._serialized_start = 941 + _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES._serialized_end = 1013 + _STARTTIMERCOMMANDATTRIBUTES._serialized_start = 1015 + _STARTTIMERCOMMANDATTRIBUTES._serialized_end = 1120 + _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1122 + _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1216 + _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1218 + _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1309 + _CANCELTIMERCOMMANDATTRIBUTES._serialized_start = 1311 + _CANCELTIMERCOMMANDATTRIBUTES._serialized_end = 1359 + _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1361 + _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1454 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1457 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1632 + _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1635 + _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1930 + _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES._serialized_start = 1932 + _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES._serialized_end = 2050 + _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES._serialized_start = 2052 + _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES._serialized_end = 2148 + _RECORDMARKERCOMMANDATTRIBUTES._serialized_start = 2151 + _RECORDMARKERCOMMANDATTRIBUTES._serialized_end = 2470 + _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._serialized_start = 2390 + _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._serialized_end = 2470 + _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 2473 + _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 3316 + _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 3319 + _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 4188 + _PROTOCOLMESSAGECOMMANDATTRIBUTES._serialized_start = 4190 + _PROTOCOLMESSAGECOMMANDATTRIBUTES._serialized_end = 4244 + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES._serialized_start = 4247 + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES._serialized_end = 4609 + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY._serialized_start = 4559 + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY._serialized_end = 4609 + _REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES._serialized_start = 4611 + _REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES._serialized_end = 4685 + _COMMAND._serialized_start = 4688 + _COMMAND._serialized_end = 6871 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/command/v1/message_pb2.pyi b/temporalio/api/command/v1/message_pb2.pyi index cd99b3c37..305563529 100644 --- a/temporalio/api/command/v1/message_pb2.pyi +++ b/temporalio/api/command/v1/message_pb2.pyi @@ -57,7 +57,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): HEARTBEAT_TIMEOUT_FIELD_NUMBER: builtins.int RETRY_POLICY_FIELD_NUMBER: builtins.int REQUEST_EAGER_EXECUTION_FIELD_NUMBER: builtins.int - USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int + USE_WORKFLOW_BUILD_ID_FIELD_NUMBER: builtins.int activity_id: builtins.str @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... @@ -111,10 +111,9 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): """Request to start the activity directly bypassing matching service and worker polling The slot for executing the activity should be reserved when setting this field to true. """ - use_compatible_version: builtins.bool - """If this is set, the workflow executing this command wishes to start the activity using - a version compatible with the version that this workflow most recently ran on, if such - behavior is possible. + use_workflow_build_id: builtins.bool + """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, + Assignment rules of the activity's Task Queue will be used to determine the Build ID. """ def __init__( self, @@ -130,7 +129,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): heartbeat_timeout: google.protobuf.duration_pb2.Duration | None = ..., retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ..., request_eager_execution: builtins.bool = ..., - use_compatible_version: builtins.bool = ..., + use_workflow_build_id: builtins.bool = ..., ) -> None: ... def HasField( self, @@ -180,8 +179,8 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): b"start_to_close_timeout", "task_queue", b"task_queue", - "use_compatible_version", - b"use_compatible_version", + "use_workflow_build_id", + b"use_workflow_build_id", ], ) -> None: ... @@ -600,7 +599,7 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me HEADER_FIELD_NUMBER: builtins.int MEMO_FIELD_NUMBER: builtins.int SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int - USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int + INHERIT_BUILD_ID_FIELD_NUMBER: builtins.int @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @property @@ -636,9 +635,9 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... - use_compatible_version: builtins.bool - """If this is set, the workflow executing this command wishes to continue as new using a version - compatible with the version that this workflow most recently ran on. + inherit_build_id: builtins.bool + """If this is set, the new execution inherits the Build ID of the current execution. Otherwise, + the assignment rules will be used to independently assign a Build ID to the new execution. """ def __init__( self, @@ -659,7 +658,7 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me memo: temporalio.api.common.v1.message_pb2.Memo | None = ..., search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes | None = ..., - use_compatible_version: builtins.bool = ..., + inherit_build_id: builtins.bool = ..., ) -> None: ... def HasField( self, @@ -701,6 +700,8 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me b"failure", "header", b"header", + "inherit_build_id", + b"inherit_build_id", "initiator", b"initiator", "input", @@ -715,8 +716,6 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me b"search_attributes", "task_queue", b"task_queue", - "use_compatible_version", - b"use_compatible_version", "workflow_run_timeout", b"workflow_run_timeout", "workflow_task_timeout", @@ -749,7 +748,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa HEADER_FIELD_NUMBER: builtins.int MEMO_FIELD_NUMBER: builtins.int SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int - USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int + INHERIT_BUILD_ID_FIELD_NUMBER: builtins.int namespace: builtins.str workflow_id: builtins.str @property @@ -784,10 +783,9 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... - use_compatible_version: builtins.bool - """If this is set, the workflow executing this command wishes to start the child workflow using - a version compatible with the version that this workflow most recently ran on, if such - behavior is possible. + inherit_build_id: builtins.bool + """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment + rules of the child's Task Queue will be used to independently assign a Build ID to it. """ def __init__( self, @@ -809,7 +807,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa memo: temporalio.api.common.v1.message_pb2.Memo | None = ..., search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes | None = ..., - use_compatible_version: builtins.bool = ..., + inherit_build_id: builtins.bool = ..., ) -> None: ... def HasField( self, @@ -845,6 +843,8 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa b"cron_schedule", "header", b"header", + "inherit_build_id", + b"inherit_build_id", "input", b"input", "memo", @@ -859,8 +859,6 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa b"search_attributes", "task_queue", b"task_queue", - "use_compatible_version", - b"use_compatible_version", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_id", @@ -897,6 +895,126 @@ class ProtocolMessageCommandAttributes(google.protobuf.message.Message): global___ProtocolMessageCommandAttributes = ProtocolMessageCommandAttributes +class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class NexusHeaderEntry(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: ... + + ENDPOINT_FIELD_NUMBER: builtins.int + SERVICE_FIELD_NUMBER: builtins.int + OPERATION_FIELD_NUMBER: builtins.int + INPUT_FIELD_NUMBER: builtins.int + SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int + NEXUS_HEADER_FIELD_NUMBER: builtins.int + endpoint: builtins.str + """Endpoint name, must exist in the endpoint registry or this command will fail.""" + service: builtins.str + """Service name.""" + operation: builtins.str + """Operation name.""" + @property + def input(self) -> temporalio.api.common.v1.message_pb2.Payload: + """Input for the operation. The server converts this into Nexus request content and the appropriate content headers + internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the + content is transformed back to the original Payload sent in this command. + """ + @property + def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: + """Schedule-to-close timeout for this operation. + Indicates how long the caller is willing to wait for operation completion. + Calls are retried internally by the server. + (-- api-linter: core::0140::prepositions=disabled + aip.dev/not-precedent: "to" is used to indicate interval. --) + """ + @property + def nexus_header( + self, + ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Header to attach to the Nexus request. + Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and + transmitted to external services as-is. + This is useful for propagating tracing information. + Note these headers are not the same as Temporal headers on internal activities and child workflows, these are + transmitted to Nexus operations that may be external and are not traditional payloads. + """ + def __init__( + self, + *, + endpoint: builtins.str = ..., + service: builtins.str = ..., + operation: builtins.str = ..., + input: temporalio.api.common.v1.message_pb2.Payload | None = ..., + schedule_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ..., + nexus_header: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "input", b"input", "schedule_to_close_timeout", b"schedule_to_close_timeout" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "endpoint", + b"endpoint", + "input", + b"input", + "nexus_header", + b"nexus_header", + "operation", + b"operation", + "schedule_to_close_timeout", + b"schedule_to_close_timeout", + "service", + b"service", + ], + ) -> None: ... + +global___ScheduleNexusOperationCommandAttributes = ( + ScheduleNexusOperationCommandAttributes +) + +class RequestCancelNexusOperationCommandAttributes(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int + scheduled_event_id: builtins.int + """The `NEXUS_OPERATION_SCHEDULED` event ID (a unique identifier) for the operation to be canceled. + The operation may ignore cancellation and end up with any completion state. + """ + def __init__( + self, + *, + scheduled_event_id: builtins.int = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "scheduled_event_id", b"scheduled_event_id" + ], + ) -> None: ... + +global___RequestCancelNexusOperationCommandAttributes = ( + RequestCancelNexusOperationCommandAttributes +) + class Command(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -916,6 +1034,8 @@ class Command(google.protobuf.message.Message): UPSERT_WORKFLOW_SEARCH_ATTRIBUTES_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int PROTOCOL_MESSAGE_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int MODIFY_WORKFLOW_PROPERTIES_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int + SCHEDULE_NEXUS_OPERATION_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int + REQUEST_CANCEL_NEXUS_OPERATION_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int command_type: temporalio.api.enums.v1.command_type_pb2.CommandType.ValueType @property def schedule_activity_task_command_attributes( @@ -978,6 +1098,14 @@ class Command(google.protobuf.message.Message): self, ) -> global___ModifyWorkflowPropertiesCommandAttributes: """16 is available for use - it was used as part of a prototype that never made it into a release""" + @property + def schedule_nexus_operation_command_attributes( + self, + ) -> global___ScheduleNexusOperationCommandAttributes: ... + @property + def request_cancel_nexus_operation_command_attributes( + self, + ) -> global___RequestCancelNexusOperationCommandAttributes: ... def __init__( self, *, @@ -1012,6 +1140,10 @@ class Command(google.protobuf.message.Message): | None = ..., modify_workflow_properties_command_attributes: global___ModifyWorkflowPropertiesCommandAttributes | None = ..., + schedule_nexus_operation_command_attributes: global___ScheduleNexusOperationCommandAttributes + | None = ..., + request_cancel_nexus_operation_command_attributes: global___RequestCancelNexusOperationCommandAttributes + | None = ..., ) -> None: ... def HasField( self, @@ -1038,8 +1170,12 @@ class Command(google.protobuf.message.Message): b"request_cancel_activity_task_command_attributes", "request_cancel_external_workflow_execution_command_attributes", b"request_cancel_external_workflow_execution_command_attributes", + "request_cancel_nexus_operation_command_attributes", + b"request_cancel_nexus_operation_command_attributes", "schedule_activity_task_command_attributes", b"schedule_activity_task_command_attributes", + "schedule_nexus_operation_command_attributes", + b"schedule_nexus_operation_command_attributes", "signal_external_workflow_execution_command_attributes", b"signal_external_workflow_execution_command_attributes", "start_child_workflow_execution_command_attributes", @@ -1077,8 +1213,12 @@ class Command(google.protobuf.message.Message): b"request_cancel_activity_task_command_attributes", "request_cancel_external_workflow_execution_command_attributes", b"request_cancel_external_workflow_execution_command_attributes", + "request_cancel_nexus_operation_command_attributes", + b"request_cancel_nexus_operation_command_attributes", "schedule_activity_task_command_attributes", b"schedule_activity_task_command_attributes", + "schedule_nexus_operation_command_attributes", + b"schedule_nexus_operation_command_attributes", "signal_external_workflow_execution_command_attributes", b"signal_external_workflow_execution_command_attributes", "start_child_workflow_execution_command_attributes", @@ -1108,6 +1248,8 @@ class Command(google.protobuf.message.Message): "upsert_workflow_search_attributes_command_attributes", "protocol_message_command_attributes", "modify_workflow_properties_command_attributes", + "schedule_nexus_operation_command_attributes", + "request_cancel_nexus_operation_command_attributes", ] | None ): ... diff --git a/temporalio/api/common/v1/__init__.py b/temporalio/api/common/v1/__init__.py index 2675f8a05..d957455ac 100644 --- a/temporalio/api/common/v1/__init__.py +++ b/temporalio/api/common/v1/__init__.py @@ -1,6 +1,7 @@ from .grpc_status_pb2 import GrpcStatus from .message_pb2 import ( ActivityType, + Callback, DataBlob, Header, Memo, @@ -18,6 +19,7 @@ __all__ = [ "ActivityType", + "Callback", "DataBlob", "GrpcStatus", "Header", diff --git a/temporalio/api/common/v1/message_pb2.py b/temporalio/api/common/v1/message_pb2.py index f1699c3b3..606bafdff 100644 --- a/temporalio/api/common/v1/message_pb2.py +++ b/temporalio/api/common/v1/message_pb2.py @@ -24,7 +24,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n$temporal/api/common/v1/message.proto\x12\x16temporal.api.common.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a"temporal/api/enums/v1/common.proto\x1a!temporal/api/enums/v1/reset.proto"T\n\x08\x44\x61taBlob\x12:\n\rencoding_type\x18\x01 \x01(\x0e\x32#.temporal.api.enums.v1.EncodingType\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c"=\n\x08Payloads\x12\x31\n\x08payloads\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload"\x89\x01\n\x07Payload\x12?\n\x08metadata\x18\x01 \x03(\x0b\x32-.temporal.api.common.v1.Payload.MetadataEntry\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01"\xbe\x01\n\x10SearchAttributes\x12S\n\x0eindexed_fields\x18\x01 \x03(\x0b\x32;.temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry\x1aU\n\x12IndexedFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x90\x01\n\x04Memo\x12\x38\n\x06\x66ields\x18\x01 \x03(\x0b\x32(.temporal.api.common.v1.Memo.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x94\x01\n\x06Header\x12:\n\x06\x66ields\x18\x01 \x03(\x0b\x32*.temporal.api.common.v1.Header.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"8\n\x11WorkflowExecution\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t"\x1c\n\x0cWorkflowType\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1c\n\x0c\x41\x63tivityType\x12\x0c\n\x04name\x18\x01 \x01(\t"\xd1\x01\n\x0bRetryPolicy\x12\x33\n\x10initial_interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x62\x61\x63koff_coefficient\x18\x02 \x01(\x01\x12\x33\n\x10maximum_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10maximum_attempts\x18\x04 \x01(\x05\x12!\n\x19non_retryable_error_types\x18\x05 \x03(\t"F\n\x10MeteringMetadata\x12\x32\n*nonfirst_local_activity_execution_attempts\x18\r \x01(\r"Q\n\x12WorkerVersionStamp\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x11\n\tbundle_id\x18\x02 \x01(\t\x12\x16\n\x0euse_versioning\x18\x03 \x01(\x08"E\n\x19WorkerVersionCapabilities\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x02 \x01(\x08"\x94\x02\n\x0cResetOptions\x12\x35\n\x13\x66irst_workflow_task\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x12last_workflow_task\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x1a\n\x10workflow_task_id\x18\x03 \x01(\x03H\x00\x12\x12\n\x08\x62uild_id\x18\x04 \x01(\tH\x00\x12\x43\n\x12reset_reapply_type\x18\n \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType\x12\x18\n\x10\x63urrent_run_only\x18\x0b \x01(\x08\x42\x08\n\x06targetB\x89\x01\n\x19io.temporal.api.common.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/common/v1;common\xaa\x02\x18Temporalio.Api.Common.V1\xea\x02\x1bTemporalio::Api::Common::V1b\x06proto3' + b'\n$temporal/api/common/v1/message.proto\x12\x16temporal.api.common.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a"temporal/api/enums/v1/common.proto\x1a!temporal/api/enums/v1/reset.proto"T\n\x08\x44\x61taBlob\x12:\n\rencoding_type\x18\x01 \x01(\x0e\x32#.temporal.api.enums.v1.EncodingType\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c"=\n\x08Payloads\x12\x31\n\x08payloads\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload"\x89\x01\n\x07Payload\x12?\n\x08metadata\x18\x01 \x03(\x0b\x32-.temporal.api.common.v1.Payload.MetadataEntry\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01"\xbe\x01\n\x10SearchAttributes\x12S\n\x0eindexed_fields\x18\x01 \x03(\x0b\x32;.temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry\x1aU\n\x12IndexedFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x90\x01\n\x04Memo\x12\x38\n\x06\x66ields\x18\x01 \x03(\x0b\x32(.temporal.api.common.v1.Memo.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x94\x01\n\x06Header\x12:\n\x06\x66ields\x18\x01 \x03(\x0b\x32*.temporal.api.common.v1.Header.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"8\n\x11WorkflowExecution\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t"\x1c\n\x0cWorkflowType\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1c\n\x0c\x41\x63tivityType\x12\x0c\n\x04name\x18\x01 \x01(\t"\xd1\x01\n\x0bRetryPolicy\x12\x33\n\x10initial_interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x62\x61\x63koff_coefficient\x18\x02 \x01(\x01\x12\x33\n\x10maximum_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10maximum_attempts\x18\x04 \x01(\x05\x12!\n\x19non_retryable_error_types\x18\x05 \x03(\t"F\n\x10MeteringMetadata\x12\x32\n*nonfirst_local_activity_execution_attempts\x18\r \x01(\r">\n\x12WorkerVersionStamp\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x03 \x01(\x08"E\n\x19WorkerVersionCapabilities\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x02 \x01(\x08"\xe9\x02\n\x0cResetOptions\x12\x35\n\x13\x66irst_workflow_task\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x12last_workflow_task\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x1a\n\x10workflow_task_id\x18\x03 \x01(\x03H\x00\x12\x12\n\x08\x62uild_id\x18\x04 \x01(\tH\x00\x12\x43\n\x12reset_reapply_type\x18\n \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType\x12\x18\n\x10\x63urrent_run_only\x18\x0b \x01(\x08\x12S\n\x1breset_reapply_exclude_types\x18\x0c \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeTypeB\x08\n\x06target"\xde\x01\n\x08\x43\x61llback\x12\x37\n\x05nexus\x18\x02 \x01(\x0b\x32&.temporal.api.common.v1.Callback.NexusH\x00\x1a\x87\x01\n\x05Nexus\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x42\n\x06header\x18\x02 \x03(\x0b\x32\x32.temporal.api.common.v1.Callback.Nexus.HeaderEntry\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07variantJ\x04\x08\x01\x10\x02\x42\x89\x01\n\x19io.temporal.api.common.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/common/v1;common\xaa\x02\x18Temporalio.Api.Common.V1\xea\x02\x1bTemporalio::Api::Common::V1b\x06proto3' ) @@ -50,6 +50,9 @@ "WorkerVersionCapabilities" ] _RESETOPTIONS = DESCRIPTOR.message_types_by_name["ResetOptions"] +_CALLBACK = DESCRIPTOR.message_types_by_name["Callback"] +_CALLBACK_NEXUS = _CALLBACK.nested_types_by_name["Nexus"] +_CALLBACK_NEXUS_HEADERENTRY = _CALLBACK_NEXUS.nested_types_by_name["HeaderEntry"] DataBlob = _reflection.GeneratedProtocolMessageType( "DataBlob", (_message.Message,), @@ -244,6 +247,37 @@ ) _sym_db.RegisterMessage(ResetOptions) +Callback = _reflection.GeneratedProtocolMessageType( + "Callback", + (_message.Message,), + { + "Nexus": _reflection.GeneratedProtocolMessageType( + "Nexus", + (_message.Message,), + { + "HeaderEntry": _reflection.GeneratedProtocolMessageType( + "HeaderEntry", + (_message.Message,), + { + "DESCRIPTOR": _CALLBACK_NEXUS_HEADERENTRY, + "__module__": "temporal.api.common.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback.Nexus.HeaderEntry) + }, + ), + "DESCRIPTOR": _CALLBACK_NEXUS, + "__module__": "temporal.api.common.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback.Nexus) + }, + ), + "DESCRIPTOR": _CALLBACK, + "__module__": "temporal.api.common.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback) + }, +) +_sym_db.RegisterMessage(Callback) +_sym_db.RegisterMessage(Callback.Nexus) +_sym_db.RegisterMessage(Callback.Nexus.HeaderEntry) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\031io.temporal.api.common.v1B\014MessageProtoP\001Z#go.temporal.io/api/common/v1;common\252\002\030Temporalio.Api.Common.V1\352\002\033Temporalio::Api::Common::V1" @@ -255,6 +289,8 @@ _MEMO_FIELDSENTRY._serialized_options = b"8\001" _HEADER_FIELDSENTRY._options = None _HEADER_FIELDSENTRY._serialized_options = b"8\001" + _CALLBACK_NEXUS_HEADERENTRY._options = None + _CALLBACK_NEXUS_HEADERENTRY._serialized_options = b"8\001" _DATABLOB._serialized_start = 196 _DATABLOB._serialized_end = 280 _PAYLOADS._serialized_start = 282 @@ -286,9 +322,15 @@ _METERINGMETADATA._serialized_start = 1306 _METERINGMETADATA._serialized_end = 1376 _WORKERVERSIONSTAMP._serialized_start = 1378 - _WORKERVERSIONSTAMP._serialized_end = 1459 - _WORKERVERSIONCAPABILITIES._serialized_start = 1461 - _WORKERVERSIONCAPABILITIES._serialized_end = 1530 - _RESETOPTIONS._serialized_start = 1533 - _RESETOPTIONS._serialized_end = 1809 + _WORKERVERSIONSTAMP._serialized_end = 1440 + _WORKERVERSIONCAPABILITIES._serialized_start = 1442 + _WORKERVERSIONCAPABILITIES._serialized_end = 1511 + _RESETOPTIONS._serialized_start = 1514 + _RESETOPTIONS._serialized_end = 1875 + _CALLBACK._serialized_start = 1878 + _CALLBACK._serialized_end = 2100 + _CALLBACK_NEXUS._serialized_start = 1948 + _CALLBACK_NEXUS._serialized_end = 2083 + _CALLBACK_NEXUS_HEADERENTRY._serialized_start = 2038 + _CALLBACK_NEXUS_HEADERENTRY._serialized_end = 2083 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/common/v1/message_pb2.pyi b/temporalio/api/common/v1/message_pb2.pyi index 3ceae6e22..30c8d8e68 100644 --- a/temporalio/api/common/v1/message_pb2.pyi +++ b/temporalio/api/common/v1/message_pb2.pyi @@ -446,16 +446,11 @@ class WorkerVersionStamp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor BUILD_ID_FIELD_NUMBER: builtins.int - BUNDLE_ID_FIELD_NUMBER: builtins.int USE_VERSIONING_FIELD_NUMBER: builtins.int build_id: builtins.str """An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this message is included in requests which previously used that. """ - bundle_id: builtins.str - """Set if the worker used a dynamically loadable bundle to process - the task. The bundle could be a WASM blob, JS bundle, etc. - """ use_versioning: builtins.bool """If set, the worker is opting in to worker versioning. Otherwise, this is used only as a marker for workflow reset points and the BuildIDs search attribute. @@ -464,18 +459,12 @@ class WorkerVersionStamp(google.protobuf.message.Message): self, *, build_id: builtins.str = ..., - bundle_id: builtins.str = ..., use_versioning: builtins.bool = ..., ) -> None: ... def ClearField( self, field_name: typing_extensions.Literal[ - "build_id", - b"build_id", - "bundle_id", - b"bundle_id", - "use_versioning", - b"use_versioning", + "build_id", b"build_id", "use_versioning", b"use_versioning" ], ) -> None: ... @@ -525,6 +514,7 @@ class ResetOptions(google.protobuf.message.Message): BUILD_ID_FIELD_NUMBER: builtins.int RESET_REAPPLY_TYPE_FIELD_NUMBER: builtins.int CURRENT_RUN_ONLY_FIELD_NUMBER: builtins.int + RESET_REAPPLY_EXCLUDE_TYPES_FIELD_NUMBER: builtins.int @property def first_workflow_task(self) -> google.protobuf.empty_pb2.Empty: """Resets to the first workflow task completed or started event.""" @@ -544,11 +534,20 @@ class ResetOptions(google.protobuf.message.Message): continue-as-new. """ reset_reapply_type: temporalio.api.enums.v1.reset_pb2.ResetReapplyType.ValueType - """History event reapply options.""" + """Event types to be reapplied (deprecated) + Default: RESET_REAPPLY_TYPE_SIGNAL + """ current_run_only: builtins.bool """If true, limit the reset to only within the current run. (Applies to build_id targets and possibly others in the future.) """ + @property + def reset_reapply_exclude_types( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + temporalio.api.enums.v1.reset_pb2.ResetReapplyExcludeType.ValueType + ]: + """Event types not to be reapplied""" def __init__( self, *, @@ -558,6 +557,10 @@ class ResetOptions(google.protobuf.message.Message): build_id: builtins.str = ..., reset_reapply_type: temporalio.api.enums.v1.reset_pb2.ResetReapplyType.ValueType = ..., current_run_only: builtins.bool = ..., + reset_reapply_exclude_types: collections.abc.Iterable[ + temporalio.api.enums.v1.reset_pb2.ResetReapplyExcludeType.ValueType + ] + | None = ..., ) -> None: ... def HasField( self, @@ -585,6 +588,8 @@ class ResetOptions(google.protobuf.message.Message): b"first_workflow_task", "last_workflow_task", b"last_workflow_task", + "reset_reapply_exclude_types", + b"reset_reapply_exclude_types", "reset_reapply_type", b"reset_reapply_type", "target", @@ -603,3 +608,71 @@ class ResetOptions(google.protobuf.message.Message): ): ... global___ResetOptions = ResetOptions + +class Callback(google.protobuf.message.Message): + """Callback to attach to various events in the system, e.g. workflow run completion.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class Nexus(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class HeaderEntry(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 + HEADER_FIELD_NUMBER: builtins.int + url: builtins.str + """Callback URL.""" + @property + def header( + self, + ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Header to attach to callback request.""" + def __init__( + self, + *, + url: builtins.str = ..., + header: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal["header", b"header", "url", b"url"], + ) -> None: ... + + NEXUS_FIELD_NUMBER: builtins.int + @property + def nexus(self) -> global___Callback.Nexus: ... + def __init__( + self, + *, + nexus: global___Callback.Nexus | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal["nexus", b"nexus", "variant", b"variant"], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["nexus", b"nexus", "variant", b"variant"], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["variant", b"variant"] + ) -> typing_extensions.Literal["nexus"] | None: ... + +global___Callback = Callback diff --git a/temporalio/api/enums/v1/__init__.py b/temporalio/api/enums/v1/__init__.py index c1d3b07cb..83eb1c5ab 100644 --- a/temporalio/api/enums/v1/__init__.py +++ b/temporalio/api/enums/v1/__init__.py @@ -1,10 +1,18 @@ from .batch_operation_pb2 import BatchOperationState, BatchOperationType from .command_type_pb2 import CommandType -from .common_pb2 import EncodingType, IndexedValueType, Severity +from .common_pb2 import ( + CallbackState, + EncodingType, + IndexedValueType, + NexusOperationCancellationState, + PendingNexusOperationState, + Severity, +) from .event_type_pb2 import EventType from .failed_cause_pb2 import ( CancelExternalWorkflowExecutionFailedCause, ResourceExhaustedCause, + ResourceExhaustedScope, SignalExternalWorkflowExecutionFailedCause, StartChildWorkflowExecutionFailedCause, WorkflowTaskFailedCause, @@ -13,11 +21,14 @@ from .query_pb2 import QueryRejectCondition, QueryResultType from .reset_pb2 import ResetReapplyExcludeType, ResetReapplyType, ResetType from .schedule_pb2 import ScheduleOverlapPolicy -from .task_queue_pb2 import TaskQueueKind, TaskQueueType, TaskReachability -from .update_pb2 import ( - UpdateRequestedEventOrigin, - UpdateWorkflowExecutionLifecycleStage, +from .task_queue_pb2 import ( + BuildIdTaskReachability, + DescribeTaskQueueMode, + TaskQueueKind, + TaskQueueType, + TaskReachability, ) +from .update_pb2 import UpdateAdmittedEventOrigin, UpdateWorkflowExecutionLifecycleStage from .workflow_pb2 import ( ContinueAsNewInitiator, HistoryEventFilterType, @@ -27,6 +38,7 @@ RetryState, TimeoutType, WorkflowExecutionStatus, + WorkflowIdConflictPolicy, WorkflowIdReusePolicy, ) @@ -34,16 +46,21 @@ "ArchivalState", "BatchOperationState", "BatchOperationType", + "BuildIdTaskReachability", + "CallbackState", "CancelExternalWorkflowExecutionFailedCause", "CommandType", "ContinueAsNewInitiator", + "DescribeTaskQueueMode", "EncodingType", "EventType", "HistoryEventFilterType", "IndexedValueType", "NamespaceState", + "NexusOperationCancellationState", "ParentClosePolicy", "PendingActivityState", + "PendingNexusOperationState", "PendingWorkflowTaskState", "QueryRejectCondition", "QueryResultType", @@ -52,6 +69,7 @@ "ResetReapplyType", "ResetType", "ResourceExhaustedCause", + "ResourceExhaustedScope", "RetryState", "ScheduleOverlapPolicy", "Severity", @@ -61,9 +79,10 @@ "TaskQueueType", "TaskReachability", "TimeoutType", - "UpdateRequestedEventOrigin", + "UpdateAdmittedEventOrigin", "UpdateWorkflowExecutionLifecycleStage", "WorkflowExecutionStatus", + "WorkflowIdConflictPolicy", "WorkflowIdReusePolicy", "WorkflowTaskFailedCause", ] diff --git a/temporalio/api/enums/v1/command_type_pb2.py b/temporalio/api/enums/v1/command_type_pb2.py index 588f42eda..c86221b3e 100644 --- a/temporalio/api/enums/v1/command_type_pb2.py +++ b/temporalio/api/enums/v1/command_type_pb2.py @@ -15,7 +15,7 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b"\n(temporal/api/enums/v1/command_type.proto\x12\x15temporal.api.enums.v1*\xc0\x05\n\x0b\x43ommandType\x12\x1c\n\x18\x43OMMAND_TYPE_UNSPECIFIED\x10\x00\x12'\n#COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK\x10\x01\x12-\n)COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK\x10\x02\x12\x1c\n\x18\x43OMMAND_TYPE_START_TIMER\x10\x03\x12,\n(COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION\x10\x04\x12(\n$COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION\x10\x05\x12\x1d\n\x19\x43OMMAND_TYPE_CANCEL_TIMER\x10\x06\x12*\n&COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION\x10\x07\x12;\n7COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION\x10\x08\x12\x1e\n\x1a\x43OMMAND_TYPE_RECORD_MARKER\x10\t\x12\x33\n/COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION\x10\n\x12/\n+COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION\x10\x0b\x12\x33\n/COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION\x10\x0c\x12\x32\n.COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES\x10\r\x12!\n\x1d\x43OMMAND_TYPE_PROTOCOL_MESSAGE\x10\x0e\x12+\n'COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES\x10\x10\x42\x88\x01\n\x18io.temporal.api.enums.v1B\x10\x43ommandTypeProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" + b"\n(temporal/api/enums/v1/command_type.proto\x12\x15temporal.api.enums.v1*\x9c\x06\n\x0b\x43ommandType\x12\x1c\n\x18\x43OMMAND_TYPE_UNSPECIFIED\x10\x00\x12'\n#COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK\x10\x01\x12-\n)COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK\x10\x02\x12\x1c\n\x18\x43OMMAND_TYPE_START_TIMER\x10\x03\x12,\n(COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION\x10\x04\x12(\n$COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION\x10\x05\x12\x1d\n\x19\x43OMMAND_TYPE_CANCEL_TIMER\x10\x06\x12*\n&COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION\x10\x07\x12;\n7COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION\x10\x08\x12\x1e\n\x1a\x43OMMAND_TYPE_RECORD_MARKER\x10\t\x12\x33\n/COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION\x10\n\x12/\n+COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION\x10\x0b\x12\x33\n/COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION\x10\x0c\x12\x32\n.COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES\x10\r\x12!\n\x1d\x43OMMAND_TYPE_PROTOCOL_MESSAGE\x10\x0e\x12+\n'COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES\x10\x10\x12)\n%COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION\x10\x11\x12/\n+COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION\x10\x12\x42\x88\x01\n\x18io.temporal.api.enums.v1B\x10\x43ommandTypeProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" ) _COMMANDTYPE = DESCRIPTOR.enum_types_by_name["CommandType"] @@ -36,11 +36,13 @@ COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES = 13 COMMAND_TYPE_PROTOCOL_MESSAGE = 14 COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES = 16 +COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION = 17 +COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION = 18 if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.enums.v1B\020CommandTypeProtoP\001Z!go.temporal.io/api/enums/v1;enums\252\002\027Temporalio.Api.Enums.V1\352\002\032Temporalio::Api::Enums::V1" _COMMANDTYPE._serialized_start = 68 - _COMMANDTYPE._serialized_end = 772 + _COMMANDTYPE._serialized_end = 864 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/enums/v1/command_type_pb2.pyi b/temporalio/api/enums/v1/command_type_pb2.pyi index b11ebacac..ec985cd25 100644 --- a/temporalio/api/enums/v1/command_type_pb2.pyi +++ b/temporalio/api/enums/v1/command_type_pb2.pyi @@ -61,6 +61,8 @@ class _CommandTypeEnumTypeWrapper( COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES: _CommandType.ValueType # 13 COMMAND_TYPE_PROTOCOL_MESSAGE: _CommandType.ValueType # 14 COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES: _CommandType.ValueType # 16 + COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION: _CommandType.ValueType # 17 + COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION: _CommandType.ValueType # 18 class CommandType(_CommandType, metaclass=_CommandTypeEnumTypeWrapper): """Whenever this list of command types is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering.""" @@ -81,4 +83,6 @@ COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION: CommandType.ValueType # 12 COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES: CommandType.ValueType # 13 COMMAND_TYPE_PROTOCOL_MESSAGE: CommandType.ValueType # 14 COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES: CommandType.ValueType # 16 +COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION: CommandType.ValueType # 17 +COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION: CommandType.ValueType # 18 global___CommandType = CommandType diff --git a/temporalio/api/enums/v1/common_pb2.py b/temporalio/api/enums/v1/common_pb2.py index 9178771ad..a2735f608 100644 --- a/temporalio/api/enums/v1/common_pb2.py +++ b/temporalio/api/enums/v1/common_pb2.py @@ -15,7 +15,7 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n"temporal/api/enums/v1/common.proto\x12\x15temporal.api.enums.v1*_\n\x0c\x45ncodingType\x12\x1d\n\x19\x45NCODING_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x45NCODING_TYPE_PROTO3\x10\x01\x12\x16\n\x12\x45NCODING_TYPE_JSON\x10\x02*\x91\x02\n\x10IndexedValueType\x12"\n\x1eINDEXED_VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17INDEXED_VALUE_TYPE_TEXT\x10\x01\x12\x1e\n\x1aINDEXED_VALUE_TYPE_KEYWORD\x10\x02\x12\x1a\n\x16INDEXED_VALUE_TYPE_INT\x10\x03\x12\x1d\n\x19INDEXED_VALUE_TYPE_DOUBLE\x10\x04\x12\x1b\n\x17INDEXED_VALUE_TYPE_BOOL\x10\x05\x12\x1f\n\x1bINDEXED_VALUE_TYPE_DATETIME\x10\x06\x12#\n\x1fINDEXED_VALUE_TYPE_KEYWORD_LIST\x10\x07*^\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x11\n\rSEVERITY_HIGH\x10\x01\x12\x13\n\x0fSEVERITY_MEDIUM\x10\x02\x12\x10\n\x0cSEVERITY_LOW\x10\x03\x42\x83\x01\n\x18io.temporal.api.enums.v1B\x0b\x43ommonProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3' + b'\n"temporal/api/enums/v1/common.proto\x12\x15temporal.api.enums.v1*_\n\x0c\x45ncodingType\x12\x1d\n\x19\x45NCODING_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x45NCODING_TYPE_PROTO3\x10\x01\x12\x16\n\x12\x45NCODING_TYPE_JSON\x10\x02*\x91\x02\n\x10IndexedValueType\x12"\n\x1eINDEXED_VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17INDEXED_VALUE_TYPE_TEXT\x10\x01\x12\x1e\n\x1aINDEXED_VALUE_TYPE_KEYWORD\x10\x02\x12\x1a\n\x16INDEXED_VALUE_TYPE_INT\x10\x03\x12\x1d\n\x19INDEXED_VALUE_TYPE_DOUBLE\x10\x04\x12\x1b\n\x17INDEXED_VALUE_TYPE_BOOL\x10\x05\x12\x1f\n\x1bINDEXED_VALUE_TYPE_DATETIME\x10\x06\x12#\n\x1fINDEXED_VALUE_TYPE_KEYWORD_LIST\x10\x07*^\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x11\n\rSEVERITY_HIGH\x10\x01\x12\x13\n\x0fSEVERITY_MEDIUM\x10\x02\x12\x10\n\x0cSEVERITY_LOW\x10\x03*\xc2\x01\n\rCallbackState\x12\x1e\n\x1a\x43\x41LLBACK_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x43\x41LLBACK_STATE_STANDBY\x10\x01\x12\x1c\n\x18\x43\x41LLBACK_STATE_SCHEDULED\x10\x02\x12\x1e\n\x1a\x43\x41LLBACK_STATE_BACKING_OFF\x10\x03\x12\x19\n\x15\x43\x41LLBACK_STATE_FAILED\x10\x04\x12\x1c\n\x18\x43\x41LLBACK_STATE_SUCCEEDED\x10\x05*\xd2\x01\n\x1aPendingNexusOperationState\x12-\n)PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED\x10\x00\x12+\n\'PENDING_NEXUS_OPERATION_STATE_SCHEDULED\x10\x01\x12-\n)PENDING_NEXUS_OPERATION_STATE_BACKING_OFF\x10\x02\x12)\n%PENDING_NEXUS_OPERATION_STATE_STARTED\x10\x03*\xce\x02\n\x1fNexusOperationCancellationState\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED\x10\x00\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED\x10\x01\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF\x10\x02\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED\x10\x03\x12-\n)NEXUS_OPERATION_CANCELLATION_STATE_FAILED\x10\x04\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT\x10\x05\x42\x83\x01\n\x18io.temporal.api.enums.v1B\x0b\x43ommonProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3' ) _ENCODINGTYPE = DESCRIPTOR.enum_types_by_name["EncodingType"] @@ -24,6 +24,20 @@ IndexedValueType = enum_type_wrapper.EnumTypeWrapper(_INDEXEDVALUETYPE) _SEVERITY = DESCRIPTOR.enum_types_by_name["Severity"] Severity = enum_type_wrapper.EnumTypeWrapper(_SEVERITY) +_CALLBACKSTATE = DESCRIPTOR.enum_types_by_name["CallbackState"] +CallbackState = enum_type_wrapper.EnumTypeWrapper(_CALLBACKSTATE) +_PENDINGNEXUSOPERATIONSTATE = DESCRIPTOR.enum_types_by_name[ + "PendingNexusOperationState" +] +PendingNexusOperationState = enum_type_wrapper.EnumTypeWrapper( + _PENDINGNEXUSOPERATIONSTATE +) +_NEXUSOPERATIONCANCELLATIONSTATE = DESCRIPTOR.enum_types_by_name[ + "NexusOperationCancellationState" +] +NexusOperationCancellationState = enum_type_wrapper.EnumTypeWrapper( + _NEXUSOPERATIONCANCELLATIONSTATE +) ENCODING_TYPE_UNSPECIFIED = 0 ENCODING_TYPE_PROTO3 = 1 ENCODING_TYPE_JSON = 2 @@ -39,6 +53,22 @@ SEVERITY_HIGH = 1 SEVERITY_MEDIUM = 2 SEVERITY_LOW = 3 +CALLBACK_STATE_UNSPECIFIED = 0 +CALLBACK_STATE_STANDBY = 1 +CALLBACK_STATE_SCHEDULED = 2 +CALLBACK_STATE_BACKING_OFF = 3 +CALLBACK_STATE_FAILED = 4 +CALLBACK_STATE_SUCCEEDED = 5 +PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED = 0 +PENDING_NEXUS_OPERATION_STATE_SCHEDULED = 1 +PENDING_NEXUS_OPERATION_STATE_BACKING_OFF = 2 +PENDING_NEXUS_OPERATION_STATE_STARTED = 3 +NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED = 0 +NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED = 1 +NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF = 2 +NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED = 3 +NEXUS_OPERATION_CANCELLATION_STATE_FAILED = 4 +NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT = 5 if _descriptor._USE_C_DESCRIPTORS == False: @@ -50,4 +80,10 @@ _INDEXEDVALUETYPE._serialized_end = 432 _SEVERITY._serialized_start = 434 _SEVERITY._serialized_end = 528 + _CALLBACKSTATE._serialized_start = 531 + _CALLBACKSTATE._serialized_end = 725 + _PENDINGNEXUSOPERATIONSTATE._serialized_start = 728 + _PENDINGNEXUSOPERATIONSTATE._serialized_end = 938 + _NEXUSOPERATIONCANCELLATIONSTATE._serialized_start = 941 + _NEXUSOPERATIONCANCELLATIONSTATE._serialized_end = 1275 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/enums/v1/common_pb2.pyi b/temporalio/api/enums/v1/common_pb2.pyi index eb1fa702e..c8cea8d75 100644 --- a/temporalio/api/enums/v1/common_pb2.pyi +++ b/temporalio/api/enums/v1/common_pb2.pyi @@ -113,3 +113,123 @@ SEVERITY_HIGH: Severity.ValueType # 1 SEVERITY_MEDIUM: Severity.ValueType # 2 SEVERITY_LOW: Severity.ValueType # 3 global___Severity = Severity + +class _CallbackState: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _CallbackStateEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _CallbackState.ValueType + ], + builtins.type, +): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + CALLBACK_STATE_UNSPECIFIED: _CallbackState.ValueType # 0 + """Default value, unspecified state.""" + CALLBACK_STATE_STANDBY: _CallbackState.ValueType # 1 + """Callback is standing by, waiting to be triggered.""" + CALLBACK_STATE_SCHEDULED: _CallbackState.ValueType # 2 + """Callback is in the queue waiting to be executed or is currently executing.""" + CALLBACK_STATE_BACKING_OFF: _CallbackState.ValueType # 3 + """Callback has failed with a retryable error and is backing off before the next attempt.""" + CALLBACK_STATE_FAILED: _CallbackState.ValueType # 4 + """Callback has failed.""" + CALLBACK_STATE_SUCCEEDED: _CallbackState.ValueType # 5 + """Callback has succeeded.""" + +class CallbackState(_CallbackState, metaclass=_CallbackStateEnumTypeWrapper): + """State of a callback.""" + +CALLBACK_STATE_UNSPECIFIED: CallbackState.ValueType # 0 +"""Default value, unspecified state.""" +CALLBACK_STATE_STANDBY: CallbackState.ValueType # 1 +"""Callback is standing by, waiting to be triggered.""" +CALLBACK_STATE_SCHEDULED: CallbackState.ValueType # 2 +"""Callback is in the queue waiting to be executed or is currently executing.""" +CALLBACK_STATE_BACKING_OFF: CallbackState.ValueType # 3 +"""Callback has failed with a retryable error and is backing off before the next attempt.""" +CALLBACK_STATE_FAILED: CallbackState.ValueType # 4 +"""Callback has failed.""" +CALLBACK_STATE_SUCCEEDED: CallbackState.ValueType # 5 +"""Callback has succeeded.""" +global___CallbackState = CallbackState + +class _PendingNexusOperationState: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _PendingNexusOperationStateEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _PendingNexusOperationState.ValueType + ], + builtins.type, +): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED: _PendingNexusOperationState.ValueType # 0 + """Default value, unspecified state.""" + PENDING_NEXUS_OPERATION_STATE_SCHEDULED: _PendingNexusOperationState.ValueType # 1 + """Operation is in the queue waiting to be executed or is currently executing.""" + PENDING_NEXUS_OPERATION_STATE_BACKING_OFF: _PendingNexusOperationState.ValueType # 2 + """Operation has failed with a retryable error and is backing off before the next attempt.""" + PENDING_NEXUS_OPERATION_STATE_STARTED: _PendingNexusOperationState.ValueType # 3 + """Operation was started and will complete asynchronously.""" + +class PendingNexusOperationState( + _PendingNexusOperationState, metaclass=_PendingNexusOperationStateEnumTypeWrapper +): + """State of a pending Nexus operation.""" + +PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED: PendingNexusOperationState.ValueType # 0 +"""Default value, unspecified state.""" +PENDING_NEXUS_OPERATION_STATE_SCHEDULED: PendingNexusOperationState.ValueType # 1 +"""Operation is in the queue waiting to be executed or is currently executing.""" +PENDING_NEXUS_OPERATION_STATE_BACKING_OFF: PendingNexusOperationState.ValueType # 2 +"""Operation has failed with a retryable error and is backing off before the next attempt.""" +PENDING_NEXUS_OPERATION_STATE_STARTED: PendingNexusOperationState.ValueType # 3 +"""Operation was started and will complete asynchronously.""" +global___PendingNexusOperationState = PendingNexusOperationState + +class _NexusOperationCancellationState: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _NexusOperationCancellationStateEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _NexusOperationCancellationState.ValueType + ], + builtins.type, +): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED: _NexusOperationCancellationState.ValueType # 0 + """Default value, unspecified state.""" + NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED: _NexusOperationCancellationState.ValueType # 1 + """Cancellation request is in the queue waiting to be executed or is currently executing.""" + NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF: _NexusOperationCancellationState.ValueType # 2 + """Cancellation request has failed with a retryable error and is backing off before the next attempt.""" + NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED: _NexusOperationCancellationState.ValueType # 3 + """Cancellation request succeeded.""" + NEXUS_OPERATION_CANCELLATION_STATE_FAILED: _NexusOperationCancellationState.ValueType # 4 + """Cancellation request failed with a non-retryable error.""" + NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT: _NexusOperationCancellationState.ValueType # 5 + """The associated operation timed out - exceeded the user supplied schedule-to-close timeout.""" + +class NexusOperationCancellationState( + _NexusOperationCancellationState, + metaclass=_NexusOperationCancellationStateEnumTypeWrapper, +): + """State of a Nexus operation cancellation.""" + +NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED: NexusOperationCancellationState.ValueType # 0 +"""Default value, unspecified state.""" +NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED: NexusOperationCancellationState.ValueType # 1 +"""Cancellation request is in the queue waiting to be executed or is currently executing.""" +NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF: NexusOperationCancellationState.ValueType # 2 +"""Cancellation request has failed with a retryable error and is backing off before the next attempt.""" +NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED: NexusOperationCancellationState.ValueType # 3 +"""Cancellation request succeeded.""" +NEXUS_OPERATION_CANCELLATION_STATE_FAILED: NexusOperationCancellationState.ValueType # 4 +"""Cancellation request failed with a non-retryable error.""" +NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT: NexusOperationCancellationState.ValueType # 5 +"""The associated operation timed out - exceeded the user supplied schedule-to-close timeout.""" +global___NexusOperationCancellationState = NexusOperationCancellationState diff --git a/temporalio/api/enums/v1/event_type_pb2.py b/temporalio/api/enums/v1/event_type_pb2.py index 97c1893e2..cfc449a7f 100644 --- a/temporalio/api/enums/v1/event_type_pb2.py +++ b/temporalio/api/enums/v1/event_type_pb2.py @@ -15,7 +15,7 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n&temporal/api/enums/v1/event_type.proto\x12\x15temporal.api.enums.v1*\xc2\x11\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12)\n%EVENT_TYPE_WORKFLOW_EXECUTION_STARTED\x10\x01\x12+\n\'EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED\x10\x02\x12(\n$EVENT_TYPE_WORKFLOW_EXECUTION_FAILED\x10\x03\x12+\n\'EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT\x10\x04\x12&\n"EVENT_TYPE_WORKFLOW_TASK_SCHEDULED\x10\x05\x12$\n EVENT_TYPE_WORKFLOW_TASK_STARTED\x10\x06\x12&\n"EVENT_TYPE_WORKFLOW_TASK_COMPLETED\x10\x07\x12&\n"EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT\x10\x08\x12#\n\x1f\x45VENT_TYPE_WORKFLOW_TASK_FAILED\x10\t\x12&\n"EVENT_TYPE_ACTIVITY_TASK_SCHEDULED\x10\n\x12$\n EVENT_TYPE_ACTIVITY_TASK_STARTED\x10\x0b\x12&\n"EVENT_TYPE_ACTIVITY_TASK_COMPLETED\x10\x0c\x12#\n\x1f\x45VENT_TYPE_ACTIVITY_TASK_FAILED\x10\r\x12&\n"EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT\x10\x0e\x12-\n)EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED\x10\x0f\x12%\n!EVENT_TYPE_ACTIVITY_TASK_CANCELED\x10\x10\x12\x1c\n\x18\x45VENT_TYPE_TIMER_STARTED\x10\x11\x12\x1a\n\x16\x45VENT_TYPE_TIMER_FIRED\x10\x12\x12\x1d\n\x19\x45VENT_TYPE_TIMER_CANCELED\x10\x13\x12\x32\n.EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED\x10\x14\x12*\n&EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED\x10\x15\x12\x43\n?EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED\x10\x16\x12@\n None: ... def ClearField( - self, field_name: typing_extensions.Literal["cause", b"cause"] + self, + field_name: typing_extensions.Literal["cause", b"cause", "scope", b"scope"], ) -> None: ... global___ResourceExhaustedFailure = ResourceExhaustedFailure @@ -332,3 +337,66 @@ class NewerBuildExistsFailure(google.protobuf.message.Message): ) -> None: ... global___NewerBuildExistsFailure = NewerBuildExistsFailure + +class MultiOperationExecutionFailure(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class OperationStatus(google.protobuf.message.Message): + """NOTE: `OperationStatus` is modelled after + [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto). + + (-- api-linter: core::0146::any=disabled + aip.dev/not-precedent: details are meant to hold arbitrary payloads. --) + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + DETAILS_FIELD_NUMBER: builtins.int + code: builtins.int + message: builtins.str + @property + def details( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + google.protobuf.any_pb2.Any + ]: ... + def __init__( + self, + *, + code: builtins.int = ..., + message: builtins.str = ..., + details: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "code", b"code", "details", b"details", "message", b"message" + ], + ) -> None: ... + + STATUSES_FIELD_NUMBER: builtins.int + @property + def statuses( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___MultiOperationExecutionFailure.OperationStatus + ]: + """One status for each requested operation from the failed MultiOperation. The failed + operation(s) have the same error details as if it was executed separately. All other operations have the + status code `Aborted` and `MultiOperationExecutionAborted` is added to the details field. + """ + def __init__( + self, + *, + statuses: collections.abc.Iterable[ + global___MultiOperationExecutionFailure.OperationStatus + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["statuses", b"statuses"] + ) -> None: ... + +global___MultiOperationExecutionFailure = MultiOperationExecutionFailure diff --git a/temporalio/api/failure/v1/__init__.py b/temporalio/api/failure/v1/__init__.py index e7c804518..c5f8d7e03 100644 --- a/temporalio/api/failure/v1/__init__.py +++ b/temporalio/api/failure/v1/__init__.py @@ -4,6 +4,8 @@ CanceledFailureInfo, ChildWorkflowExecutionFailureInfo, Failure, + MultiOperationExecutionAborted, + NexusOperationFailureInfo, ResetWorkflowFailureInfo, ServerFailureInfo, TerminatedFailureInfo, @@ -16,6 +18,8 @@ "CanceledFailureInfo", "ChildWorkflowExecutionFailureInfo", "Failure", + "MultiOperationExecutionAborted", + "NexusOperationFailureInfo", "ResetWorkflowFailureInfo", "ServerFailureInfo", "TerminatedFailureInfo", diff --git a/temporalio/api/failure/v1/message_pb2.py b/temporalio/api/failure/v1/message_pb2.py index 7e0283c90..5c62fc6a6 100644 --- a/temporalio/api/failure/v1/message_pb2.py +++ b/temporalio/api/failure/v1/message_pb2.py @@ -13,6 +13,8 @@ _sym_db = _symbol_database.Default() +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) @@ -21,7 +23,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n%temporal/api/failure/v1/message.proto\x12\x17temporal.api.failure.v1\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto"p\n\x16\x41pplicationFailureInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x15\n\rnon_retryable\x18\x02 \x01(\x08\x12\x31\n\x07\x64\x65tails\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\x90\x01\n\x12TimeoutFailureInfo\x12\x38\n\x0ctimeout_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType\x12@\n\x16last_heartbeat_details\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"H\n\x13\x43\x61nceledFailureInfo\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\x17\n\x15TerminatedFailureInfo"*\n\x11ServerFailureInfo\x12\x15\n\rnon_retryable\x18\x01 \x01(\x08"\\\n\x18ResetWorkflowFailureInfo\x12@\n\x16last_heartbeat_details\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe7\x01\n\x13\x41\x63tivityFailureInfo\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12;\n\ractivity_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x05 \x01(\t\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xa8\x02\n!ChildWorkflowExecutionFailureInfo\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xe2\x06\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x0bstack_trace\x18\x03 \x01(\t\x12;\n\x12\x65ncoded_attributes\x18\x14 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12/\n\x05\x63\x61use\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12S\n\x18\x61pplication_failure_info\x18\x05 \x01(\x0b\x32/.temporal.api.failure.v1.ApplicationFailureInfoH\x00\x12K\n\x14timeout_failure_info\x18\x06 \x01(\x0b\x32+.temporal.api.failure.v1.TimeoutFailureInfoH\x00\x12M\n\x15\x63\x61nceled_failure_info\x18\x07 \x01(\x0b\x32,.temporal.api.failure.v1.CanceledFailureInfoH\x00\x12Q\n\x17terminated_failure_info\x18\x08 \x01(\x0b\x32..temporal.api.failure.v1.TerminatedFailureInfoH\x00\x12I\n\x13server_failure_info\x18\t \x01(\x0b\x32*.temporal.api.failure.v1.ServerFailureInfoH\x00\x12X\n\x1breset_workflow_failure_info\x18\n \x01(\x0b\x32\x31.temporal.api.failure.v1.ResetWorkflowFailureInfoH\x00\x12M\n\x15\x61\x63tivity_failure_info\x18\x0b \x01(\x0b\x32,.temporal.api.failure.v1.ActivityFailureInfoH\x00\x12k\n%child_workflow_execution_failure_info\x18\x0c \x01(\x0b\x32:.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoH\x00\x42\x0e\n\x0c\x66\x61ilure_infoB\x8e\x01\n\x1aio.temporal.api.failure.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/failure/v1;failure\xaa\x02\x19Temporalio.Api.Failure.V1\xea\x02\x1cTemporalio::Api::Failure::V1b\x06proto3' + b'\n%temporal/api/failure/v1/message.proto\x12\x17temporal.api.failure.v1\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a\x1egoogle/protobuf/duration.proto"\xa5\x01\n\x16\x41pplicationFailureInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x15\n\rnon_retryable\x18\x02 \x01(\x08\x12\x31\n\x07\x64\x65tails\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x33\n\x10next_retry_delay\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration"\x90\x01\n\x12TimeoutFailureInfo\x12\x38\n\x0ctimeout_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType\x12@\n\x16last_heartbeat_details\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"H\n\x13\x43\x61nceledFailureInfo\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\x17\n\x15TerminatedFailureInfo"*\n\x11ServerFailureInfo\x12\x15\n\rnon_retryable\x18\x01 \x01(\x08"\\\n\x18ResetWorkflowFailureInfo\x12@\n\x16last_heartbeat_details\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe7\x01\n\x13\x41\x63tivityFailureInfo\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12;\n\ractivity_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x05 \x01(\t\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xa8\x02\n!ChildWorkflowExecutionFailureInfo\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\x83\x01\n\x19NexusOperationFailureInfo\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12\x14\n\x0coperation_id\x18\x05 \x01(\t"\xc8\x07\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x0bstack_trace\x18\x03 \x01(\t\x12;\n\x12\x65ncoded_attributes\x18\x14 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12/\n\x05\x63\x61use\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12S\n\x18\x61pplication_failure_info\x18\x05 \x01(\x0b\x32/.temporal.api.failure.v1.ApplicationFailureInfoH\x00\x12K\n\x14timeout_failure_info\x18\x06 \x01(\x0b\x32+.temporal.api.failure.v1.TimeoutFailureInfoH\x00\x12M\n\x15\x63\x61nceled_failure_info\x18\x07 \x01(\x0b\x32,.temporal.api.failure.v1.CanceledFailureInfoH\x00\x12Q\n\x17terminated_failure_info\x18\x08 \x01(\x0b\x32..temporal.api.failure.v1.TerminatedFailureInfoH\x00\x12I\n\x13server_failure_info\x18\t \x01(\x0b\x32*.temporal.api.failure.v1.ServerFailureInfoH\x00\x12X\n\x1breset_workflow_failure_info\x18\n \x01(\x0b\x32\x31.temporal.api.failure.v1.ResetWorkflowFailureInfoH\x00\x12M\n\x15\x61\x63tivity_failure_info\x18\x0b \x01(\x0b\x32,.temporal.api.failure.v1.ActivityFailureInfoH\x00\x12k\n%child_workflow_execution_failure_info\x18\x0c \x01(\x0b\x32:.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoH\x00\x12\x64\n&nexus_operation_execution_failure_info\x18\r \x01(\x0b\x32\x32.temporal.api.failure.v1.NexusOperationFailureInfoH\x00\x42\x0e\n\x0c\x66\x61ilure_info" \n\x1eMultiOperationExecutionAbortedB\x8e\x01\n\x1aio.temporal.api.failure.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/failure/v1;failure\xaa\x02\x19Temporalio.Api.Failure.V1\xea\x02\x1cTemporalio::Api::Failure::V1b\x06proto3' ) @@ -35,7 +37,13 @@ _CHILDWORKFLOWEXECUTIONFAILUREINFO = DESCRIPTOR.message_types_by_name[ "ChildWorkflowExecutionFailureInfo" ] +_NEXUSOPERATIONFAILUREINFO = DESCRIPTOR.message_types_by_name[ + "NexusOperationFailureInfo" +] _FAILURE = DESCRIPTOR.message_types_by_name["Failure"] +_MULTIOPERATIONEXECUTIONABORTED = DESCRIPTOR.message_types_by_name[ + "MultiOperationExecutionAborted" +] ApplicationFailureInfo = _reflection.GeneratedProtocolMessageType( "ApplicationFailureInfo", (_message.Message,), @@ -124,6 +132,17 @@ ) _sym_db.RegisterMessage(ChildWorkflowExecutionFailureInfo) +NexusOperationFailureInfo = _reflection.GeneratedProtocolMessageType( + "NexusOperationFailureInfo", + (_message.Message,), + { + "DESCRIPTOR": _NEXUSOPERATIONFAILUREINFO, + "__module__": "temporal.api.failure.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.NexusOperationFailureInfo) + }, +) +_sym_db.RegisterMessage(NexusOperationFailureInfo) + Failure = _reflection.GeneratedProtocolMessageType( "Failure", (_message.Message,), @@ -135,25 +154,40 @@ ) _sym_db.RegisterMessage(Failure) +MultiOperationExecutionAborted = _reflection.GeneratedProtocolMessageType( + "MultiOperationExecutionAborted", + (_message.Message,), + { + "DESCRIPTOR": _MULTIOPERATIONEXECUTIONABORTED, + "__module__": "temporal.api.failure.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.MultiOperationExecutionAborted) + }, +) +_sym_db.RegisterMessage(MultiOperationExecutionAborted) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.failure.v1B\014MessageProtoP\001Z%go.temporal.io/api/failure/v1;failure\252\002\031Temporalio.Api.Failure.V1\352\002\034Temporalio::Api::Failure::V1" - _APPLICATIONFAILUREINFO._serialized_start = 142 - _APPLICATIONFAILUREINFO._serialized_end = 254 - _TIMEOUTFAILUREINFO._serialized_start = 257 - _TIMEOUTFAILUREINFO._serialized_end = 401 - _CANCELEDFAILUREINFO._serialized_start = 403 - _CANCELEDFAILUREINFO._serialized_end = 475 - _TERMINATEDFAILUREINFO._serialized_start = 477 - _TERMINATEDFAILUREINFO._serialized_end = 500 - _SERVERFAILUREINFO._serialized_start = 502 - _SERVERFAILUREINFO._serialized_end = 544 - _RESETWORKFLOWFAILUREINFO._serialized_start = 546 - _RESETWORKFLOWFAILUREINFO._serialized_end = 638 - _ACTIVITYFAILUREINFO._serialized_start = 641 - _ACTIVITYFAILUREINFO._serialized_end = 872 - _CHILDWORKFLOWEXECUTIONFAILUREINFO._serialized_start = 875 - _CHILDWORKFLOWEXECUTIONFAILUREINFO._serialized_end = 1171 - _FAILURE._serialized_start = 1174 - _FAILURE._serialized_end = 2040 + _APPLICATIONFAILUREINFO._serialized_start = 175 + _APPLICATIONFAILUREINFO._serialized_end = 340 + _TIMEOUTFAILUREINFO._serialized_start = 343 + _TIMEOUTFAILUREINFO._serialized_end = 487 + _CANCELEDFAILUREINFO._serialized_start = 489 + _CANCELEDFAILUREINFO._serialized_end = 561 + _TERMINATEDFAILUREINFO._serialized_start = 563 + _TERMINATEDFAILUREINFO._serialized_end = 586 + _SERVERFAILUREINFO._serialized_start = 588 + _SERVERFAILUREINFO._serialized_end = 630 + _RESETWORKFLOWFAILUREINFO._serialized_start = 632 + _RESETWORKFLOWFAILUREINFO._serialized_end = 724 + _ACTIVITYFAILUREINFO._serialized_start = 727 + _ACTIVITYFAILUREINFO._serialized_end = 958 + _CHILDWORKFLOWEXECUTIONFAILUREINFO._serialized_start = 961 + _CHILDWORKFLOWEXECUTIONFAILUREINFO._serialized_end = 1257 + _NEXUSOPERATIONFAILUREINFO._serialized_start = 1260 + _NEXUSOPERATIONFAILUREINFO._serialized_end = 1391 + _FAILURE._serialized_start = 1394 + _FAILURE._serialized_end = 2362 + _MULTIOPERATIONEXECUTIONABORTED._serialized_start = 2364 + _MULTIOPERATIONEXECUTIONABORTED._serialized_end = 2396 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/failure/v1/message_pb2.pyi b/temporalio/api/failure/v1/message_pb2.pyi index 59812a3e3..63e95b517 100644 --- a/temporalio/api/failure/v1/message_pb2.pyi +++ b/temporalio/api/failure/v1/message_pb2.pyi @@ -25,6 +25,7 @@ THE SOFTWARE. """ import builtins import google.protobuf.descriptor +import google.protobuf.duration_pb2 import google.protobuf.message import sys import temporalio.api.common.v1.message_pb2 @@ -43,24 +44,45 @@ class ApplicationFailureInfo(google.protobuf.message.Message): TYPE_FIELD_NUMBER: builtins.int NON_RETRYABLE_FIELD_NUMBER: builtins.int DETAILS_FIELD_NUMBER: builtins.int + NEXT_RETRY_DELAY_FIELD_NUMBER: builtins.int type: builtins.str non_retryable: builtins.bool @property def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... + @property + def next_retry_delay(self) -> google.protobuf.duration_pb2.Duration: + """next_retry_delay can be used by the client to override the activity + retry interval calculated by the retry policy. Retry attempts will + still be subject to the maximum retries limit and total time limit + defined by the policy. + ATTENTION: this value will be ignored if set for failures produced by + the workflow. + """ def __init__( self, *, type: builtins.str = ..., non_retryable: builtins.bool = ..., details: temporalio.api.common.v1.message_pb2.Payloads | None = ..., + next_retry_delay: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, + field_name: typing_extensions.Literal[ + "details", b"details", "next_retry_delay", b"next_retry_delay" + ], ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ - "details", b"details", "non_retryable", b"non_retryable", "type", b"type" + "details", + b"details", + "next_retry_delay", + b"next_retry_delay", + "non_retryable", + b"non_retryable", + "type", + b"type", ], ) -> None: ... @@ -283,6 +305,51 @@ class ChildWorkflowExecutionFailureInfo(google.protobuf.message.Message): global___ChildWorkflowExecutionFailureInfo = ChildWorkflowExecutionFailureInfo +class NexusOperationFailureInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int + ENDPOINT_FIELD_NUMBER: builtins.int + SERVICE_FIELD_NUMBER: builtins.int + OPERATION_FIELD_NUMBER: builtins.int + OPERATION_ID_FIELD_NUMBER: builtins.int + scheduled_event_id: builtins.int + """The NexusOperationScheduled event ID.""" + endpoint: builtins.str + """Endpoint name.""" + service: builtins.str + """Service name.""" + operation: builtins.str + """Operation name.""" + operation_id: builtins.str + """Operation ID - may be empty if the operation completed synchronously.""" + def __init__( + self, + *, + scheduled_event_id: builtins.int = ..., + endpoint: builtins.str = ..., + service: builtins.str = ..., + operation: builtins.str = ..., + operation_id: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "endpoint", + b"endpoint", + "operation", + b"operation", + "operation_id", + b"operation_id", + "scheduled_event_id", + b"scheduled_event_id", + "service", + b"service", + ], + ) -> None: ... + +global___NexusOperationFailureInfo = NexusOperationFailureInfo + class Failure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -299,6 +366,7 @@ class Failure(google.protobuf.message.Message): RESET_WORKFLOW_FAILURE_INFO_FIELD_NUMBER: builtins.int ACTIVITY_FAILURE_INFO_FIELD_NUMBER: builtins.int CHILD_WORKFLOW_EXECUTION_FAILURE_INFO_FIELD_NUMBER: builtins.int + NEXUS_OPERATION_EXECUTION_FAILURE_INFO_FIELD_NUMBER: builtins.int message: builtins.str source: builtins.str """The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK @@ -343,6 +411,10 @@ class Failure(google.protobuf.message.Message): def child_workflow_execution_failure_info( self, ) -> global___ChildWorkflowExecutionFailureInfo: ... + @property + def nexus_operation_execution_failure_info( + self, + ) -> global___NexusOperationFailureInfo: ... def __init__( self, *, @@ -360,6 +432,8 @@ class Failure(google.protobuf.message.Message): activity_failure_info: global___ActivityFailureInfo | None = ..., child_workflow_execution_failure_info: global___ChildWorkflowExecutionFailureInfo | None = ..., + nexus_operation_execution_failure_info: global___NexusOperationFailureInfo + | None = ..., ) -> None: ... def HasField( self, @@ -378,6 +452,8 @@ class Failure(google.protobuf.message.Message): b"encoded_attributes", "failure_info", b"failure_info", + "nexus_operation_execution_failure_info", + b"nexus_operation_execution_failure_info", "reset_workflow_failure_info", b"reset_workflow_failure_info", "server_failure_info", @@ -407,6 +483,8 @@ class Failure(google.protobuf.message.Message): b"failure_info", "message", b"message", + "nexus_operation_execution_failure_info", + b"nexus_operation_execution_failure_info", "reset_workflow_failure_info", b"reset_workflow_failure_info", "server_failure_info", @@ -433,8 +511,18 @@ class Failure(google.protobuf.message.Message): "reset_workflow_failure_info", "activity_failure_info", "child_workflow_execution_failure_info", + "nexus_operation_execution_failure_info", ] | None ): ... global___Failure = Failure + +class MultiOperationExecutionAborted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MultiOperationExecutionAborted = MultiOperationExecutionAborted diff --git a/temporalio/api/history/v1/__init__.py b/temporalio/api/history/v1/__init__.py index f9ad1481d..30500e3c9 100644 --- a/temporalio/api/history/v1/__init__.py +++ b/temporalio/api/history/v1/__init__.py @@ -18,6 +18,13 @@ History, HistoryEvent, MarkerRecordedEventAttributes, + NexusOperationCanceledEventAttributes, + NexusOperationCancelRequestedEventAttributes, + NexusOperationCompletedEventAttributes, + NexusOperationFailedEventAttributes, + NexusOperationScheduledEventAttributes, + NexusOperationStartedEventAttributes, + NexusOperationTimedOutEventAttributes, RequestCancelExternalWorkflowExecutionFailedEventAttributes, RequestCancelExternalWorkflowExecutionInitiatedEventAttributes, SignalExternalWorkflowExecutionFailedEventAttributes, @@ -38,9 +45,9 @@ WorkflowExecutionTerminatedEventAttributes, WorkflowExecutionTimedOutEventAttributes, WorkflowExecutionUpdateAcceptedEventAttributes, + WorkflowExecutionUpdateAdmittedEventAttributes, WorkflowExecutionUpdateCompletedEventAttributes, WorkflowExecutionUpdateRejectedEventAttributes, - WorkflowExecutionUpdateRequestedEventAttributes, WorkflowPropertiesModifiedEventAttributes, WorkflowPropertiesModifiedExternallyEventAttributes, WorkflowTaskCompletedEventAttributes, @@ -70,6 +77,13 @@ "History", "HistoryEvent", "MarkerRecordedEventAttributes", + "NexusOperationCancelRequestedEventAttributes", + "NexusOperationCanceledEventAttributes", + "NexusOperationCompletedEventAttributes", + "NexusOperationFailedEventAttributes", + "NexusOperationScheduledEventAttributes", + "NexusOperationStartedEventAttributes", + "NexusOperationTimedOutEventAttributes", "RequestCancelExternalWorkflowExecutionFailedEventAttributes", "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes", "SignalExternalWorkflowExecutionFailedEventAttributes", @@ -90,9 +104,9 @@ "WorkflowExecutionTerminatedEventAttributes", "WorkflowExecutionTimedOutEventAttributes", "WorkflowExecutionUpdateAcceptedEventAttributes", + "WorkflowExecutionUpdateAdmittedEventAttributes", "WorkflowExecutionUpdateCompletedEventAttributes", "WorkflowExecutionUpdateRejectedEventAttributes", - "WorkflowExecutionUpdateRequestedEventAttributes", "WorkflowPropertiesModifiedEventAttributes", "WorkflowPropertiesModifiedExternallyEventAttributes", "WorkflowTaskCompletedEventAttributes", diff --git a/temporalio/api/history/v1/message_pb2.py b/temporalio/api/history/v1/message_pb2.py index 14c55f154..f3c30ece4 100644 --- a/temporalio/api/history/v1/message_pb2.py +++ b/temporalio/api/history/v1/message_pb2.py @@ -48,7 +48,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n%temporal/api/history/v1/message.proto\x12\x17temporal.api.history.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a"temporal/api/enums/v1/update.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto"\xd1\x0b\n\'WorkflowExecutionStartedEventAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19parent_workflow_namespace\x18\x02 \x01(\t\x12$\n\x1cparent_workflow_namespace_id\x18\x1b \x01(\t\x12L\n\x19parent_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19parent_initiated_event_id\x18\x04 \x01(\x03\x12\x38\n\ntask_queue\x18\x05 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12"\n\x1a\x63ontinued_execution_run_id\x18\n \x01(\t\x12@\n\tinitiator\x18\x0b \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\x0c \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12!\n\x19original_execution_run_id\x18\x0e \x01(\t\x12\x10\n\x08identity\x18\x0f \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x10 \x01(\t\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x12 \x01(\x05\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rcron_schedule\x18\x14 \x01(\t\x12>\n\x1b\x66irst_workflow_task_backoff\x18\x15 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x16 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x17 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x45\n\x16prev_auto_reset_points\x18\x18 \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12.\n\x06header\x18\x19 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12&\n\x1eparent_initiated_event_version\x18\x1a \x01(\x03\x12\x13\n\x0bworkflow_id\x18\x1c \x01(\t\x12H\n\x14source_version_stamp\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\xa5\x01\n)WorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x03 \x01(\t"\xdb\x01\n&WorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x36\n\x0bretry_state\x18\x02 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x04 \x01(\t"\x80\x01\n(WorkflowExecutionTimedOutEventAttributes\x12\x36\n\x0bretry_state\x18\x01 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x1c\n\x14new_execution_run_id\x18\x02 \x01(\t"\xc6\x06\n.WorkflowExecutionContinuedAsNewEventAttributes\x12\x1c\n\x14new_execution_run_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\tinitiator\x18\t \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x31\n\x07\x66\x61ilure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0b \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1e\n\x16use_compatible_version\x18\x0f \x01(\x08"\xac\x01\n$WorkflowTaskScheduledEventAttributes\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x39\n\x16start_to_close_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05"\xa3\x01\n"WorkflowTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x1f\n\x17suggest_continue_as_new\x18\x04 \x01(\x08\x12\x1a\n\x12history_size_bytes\x18\x05 \x01(\x03"\xda\x02\n$WorkflowTaskCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12H\n\x0csdk_metadata\x18\x06 \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata"\x95\x01\n#WorkflowTaskTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x38\n\x0ctimeout_type\x18\x03 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType"\xff\x02\n!WorkflowTaskFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12=\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x62\x61se_run_id\x18\x06 \x01(\t\x12\x12\n\nnew_run_id\x18\x07 \x01(\t\x12\x1a\n\x12\x66ork_event_version\x18\x08 \x01(\x03\x12\x17\n\x0f\x62inary_checksum\x18\t \x01(\t\x12\x42\n\x0eworker_version\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x8b\x05\n$ActivityTaskScheduledEventAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x1e\n\x16use_compatible_version\x18\r \x01(\x08J\x04\x08\x03\x10\x04"\xaf\x01\n"ActivityTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\x05\x12\x36\n\x0clast_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xe4\x01\n$ActivityTaskCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x9a\x02\n!ActivityTaskFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x36\n\x0bretry_state\x18\x05 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\xc6\x01\n#ActivityTaskTimedOutEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x36\n\x0bretry_state\x18\x04 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"r\n*ActivityTaskCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x8e\x02\n#ActivityTaskCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n latest_cancel_requested_event_id\x18\x02 \x01(\x03\x12\x1a\n\x12scheduled_event_id\x18\x03 \x01(\x03\x12\x18\n\x10started_event_id\x18\x04 \x01(\x03\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x93\x01\n\x1bTimerStartedEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03"G\n\x19TimerFiredEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03"\x86\x01\n\x1cTimerCanceledEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t"\xc7\x01\n/WorkflowExecutionCancelRequestedEventAttributes\x12\r\n\x05\x63\x61use\x18\x01 \x01(\t\x12#\n\x1b\x65xternal_initiated_event_id\x18\x02 \x01(\x03\x12N\n\x1b\x65xternal_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x04 \x01(\t"\x87\x01\n(WorkflowExecutionCanceledEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe9\x02\n\x1dMarkerRecordedEventAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xa7\x02\n(WorkflowExecutionSignaledEventAttributes\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12#\n\x1bskip_generate_workflow_task\x18\x05 \x01(\x08\x12N\n\x1b\x65xternal_workflow_execution\x18\x06 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x81\x01\n*WorkflowExecutionTerminatedEventAttributes\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t"\x98\x02\n>RequestCancelExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xd6\x02\n;RequestCancelExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t"\xc5\x01\n7ExternalWorkflowExecutionCancelRequestedEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\xf7\x02\n7SignalExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\t \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x07 \x01(\x08\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xcf\x02\n4SignalExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t"\xcf\x01\n0ExternalWorkflowExecutionSignaledEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x05 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t"\x9e\x01\n-UpsertWorkflowSearchAttributesEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x43\n\x11search_attributes\x18\x02 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"\x8a\x01\n)WorkflowPropertiesModifiedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x33\n\rupserted_memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xb2\x07\n3StartChildWorkflowExecutionInitiatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x12 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\n \x01(\t\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12.\n\x06header\x18\x0f \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x10 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x11 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1e\n\x16use_compatible_version\x18\x13 \x01(\x08"\xd2\x02\n0StartChildWorkflowExecutionFailedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12L\n\x05\x63\x61use\x18\x04 \x01(\x0e\x32=.temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause\x12\x0f\n\x07\x63ontrol\x18\x05 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x06 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03"\xa7\x02\n,ChildWorkflowExecutionStartedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x02 \x01(\x03\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xc5\x02\n.ChildWorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xfb\x02\n+ChildWorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03\x12\x36\n\x0bretry_state\x18\x07 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xc5\x02\n-ChildWorkflowExecutionCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xca\x02\n-ChildWorkflowExecutionTimedOutEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\x94\x02\n/ChildWorkflowExecutionTerminatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03"\xc0\x02\n3WorkflowPropertiesModifiedExternallyEventAttributes\x12\x16\n\x0enew_task_queue\x18\x01 \x01(\t\x12<\n\x19new_workflow_task_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18new_workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1enew_workflow_execution_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x33\n\rupserted_memo\x18\x05 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x90\x01\n3ActivityPropertiesModifiedExternallyEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12=\n\x10new_retry_policy\x18\x02 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy"\xdc\x01\n.WorkflowExecutionUpdateAcceptedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1b\x61\x63\x63\x65pted_request_message_id\x18\x02 \x01(\t\x12,\n$accepted_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10\x61\x63\x63\x65pted_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xaa\x01\n/WorkflowExecutionUpdateCompletedEventAttributes\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x19\n\x11\x61\x63\x63\x65pted_event_id\x18\x03 \x01(\x03\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome"\x8f\x02\n.WorkflowExecutionUpdateRejectedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1brejected_request_message_id\x18\x02 \x01(\t\x12,\n$rejected_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10rejected_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xa6\x01\n/WorkflowExecutionUpdateRequestedEventAttributes\x12\x30\n\x07request\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12\x41\n\x06origin\x18\x02 \x01(\x0e\x32\x31.temporal.api.enums.v1.UpdateRequestedEventOrigin"\xea\x30\n\x0cHistoryEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\nevent_type\x18\x03 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x0f\n\x07task_id\x18\x05 \x01(\x03\x12\x1a\n\x11worker_may_ignore\x18\xac\x02 \x01(\x08\x12w\n+workflow_execution_started_event_attributes\x18\x06 \x01(\x0b\x32@.temporal.api.history.v1.WorkflowExecutionStartedEventAttributesH\x00\x12{\n-workflow_execution_completed_event_attributes\x18\x07 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowExecutionCompletedEventAttributesH\x00\x12u\n*workflow_execution_failed_event_attributes\x18\x08 \x01(\x0b\x32?.temporal.api.history.v1.WorkflowExecutionFailedEventAttributesH\x00\x12z\n-workflow_execution_timed_out_event_attributes\x18\t \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributesH\x00\x12q\n(workflow_task_scheduled_event_attributes\x18\n \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskScheduledEventAttributesH\x00\x12m\n&workflow_task_started_event_attributes\x18\x0b \x01(\x0b\x32;.temporal.api.history.v1.WorkflowTaskStartedEventAttributesH\x00\x12q\n(workflow_task_completed_event_attributes\x18\x0c \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskCompletedEventAttributesH\x00\x12p\n(workflow_task_timed_out_event_attributes\x18\r \x01(\x0b\x32<.temporal.api.history.v1.WorkflowTaskTimedOutEventAttributesH\x00\x12k\n%workflow_task_failed_event_attributes\x18\x0e \x01(\x0b\x32:.temporal.api.history.v1.WorkflowTaskFailedEventAttributesH\x00\x12q\n(activity_task_scheduled_event_attributes\x18\x0f \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskScheduledEventAttributesH\x00\x12m\n&activity_task_started_event_attributes\x18\x10 \x01(\x0b\x32;.temporal.api.history.v1.ActivityTaskStartedEventAttributesH\x00\x12q\n(activity_task_completed_event_attributes\x18\x11 \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskCompletedEventAttributesH\x00\x12k\n%activity_task_failed_event_attributes\x18\x12 \x01(\x0b\x32:.temporal.api.history.v1.ActivityTaskFailedEventAttributesH\x00\x12p\n(activity_task_timed_out_event_attributes\x18\x13 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskTimedOutEventAttributesH\x00\x12^\n\x1etimer_started_event_attributes\x18\x14 \x01(\x0b\x32\x34.temporal.api.history.v1.TimerStartedEventAttributesH\x00\x12Z\n\x1ctimer_fired_event_attributes\x18\x15 \x01(\x0b\x32\x32.temporal.api.history.v1.TimerFiredEventAttributesH\x00\x12~\n/activity_task_cancel_requested_event_attributes\x18\x16 \x01(\x0b\x32\x43.temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributesH\x00\x12o\n\'activity_task_canceled_event_attributes\x18\x17 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskCanceledEventAttributesH\x00\x12`\n\x1ftimer_canceled_event_attributes\x18\x18 \x01(\x0b\x32\x35.temporal.api.history.v1.TimerCanceledEventAttributesH\x00\x12\x62\n marker_recorded_event_attributes\x18\x19 \x01(\x0b\x32\x36.temporal.api.history.v1.MarkerRecordedEventAttributesH\x00\x12y\n,workflow_execution_signaled_event_attributes\x18\x1a \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionSignaledEventAttributesH\x00\x12}\n.workflow_execution_terminated_event_attributes\x18\x1b \x01(\x0b\x32\x43.temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_cancel_requested_event_attributes\x18\x1c \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributesH\x00\x12y\n,workflow_execution_canceled_event_attributes\x18\x1d \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionCanceledEventAttributesH\x00\x12\xa8\x01\nErequest_cancel_external_workflow_execution_initiated_event_attributes\x18\x1e \x01(\x0b\x32W.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\xa2\x01\nBrequest_cancel_external_workflow_execution_failed_event_attributes\x18\x1f \x01(\x0b\x32T.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x99\x01\n=external_workflow_execution_cancel_requested_event_attributes\x18 \x01(\x0b\x32P.temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributesH\x00\x12\x87\x01\n4workflow_execution_continued_as_new_event_attributes\x18! \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributesH\x00\x12\x91\x01\n9start_child_workflow_execution_initiated_event_attributes\x18" \x01(\x0b\x32L.temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributesH\x00\x12\x8b\x01\n6start_child_workflow_execution_failed_event_attributes\x18# \x01(\x0b\x32I.temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributesH\x00\x12\x82\x01\n1child_workflow_execution_started_event_attributes\x18$ \x01(\x0b\x32\x45.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributesH\x00\x12\x86\x01\n3child_workflow_execution_completed_event_attributes\x18% \x01(\x0b\x32G.temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributesH\x00\x12\x80\x01\n0child_workflow_execution_failed_event_attributes\x18& \x01(\x0b\x32\x44.temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributesH\x00\x12\x84\x01\n2child_workflow_execution_canceled_event_attributes\x18\' \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributesH\x00\x12\x85\x01\n3child_workflow_execution_timed_out_event_attributes\x18( \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributesH\x00\x12\x88\x01\n4child_workflow_execution_terminated_event_attributes\x18) \x01(\x0b\x32H.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributesH\x00\x12\x99\x01\n=signal_external_workflow_execution_initiated_event_attributes\x18* \x01(\x0b\x32P.temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\x93\x01\n:signal_external_workflow_execution_failed_event_attributes\x18+ \x01(\x0b\x32M.temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x8a\x01\n5external_workflow_execution_signaled_event_attributes\x18, \x01(\x0b\x32I.temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributesH\x00\x12\x84\x01\n2upsert_workflow_search_attributes_event_attributes\x18- \x01(\x0b\x32\x46.temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_accepted_event_attributes\x18. \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_rejected_event_attributes\x18/ \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_update_completed_event_attributes\x18\x30 \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributesH\x00\x12\x90\x01\n8workflow_properties_modified_externally_event_attributes\x18\x31 \x01(\x0b\x32L.temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributesH\x00\x12\x90\x01\n8activity_properties_modified_externally_event_attributes\x18\x32 \x01(\x0b\x32L.temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributesH\x00\x12{\n-workflow_properties_modified_event_attributes\x18\x33 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_update_requested_event_attributes\x18\x34 \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionUpdateRequestedEventAttributesH\x00\x42\x0c\n\nattributes"@\n\x07History\x12\x35\n\x06\x65vents\x18\x01 \x03(\x0b\x32%.temporal.api.history.v1.HistoryEventB\x8e\x01\n\x1aio.temporal.api.history.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/history/v1;history\xaa\x02\x19Temporalio.Api.History.V1\xea\x02\x1cTemporalio::Api::History::V1b\x06proto3' + b'\n%temporal/api/history/v1/message.proto\x12\x17temporal.api.history.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a"temporal/api/enums/v1/update.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto"\xf9\x0c\n\'WorkflowExecutionStartedEventAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19parent_workflow_namespace\x18\x02 \x01(\t\x12$\n\x1cparent_workflow_namespace_id\x18\x1b \x01(\t\x12L\n\x19parent_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19parent_initiated_event_id\x18\x04 \x01(\x03\x12\x38\n\ntask_queue\x18\x05 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12"\n\x1a\x63ontinued_execution_run_id\x18\n \x01(\t\x12@\n\tinitiator\x18\x0b \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\x0c \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12!\n\x19original_execution_run_id\x18\x0e \x01(\t\x12\x10\n\x08identity\x18\x0f \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x10 \x01(\t\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x12 \x01(\x05\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rcron_schedule\x18\x14 \x01(\t\x12>\n\x1b\x66irst_workflow_task_backoff\x18\x15 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x16 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x17 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x45\n\x16prev_auto_reset_points\x18\x18 \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12.\n\x06header\x18\x19 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12&\n\x1eparent_initiated_event_version\x18\x1a \x01(\x03\x12\x13\n\x0bworkflow_id\x18\x1c \x01(\t\x12H\n\x14source_version_stamp\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12>\n\x14\x63ompletion_callbacks\x18\x1e \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12J\n\x17root_workflow_execution\x18\x1f \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12inherited_build_id\x18 \x01(\t"\xa5\x01\n)WorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x03 \x01(\t"\xdb\x01\n&WorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x36\n\x0bretry_state\x18\x02 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x04 \x01(\t"\x80\x01\n(WorkflowExecutionTimedOutEventAttributes\x12\x36\n\x0bretry_state\x18\x01 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x1c\n\x14new_execution_run_id\x18\x02 \x01(\t"\xc0\x06\n.WorkflowExecutionContinuedAsNewEventAttributes\x12\x1c\n\x14new_execution_run_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\tinitiator\x18\t \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x31\n\x07\x66\x61ilure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0b \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x0f \x01(\x08"\xac\x01\n$WorkflowTaskScheduledEventAttributes\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x39\n\x16start_to_close_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05"\x8a\x02\n"WorkflowTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x1f\n\x17suggest_continue_as_new\x18\x04 \x01(\x08\x12\x1a\n\x12history_size_bytes\x18\x05 \x01(\x03\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12!\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03"\xda\x02\n$WorkflowTaskCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12H\n\x0csdk_metadata\x18\x06 \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata"\x95\x01\n#WorkflowTaskTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x38\n\x0ctimeout_type\x18\x03 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType"\xff\x02\n!WorkflowTaskFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12=\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x62\x61se_run_id\x18\x06 \x01(\t\x12\x12\n\nnew_run_id\x18\x07 \x01(\t\x12\x1a\n\x12\x66ork_event_version\x18\x08 \x01(\x03\x12\x17\n\x0f\x62inary_checksum\x18\t \x01(\t\x12\x42\n\x0eworker_version\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x8a\x05\n$ActivityTaskScheduledEventAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x1d\n\x15use_workflow_build_id\x18\r \x01(\x08J\x04\x08\x03\x10\x04"\x96\x02\n"ActivityTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\x05\x12\x36\n\x0clast_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12!\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03"\xe4\x01\n$ActivityTaskCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x9a\x02\n!ActivityTaskFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x36\n\x0bretry_state\x18\x05 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\xc6\x01\n#ActivityTaskTimedOutEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x36\n\x0bretry_state\x18\x04 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"r\n*ActivityTaskCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x8e\x02\n#ActivityTaskCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n latest_cancel_requested_event_id\x18\x02 \x01(\x03\x12\x1a\n\x12scheduled_event_id\x18\x03 \x01(\x03\x12\x18\n\x10started_event_id\x18\x04 \x01(\x03\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x93\x01\n\x1bTimerStartedEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03"G\n\x19TimerFiredEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03"\x86\x01\n\x1cTimerCanceledEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t"\xc7\x01\n/WorkflowExecutionCancelRequestedEventAttributes\x12\r\n\x05\x63\x61use\x18\x01 \x01(\t\x12#\n\x1b\x65xternal_initiated_event_id\x18\x02 \x01(\x03\x12N\n\x1b\x65xternal_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x04 \x01(\t"\x87\x01\n(WorkflowExecutionCanceledEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe9\x02\n\x1dMarkerRecordedEventAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xa7\x02\n(WorkflowExecutionSignaledEventAttributes\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12#\n\x1bskip_generate_workflow_task\x18\x05 \x01(\x08\x12N\n\x1b\x65xternal_workflow_execution\x18\x06 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x81\x01\n*WorkflowExecutionTerminatedEventAttributes\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t"\x98\x02\n>RequestCancelExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xd6\x02\n;RequestCancelExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t"\xc5\x01\n7ExternalWorkflowExecutionCancelRequestedEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\xf7\x02\n7SignalExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\t \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x07 \x01(\x08\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xcf\x02\n4SignalExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t"\xcf\x01\n0ExternalWorkflowExecutionSignaledEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x05 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t"\x9e\x01\n-UpsertWorkflowSearchAttributesEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x43\n\x11search_attributes\x18\x02 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"\x8a\x01\n)WorkflowPropertiesModifiedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x33\n\rupserted_memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xac\x07\n3StartChildWorkflowExecutionInitiatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x12 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\n \x01(\t\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12.\n\x06header\x18\x0f \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x10 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x11 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x13 \x01(\x08"\xd2\x02\n0StartChildWorkflowExecutionFailedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12L\n\x05\x63\x61use\x18\x04 \x01(\x0e\x32=.temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause\x12\x0f\n\x07\x63ontrol\x18\x05 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x06 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03"\xa7\x02\n,ChildWorkflowExecutionStartedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x02 \x01(\x03\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xc5\x02\n.ChildWorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xfb\x02\n+ChildWorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03\x12\x36\n\x0bretry_state\x18\x07 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xc5\x02\n-ChildWorkflowExecutionCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xca\x02\n-ChildWorkflowExecutionTimedOutEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\x94\x02\n/ChildWorkflowExecutionTerminatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03"\xc0\x02\n3WorkflowPropertiesModifiedExternallyEventAttributes\x12\x16\n\x0enew_task_queue\x18\x01 \x01(\t\x12<\n\x19new_workflow_task_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18new_workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1enew_workflow_execution_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x33\n\rupserted_memo\x18\x05 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x90\x01\n3ActivityPropertiesModifiedExternallyEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12=\n\x10new_retry_policy\x18\x02 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy"\xdc\x01\n.WorkflowExecutionUpdateAcceptedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1b\x61\x63\x63\x65pted_request_message_id\x18\x02 \x01(\t\x12,\n$accepted_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10\x61\x63\x63\x65pted_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xaa\x01\n/WorkflowExecutionUpdateCompletedEventAttributes\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x19\n\x11\x61\x63\x63\x65pted_event_id\x18\x03 \x01(\x03\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome"\x8f\x02\n.WorkflowExecutionUpdateRejectedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1brejected_request_message_id\x18\x02 \x01(\t\x12,\n$rejected_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10rejected_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xa4\x01\n.WorkflowExecutionUpdateAdmittedEventAttributes\x12\x30\n\x07request\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12@\n\x06origin\x18\x02 \x01(\x0e\x32\x30.temporal.api.enums.v1.UpdateAdmittedEventOrigin"\xa6\x03\n&NexusOperationScheduledEventAttributes\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x66\n\x0cnexus_header\x18\x06 \x03(\x0b\x32P.temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x12\n\nrequest_id\x18\x08 \x01(\t\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"X\n$NexusOperationStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x14\n\x0coperation_id\x18\x03 \x01(\t"u\n&NexusOperationCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12/\n\x06result\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"t\n#NexusOperationFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"v\n%NexusOperationTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"v\n%NexusOperationCanceledEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"t\n,NexusOperationCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\xaa\x37\n\x0cHistoryEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\nevent_type\x18\x03 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x0f\n\x07task_id\x18\x05 \x01(\x03\x12\x1a\n\x11worker_may_ignore\x18\xac\x02 \x01(\x08\x12w\n+workflow_execution_started_event_attributes\x18\x06 \x01(\x0b\x32@.temporal.api.history.v1.WorkflowExecutionStartedEventAttributesH\x00\x12{\n-workflow_execution_completed_event_attributes\x18\x07 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowExecutionCompletedEventAttributesH\x00\x12u\n*workflow_execution_failed_event_attributes\x18\x08 \x01(\x0b\x32?.temporal.api.history.v1.WorkflowExecutionFailedEventAttributesH\x00\x12z\n-workflow_execution_timed_out_event_attributes\x18\t \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributesH\x00\x12q\n(workflow_task_scheduled_event_attributes\x18\n \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskScheduledEventAttributesH\x00\x12m\n&workflow_task_started_event_attributes\x18\x0b \x01(\x0b\x32;.temporal.api.history.v1.WorkflowTaskStartedEventAttributesH\x00\x12q\n(workflow_task_completed_event_attributes\x18\x0c \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskCompletedEventAttributesH\x00\x12p\n(workflow_task_timed_out_event_attributes\x18\r \x01(\x0b\x32<.temporal.api.history.v1.WorkflowTaskTimedOutEventAttributesH\x00\x12k\n%workflow_task_failed_event_attributes\x18\x0e \x01(\x0b\x32:.temporal.api.history.v1.WorkflowTaskFailedEventAttributesH\x00\x12q\n(activity_task_scheduled_event_attributes\x18\x0f \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskScheduledEventAttributesH\x00\x12m\n&activity_task_started_event_attributes\x18\x10 \x01(\x0b\x32;.temporal.api.history.v1.ActivityTaskStartedEventAttributesH\x00\x12q\n(activity_task_completed_event_attributes\x18\x11 \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskCompletedEventAttributesH\x00\x12k\n%activity_task_failed_event_attributes\x18\x12 \x01(\x0b\x32:.temporal.api.history.v1.ActivityTaskFailedEventAttributesH\x00\x12p\n(activity_task_timed_out_event_attributes\x18\x13 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskTimedOutEventAttributesH\x00\x12^\n\x1etimer_started_event_attributes\x18\x14 \x01(\x0b\x32\x34.temporal.api.history.v1.TimerStartedEventAttributesH\x00\x12Z\n\x1ctimer_fired_event_attributes\x18\x15 \x01(\x0b\x32\x32.temporal.api.history.v1.TimerFiredEventAttributesH\x00\x12~\n/activity_task_cancel_requested_event_attributes\x18\x16 \x01(\x0b\x32\x43.temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributesH\x00\x12o\n\'activity_task_canceled_event_attributes\x18\x17 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskCanceledEventAttributesH\x00\x12`\n\x1ftimer_canceled_event_attributes\x18\x18 \x01(\x0b\x32\x35.temporal.api.history.v1.TimerCanceledEventAttributesH\x00\x12\x62\n marker_recorded_event_attributes\x18\x19 \x01(\x0b\x32\x36.temporal.api.history.v1.MarkerRecordedEventAttributesH\x00\x12y\n,workflow_execution_signaled_event_attributes\x18\x1a \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionSignaledEventAttributesH\x00\x12}\n.workflow_execution_terminated_event_attributes\x18\x1b \x01(\x0b\x32\x43.temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_cancel_requested_event_attributes\x18\x1c \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributesH\x00\x12y\n,workflow_execution_canceled_event_attributes\x18\x1d \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionCanceledEventAttributesH\x00\x12\xa8\x01\nErequest_cancel_external_workflow_execution_initiated_event_attributes\x18\x1e \x01(\x0b\x32W.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\xa2\x01\nBrequest_cancel_external_workflow_execution_failed_event_attributes\x18\x1f \x01(\x0b\x32T.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x99\x01\n=external_workflow_execution_cancel_requested_event_attributes\x18 \x01(\x0b\x32P.temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributesH\x00\x12\x87\x01\n4workflow_execution_continued_as_new_event_attributes\x18! \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributesH\x00\x12\x91\x01\n9start_child_workflow_execution_initiated_event_attributes\x18" \x01(\x0b\x32L.temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributesH\x00\x12\x8b\x01\n6start_child_workflow_execution_failed_event_attributes\x18# \x01(\x0b\x32I.temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributesH\x00\x12\x82\x01\n1child_workflow_execution_started_event_attributes\x18$ \x01(\x0b\x32\x45.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributesH\x00\x12\x86\x01\n3child_workflow_execution_completed_event_attributes\x18% \x01(\x0b\x32G.temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributesH\x00\x12\x80\x01\n0child_workflow_execution_failed_event_attributes\x18& \x01(\x0b\x32\x44.temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributesH\x00\x12\x84\x01\n2child_workflow_execution_canceled_event_attributes\x18\' \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributesH\x00\x12\x85\x01\n3child_workflow_execution_timed_out_event_attributes\x18( \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributesH\x00\x12\x88\x01\n4child_workflow_execution_terminated_event_attributes\x18) \x01(\x0b\x32H.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributesH\x00\x12\x99\x01\n=signal_external_workflow_execution_initiated_event_attributes\x18* \x01(\x0b\x32P.temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\x93\x01\n:signal_external_workflow_execution_failed_event_attributes\x18+ \x01(\x0b\x32M.temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x8a\x01\n5external_workflow_execution_signaled_event_attributes\x18, \x01(\x0b\x32I.temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributesH\x00\x12\x84\x01\n2upsert_workflow_search_attributes_event_attributes\x18- \x01(\x0b\x32\x46.temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_accepted_event_attributes\x18. \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_rejected_event_attributes\x18/ \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_update_completed_event_attributes\x18\x30 \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributesH\x00\x12\x90\x01\n8workflow_properties_modified_externally_event_attributes\x18\x31 \x01(\x0b\x32L.temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributesH\x00\x12\x90\x01\n8activity_properties_modified_externally_event_attributes\x18\x32 \x01(\x0b\x32L.temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributesH\x00\x12{\n-workflow_properties_modified_event_attributes\x18\x33 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_admitted_event_attributes\x18\x34 \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributesH\x00\x12u\n*nexus_operation_scheduled_event_attributes\x18\x35 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationScheduledEventAttributesH\x00\x12q\n(nexus_operation_started_event_attributes\x18\x36 \x01(\x0b\x32=.temporal.api.history.v1.NexusOperationStartedEventAttributesH\x00\x12u\n*nexus_operation_completed_event_attributes\x18\x37 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationCompletedEventAttributesH\x00\x12o\n\'nexus_operation_failed_event_attributes\x18\x38 \x01(\x0b\x32<.temporal.api.history.v1.NexusOperationFailedEventAttributesH\x00\x12s\n)nexus_operation_canceled_event_attributes\x18\x39 \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationCanceledEventAttributesH\x00\x12t\n*nexus_operation_timed_out_event_attributes\x18: \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationTimedOutEventAttributesH\x00\x12\x82\x01\n1nexus_operation_cancel_requested_event_attributes\x18; \x01(\x0b\x32\x45.temporal.api.history.v1.NexusOperationCancelRequestedEventAttributesH\x00\x42\x0c\n\nattributes"@\n\x07History\x12\x35\n\x06\x65vents\x18\x01 \x03(\x0b\x32%.temporal.api.history.v1.HistoryEventB\x8e\x01\n\x1aio.temporal.api.history.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/history/v1;history\xaa\x02\x19Temporalio.Api.History.V1\xea\x02\x1cTemporalio::Api::History::V1b\x06proto3' ) @@ -203,8 +203,32 @@ _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ "WorkflowExecutionUpdateRejectedEventAttributes" ] -_WORKFLOWEXECUTIONUPDATEREQUESTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionUpdateRequestedEventAttributes" +_WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "WorkflowExecutionUpdateAdmittedEventAttributes" +] +_NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "NexusOperationScheduledEventAttributes" +] +_NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY = ( + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES.nested_types_by_name["NexusHeaderEntry"] +) +_NEXUSOPERATIONSTARTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "NexusOperationStartedEventAttributes" +] +_NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "NexusOperationCompletedEventAttributes" +] +_NEXUSOPERATIONFAILEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "NexusOperationFailedEventAttributes" +] +_NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "NexusOperationTimedOutEventAttributes" +] +_NEXUSOPERATIONCANCELEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "NexusOperationCanceledEventAttributes" +] +_NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "NexusOperationCancelRequestedEventAttributes" ] _HISTORYEVENT = DESCRIPTOR.message_types_by_name["HistoryEvent"] _HISTORY = DESCRIPTOR.message_types_by_name["History"] @@ -724,16 +748,103 @@ ) _sym_db.RegisterMessage(WorkflowExecutionUpdateRejectedEventAttributes) -WorkflowExecutionUpdateRequestedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUpdateRequestedEventAttributes", +WorkflowExecutionUpdateAdmittedEventAttributes = _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionUpdateAdmittedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributes) + }, +) +_sym_db.RegisterMessage(WorkflowExecutionUpdateAdmittedEventAttributes) + +NexusOperationScheduledEventAttributes = _reflection.GeneratedProtocolMessageType( + "NexusOperationScheduledEventAttributes", + (_message.Message,), + { + "NexusHeaderEntry": _reflection.GeneratedProtocolMessageType( + "NexusHeaderEntry", + (_message.Message,), + { + "DESCRIPTOR": _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY, + "__module__": "temporal.api.history.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry) + }, + ), + "DESCRIPTOR": _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationScheduledEventAttributes) + }, +) +_sym_db.RegisterMessage(NexusOperationScheduledEventAttributes) +_sym_db.RegisterMessage(NexusOperationScheduledEventAttributes.NexusHeaderEntry) + +NexusOperationStartedEventAttributes = _reflection.GeneratedProtocolMessageType( + "NexusOperationStartedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationStartedEventAttributes) + }, +) +_sym_db.RegisterMessage(NexusOperationStartedEventAttributes) + +NexusOperationCompletedEventAttributes = _reflection.GeneratedProtocolMessageType( + "NexusOperationCompletedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCompletedEventAttributes) + }, +) +_sym_db.RegisterMessage(NexusOperationCompletedEventAttributes) + +NexusOperationFailedEventAttributes = _reflection.GeneratedProtocolMessageType( + "NexusOperationFailedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _NEXUSOPERATIONFAILEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationFailedEventAttributes) + }, +) +_sym_db.RegisterMessage(NexusOperationFailedEventAttributes) + +NexusOperationTimedOutEventAttributes = _reflection.GeneratedProtocolMessageType( + "NexusOperationTimedOutEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationTimedOutEventAttributes) + }, +) +_sym_db.RegisterMessage(NexusOperationTimedOutEventAttributes) + +NexusOperationCanceledEventAttributes = _reflection.GeneratedProtocolMessageType( + "NexusOperationCanceledEventAttributes", (_message.Message,), { - "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEREQUESTEDEVENTATTRIBUTES, + "DESCRIPTOR": _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES, "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateRequestedEventAttributes) + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCanceledEventAttributes) }, ) -_sym_db.RegisterMessage(WorkflowExecutionUpdateRequestedEventAttributes) +_sym_db.RegisterMessage(NexusOperationCanceledEventAttributes) + +NexusOperationCancelRequestedEventAttributes = _reflection.GeneratedProtocolMessageType( + "NexusOperationCancelRequestedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCancelRequestedEventAttributes) + }, +) +_sym_db.RegisterMessage(NexusOperationCancelRequestedEventAttributes) HistoryEvent = _reflection.GeneratedProtocolMessageType( "HistoryEvent", @@ -762,110 +873,130 @@ DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.history.v1B\014MessageProtoP\001Z%go.temporal.io/api/history/v1;history\252\002\031Temporalio.Api.History.V1\352\002\034Temporalio::Api::History::V1" _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._options = None _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_options = b"8\001" + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._options = None + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_options = ( + b"8\001" + ) _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 534 - _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 2023 - _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 2026 - _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 2191 - _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 2194 - _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 2413 - _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 2416 - _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 2544 - _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_start = 2547 - _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_end = 3385 - _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 3388 - _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 3560 - _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_start = 3563 - _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_end = 3726 - _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 3729 - _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 4075 - _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 4078 - _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 4227 - _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_start = 4230 - _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_end = 4613 - _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 4616 - _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 5267 - _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_start = 5270 - _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_end = 5445 - _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 5448 - _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 5676 - _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_start = 5679 - _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_end = 5961 - _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 5964 - _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 6162 - _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 6164 - _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 6278 - _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_start = 6281 - _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_end = 6551 - _TIMERSTARTEDEVENTATTRIBUTES._serialized_start = 6554 - _TIMERSTARTEDEVENTATTRIBUTES._serialized_end = 6701 - _TIMERFIREDEVENTATTRIBUTES._serialized_start = 6703 - _TIMERFIREDEVENTATTRIBUTES._serialized_end = 6774 - _TIMERCANCELEDEVENTATTRIBUTES._serialized_start = 6777 - _TIMERCANCELEDEVENTATTRIBUTES._serialized_end = 6911 - _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 6914 - _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 7113 - _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 7116 - _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 7251 - _MARKERRECORDEDEVENTATTRIBUTES._serialized_start = 7254 - _MARKERRECORDEDEVENTATTRIBUTES._serialized_end = 7615 - _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_start = 7535 - _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_end = 7615 - _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 7618 - _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 7913 - _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 7916 - _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 8045 + _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 2191 + _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 2194 + _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 2359 + _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 2362 + _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 2581 + _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 2584 + _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 2712 + _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_start = 2715 + _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_end = 3547 + _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 3550 + _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 3722 + _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_start = 3725 + _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_end = 3991 + _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 3994 + _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 4340 + _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 4343 + _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 4492 + _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_start = 4495 + _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_end = 4878 + _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 4881 + _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 5531 + _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_start = 5534 + _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_end = 5812 + _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 5815 + _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 6043 + _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_start = 6046 + _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_end = 6328 + _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 6331 + _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 6529 + _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 6531 + _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 6645 + _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_start = 6648 + _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_end = 6918 + _TIMERSTARTEDEVENTATTRIBUTES._serialized_start = 6921 + _TIMERSTARTEDEVENTATTRIBUTES._serialized_end = 7068 + _TIMERFIREDEVENTATTRIBUTES._serialized_start = 7070 + _TIMERFIREDEVENTATTRIBUTES._serialized_end = 7141 + _TIMERCANCELEDEVENTATTRIBUTES._serialized_start = 7144 + _TIMERCANCELEDEVENTATTRIBUTES._serialized_end = 7278 + _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 7281 + _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 7480 + _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 7483 + _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 7618 + _MARKERRECORDEDEVENTATTRIBUTES._serialized_start = 7621 + _MARKERRECORDEDEVENTATTRIBUTES._serialized_end = 7982 + _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_start = 7902 + _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_end = 7982 + _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 7985 + _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 8280 + _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 8283 + _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 8412 _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = ( - 8048 + 8415 ) _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = ( - 8328 + 8695 ) _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = ( - 8331 + 8698 ) - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 8673 - _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 8676 - _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 8873 - _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 8876 - _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 9251 - _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 9254 - _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 9589 - _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 9592 - _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 9799 - _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_start = 9802 - _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_end = 9960 - _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_start = 9963 - _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_end = 10101 - _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 10104 - _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 11050 - _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 11053 - _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 11391 - _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 11394 - _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 11689 - _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 11692 - _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 12017 - _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 12020 - _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 12399 - _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 12402 - _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 12727 - _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 12730 - _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 13060 - _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 13063 - _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 13339 - _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 13342 - _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 13662 - _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 13665 - _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 13809 - _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_start = 13812 - _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_end = 14032 - _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_start = 14035 - _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_end = 14205 - _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_start = 14208 - _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_end = 14479 - _WORKFLOWEXECUTIONUPDATEREQUESTEDEVENTATTRIBUTES._serialized_start = 14482 - _WORKFLOWEXECUTIONUPDATEREQUESTEDEVENTATTRIBUTES._serialized_end = 14648 - _HISTORYEVENT._serialized_start = 14651 - _HISTORYEVENT._serialized_end = 20901 - _HISTORY._serialized_start = 20903 - _HISTORY._serialized_end = 20967 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 9040 + _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 9043 + _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 9240 + _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 9243 + _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 9618 + _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 9621 + _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 9956 + _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 9959 + _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 10166 + _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_start = 10169 + _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_end = 10327 + _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_start = 10330 + _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_end = 10468 + _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 10471 + _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 11411 + _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 11414 + _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 11752 + _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 11755 + _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 12050 + _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 12053 + _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 12378 + _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 12381 + _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 12760 + _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 12763 + _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 13088 + _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 13091 + _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 13421 + _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 13424 + _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 13700 + _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 13703 + _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 14023 + _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 14026 + _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 14170 + _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_start = 14173 + _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_end = 14393 + _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_start = 14396 + _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_end = 14566 + _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_start = 14569 + _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_end = 14840 + _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_start = 14843 + _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_end = 15007 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_start = 15010 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_end = 15432 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_start = 15382 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_end = 15432 + _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_start = 15434 + _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_end = 15522 + _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 15524 + _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 15641 + _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_start = 15643 + _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_end = 15759 + _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 15761 + _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 15879 + _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_start = 15881 + _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_end = 15999 + _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 16001 + _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 16117 + _HISTORYEVENT._serialized_start = 16120 + _HISTORYEVENT._serialized_end = 23202 + _HISTORY._serialized_start = 23204 + _HISTORY._serialized_end = 23268 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/history/v1/message_pb2.pyi b/temporalio/api/history/v1/message_pb2.pyi index 593e640f4..a7ea14f05 100644 --- a/temporalio/api/history/v1/message_pb2.pyi +++ b/temporalio/api/history/v1/message_pb2.pyi @@ -83,6 +83,9 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): PARENT_INITIATED_EVENT_VERSION_FIELD_NUMBER: builtins.int WORKFLOW_ID_FIELD_NUMBER: builtins.int SOURCE_VERSION_STAMP_FIELD_NUMBER: builtins.int + COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int + ROOT_WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int + INHERITED_BUILD_ID_FIELD_NUMBER: builtins.int @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... parent_workflow_namespace: builtins.str @@ -177,7 +180,39 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): ) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """If this workflow intends to use anything other than the current overall default version for the queue, then we include it here. + Deprecated. use `inherited_build_id` instead """ + @property + def completion_callbacks( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.common.v1.message_pb2.Callback + ]: + """Completion callbacks attached when this workflow was started.""" + @property + def root_workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Contains information about the root workflow execution. + The root workflow execution is defined as follows: + 1. A workflow without parent workflow is its own root workflow. + 2. A workflow that has a parent workflow has the same root workflow as its parent workflow. + Note: workflows continued as new or reseted may or may not have parents, check examples below. + + Examples: + Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3. + - The root workflow of all three workflows is W1. + Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3. + - The root workflow of all three workflows is W1. + Scenario 3: Workflow W1 continued as new W2. + - The root workflow of W1 is W1 and the root workflow of W2 is W2. + Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3 + - The root workflow of all three workflows is W1. + Scenario 5: Workflow W1 is reseted, creating W2. + - The root workflow of W1 is W1 and the root workflow of W2 is W2. + """ + inherited_build_id: builtins.str + """When present, this execution is assigned to the build ID of its parent or previous execution.""" def __init__( self, *, @@ -216,6 +251,13 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): workflow_id: builtins.str = ..., source_version_stamp: temporalio.api.common.v1.message_pb2.WorkerVersionStamp | None = ..., + completion_callbacks: collections.abc.Iterable[ + temporalio.api.common.v1.message_pb2.Callback + ] + | None = ..., + root_workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution + | None = ..., + inherited_build_id: builtins.str = ..., ) -> None: ... def HasField( self, @@ -238,6 +280,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"prev_auto_reset_points", "retry_policy", b"retry_policy", + "root_workflow_execution", + b"root_workflow_execution", "search_attributes", b"search_attributes", "source_version_stamp", @@ -261,6 +305,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): field_name: typing_extensions.Literal[ "attempt", b"attempt", + "completion_callbacks", + b"completion_callbacks", "continued_execution_run_id", b"continued_execution_run_id", "continued_failure", @@ -275,6 +321,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"header", "identity", b"identity", + "inherited_build_id", + b"inherited_build_id", "initiator", b"initiator", "input", @@ -299,6 +347,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"prev_auto_reset_points", "retry_policy", b"retry_policy", + "root_workflow_execution", + b"root_workflow_execution", "search_attributes", b"search_attributes", "source_version_stamp", @@ -450,7 +500,7 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes HEADER_FIELD_NUMBER: builtins.int MEMO_FIELD_NUMBER: builtins.int SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int - USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int + INHERIT_BUILD_ID_FIELD_NUMBER: builtins.int new_execution_run_id: builtins.str """The run ID of the new workflow started by this continue-as-new""" @property @@ -489,9 +539,9 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... - use_compatible_version: builtins.bool - """If this is set, the workflow executing this command wishes to continue as new using a version - compatible with the version that this workflow most recently ran on. + inherit_build_id: builtins.bool + """If this is set, the new execution inherits the Build ID of the current execution. Otherwise, + the assignment rules will be used to independently assign a Build ID to the new execution. """ def __init__( self, @@ -512,7 +562,7 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes memo: temporalio.api.common.v1.message_pb2.Memo | None = ..., search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes | None = ..., - use_compatible_version: builtins.bool = ..., + inherit_build_id: builtins.bool = ..., ) -> None: ... def HasField( self, @@ -550,6 +600,8 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes b"failure", "header", b"header", + "inherit_build_id", + b"inherit_build_id", "initiator", b"initiator", "input", @@ -564,8 +616,6 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes b"search_attributes", "task_queue", b"task_queue", - "use_compatible_version", - b"use_compatible_version", "workflow_run_timeout", b"workflow_run_timeout", "workflow_task_completed_event_id", @@ -637,6 +687,8 @@ class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int SUGGEST_CONTINUE_AS_NEW_FIELD_NUMBER: builtins.int HISTORY_SIZE_BYTES_FIELD_NUMBER: builtins.int + WORKER_VERSION_FIELD_NUMBER: builtins.int + BUILD_ID_REDIRECT_COUNTER_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to""" identity: builtins.str @@ -652,6 +704,13 @@ class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): continue-as-new regardless of the suggestion. Note that history event count is just the event id of this event, so we don't include it explicitly here. """ + @property + def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: + """Version info of the worker to whom this task was dispatched.""" + build_id_redirect_counter: builtins.int + """Used by server internally to properly reapply build ID redirects to an execution + when rebuilding it from events. + """ def __init__( self, *, @@ -660,10 +719,18 @@ class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): request_id: builtins.str = ..., suggest_continue_as_new: builtins.bool = ..., history_size_bytes: builtins.int = ..., + worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp + | None = ..., + build_id_redirect_counter: builtins.int = ..., ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["worker_version", b"worker_version"] + ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ + "build_id_redirect_counter", + b"build_id_redirect_counter", "history_size_bytes", b"history_size_bytes", "identity", @@ -674,6 +741,8 @@ class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): b"scheduled_event_id", "suggest_continue_as_new", b"suggest_continue_as_new", + "worker_version", + b"worker_version", ], ) -> None: ... @@ -702,6 +771,7 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): """Version info of the worker who processed this workflow task. If present, the `build_id` field within is also used as `binary_checksum`, which may be omitted in that case (it may also be populated to preserve compatibility). + Deprecated. Use the info inside the corresponding WorkflowTaskStartedEvent """ @property def sdk_metadata( @@ -832,6 +902,7 @@ class WorkflowTaskFailedEventAttributes(google.protobuf.message.Message): """Version info of the worker who processed this workflow task. If present, the `build_id` field within is also used as `binary_checksum`, which may be omitted in that case (it may also be populated to preserve compatibility). + Deprecated. Use the info inside the corresponding WorkflowTaskStartedEvent """ def __init__( self, @@ -896,7 +967,7 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): HEARTBEAT_TIMEOUT_FIELD_NUMBER: builtins.int WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int RETRY_POLICY_FIELD_NUMBER: builtins.int - USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int + USE_WORKFLOW_BUILD_ID_FIELD_NUMBER: builtins.int activity_id: builtins.str """The worker/user assigned identifier for the activity""" @property @@ -945,10 +1016,9 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set retry_policy.maximum_attempts to 1. """ - use_compatible_version: builtins.bool - """If this is set, the workflow executing this command wishes to start the activity using - a version compatible with the version that this workflow most recently ran on, if such - behavior is possible. + use_workflow_build_id: builtins.bool + """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, + Assignment rules of the activity's Task Queue will be used to determine the Build ID. """ def __init__( self, @@ -964,7 +1034,7 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): heartbeat_timeout: google.protobuf.duration_pb2.Duration | None = ..., workflow_task_completed_event_id: builtins.int = ..., retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ..., - use_compatible_version: builtins.bool = ..., + use_workflow_build_id: builtins.bool = ..., ) -> None: ... def HasField( self, @@ -1012,8 +1082,8 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): b"start_to_close_timeout", "task_queue", b"task_queue", - "use_compatible_version", - b"use_compatible_version", + "use_workflow_build_id", + b"use_workflow_build_id", "workflow_task_completed_event_id", b"workflow_task_completed_event_id", ], @@ -1029,6 +1099,8 @@ class ActivityTaskStartedEventAttributes(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int ATTEMPT_FIELD_NUMBER: builtins.int LAST_FAILURE_FIELD_NUMBER: builtins.int + WORKER_VERSION_FIELD_NUMBER: builtins.int + BUILD_ID_REDIRECT_COUNTER_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to""" identity: builtins.str @@ -1042,6 +1114,13 @@ class ActivityTaskStartedEventAttributes(google.protobuf.message.Message): """Will be set to the most recent failure details, if this task has previously failed and then been retried. """ + @property + def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: + """Version info of the worker to whom this task was dispatched.""" + build_id_redirect_counter: builtins.int + """Used by server internally to properly reapply build ID redirects to an execution + when rebuilding it from events. + """ def __init__( self, *, @@ -1050,15 +1129,23 @@ class ActivityTaskStartedEventAttributes(google.protobuf.message.Message): request_id: builtins.str = ..., attempt: builtins.int = ..., last_failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., + worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp + | None = ..., + build_id_redirect_counter: builtins.int = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["last_failure", b"last_failure"] + self, + field_name: typing_extensions.Literal[ + "last_failure", b"last_failure", "worker_version", b"worker_version" + ], ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ "attempt", b"attempt", + "build_id_redirect_counter", + b"build_id_redirect_counter", "identity", b"identity", "last_failure", @@ -1067,6 +1154,8 @@ class ActivityTaskStartedEventAttributes(google.protobuf.message.Message): b"request_id", "scheduled_event_id", b"scheduled_event_id", + "worker_version", + b"worker_version", ], ) -> None: ... @@ -1091,7 +1180,9 @@ class ActivityTaskCompletedEventAttributes(google.protobuf.message.Message): """id of the worker that completed this task""" @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: - """Version info of the worker who processed this workflow task.""" + """Version info of the worker who processed this workflow task. + Deprecated. Use the info inside the corresponding ActivityTaskStartedEvent + """ def __init__( self, *, @@ -1147,7 +1238,9 @@ class ActivityTaskFailedEventAttributes(google.protobuf.message.Message): retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: - """Version info of the worker who processed this workflow task.""" + """Version info of the worker who processed this workflow task. + Deprecated. Use the info inside the corresponding ActivityTaskStartedEvent + """ def __init__( self, *, @@ -1282,7 +1375,9 @@ class ActivityTaskCanceledEventAttributes(google.protobuf.message.Message): """id of the worker who canceled this activity""" @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: - """Version info of the worker who processed this workflow task.""" + """Version info of the worker who processed this workflow task. + Deprecated. Use the info inside the corresponding ActivityTaskStartedEvent + """ def __init__( self, *, @@ -2212,7 +2307,7 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( HEADER_FIELD_NUMBER: builtins.int MEMO_FIELD_NUMBER: builtins.int SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int - USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int + INHERIT_BUILD_ID_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the child workflow. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. @@ -2254,10 +2349,9 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... - use_compatible_version: builtins.bool - """If this is set, the workflow executing this command wishes to start the child workflow using - a version compatible with the version that this workflow most recently ran on, if such - behavior is possible. + inherit_build_id: builtins.bool + """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment + rules of the child's Task Queue will be used to independently assign a Build ID to it. """ def __init__( self, @@ -2281,7 +2375,7 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( memo: temporalio.api.common.v1.message_pb2.Memo | None = ..., search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes | None = ..., - use_compatible_version: builtins.bool = ..., + inherit_build_id: builtins.bool = ..., ) -> None: ... def HasField( self, @@ -2317,6 +2411,8 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( b"cron_schedule", "header", b"header", + "inherit_build_id", + b"inherit_build_id", "input", b"input", "memo", @@ -2333,8 +2429,6 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( b"search_attributes", "task_queue", b"task_queue", - "use_compatible_version", - b"use_compatible_version", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_id", @@ -3117,7 +3211,7 @@ global___WorkflowExecutionUpdateRejectedEventAttributes = ( WorkflowExecutionUpdateRejectedEventAttributes ) -class WorkflowExecutionUpdateRequestedEventAttributes(google.protobuf.message.Message): +class WorkflowExecutionUpdateAdmittedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor REQUEST_FIELD_NUMBER: builtins.int @@ -3125,13 +3219,13 @@ class WorkflowExecutionUpdateRequestedEventAttributes(google.protobuf.message.Me @property def request(self) -> temporalio.api.update.v1.message_pb2.Request: """The update request associated with this event.""" - origin: temporalio.api.enums.v1.update_pb2.UpdateRequestedEventOrigin.ValueType - """A record of why this event was written to history.""" + origin: temporalio.api.enums.v1.update_pb2.UpdateAdmittedEventOrigin.ValueType + """An explanation of why this event was written to history.""" def __init__( self, *, request: temporalio.api.update.v1.message_pb2.Request | None = ..., - origin: temporalio.api.enums.v1.update_pb2.UpdateRequestedEventOrigin.ValueType = ..., + origin: temporalio.api.enums.v1.update_pb2.UpdateAdmittedEventOrigin.ValueType = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal["request", b"request"] @@ -3143,8 +3237,300 @@ class WorkflowExecutionUpdateRequestedEventAttributes(google.protobuf.message.Me ], ) -> None: ... -global___WorkflowExecutionUpdateRequestedEventAttributes = ( - WorkflowExecutionUpdateRequestedEventAttributes +global___WorkflowExecutionUpdateAdmittedEventAttributes = ( + WorkflowExecutionUpdateAdmittedEventAttributes +) + +class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): + """Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class NexusHeaderEntry(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: ... + + ENDPOINT_FIELD_NUMBER: builtins.int + SERVICE_FIELD_NUMBER: builtins.int + OPERATION_FIELD_NUMBER: builtins.int + INPUT_FIELD_NUMBER: builtins.int + SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int + NEXUS_HEADER_FIELD_NUMBER: builtins.int + WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + endpoint: builtins.str + """Endpoint name, must exist in the endpoint registry.""" + service: builtins.str + """Service name.""" + operation: builtins.str + """Operation name.""" + @property + def input(self) -> temporalio.api.common.v1.message_pb2.Payload: + """Input for the operation. The server converts this into Nexus request content and the appropriate content headers + internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the + content is transformed back to the original Payload stored in this event. + """ + @property + def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: + """Schedule-to-close timeout for this operation. + Indicates how long the caller is willing to wait for operation completion. + Calls are retried internally by the server. + (-- api-linter: core::0140::prepositions=disabled + aip.dev/not-precedent: "to" is used to indicate interval. --) + """ + @property + def nexus_header( + self, + ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Header to attach to the Nexus request. Note these headers are not the same as Temporal headers on internal + activities and child workflows, these are transmitted to Nexus operations that may be external and are not + traditional payloads. + """ + workflow_task_completed_event_id: builtins.int + """The `WORKFLOW_TASK_COMPLETED` event that the corresponding ScheduleNexusOperation command was reported with.""" + request_id: builtins.str + """A unique ID generated by the history service upon creation of this event. + The ID will be transmitted with all nexus StartOperation requests and is used as an idempotentency key. + """ + def __init__( + self, + *, + endpoint: builtins.str = ..., + service: builtins.str = ..., + operation: builtins.str = ..., + input: temporalio.api.common.v1.message_pb2.Payload | None = ..., + schedule_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ..., + nexus_header: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + workflow_task_completed_event_id: builtins.int = ..., + request_id: builtins.str = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "input", b"input", "schedule_to_close_timeout", b"schedule_to_close_timeout" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "endpoint", + b"endpoint", + "input", + b"input", + "nexus_header", + b"nexus_header", + "operation", + b"operation", + "request_id", + b"request_id", + "schedule_to_close_timeout", + b"schedule_to_close_timeout", + "service", + b"service", + "workflow_task_completed_event_id", + b"workflow_task_completed_event_id", + ], + ) -> None: ... + +global___NexusOperationScheduledEventAttributes = NexusOperationScheduledEventAttributes + +class NexusOperationStartedEventAttributes(google.protobuf.message.Message): + """Event marking an asynchronous operation was started by the responding Nexus handler. + If the operation completes synchronously, this event is not generated. + In rare situations, such as request timeouts, the service may fail to record the actual start time and will fabricate + this event upon receiving the operation completion via callback. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int + OPERATION_ID_FIELD_NUMBER: builtins.int + scheduled_event_id: builtins.int + """The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.""" + operation_id: builtins.str + """The operation ID returned by the Nexus handler in the response to the StartOperation request. + This ID is used when canceling the operation. + """ + def __init__( + self, + *, + scheduled_event_id: builtins.int = ..., + operation_id: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "operation_id", b"operation_id", "scheduled_event_id", b"scheduled_event_id" + ], + ) -> None: ... + +global___NexusOperationStartedEventAttributes = NexusOperationStartedEventAttributes + +class NexusOperationCompletedEventAttributes(google.protobuf.message.Message): + """Nexus operation completed successfully.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + scheduled_event_id: builtins.int + """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation.""" + @property + def result(self) -> temporalio.api.common.v1.message_pb2.Payload: + """Serialized result of the Nexus operation. The response of the Nexus handler. + Delivered either via a completion callback or as a response to a synchronous operation. + """ + def __init__( + self, + *, + scheduled_event_id: builtins.int = ..., + result: temporalio.api.common.v1.message_pb2.Payload | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["result", b"result"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "result", b"result", "scheduled_event_id", b"scheduled_event_id" + ], + ) -> None: ... + +global___NexusOperationCompletedEventAttributes = NexusOperationCompletedEventAttributes + +class NexusOperationFailedEventAttributes(google.protobuf.message.Message): + """Nexus operation failed.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int + FAILURE_FIELD_NUMBER: builtins.int + scheduled_event_id: builtins.int + """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation.""" + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """Failure details. A NexusOperationFailureInfo wrapping an ApplicationFailureInfo.""" + def __init__( + self, + *, + scheduled_event_id: builtins.int = ..., + failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["failure", b"failure"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "failure", b"failure", "scheduled_event_id", b"scheduled_event_id" + ], + ) -> None: ... + +global___NexusOperationFailedEventAttributes = NexusOperationFailedEventAttributes + +class NexusOperationTimedOutEventAttributes(google.protobuf.message.Message): + """Nexus operation timed out.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int + FAILURE_FIELD_NUMBER: builtins.int + scheduled_event_id: builtins.int + """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation.""" + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo.""" + def __init__( + self, + *, + scheduled_event_id: builtins.int = ..., + failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["failure", b"failure"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "failure", b"failure", "scheduled_event_id", b"scheduled_event_id" + ], + ) -> None: ... + +global___NexusOperationTimedOutEventAttributes = NexusOperationTimedOutEventAttributes + +class NexusOperationCanceledEventAttributes(google.protobuf.message.Message): + """Nexus operation completed as canceled. May or may not have been due to a cancellation request by the workflow.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int + FAILURE_FIELD_NUMBER: builtins.int + scheduled_event_id: builtins.int + """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation.""" + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """Cancellation details.""" + def __init__( + self, + *, + scheduled_event_id: builtins.int = ..., + failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["failure", b"failure"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "failure", b"failure", "scheduled_event_id", b"scheduled_event_id" + ], + ) -> None: ... + +global___NexusOperationCanceledEventAttributes = NexusOperationCanceledEventAttributes + +class NexusOperationCancelRequestedEventAttributes(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int + WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int + scheduled_event_id: builtins.int + """The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to.""" + workflow_task_completed_event_id: builtins.int + """The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + with. + """ + def __init__( + self, + *, + scheduled_event_id: builtins.int = ..., + workflow_task_completed_event_id: builtins.int = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "scheduled_event_id", + b"scheduled_event_id", + "workflow_task_completed_event_id", + b"workflow_task_completed_event_id", + ], + ) -> None: ... + +global___NexusOperationCancelRequestedEventAttributes = ( + NexusOperationCancelRequestedEventAttributes ) class HistoryEvent(google.protobuf.message.Message): @@ -3206,7 +3592,14 @@ class HistoryEvent(google.protobuf.message.Message): WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int WORKFLOW_PROPERTIES_MODIFIED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int - WORKFLOW_EXECUTION_UPDATE_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + WORKFLOW_EXECUTION_UPDATE_ADMITTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + NEXUS_OPERATION_SCHEDULED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + NEXUS_OPERATION_STARTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + NEXUS_OPERATION_COMPLETED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + NEXUS_OPERATION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + NEXUS_OPERATION_CANCELED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + NEXUS_OPERATION_TIMED_OUT_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + NEXUS_OPERATION_CANCEL_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int event_id: builtins.int """Monotonically increasing event number, starts at 1.""" @property @@ -3405,9 +3798,37 @@ class HistoryEvent(google.protobuf.message.Message): self, ) -> global___WorkflowPropertiesModifiedEventAttributes: ... @property - def workflow_execution_update_requested_event_attributes( + def workflow_execution_update_admitted_event_attributes( + self, + ) -> global___WorkflowExecutionUpdateAdmittedEventAttributes: ... + @property + def nexus_operation_scheduled_event_attributes( + self, + ) -> global___NexusOperationScheduledEventAttributes: ... + @property + def nexus_operation_started_event_attributes( + self, + ) -> global___NexusOperationStartedEventAttributes: ... + @property + def nexus_operation_completed_event_attributes( + self, + ) -> global___NexusOperationCompletedEventAttributes: ... + @property + def nexus_operation_failed_event_attributes( + self, + ) -> global___NexusOperationFailedEventAttributes: ... + @property + def nexus_operation_canceled_event_attributes( + self, + ) -> global___NexusOperationCanceledEventAttributes: ... + @property + def nexus_operation_timed_out_event_attributes( + self, + ) -> global___NexusOperationTimedOutEventAttributes: ... + @property + def nexus_operation_cancel_requested_event_attributes( self, - ) -> global___WorkflowExecutionUpdateRequestedEventAttributes: ... + ) -> global___NexusOperationCancelRequestedEventAttributes: ... def __init__( self, *, @@ -3508,7 +3929,21 @@ class HistoryEvent(google.protobuf.message.Message): | None = ..., workflow_properties_modified_event_attributes: global___WorkflowPropertiesModifiedEventAttributes | None = ..., - workflow_execution_update_requested_event_attributes: global___WorkflowExecutionUpdateRequestedEventAttributes + workflow_execution_update_admitted_event_attributes: global___WorkflowExecutionUpdateAdmittedEventAttributes + | None = ..., + nexus_operation_scheduled_event_attributes: global___NexusOperationScheduledEventAttributes + | None = ..., + nexus_operation_started_event_attributes: global___NexusOperationStartedEventAttributes + | None = ..., + nexus_operation_completed_event_attributes: global___NexusOperationCompletedEventAttributes + | None = ..., + nexus_operation_failed_event_attributes: global___NexusOperationFailedEventAttributes + | None = ..., + nexus_operation_canceled_event_attributes: global___NexusOperationCanceledEventAttributes + | None = ..., + nexus_operation_timed_out_event_attributes: global___NexusOperationTimedOutEventAttributes + | None = ..., + nexus_operation_cancel_requested_event_attributes: global___NexusOperationCancelRequestedEventAttributes | None = ..., ) -> None: ... def HasField( @@ -3552,6 +3987,20 @@ class HistoryEvent(google.protobuf.message.Message): b"external_workflow_execution_signaled_event_attributes", "marker_recorded_event_attributes", b"marker_recorded_event_attributes", + "nexus_operation_cancel_requested_event_attributes", + b"nexus_operation_cancel_requested_event_attributes", + "nexus_operation_canceled_event_attributes", + b"nexus_operation_canceled_event_attributes", + "nexus_operation_completed_event_attributes", + b"nexus_operation_completed_event_attributes", + "nexus_operation_failed_event_attributes", + b"nexus_operation_failed_event_attributes", + "nexus_operation_scheduled_event_attributes", + b"nexus_operation_scheduled_event_attributes", + "nexus_operation_started_event_attributes", + b"nexus_operation_started_event_attributes", + "nexus_operation_timed_out_event_attributes", + b"nexus_operation_timed_out_event_attributes", "request_cancel_external_workflow_execution_failed_event_attributes", b"request_cancel_external_workflow_execution_failed_event_attributes", "request_cancel_external_workflow_execution_initiated_event_attributes", @@ -3592,12 +4041,12 @@ class HistoryEvent(google.protobuf.message.Message): b"workflow_execution_timed_out_event_attributes", "workflow_execution_update_accepted_event_attributes", b"workflow_execution_update_accepted_event_attributes", + "workflow_execution_update_admitted_event_attributes", + b"workflow_execution_update_admitted_event_attributes", "workflow_execution_update_completed_event_attributes", b"workflow_execution_update_completed_event_attributes", "workflow_execution_update_rejected_event_attributes", b"workflow_execution_update_rejected_event_attributes", - "workflow_execution_update_requested_event_attributes", - b"workflow_execution_update_requested_event_attributes", "workflow_properties_modified_event_attributes", b"workflow_properties_modified_event_attributes", "workflow_properties_modified_externally_event_attributes", @@ -3659,6 +4108,20 @@ class HistoryEvent(google.protobuf.message.Message): b"external_workflow_execution_signaled_event_attributes", "marker_recorded_event_attributes", b"marker_recorded_event_attributes", + "nexus_operation_cancel_requested_event_attributes", + b"nexus_operation_cancel_requested_event_attributes", + "nexus_operation_canceled_event_attributes", + b"nexus_operation_canceled_event_attributes", + "nexus_operation_completed_event_attributes", + b"nexus_operation_completed_event_attributes", + "nexus_operation_failed_event_attributes", + b"nexus_operation_failed_event_attributes", + "nexus_operation_scheduled_event_attributes", + b"nexus_operation_scheduled_event_attributes", + "nexus_operation_started_event_attributes", + b"nexus_operation_started_event_attributes", + "nexus_operation_timed_out_event_attributes", + b"nexus_operation_timed_out_event_attributes", "request_cancel_external_workflow_execution_failed_event_attributes", b"request_cancel_external_workflow_execution_failed_event_attributes", "request_cancel_external_workflow_execution_initiated_event_attributes", @@ -3705,12 +4168,12 @@ class HistoryEvent(google.protobuf.message.Message): b"workflow_execution_timed_out_event_attributes", "workflow_execution_update_accepted_event_attributes", b"workflow_execution_update_accepted_event_attributes", + "workflow_execution_update_admitted_event_attributes", + b"workflow_execution_update_admitted_event_attributes", "workflow_execution_update_completed_event_attributes", b"workflow_execution_update_completed_event_attributes", "workflow_execution_update_rejected_event_attributes", b"workflow_execution_update_rejected_event_attributes", - "workflow_execution_update_requested_event_attributes", - b"workflow_execution_update_requested_event_attributes", "workflow_properties_modified_event_attributes", b"workflow_properties_modified_event_attributes", "workflow_properties_modified_externally_event_attributes", @@ -3777,7 +4240,14 @@ class HistoryEvent(google.protobuf.message.Message): "workflow_properties_modified_externally_event_attributes", "activity_properties_modified_externally_event_attributes", "workflow_properties_modified_event_attributes", - "workflow_execution_update_requested_event_attributes", + "workflow_execution_update_admitted_event_attributes", + "nexus_operation_scheduled_event_attributes", + "nexus_operation_started_event_attributes", + "nexus_operation_completed_event_attributes", + "nexus_operation_failed_event_attributes", + "nexus_operation_canceled_event_attributes", + "nexus_operation_timed_out_event_attributes", + "nexus_operation_cancel_requested_event_attributes", ] | None ): ... diff --git a/temporalio/api/namespace/v1/message_pb2.py b/temporalio/api/namespace/v1/message_pb2.py index 637d2a9be..179f1360d 100644 --- a/temporalio/api/namespace/v1/message_pb2.py +++ b/temporalio/api/namespace/v1/message_pb2.py @@ -21,12 +21,13 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\'temporal/api/namespace/v1/message.proto\x12\x19temporal.api.namespace.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a%temporal/api/enums/v1/namespace.proto"\x94\x02\n\rNamespaceInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x05state\x18\x02 \x01(\x0e\x32%.temporal.api.enums.v1.NamespaceState\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x13\n\x0bowner_email\x18\x04 \x01(\t\x12@\n\x04\x64\x61ta\x18\x05 \x03(\x0b\x32\x32.temporal.api.namespace.v1.NamespaceInfo.DataEntry\x12\n\n\x02id\x18\x06 \x01(\t\x12\x1a\n\x12supports_schedules\x18\x64 \x01(\x08\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x9e\x04\n\x0fNamespaceConfig\x12\x43\n workflow_execution_retention_ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x0c\x62\x61\x64_binaries\x18\x02 \x01(\x0b\x32&.temporal.api.namespace.v1.BadBinaries\x12\x44\n\x16history_archival_state\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x04 \x01(\t\x12G\n\x19visibility_archival_state\x18\x05 \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\x06 \x01(\t\x12u\n\x1f\x63ustom_search_attribute_aliases\x18\x07 \x03(\x0b\x32L.temporal.api.namespace.v1.NamespaceConfig.CustomSearchAttributeAliasesEntry\x1a\x43\n!CustomSearchAttributeAliasesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb0\x01\n\x0b\x42\x61\x64\x42inaries\x12\x46\n\x08\x62inaries\x18\x01 \x03(\x0b\x32\x34.temporal.api.namespace.v1.BadBinaries.BinariesEntry\x1aY\n\rBinariesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.temporal.api.namespace.v1.BadBinaryInfo:\x02\x38\x01"b\n\rBadBinaryInfo\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x10\n\x08operator\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xea\x01\n\x13UpdateNamespaceInfo\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x13\n\x0bowner_email\x18\x02 \x01(\t\x12\x46\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x38.temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntry\x12\x34\n\x05state\x18\x04 \x01(\x0e\x32%.temporal.api.enums.v1.NamespaceState\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"*\n\x0fNamespaceFilter\x12\x17\n\x0finclude_deleted\x18\x01 \x01(\x08\x42\x98\x01\n\x1cio.temporal.api.namespace.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/namespace/v1;namespace\xaa\x02\x1bTemporalio.Api.Namespace.V1\xea\x02\x1eTemporalio::Api::Namespace::V1b\x06proto3' + b'\n\'temporal/api/namespace/v1/message.proto\x12\x19temporal.api.namespace.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a%temporal/api/enums/v1/namespace.proto"\xba\x03\n\rNamespaceInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x05state\x18\x02 \x01(\x0e\x32%.temporal.api.enums.v1.NamespaceState\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x13\n\x0bowner_email\x18\x04 \x01(\t\x12@\n\x04\x64\x61ta\x18\x05 \x03(\x0b\x32\x32.temporal.api.namespace.v1.NamespaceInfo.DataEntry\x12\n\n\x02id\x18\x06 \x01(\t\x12K\n\x0c\x63\x61pabilities\x18\x07 \x01(\x0b\x32\x35.temporal.api.namespace.v1.NamespaceInfo.Capabilities\x12\x1a\n\x12supports_schedules\x18\x64 \x01(\x08\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aW\n\x0c\x43\x61pabilities\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x01 \x01(\x08\x12\x13\n\x0bsync_update\x18\x02 \x01(\x08\x12\x14\n\x0c\x61sync_update\x18\x03 \x01(\x08"\x9e\x04\n\x0fNamespaceConfig\x12\x43\n workflow_execution_retention_ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x0c\x62\x61\x64_binaries\x18\x02 \x01(\x0b\x32&.temporal.api.namespace.v1.BadBinaries\x12\x44\n\x16history_archival_state\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x04 \x01(\t\x12G\n\x19visibility_archival_state\x18\x05 \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\x06 \x01(\t\x12u\n\x1f\x63ustom_search_attribute_aliases\x18\x07 \x03(\x0b\x32L.temporal.api.namespace.v1.NamespaceConfig.CustomSearchAttributeAliasesEntry\x1a\x43\n!CustomSearchAttributeAliasesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb0\x01\n\x0b\x42\x61\x64\x42inaries\x12\x46\n\x08\x62inaries\x18\x01 \x03(\x0b\x32\x34.temporal.api.namespace.v1.BadBinaries.BinariesEntry\x1aY\n\rBinariesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.temporal.api.namespace.v1.BadBinaryInfo:\x02\x38\x01"b\n\rBadBinaryInfo\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x10\n\x08operator\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xea\x01\n\x13UpdateNamespaceInfo\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x13\n\x0bowner_email\x18\x02 \x01(\t\x12\x46\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x38.temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntry\x12\x34\n\x05state\x18\x04 \x01(\x0e\x32%.temporal.api.enums.v1.NamespaceState\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"*\n\x0fNamespaceFilter\x12\x17\n\x0finclude_deleted\x18\x01 \x01(\x08\x42\x98\x01\n\x1cio.temporal.api.namespace.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/namespace/v1;namespace\xaa\x02\x1bTemporalio.Api.Namespace.V1\xea\x02\x1eTemporalio::Api::Namespace::V1b\x06proto3' ) _NAMESPACEINFO = DESCRIPTOR.message_types_by_name["NamespaceInfo"] _NAMESPACEINFO_DATAENTRY = _NAMESPACEINFO.nested_types_by_name["DataEntry"] +_NAMESPACEINFO_CAPABILITIES = _NAMESPACEINFO.nested_types_by_name["Capabilities"] _NAMESPACECONFIG = DESCRIPTOR.message_types_by_name["NamespaceConfig"] _NAMESPACECONFIG_CUSTOMSEARCHATTRIBUTEALIASESENTRY = ( _NAMESPACECONFIG.nested_types_by_name["CustomSearchAttributeAliasesEntry"] @@ -50,6 +51,15 @@ # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo.DataEntry) }, ), + "Capabilities": _reflection.GeneratedProtocolMessageType( + "Capabilities", + (_message.Message,), + { + "DESCRIPTOR": _NAMESPACEINFO_CAPABILITIES, + "__module__": "temporal.api.namespace.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo.Capabilities) + }, + ), "DESCRIPTOR": _NAMESPACEINFO, "__module__": "temporal.api.namespace.v1.message_pb2" # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo) @@ -57,6 +67,7 @@ ) _sym_db.RegisterMessage(NamespaceInfo) _sym_db.RegisterMessage(NamespaceInfo.DataEntry) +_sym_db.RegisterMessage(NamespaceInfo.Capabilities) NamespaceConfig = _reflection.GeneratedProtocolMessageType( "NamespaceConfig", @@ -155,23 +166,25 @@ _UPDATENAMESPACEINFO_DATAENTRY._options = None _UPDATENAMESPACEINFO_DATAENTRY._serialized_options = b"8\001" _NAMESPACEINFO._serialized_start = 175 - _NAMESPACEINFO._serialized_end = 451 - _NAMESPACEINFO_DATAENTRY._serialized_start = 408 - _NAMESPACEINFO_DATAENTRY._serialized_end = 451 - _NAMESPACECONFIG._serialized_start = 454 - _NAMESPACECONFIG._serialized_end = 996 - _NAMESPACECONFIG_CUSTOMSEARCHATTRIBUTEALIASESENTRY._serialized_start = 929 - _NAMESPACECONFIG_CUSTOMSEARCHATTRIBUTEALIASESENTRY._serialized_end = 996 - _BADBINARIES._serialized_start = 999 - _BADBINARIES._serialized_end = 1175 - _BADBINARIES_BINARIESENTRY._serialized_start = 1086 - _BADBINARIES_BINARIESENTRY._serialized_end = 1175 - _BADBINARYINFO._serialized_start = 1177 - _BADBINARYINFO._serialized_end = 1275 - _UPDATENAMESPACEINFO._serialized_start = 1278 - _UPDATENAMESPACEINFO._serialized_end = 1512 - _UPDATENAMESPACEINFO_DATAENTRY._serialized_start = 408 - _UPDATENAMESPACEINFO_DATAENTRY._serialized_end = 451 - _NAMESPACEFILTER._serialized_start = 1514 - _NAMESPACEFILTER._serialized_end = 1556 + _NAMESPACEINFO._serialized_end = 617 + _NAMESPACEINFO_DATAENTRY._serialized_start = 485 + _NAMESPACEINFO_DATAENTRY._serialized_end = 528 + _NAMESPACEINFO_CAPABILITIES._serialized_start = 530 + _NAMESPACEINFO_CAPABILITIES._serialized_end = 617 + _NAMESPACECONFIG._serialized_start = 620 + _NAMESPACECONFIG._serialized_end = 1162 + _NAMESPACECONFIG_CUSTOMSEARCHATTRIBUTEALIASESENTRY._serialized_start = 1095 + _NAMESPACECONFIG_CUSTOMSEARCHATTRIBUTEALIASESENTRY._serialized_end = 1162 + _BADBINARIES._serialized_start = 1165 + _BADBINARIES._serialized_end = 1341 + _BADBINARIES_BINARIESENTRY._serialized_start = 1252 + _BADBINARIES_BINARIESENTRY._serialized_end = 1341 + _BADBINARYINFO._serialized_start = 1343 + _BADBINARYINFO._serialized_end = 1441 + _UPDATENAMESPACEINFO._serialized_start = 1444 + _UPDATENAMESPACEINFO._serialized_end = 1678 + _UPDATENAMESPACEINFO_DATAENTRY._serialized_start = 485 + _UPDATENAMESPACEINFO_DATAENTRY._serialized_end = 528 + _NAMESPACEFILTER._serialized_start = 1680 + _NAMESPACEFILTER._serialized_end = 1722 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/namespace/v1/message_pb2.pyi b/temporalio/api/namespace/v1/message_pb2.pyi index 3735bb6db..13fac36a3 100644 --- a/temporalio/api/namespace/v1/message_pb2.pyi +++ b/temporalio/api/namespace/v1/message_pb2.pyi @@ -61,12 +61,46 @@ class NamespaceInfo(google.protobuf.message.Message): field_name: typing_extensions.Literal["key", b"key", "value", b"value"], ) -> None: ... + class Capabilities(google.protobuf.message.Message): + """Namespace capability details. Should contain what features are enabled in a namespace.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EAGER_WORKFLOW_START_FIELD_NUMBER: builtins.int + SYNC_UPDATE_FIELD_NUMBER: builtins.int + ASYNC_UPDATE_FIELD_NUMBER: builtins.int + eager_workflow_start: builtins.bool + """True if the namespace supports eager workflow start.""" + sync_update: builtins.bool + """True if the namespace supports sync update""" + async_update: builtins.bool + """True if the namespace supports async update""" + def __init__( + self, + *, + eager_workflow_start: builtins.bool = ..., + sync_update: builtins.bool = ..., + async_update: builtins.bool = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "async_update", + b"async_update", + "eager_workflow_start", + b"eager_workflow_start", + "sync_update", + b"sync_update", + ], + ) -> None: ... + NAME_FIELD_NUMBER: builtins.int STATE_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int OWNER_EMAIL_FIELD_NUMBER: builtins.int DATA_FIELD_NUMBER: builtins.int ID_FIELD_NUMBER: builtins.int + CAPABILITIES_FIELD_NUMBER: builtins.int SUPPORTS_SCHEDULES_FIELD_NUMBER: builtins.int name: builtins.str state: temporalio.api.enums.v1.namespace_pb2.NamespaceState.ValueType @@ -78,6 +112,9 @@ class NamespaceInfo(google.protobuf.message.Message): ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """A key-value map for any customized purpose.""" id: builtins.str + @property + def capabilities(self) -> global___NamespaceInfo.Capabilities: + """All capabilities the namespace supports.""" supports_schedules: builtins.bool """Whether scheduled workflows are supported on this namespace. This is only needed temporarily while the feature is experimental, so we can give it a high tag. @@ -91,11 +128,17 @@ class NamespaceInfo(google.protobuf.message.Message): owner_email: builtins.str = ..., data: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., id: builtins.str = ..., + capabilities: global___NamespaceInfo.Capabilities | None = ..., supports_schedules: builtins.bool = ..., ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["capabilities", b"capabilities"] + ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ + "capabilities", + b"capabilities", "data", b"data", "description", diff --git a/temporalio/api/nexus/__init__.py b/temporalio/api/nexus/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/temporalio/api/nexus/v1/__init__.py b/temporalio/api/nexus/v1/__init__.py new file mode 100644 index 000000000..f7f55b28e --- /dev/null +++ b/temporalio/api/nexus/v1/__init__.py @@ -0,0 +1,29 @@ +from .message_pb2 import ( + CancelOperationRequest, + CancelOperationResponse, + Endpoint, + EndpointSpec, + EndpointTarget, + Failure, + HandlerError, + Request, + Response, + StartOperationRequest, + StartOperationResponse, + UnsuccessfulOperationError, +) + +__all__ = [ + "CancelOperationRequest", + "CancelOperationResponse", + "Endpoint", + "EndpointSpec", + "EndpointTarget", + "Failure", + "HandlerError", + "Request", + "Response", + "StartOperationRequest", + "StartOperationResponse", + "UnsuccessfulOperationError", +] diff --git a/temporalio/api/nexus/v1/message_pb2.py b/temporalio/api/nexus/v1/message_pb2.py new file mode 100644 index 000000000..f0325ab69 --- /dev/null +++ b/temporalio/api/nexus/v1/message_pb2.py @@ -0,0 +1,299 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: temporal/api/nexus/v1/message.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + +from temporalio.api.common.v1 import ( + message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, +) + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n#temporal/api/nexus/v1/message.proto\x12\x15temporal.api.nexus.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto"\x9c\x01\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12>\n\x08metadata\x18\x02 \x03(\x0b\x32,.temporal.api.nexus.v1.Failure.MetadataEntry\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"S\n\x0cHandlerError\x12\x12\n\nerror_type\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure"f\n\x1aUnsuccessfulOperationError\x12\x17\n\x0foperation_state\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure"\xa5\x02\n\x15StartOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x10\n\x08\x63\x61llback\x18\x04 \x01(\t\x12\x30\n\x07payload\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12Y\n\x0f\x63\x61llback_header\x18\x06 \x03(\x0b\x32@.temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry\x1a\x35\n\x13\x43\x61llbackHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"R\n\x16\x43\x61ncelOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x14\n\x0coperation_id\x18\x03 \x01(\t"\xc7\x02\n\x07Request\x12:\n\x06header\x18\x01 \x03(\x0b\x32*.temporal.api.nexus.v1.Request.HeaderEntry\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12G\n\x0fstart_operation\x18\x03 \x01(\x0b\x32,.temporal.api.nexus.v1.StartOperationRequestH\x00\x12I\n\x10\x63\x61ncel_operation\x18\x04 \x01(\x0b\x32-.temporal.api.nexus.v1.CancelOperationRequestH\x00\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07variant"\xe4\x02\n\x16StartOperationResponse\x12J\n\x0csync_success\x18\x01 \x01(\x0b\x32\x32.temporal.api.nexus.v1.StartOperationResponse.SyncH\x00\x12L\n\rasync_success\x18\x02 \x01(\x0b\x32\x33.temporal.api.nexus.v1.StartOperationResponse.AsyncH\x00\x12L\n\x0foperation_error\x18\x03 \x01(\x0b\x32\x31.temporal.api.nexus.v1.UnsuccessfulOperationErrorH\x00\x1a\x38\n\x04Sync\x12\x30\n\x07payload\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x1a\x1d\n\x05\x41sync\x12\x14\n\x0coperation_id\x18\x01 \x01(\tB\t\n\x07variant"\x19\n\x17\x43\x61ncelOperationResponse"\xab\x01\n\x08Response\x12H\n\x0fstart_operation\x18\x01 \x01(\x0b\x32-.temporal.api.nexus.v1.StartOperationResponseH\x00\x12J\n\x10\x63\x61ncel_operation\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.CancelOperationResponseH\x00\x42\t\n\x07variant"\xd8\x01\n\x08\x45ndpoint\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\n\n\x02id\x18\x02 \x01(\t\x12\x31\n\x04spec\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.EndpointSpec\x12\x30\n\x0c\x63reated_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nurl_prefix\x18\x06 \x01(\t"\x89\x01\n\x0c\x45ndpointSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x35\n\x06target\x18\x03 \x01(\x0b\x32%.temporal.api.nexus.v1.EndpointTarget"\xe9\x01\n\x0e\x45ndpointTarget\x12>\n\x06worker\x18\x01 \x01(\x0b\x32,.temporal.api.nexus.v1.EndpointTarget.WorkerH\x00\x12\x42\n\x08\x65xternal\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.EndpointTarget.ExternalH\x00\x1a/\n\x06Worker\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x1a\x17\n\x08\x45xternal\x12\x0b\n\x03url\x18\x01 \x01(\tB\t\n\x07variantB\x84\x01\n\x18io.temporal.api.nexus.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/nexus/v1;nexus\xaa\x02\x17Temporalio.Api.Nexus.V1\xea\x02\x1aTemporalio::Api::Nexus::V1b\x06proto3' +) + + +_FAILURE = DESCRIPTOR.message_types_by_name["Failure"] +_FAILURE_METADATAENTRY = _FAILURE.nested_types_by_name["MetadataEntry"] +_HANDLERERROR = DESCRIPTOR.message_types_by_name["HandlerError"] +_UNSUCCESSFULOPERATIONERROR = DESCRIPTOR.message_types_by_name[ + "UnsuccessfulOperationError" +] +_STARTOPERATIONREQUEST = DESCRIPTOR.message_types_by_name["StartOperationRequest"] +_STARTOPERATIONREQUEST_CALLBACKHEADERENTRY = ( + _STARTOPERATIONREQUEST.nested_types_by_name["CallbackHeaderEntry"] +) +_CANCELOPERATIONREQUEST = DESCRIPTOR.message_types_by_name["CancelOperationRequest"] +_REQUEST = DESCRIPTOR.message_types_by_name["Request"] +_REQUEST_HEADERENTRY = _REQUEST.nested_types_by_name["HeaderEntry"] +_STARTOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name["StartOperationResponse"] +_STARTOPERATIONRESPONSE_SYNC = _STARTOPERATIONRESPONSE.nested_types_by_name["Sync"] +_STARTOPERATIONRESPONSE_ASYNC = _STARTOPERATIONRESPONSE.nested_types_by_name["Async"] +_CANCELOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name["CancelOperationResponse"] +_RESPONSE = DESCRIPTOR.message_types_by_name["Response"] +_ENDPOINT = DESCRIPTOR.message_types_by_name["Endpoint"] +_ENDPOINTSPEC = DESCRIPTOR.message_types_by_name["EndpointSpec"] +_ENDPOINTTARGET = DESCRIPTOR.message_types_by_name["EndpointTarget"] +_ENDPOINTTARGET_WORKER = _ENDPOINTTARGET.nested_types_by_name["Worker"] +_ENDPOINTTARGET_EXTERNAL = _ENDPOINTTARGET.nested_types_by_name["External"] +Failure = _reflection.GeneratedProtocolMessageType( + "Failure", + (_message.Message,), + { + "MetadataEntry": _reflection.GeneratedProtocolMessageType( + "MetadataEntry", + (_message.Message,), + { + "DESCRIPTOR": _FAILURE_METADATAENTRY, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Failure.MetadataEntry) + }, + ), + "DESCRIPTOR": _FAILURE, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Failure) + }, +) +_sym_db.RegisterMessage(Failure) +_sym_db.RegisterMessage(Failure.MetadataEntry) + +HandlerError = _reflection.GeneratedProtocolMessageType( + "HandlerError", + (_message.Message,), + { + "DESCRIPTOR": _HANDLERERROR, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.HandlerError) + }, +) +_sym_db.RegisterMessage(HandlerError) + +UnsuccessfulOperationError = _reflection.GeneratedProtocolMessageType( + "UnsuccessfulOperationError", + (_message.Message,), + { + "DESCRIPTOR": _UNSUCCESSFULOPERATIONERROR, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.UnsuccessfulOperationError) + }, +) +_sym_db.RegisterMessage(UnsuccessfulOperationError) + +StartOperationRequest = _reflection.GeneratedProtocolMessageType( + "StartOperationRequest", + (_message.Message,), + { + "CallbackHeaderEntry": _reflection.GeneratedProtocolMessageType( + "CallbackHeaderEntry", + (_message.Message,), + { + "DESCRIPTOR": _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry) + }, + ), + "DESCRIPTOR": _STARTOPERATIONREQUEST, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationRequest) + }, +) +_sym_db.RegisterMessage(StartOperationRequest) +_sym_db.RegisterMessage(StartOperationRequest.CallbackHeaderEntry) + +CancelOperationRequest = _reflection.GeneratedProtocolMessageType( + "CancelOperationRequest", + (_message.Message,), + { + "DESCRIPTOR": _CANCELOPERATIONREQUEST, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.CancelOperationRequest) + }, +) +_sym_db.RegisterMessage(CancelOperationRequest) + +Request = _reflection.GeneratedProtocolMessageType( + "Request", + (_message.Message,), + { + "HeaderEntry": _reflection.GeneratedProtocolMessageType( + "HeaderEntry", + (_message.Message,), + { + "DESCRIPTOR": _REQUEST_HEADERENTRY, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Request.HeaderEntry) + }, + ), + "DESCRIPTOR": _REQUEST, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Request) + }, +) +_sym_db.RegisterMessage(Request) +_sym_db.RegisterMessage(Request.HeaderEntry) + +StartOperationResponse = _reflection.GeneratedProtocolMessageType( + "StartOperationResponse", + (_message.Message,), + { + "Sync": _reflection.GeneratedProtocolMessageType( + "Sync", + (_message.Message,), + { + "DESCRIPTOR": _STARTOPERATIONRESPONSE_SYNC, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationResponse.Sync) + }, + ), + "Async": _reflection.GeneratedProtocolMessageType( + "Async", + (_message.Message,), + { + "DESCRIPTOR": _STARTOPERATIONRESPONSE_ASYNC, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationResponse.Async) + }, + ), + "DESCRIPTOR": _STARTOPERATIONRESPONSE, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationResponse) + }, +) +_sym_db.RegisterMessage(StartOperationResponse) +_sym_db.RegisterMessage(StartOperationResponse.Sync) +_sym_db.RegisterMessage(StartOperationResponse.Async) + +CancelOperationResponse = _reflection.GeneratedProtocolMessageType( + "CancelOperationResponse", + (_message.Message,), + { + "DESCRIPTOR": _CANCELOPERATIONRESPONSE, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.CancelOperationResponse) + }, +) +_sym_db.RegisterMessage(CancelOperationResponse) + +Response = _reflection.GeneratedProtocolMessageType( + "Response", + (_message.Message,), + { + "DESCRIPTOR": _RESPONSE, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Response) + }, +) +_sym_db.RegisterMessage(Response) + +Endpoint = _reflection.GeneratedProtocolMessageType( + "Endpoint", + (_message.Message,), + { + "DESCRIPTOR": _ENDPOINT, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Endpoint) + }, +) +_sym_db.RegisterMessage(Endpoint) + +EndpointSpec = _reflection.GeneratedProtocolMessageType( + "EndpointSpec", + (_message.Message,), + { + "DESCRIPTOR": _ENDPOINTSPEC, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointSpec) + }, +) +_sym_db.RegisterMessage(EndpointSpec) + +EndpointTarget = _reflection.GeneratedProtocolMessageType( + "EndpointTarget", + (_message.Message,), + { + "Worker": _reflection.GeneratedProtocolMessageType( + "Worker", + (_message.Message,), + { + "DESCRIPTOR": _ENDPOINTTARGET_WORKER, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointTarget.Worker) + }, + ), + "External": _reflection.GeneratedProtocolMessageType( + "External", + (_message.Message,), + { + "DESCRIPTOR": _ENDPOINTTARGET_EXTERNAL, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointTarget.External) + }, + ), + "DESCRIPTOR": _ENDPOINTTARGET, + "__module__": "temporal.api.nexus.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointTarget) + }, +) +_sym_db.RegisterMessage(EndpointTarget) +_sym_db.RegisterMessage(EndpointTarget.Worker) +_sym_db.RegisterMessage(EndpointTarget.External) + +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.nexus.v1B\014MessageProtoP\001Z!go.temporal.io/api/nexus/v1;nexus\252\002\027Temporalio.Api.Nexus.V1\352\002\032Temporalio::Api::Nexus::V1" + _FAILURE_METADATAENTRY._options = None + _FAILURE_METADATAENTRY._serialized_options = b"8\001" + _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._options = None + _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_options = b"8\001" + _REQUEST_HEADERENTRY._options = None + _REQUEST_HEADERENTRY._serialized_options = b"8\001" + _FAILURE._serialized_start = 134 + _FAILURE._serialized_end = 290 + _FAILURE_METADATAENTRY._serialized_start = 243 + _FAILURE_METADATAENTRY._serialized_end = 290 + _HANDLERERROR._serialized_start = 292 + _HANDLERERROR._serialized_end = 375 + _UNSUCCESSFULOPERATIONERROR._serialized_start = 377 + _UNSUCCESSFULOPERATIONERROR._serialized_end = 479 + _STARTOPERATIONREQUEST._serialized_start = 482 + _STARTOPERATIONREQUEST._serialized_end = 775 + _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_start = 722 + _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_end = 775 + _CANCELOPERATIONREQUEST._serialized_start = 777 + _CANCELOPERATIONREQUEST._serialized_end = 859 + _REQUEST._serialized_start = 862 + _REQUEST._serialized_end = 1189 + _REQUEST_HEADERENTRY._serialized_start = 1133 + _REQUEST_HEADERENTRY._serialized_end = 1178 + _STARTOPERATIONRESPONSE._serialized_start = 1192 + _STARTOPERATIONRESPONSE._serialized_end = 1548 + _STARTOPERATIONRESPONSE_SYNC._serialized_start = 1450 + _STARTOPERATIONRESPONSE_SYNC._serialized_end = 1506 + _STARTOPERATIONRESPONSE_ASYNC._serialized_start = 1508 + _STARTOPERATIONRESPONSE_ASYNC._serialized_end = 1537 + _CANCELOPERATIONRESPONSE._serialized_start = 1550 + _CANCELOPERATIONRESPONSE._serialized_end = 1575 + _RESPONSE._serialized_start = 1578 + _RESPONSE._serialized_end = 1749 + _ENDPOINT._serialized_start = 1752 + _ENDPOINT._serialized_end = 1968 + _ENDPOINTSPEC._serialized_start = 1971 + _ENDPOINTSPEC._serialized_end = 2108 + _ENDPOINTTARGET._serialized_start = 2111 + _ENDPOINTTARGET._serialized_end = 2344 + _ENDPOINTTARGET_WORKER._serialized_start = 2261 + _ENDPOINTTARGET_WORKER._serialized_end = 2308 + _ENDPOINTTARGET_EXTERNAL._serialized_start = 2310 + _ENDPOINTTARGET_EXTERNAL._serialized_end = 2333 +# @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/nexus/v1/message_pb2.pyi b/temporalio/api/nexus/v1/message_pb2.pyi new file mode 100644 index 000000000..f54ed3962 --- /dev/null +++ b/temporalio/api/nexus/v1/message_pb2.pyi @@ -0,0 +1,691 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +The MIT License + +Copyright (c) 2023 Temporal Technologies Inc. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +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. +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import temporalio.api.common.v1.message_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class Failure(google.protobuf.message.Message): + """A general purpose failure message. + See: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class MetadataEntry(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: ... + + MESSAGE_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + DETAILS_FIELD_NUMBER: builtins.int + message: builtins.str + @property + def metadata( + self, + ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + details: builtins.bytes + def __init__( + self, + *, + message: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + details: builtins.bytes = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "details", b"details", "message", b"message", "metadata", b"metadata" + ], + ) -> None: ... + +global___Failure = Failure + +class HandlerError(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ERROR_TYPE_FIELD_NUMBER: builtins.int + FAILURE_FIELD_NUMBER: builtins.int + error_type: builtins.str + """See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.""" + @property + def failure(self) -> global___Failure: ... + def __init__( + self, + *, + error_type: builtins.str = ..., + failure: global___Failure | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["failure", b"failure"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "error_type", b"error_type", "failure", b"failure" + ], + ) -> None: ... + +global___HandlerError = HandlerError + +class UnsuccessfulOperationError(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPERATION_STATE_FIELD_NUMBER: builtins.int + FAILURE_FIELD_NUMBER: builtins.int + operation_state: builtins.str + """See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo.""" + @property + def failure(self) -> global___Failure: ... + def __init__( + self, + *, + operation_state: builtins.str = ..., + failure: global___Failure | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["failure", b"failure"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "failure", b"failure", "operation_state", b"operation_state" + ], + ) -> None: ... + +global___UnsuccessfulOperationError = UnsuccessfulOperationError + +class StartOperationRequest(google.protobuf.message.Message): + """A request to start an operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class CallbackHeaderEntry(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: ... + + SERVICE_FIELD_NUMBER: builtins.int + OPERATION_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + CALLBACK_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + CALLBACK_HEADER_FIELD_NUMBER: builtins.int + service: builtins.str + """Name of service to start the operation in.""" + operation: builtins.str + """Type of operation to start.""" + request_id: builtins.str + """A request ID that can be used as an idempotentency key.""" + callback: builtins.str + """Callback URL to call upon completion if the started operation is async.""" + @property + def payload(self) -> temporalio.api.common.v1.message_pb2.Payload: + """Full request body from the incoming HTTP request.""" + @property + def callback_header( + self, + ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Header that is expected to be attached to the callback request when the operation completes.""" + def __init__( + self, + *, + service: builtins.str = ..., + operation: builtins.str = ..., + request_id: builtins.str = ..., + callback: builtins.str = ..., + payload: temporalio.api.common.v1.message_pb2.Payload | None = ..., + callback_header: collections.abc.Mapping[builtins.str, builtins.str] + | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["payload", b"payload"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "callback", + b"callback", + "callback_header", + b"callback_header", + "operation", + b"operation", + "payload", + b"payload", + "request_id", + b"request_id", + "service", + b"service", + ], + ) -> None: ... + +global___StartOperationRequest = StartOperationRequest + +class CancelOperationRequest(google.protobuf.message.Message): + """A request to cancel an operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SERVICE_FIELD_NUMBER: builtins.int + OPERATION_FIELD_NUMBER: builtins.int + OPERATION_ID_FIELD_NUMBER: builtins.int + service: builtins.str + """Service name.""" + operation: builtins.str + """Type of operation to cancel.""" + operation_id: builtins.str + """Operation ID as originally generated by a Handler.""" + def __init__( + self, + *, + service: builtins.str = ..., + operation: builtins.str = ..., + operation_id: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "operation", + b"operation", + "operation_id", + b"operation_id", + "service", + b"service", + ], + ) -> None: ... + +global___CancelOperationRequest = CancelOperationRequest + +class Request(google.protobuf.message.Message): + """A Nexus request.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class HeaderEntry(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: ... + + HEADER_FIELD_NUMBER: builtins.int + SCHEDULED_TIME_FIELD_NUMBER: builtins.int + START_OPERATION_FIELD_NUMBER: builtins.int + CANCEL_OPERATION_FIELD_NUMBER: builtins.int + @property + def header( + self, + ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Headers extracted from the original request in the Temporal frontend. + When using Nexus over HTTP, this includes the request's HTTP headers ignoring multiple values. + """ + @property + def scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The timestamp when the request was scheduled in the frontend. + (-- api-linter: core::0142::time-field-names=disabled + aip.dev/not-precedent: Not following linter rules. --) + """ + @property + def start_operation(self) -> global___StartOperationRequest: ... + @property + def cancel_operation(self) -> global___CancelOperationRequest: ... + def __init__( + self, + *, + header: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + scheduled_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + start_operation: global___StartOperationRequest | None = ..., + cancel_operation: global___CancelOperationRequest | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "cancel_operation", + b"cancel_operation", + "scheduled_time", + b"scheduled_time", + "start_operation", + b"start_operation", + "variant", + b"variant", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "cancel_operation", + b"cancel_operation", + "header", + b"header", + "scheduled_time", + b"scheduled_time", + "start_operation", + b"start_operation", + "variant", + b"variant", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["variant", b"variant"] + ) -> typing_extensions.Literal["start_operation", "cancel_operation"] | None: ... + +global___Request = Request + +class StartOperationResponse(google.protobuf.message.Message): + """Response variant for StartOperationRequest.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class Sync(google.protobuf.message.Message): + """An operation completed successfully.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAYLOAD_FIELD_NUMBER: builtins.int + @property + def payload(self) -> temporalio.api.common.v1.message_pb2.Payload: ... + def __init__( + self, + *, + payload: temporalio.api.common.v1.message_pb2.Payload | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["payload", b"payload"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["payload", b"payload"] + ) -> None: ... + + class Async(google.protobuf.message.Message): + """The operation will complete asynchronously. + The returned ID can be used to reference this operation. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPERATION_ID_FIELD_NUMBER: builtins.int + operation_id: builtins.str + def __init__( + self, + *, + operation_id: builtins.str = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["operation_id", b"operation_id"] + ) -> None: ... + + SYNC_SUCCESS_FIELD_NUMBER: builtins.int + ASYNC_SUCCESS_FIELD_NUMBER: builtins.int + OPERATION_ERROR_FIELD_NUMBER: builtins.int + @property + def sync_success(self) -> global___StartOperationResponse.Sync: ... + @property + def async_success(self) -> global___StartOperationResponse.Async: ... + @property + def operation_error(self) -> global___UnsuccessfulOperationError: + """The operation completed unsuccessfully (failed or canceled).""" + def __init__( + self, + *, + sync_success: global___StartOperationResponse.Sync | None = ..., + async_success: global___StartOperationResponse.Async | None = ..., + operation_error: global___UnsuccessfulOperationError | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "async_success", + b"async_success", + "operation_error", + b"operation_error", + "sync_success", + b"sync_success", + "variant", + b"variant", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "async_success", + b"async_success", + "operation_error", + b"operation_error", + "sync_success", + b"sync_success", + "variant", + b"variant", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["variant", b"variant"] + ) -> ( + typing_extensions.Literal["sync_success", "async_success", "operation_error"] + | None + ): ... + +global___StartOperationResponse = StartOperationResponse + +class CancelOperationResponse(google.protobuf.message.Message): + """Response variant for CancelOperationRequest.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___CancelOperationResponse = CancelOperationResponse + +class Response(google.protobuf.message.Message): + """A response indicating that the handler has successfully processed a request.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + START_OPERATION_FIELD_NUMBER: builtins.int + CANCEL_OPERATION_FIELD_NUMBER: builtins.int + @property + def start_operation(self) -> global___StartOperationResponse: ... + @property + def cancel_operation(self) -> global___CancelOperationResponse: ... + def __init__( + self, + *, + start_operation: global___StartOperationResponse | None = ..., + cancel_operation: global___CancelOperationResponse | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "cancel_operation", + b"cancel_operation", + "start_operation", + b"start_operation", + "variant", + b"variant", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "cancel_operation", + b"cancel_operation", + "start_operation", + b"start_operation", + "variant", + b"variant", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["variant", b"variant"] + ) -> typing_extensions.Literal["start_operation", "cancel_operation"] | None: ... + +global___Response = Response + +class Endpoint(google.protobuf.message.Message): + """A cluster-global binding from an endpoint ID to a target for dispatching incoming Nexus requests.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSION_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + SPEC_FIELD_NUMBER: builtins.int + CREATED_TIME_FIELD_NUMBER: builtins.int + LAST_MODIFIED_TIME_FIELD_NUMBER: builtins.int + URL_PREFIX_FIELD_NUMBER: builtins.int + version: builtins.int + """Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API.""" + id: builtins.str + """Unique server-generated endpoint ID.""" + @property + def spec(self) -> global___EndpointSpec: + """Spec for the endpoint.""" + @property + def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The date and time when the endpoint was created. + (-- api-linter: core::0142::time-field-names=disabled + aip.dev/not-precedent: Not following linter rules. --) + """ + @property + def last_modified_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The date and time when the endpoint was last modified. + Will not be set if the endpoint has never been modified. + (-- api-linter: core::0142::time-field-names=disabled + aip.dev/not-precedent: Not following linter rules. --) + """ + url_prefix: builtins.str + """Server exposed URL prefix for invocation of operations on this endpoint. + This doesn't include the protocol, hostname or port as the server does not know how it should be accessed + publicly. The URL is stable in the face of endpoint renames. + """ + def __init__( + self, + *, + version: builtins.int = ..., + id: builtins.str = ..., + spec: global___EndpointSpec | None = ..., + created_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + url_prefix: builtins.str = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "created_time", + b"created_time", + "last_modified_time", + b"last_modified_time", + "spec", + b"spec", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "created_time", + b"created_time", + "id", + b"id", + "last_modified_time", + b"last_modified_time", + "spec", + b"spec", + "url_prefix", + b"url_prefix", + "version", + b"version", + ], + ) -> None: ... + +global___Endpoint = Endpoint + +class EndpointSpec(google.protobuf.message.Message): + """Contains mutable fields for an Endpoint.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + TARGET_FIELD_NUMBER: builtins.int + name: builtins.str + """Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`. + Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail. + """ + @property + def description(self) -> temporalio.api.common.v1.message_pb2.Payload: + """Markdown description serialized as a single JSON string. + If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint. + """ + @property + def target(self) -> global___EndpointTarget: + """Target to route requests to.""" + def __init__( + self, + *, + name: builtins.str = ..., + description: temporalio.api.common.v1.message_pb2.Payload | None = ..., + target: global___EndpointTarget | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "description", b"description", "target", b"target" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "description", b"description", "name", b"name", "target", b"target" + ], + ) -> None: ... + +global___EndpointSpec = EndpointSpec + +class EndpointTarget(google.protobuf.message.Message): + """Target to route requests to.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class Worker(google.protobuf.message.Message): + """Target a worker polling on a Nexus task queue in a specific namespace.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + TASK_QUEUE_FIELD_NUMBER: builtins.int + namespace: builtins.str + """Namespace to route requests to.""" + task_queue: builtins.str + """Nexus task queue to route requests to.""" + def __init__( + self, + *, + namespace: builtins.str = ..., + task_queue: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "namespace", b"namespace", "task_queue", b"task_queue" + ], + ) -> None: ... + + class External(google.protobuf.message.Message): + """Target an external server by URL. + At a later point, this will support providing credentials, in the meantime, an http.RoundTripper can be injected + into the server to modify the request. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + URL_FIELD_NUMBER: builtins.int + url: builtins.str + """URL to call.""" + def __init__( + self, + *, + url: builtins.str = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["url", b"url"] + ) -> None: ... + + WORKER_FIELD_NUMBER: builtins.int + EXTERNAL_FIELD_NUMBER: builtins.int + @property + def worker(self) -> global___EndpointTarget.Worker: ... + @property + def external(self) -> global___EndpointTarget.External: ... + def __init__( + self, + *, + worker: global___EndpointTarget.Worker | None = ..., + external: global___EndpointTarget.External | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "external", b"external", "variant", b"variant", "worker", b"worker" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "external", b"external", "variant", b"variant", "worker", b"worker" + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["variant", b"variant"] + ) -> typing_extensions.Literal["worker", "external"] | None: ... + +global___EndpointTarget = EndpointTarget diff --git a/temporalio/api/operatorservice/v1/__init__.py b/temporalio/api/operatorservice/v1/__init__.py index cf5d08c95..f6cd76fbf 100644 --- a/temporalio/api/operatorservice/v1/__init__.py +++ b/temporalio/api/operatorservice/v1/__init__.py @@ -4,16 +4,26 @@ AddSearchAttributesRequest, AddSearchAttributesResponse, ClusterMetadata, + CreateNexusEndpointRequest, + CreateNexusEndpointResponse, DeleteNamespaceRequest, DeleteNamespaceResponse, + DeleteNexusEndpointRequest, + DeleteNexusEndpointResponse, + GetNexusEndpointRequest, + GetNexusEndpointResponse, ListClustersRequest, ListClustersResponse, + ListNexusEndpointsRequest, + ListNexusEndpointsResponse, ListSearchAttributesRequest, ListSearchAttributesResponse, RemoveRemoteClusterRequest, RemoveRemoteClusterResponse, RemoveSearchAttributesRequest, RemoveSearchAttributesResponse, + UpdateNexusEndpointRequest, + UpdateNexusEndpointResponse, ) __all__ = [ @@ -22,16 +32,26 @@ "AddSearchAttributesRequest", "AddSearchAttributesResponse", "ClusterMetadata", + "CreateNexusEndpointRequest", + "CreateNexusEndpointResponse", "DeleteNamespaceRequest", "DeleteNamespaceResponse", + "DeleteNexusEndpointRequest", + "DeleteNexusEndpointResponse", + "GetNexusEndpointRequest", + "GetNexusEndpointResponse", "ListClustersRequest", "ListClustersResponse", + "ListNexusEndpointsRequest", + "ListNexusEndpointsResponse", "ListSearchAttributesRequest", "ListSearchAttributesResponse", "RemoveRemoteClusterRequest", "RemoveRemoteClusterResponse", "RemoveSearchAttributesRequest", "RemoveSearchAttributesResponse", + "UpdateNexusEndpointRequest", + "UpdateNexusEndpointResponse", ] # gRPC is optional diff --git a/temporalio/api/operatorservice/v1/request_response_pb2.py b/temporalio/api/operatorservice/v1/request_response_pb2.py index e43c415c9..783d0a2ff 100644 --- a/temporalio/api/operatorservice/v1/request_response_pb2.py +++ b/temporalio/api/operatorservice/v1/request_response_pb2.py @@ -13,12 +13,17 @@ _sym_db = _symbol_database.Default() +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + from temporalio.api.enums.v1 import ( common_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_common__pb2, ) +from temporalio.api.nexus.v1 import ( + message_pb2 as temporal_dot_api_dot_nexus_dot_v1_dot_message__pb2, +) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n6temporal/api/operatorservice/v1/request_response.proto\x12\x1ftemporal.api.operatorservice.v1\x1a"temporal/api/enums/v1/common.proto"\xff\x01\n\x1a\x41\x64\x64SearchAttributesRequest\x12l\n\x11search_attributes\x18\x01 \x03(\x0b\x32Q.temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntry\x12\x11\n\tnamespace\x18\x02 \x01(\t\x1a`\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\x1d\n\x1b\x41\x64\x64SearchAttributesResponse"M\n\x1dRemoveSearchAttributesRequest\x12\x19\n\x11search_attributes\x18\x01 \x03(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t" \n\x1eRemoveSearchAttributesResponse"0\n\x1bListSearchAttributesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t"\xe2\x04\n\x1cListSearchAttributesResponse\x12n\n\x11\x63ustom_attributes\x18\x01 \x03(\x0b\x32S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntry\x12n\n\x11system_attributes\x18\x02 \x03(\x0b\x32S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntry\x12h\n\x0estorage_schema\x18\x03 \x03(\x0b\x32P.temporal.api.operatorservice.v1.ListSearchAttributesResponse.StorageSchemaEntry\x1a`\n\x15\x43ustomAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01\x1a`\n\x15SystemAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01\x1a\x34\n\x12StorageSchemaEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"A\n\x16\x44\x65leteNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x02 \x01(\t"4\n\x17\x44\x65leteNamespaceResponse\x12\x19\n\x11\x64\x65leted_namespace\x18\x01 \x01(\t"e\n\x1f\x41\x64\x64OrUpdateRemoteClusterRequest\x12\x18\n\x10\x66rontend_address\x18\x01 \x01(\t\x12(\n enable_remote_cluster_connection\x18\x02 \x01(\x08""\n AddOrUpdateRemoteClusterResponse"2\n\x1aRemoveRemoteClusterRequest\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t"\x1d\n\x1bRemoveRemoteClusterResponse"A\n\x13ListClustersRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"s\n\x14ListClustersResponse\x12\x42\n\x08\x63lusters\x18\x01 \x03(\x0b\x32\x30.temporal.api.operatorservice.v1.ClusterMetadata\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"\xaa\x01\n\x0f\x43lusterMetadata\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\x12 \n\x18initial_failover_version\x18\x04 \x01(\x03\x12\x1b\n\x13history_shard_count\x18\x05 \x01(\x05\x12\x1d\n\x15is_connection_enabled\x18\x06 \x01(\x08\x42\xbe\x01\n"io.temporal.api.operatorservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/operatorservice/v1;operatorservice\xaa\x02!Temporalio.Api.OperatorService.V1\xea\x02$Temporalio::Api::OperatorService::V1b\x06proto3' + b'\n6temporal/api/operatorservice/v1/request_response.proto\x12\x1ftemporal.api.operatorservice.v1\x1a"temporal/api/enums/v1/common.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto"\xff\x01\n\x1a\x41\x64\x64SearchAttributesRequest\x12l\n\x11search_attributes\x18\x01 \x03(\x0b\x32Q.temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntry\x12\x11\n\tnamespace\x18\x02 \x01(\t\x1a`\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\x1d\n\x1b\x41\x64\x64SearchAttributesResponse"M\n\x1dRemoveSearchAttributesRequest\x12\x19\n\x11search_attributes\x18\x01 \x03(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t" \n\x1eRemoveSearchAttributesResponse"0\n\x1bListSearchAttributesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t"\xe2\x04\n\x1cListSearchAttributesResponse\x12n\n\x11\x63ustom_attributes\x18\x01 \x03(\x0b\x32S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntry\x12n\n\x11system_attributes\x18\x02 \x03(\x0b\x32S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntry\x12h\n\x0estorage_schema\x18\x03 \x03(\x0b\x32P.temporal.api.operatorservice.v1.ListSearchAttributesResponse.StorageSchemaEntry\x1a`\n\x15\x43ustomAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01\x1a`\n\x15SystemAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01\x1a\x34\n\x12StorageSchemaEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"|\n\x16\x44\x65leteNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x02 \x01(\t\x12\x39\n\x16namespace_delete_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration"4\n\x17\x44\x65leteNamespaceResponse\x12\x19\n\x11\x64\x65leted_namespace\x18\x01 \x01(\t"\x84\x01\n\x1f\x41\x64\x64OrUpdateRemoteClusterRequest\x12\x18\n\x10\x66rontend_address\x18\x01 \x01(\t\x12(\n enable_remote_cluster_connection\x18\x02 \x01(\x08\x12\x1d\n\x15\x66rontend_http_address\x18\x03 \x01(\t""\n AddOrUpdateRemoteClusterResponse"2\n\x1aRemoveRemoteClusterRequest\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t"\x1d\n\x1bRemoveRemoteClusterResponse"A\n\x13ListClustersRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"s\n\x14ListClustersResponse\x12\x42\n\x08\x63lusters\x18\x01 \x03(\x0b\x32\x30.temporal.api.operatorservice.v1.ClusterMetadata\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"\xc0\x01\n\x0f\x43lusterMetadata\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\x12\x14\n\x0chttp_address\x18\x07 \x01(\t\x12 \n\x18initial_failover_version\x18\x04 \x01(\x03\x12\x1b\n\x13history_shard_count\x18\x05 \x01(\x05\x12\x1d\n\x15is_connection_enabled\x18\x06 \x01(\x08"%\n\x17GetNexusEndpointRequest\x12\n\n\x02id\x18\x01 \x01(\t"M\n\x18GetNexusEndpointResponse\x12\x31\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Endpoint"O\n\x1a\x43reateNexusEndpointRequest\x12\x31\n\x04spec\x18\x01 \x01(\x0b\x32#.temporal.api.nexus.v1.EndpointSpec"P\n\x1b\x43reateNexusEndpointResponse\x12\x31\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Endpoint"l\n\x1aUpdateNexusEndpointRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x31\n\x04spec\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.EndpointSpec"P\n\x1bUpdateNexusEndpointResponse\x12\x31\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Endpoint"9\n\x1a\x44\x65leteNexusEndpointRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"\x1d\n\x1b\x44\x65leteNexusEndpointResponse"U\n\x19ListNexusEndpointsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x0c\n\x04name\x18\x03 \x01(\t"i\n\x1aListNexusEndpointsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12\x32\n\tendpoints\x18\x02 \x03(\x0b\x32\x1f.temporal.api.nexus.v1.EndpointB\xbe\x01\n"io.temporal.api.operatorservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/operatorservice/v1;operatorservice\xaa\x02!Temporalio.Api.OperatorService.V1\xea\x02$Temporalio::Api::OperatorService::V1b\x06proto3' ) @@ -69,6 +74,32 @@ _LISTCLUSTERSREQUEST = DESCRIPTOR.message_types_by_name["ListClustersRequest"] _LISTCLUSTERSRESPONSE = DESCRIPTOR.message_types_by_name["ListClustersResponse"] _CLUSTERMETADATA = DESCRIPTOR.message_types_by_name["ClusterMetadata"] +_GETNEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name["GetNexusEndpointRequest"] +_GETNEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name["GetNexusEndpointResponse"] +_CREATENEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name[ + "CreateNexusEndpointRequest" +] +_CREATENEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name[ + "CreateNexusEndpointResponse" +] +_UPDATENEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name[ + "UpdateNexusEndpointRequest" +] +_UPDATENEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name[ + "UpdateNexusEndpointResponse" +] +_DELETENEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name[ + "DeleteNexusEndpointRequest" +] +_DELETENEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name[ + "DeleteNexusEndpointResponse" +] +_LISTNEXUSENDPOINTSREQUEST = DESCRIPTOR.message_types_by_name[ + "ListNexusEndpointsRequest" +] +_LISTNEXUSENDPOINTSRESPONSE = DESCRIPTOR.message_types_by_name[ + "ListNexusEndpointsResponse" +] AddSearchAttributesRequest = _reflection.GeneratedProtocolMessageType( "AddSearchAttributesRequest", (_message.Message,), @@ -274,6 +305,116 @@ ) _sym_db.RegisterMessage(ClusterMetadata) +GetNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( + "GetNexusEndpointRequest", + (_message.Message,), + { + "DESCRIPTOR": _GETNEXUSENDPOINTREQUEST, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.GetNexusEndpointRequest) + }, +) +_sym_db.RegisterMessage(GetNexusEndpointRequest) + +GetNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( + "GetNexusEndpointResponse", + (_message.Message,), + { + "DESCRIPTOR": _GETNEXUSENDPOINTRESPONSE, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.GetNexusEndpointResponse) + }, +) +_sym_db.RegisterMessage(GetNexusEndpointResponse) + +CreateNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( + "CreateNexusEndpointRequest", + (_message.Message,), + { + "DESCRIPTOR": _CREATENEXUSENDPOINTREQUEST, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.CreateNexusEndpointRequest) + }, +) +_sym_db.RegisterMessage(CreateNexusEndpointRequest) + +CreateNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( + "CreateNexusEndpointResponse", + (_message.Message,), + { + "DESCRIPTOR": _CREATENEXUSENDPOINTRESPONSE, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.CreateNexusEndpointResponse) + }, +) +_sym_db.RegisterMessage(CreateNexusEndpointResponse) + +UpdateNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( + "UpdateNexusEndpointRequest", + (_message.Message,), + { + "DESCRIPTOR": _UPDATENEXUSENDPOINTREQUEST, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.UpdateNexusEndpointRequest) + }, +) +_sym_db.RegisterMessage(UpdateNexusEndpointRequest) + +UpdateNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( + "UpdateNexusEndpointResponse", + (_message.Message,), + { + "DESCRIPTOR": _UPDATENEXUSENDPOINTRESPONSE, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.UpdateNexusEndpointResponse) + }, +) +_sym_db.RegisterMessage(UpdateNexusEndpointResponse) + +DeleteNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( + "DeleteNexusEndpointRequest", + (_message.Message,), + { + "DESCRIPTOR": _DELETENEXUSENDPOINTREQUEST, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNexusEndpointRequest) + }, +) +_sym_db.RegisterMessage(DeleteNexusEndpointRequest) + +DeleteNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( + "DeleteNexusEndpointResponse", + (_message.Message,), + { + "DESCRIPTOR": _DELETENEXUSENDPOINTRESPONSE, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNexusEndpointResponse) + }, +) +_sym_db.RegisterMessage(DeleteNexusEndpointResponse) + +ListNexusEndpointsRequest = _reflection.GeneratedProtocolMessageType( + "ListNexusEndpointsRequest", + (_message.Message,), + { + "DESCRIPTOR": _LISTNEXUSENDPOINTSREQUEST, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListNexusEndpointsRequest) + }, +) +_sym_db.RegisterMessage(ListNexusEndpointsRequest) + +ListNexusEndpointsResponse = _reflection.GeneratedProtocolMessageType( + "ListNexusEndpointsResponse", + (_message.Message,), + { + "DESCRIPTOR": _LISTNEXUSENDPOINTSRESPONSE, + "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListNexusEndpointsResponse) + }, +) +_sym_db.RegisterMessage(ListNexusEndpointsResponse) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n"io.temporal.api.operatorservice.v1B\024RequestResponseProtoP\001Z5go.temporal.io/api/operatorservice/v1;operatorservice\252\002!Temporalio.Api.OperatorService.V1\352\002$Temporalio::Api::OperatorService::V1' @@ -285,42 +426,62 @@ _LISTSEARCHATTRIBUTESRESPONSE_SYSTEMATTRIBUTESENTRY._serialized_options = b"8\001" _LISTSEARCHATTRIBUTESRESPONSE_STORAGESCHEMAENTRY._options = None _LISTSEARCHATTRIBUTESRESPONSE_STORAGESCHEMAENTRY._serialized_options = b"8\001" - _ADDSEARCHATTRIBUTESREQUEST._serialized_start = 128 - _ADDSEARCHATTRIBUTESREQUEST._serialized_end = 383 - _ADDSEARCHATTRIBUTESREQUEST_SEARCHATTRIBUTESENTRY._serialized_start = 287 - _ADDSEARCHATTRIBUTESREQUEST_SEARCHATTRIBUTESENTRY._serialized_end = 383 - _ADDSEARCHATTRIBUTESRESPONSE._serialized_start = 385 - _ADDSEARCHATTRIBUTESRESPONSE._serialized_end = 414 - _REMOVESEARCHATTRIBUTESREQUEST._serialized_start = 416 - _REMOVESEARCHATTRIBUTESREQUEST._serialized_end = 493 - _REMOVESEARCHATTRIBUTESRESPONSE._serialized_start = 495 - _REMOVESEARCHATTRIBUTESRESPONSE._serialized_end = 527 - _LISTSEARCHATTRIBUTESREQUEST._serialized_start = 529 - _LISTSEARCHATTRIBUTESREQUEST._serialized_end = 577 - _LISTSEARCHATTRIBUTESRESPONSE._serialized_start = 580 - _LISTSEARCHATTRIBUTESRESPONSE._serialized_end = 1190 - _LISTSEARCHATTRIBUTESRESPONSE_CUSTOMATTRIBUTESENTRY._serialized_start = 942 - _LISTSEARCHATTRIBUTESRESPONSE_CUSTOMATTRIBUTESENTRY._serialized_end = 1038 - _LISTSEARCHATTRIBUTESRESPONSE_SYSTEMATTRIBUTESENTRY._serialized_start = 1040 - _LISTSEARCHATTRIBUTESRESPONSE_SYSTEMATTRIBUTESENTRY._serialized_end = 1136 - _LISTSEARCHATTRIBUTESRESPONSE_STORAGESCHEMAENTRY._serialized_start = 1138 - _LISTSEARCHATTRIBUTESRESPONSE_STORAGESCHEMAENTRY._serialized_end = 1190 - _DELETENAMESPACEREQUEST._serialized_start = 1192 - _DELETENAMESPACEREQUEST._serialized_end = 1257 - _DELETENAMESPACERESPONSE._serialized_start = 1259 - _DELETENAMESPACERESPONSE._serialized_end = 1311 - _ADDORUPDATEREMOTECLUSTERREQUEST._serialized_start = 1313 - _ADDORUPDATEREMOTECLUSTERREQUEST._serialized_end = 1414 - _ADDORUPDATEREMOTECLUSTERRESPONSE._serialized_start = 1416 - _ADDORUPDATEREMOTECLUSTERRESPONSE._serialized_end = 1450 - _REMOVEREMOTECLUSTERREQUEST._serialized_start = 1452 - _REMOVEREMOTECLUSTERREQUEST._serialized_end = 1502 - _REMOVEREMOTECLUSTERRESPONSE._serialized_start = 1504 - _REMOVEREMOTECLUSTERRESPONSE._serialized_end = 1533 - _LISTCLUSTERSREQUEST._serialized_start = 1535 - _LISTCLUSTERSREQUEST._serialized_end = 1600 - _LISTCLUSTERSRESPONSE._serialized_start = 1602 - _LISTCLUSTERSRESPONSE._serialized_end = 1717 - _CLUSTERMETADATA._serialized_start = 1720 - _CLUSTERMETADATA._serialized_end = 1890 + _ADDSEARCHATTRIBUTESREQUEST._serialized_start = 197 + _ADDSEARCHATTRIBUTESREQUEST._serialized_end = 452 + _ADDSEARCHATTRIBUTESREQUEST_SEARCHATTRIBUTESENTRY._serialized_start = 356 + _ADDSEARCHATTRIBUTESREQUEST_SEARCHATTRIBUTESENTRY._serialized_end = 452 + _ADDSEARCHATTRIBUTESRESPONSE._serialized_start = 454 + _ADDSEARCHATTRIBUTESRESPONSE._serialized_end = 483 + _REMOVESEARCHATTRIBUTESREQUEST._serialized_start = 485 + _REMOVESEARCHATTRIBUTESREQUEST._serialized_end = 562 + _REMOVESEARCHATTRIBUTESRESPONSE._serialized_start = 564 + _REMOVESEARCHATTRIBUTESRESPONSE._serialized_end = 596 + _LISTSEARCHATTRIBUTESREQUEST._serialized_start = 598 + _LISTSEARCHATTRIBUTESREQUEST._serialized_end = 646 + _LISTSEARCHATTRIBUTESRESPONSE._serialized_start = 649 + _LISTSEARCHATTRIBUTESRESPONSE._serialized_end = 1259 + _LISTSEARCHATTRIBUTESRESPONSE_CUSTOMATTRIBUTESENTRY._serialized_start = 1011 + _LISTSEARCHATTRIBUTESRESPONSE_CUSTOMATTRIBUTESENTRY._serialized_end = 1107 + _LISTSEARCHATTRIBUTESRESPONSE_SYSTEMATTRIBUTESENTRY._serialized_start = 1109 + _LISTSEARCHATTRIBUTESRESPONSE_SYSTEMATTRIBUTESENTRY._serialized_end = 1205 + _LISTSEARCHATTRIBUTESRESPONSE_STORAGESCHEMAENTRY._serialized_start = 1207 + _LISTSEARCHATTRIBUTESRESPONSE_STORAGESCHEMAENTRY._serialized_end = 1259 + _DELETENAMESPACEREQUEST._serialized_start = 1261 + _DELETENAMESPACEREQUEST._serialized_end = 1385 + _DELETENAMESPACERESPONSE._serialized_start = 1387 + _DELETENAMESPACERESPONSE._serialized_end = 1439 + _ADDORUPDATEREMOTECLUSTERREQUEST._serialized_start = 1442 + _ADDORUPDATEREMOTECLUSTERREQUEST._serialized_end = 1574 + _ADDORUPDATEREMOTECLUSTERRESPONSE._serialized_start = 1576 + _ADDORUPDATEREMOTECLUSTERRESPONSE._serialized_end = 1610 + _REMOVEREMOTECLUSTERREQUEST._serialized_start = 1612 + _REMOVEREMOTECLUSTERREQUEST._serialized_end = 1662 + _REMOVEREMOTECLUSTERRESPONSE._serialized_start = 1664 + _REMOVEREMOTECLUSTERRESPONSE._serialized_end = 1693 + _LISTCLUSTERSREQUEST._serialized_start = 1695 + _LISTCLUSTERSREQUEST._serialized_end = 1760 + _LISTCLUSTERSRESPONSE._serialized_start = 1762 + _LISTCLUSTERSRESPONSE._serialized_end = 1877 + _CLUSTERMETADATA._serialized_start = 1880 + _CLUSTERMETADATA._serialized_end = 2072 + _GETNEXUSENDPOINTREQUEST._serialized_start = 2074 + _GETNEXUSENDPOINTREQUEST._serialized_end = 2111 + _GETNEXUSENDPOINTRESPONSE._serialized_start = 2113 + _GETNEXUSENDPOINTRESPONSE._serialized_end = 2190 + _CREATENEXUSENDPOINTREQUEST._serialized_start = 2192 + _CREATENEXUSENDPOINTREQUEST._serialized_end = 2271 + _CREATENEXUSENDPOINTRESPONSE._serialized_start = 2273 + _CREATENEXUSENDPOINTRESPONSE._serialized_end = 2353 + _UPDATENEXUSENDPOINTREQUEST._serialized_start = 2355 + _UPDATENEXUSENDPOINTREQUEST._serialized_end = 2463 + _UPDATENEXUSENDPOINTRESPONSE._serialized_start = 2465 + _UPDATENEXUSENDPOINTRESPONSE._serialized_end = 2545 + _DELETENEXUSENDPOINTREQUEST._serialized_start = 2547 + _DELETENEXUSENDPOINTREQUEST._serialized_end = 2604 + _DELETENEXUSENDPOINTRESPONSE._serialized_start = 2606 + _DELETENEXUSENDPOINTRESPONSE._serialized_end = 2635 + _LISTNEXUSENDPOINTSREQUEST._serialized_start = 2637 + _LISTNEXUSENDPOINTSREQUEST._serialized_end = 2722 + _LISTNEXUSENDPOINTSRESPONSE._serialized_start = 2724 + _LISTNEXUSENDPOINTSRESPONSE._serialized_end = 2829 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/operatorservice/v1/request_response_pb2.pyi b/temporalio/api/operatorservice/v1/request_response_pb2.pyi index 7a8e6cd7a..cac678739 100644 --- a/temporalio/api/operatorservice/v1/request_response_pb2.pyi +++ b/temporalio/api/operatorservice/v1/request_response_pb2.pyi @@ -26,10 +26,12 @@ THE SOFTWARE. import builtins import collections.abc import google.protobuf.descriptor +import google.protobuf.duration_pb2 import google.protobuf.internal.containers import google.protobuf.message import sys import temporalio.api.enums.v1.common_pb2 +import temporalio.api.nexus.v1.message_pb2 if sys.version_info >= (3, 8): import typing as typing_extensions @@ -257,29 +259,41 @@ class ListSearchAttributesResponse(google.protobuf.message.Message): global___ListSearchAttributesResponse = ListSearchAttributesResponse class DeleteNamespaceRequest(google.protobuf.message.Message): - """(-- api-linter: core::0135::request-unknown-fields=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - (-- api-linter: core::0135::request-name-required=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int NAMESPACE_ID_FIELD_NUMBER: builtins.int + NAMESPACE_DELETE_DELAY_FIELD_NUMBER: builtins.int namespace: builtins.str """Only one of namespace or namespace_id must be specified to identify namespace.""" namespace_id: builtins.str + @property + def namespace_delete_delay(self) -> google.protobuf.duration_pb2.Duration: + """If provided, the deletion of namespace info will be delayed for the given duration (0 means no delay). + If not provided, the default delay configured in the cluster will be used. + """ def __init__( self, *, namespace: builtins.str = ..., namespace_id: builtins.str = ..., + namespace_delete_delay: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "namespace_delete_delay", b"namespace_delete_delay" + ], + ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ - "namespace", b"namespace", "namespace_id", b"namespace_id" + "namespace", + b"namespace", + "namespace_delete_delay", + b"namespace_delete_delay", + "namespace_id", + b"namespace_id", ], ) -> None: ... @@ -310,15 +324,21 @@ class AddOrUpdateRemoteClusterRequest(google.protobuf.message.Message): FRONTEND_ADDRESS_FIELD_NUMBER: builtins.int ENABLE_REMOTE_CLUSTER_CONNECTION_FIELD_NUMBER: builtins.int + FRONTEND_HTTP_ADDRESS_FIELD_NUMBER: builtins.int frontend_address: builtins.str - """Frontend Address is a cross cluster accessible address.""" + """Frontend Address is a cross cluster accessible address for gRPC traffic. This field is required.""" enable_remote_cluster_connection: builtins.bool """Flag to enable / disable the cross cluster connection.""" + frontend_http_address: builtins.str + """Frontend HTTP Address is a cross cluster accessible address for HTTP traffic. This field is optional. If not provided + on update, the existing HTTP address will be removed. + """ def __init__( self, *, frontend_address: builtins.str = ..., enable_remote_cluster_connection: builtins.bool = ..., + frontend_http_address: builtins.str = ..., ) -> None: ... def ClearField( self, @@ -327,6 +347,8 @@ class AddOrUpdateRemoteClusterRequest(google.protobuf.message.Message): b"enable_remote_cluster_connection", "frontend_address", b"frontend_address", + "frontend_http_address", + b"frontend_http_address", ], ) -> None: ... @@ -423,6 +445,7 @@ class ClusterMetadata(google.protobuf.message.Message): CLUSTER_NAME_FIELD_NUMBER: builtins.int CLUSTER_ID_FIELD_NUMBER: builtins.int ADDRESS_FIELD_NUMBER: builtins.int + HTTP_ADDRESS_FIELD_NUMBER: builtins.int INITIAL_FAILOVER_VERSION_FIELD_NUMBER: builtins.int HISTORY_SHARD_COUNT_FIELD_NUMBER: builtins.int IS_CONNECTION_ENABLED_FIELD_NUMBER: builtins.int @@ -431,7 +454,9 @@ class ClusterMetadata(google.protobuf.message.Message): cluster_id: builtins.str """Id of the cluster.""" address: builtins.str - """Cluster accessible address.""" + """gRPC address.""" + http_address: builtins.str + """HTTP address, if one exists.""" initial_failover_version: builtins.int """A unique failover version across all connected clusters.""" history_shard_count: builtins.int @@ -444,6 +469,7 @@ class ClusterMetadata(google.protobuf.message.Message): cluster_name: builtins.str = ..., cluster_id: builtins.str = ..., address: builtins.str = ..., + http_address: builtins.str = ..., initial_failover_version: builtins.int = ..., history_shard_count: builtins.int = ..., is_connection_enabled: builtins.bool = ..., @@ -459,6 +485,8 @@ class ClusterMetadata(google.protobuf.message.Message): b"cluster_name", "history_shard_count", b"history_shard_count", + "http_address", + b"http_address", "initial_failover_version", b"initial_failover_version", "is_connection_enabled", @@ -467,3 +495,233 @@ class ClusterMetadata(google.protobuf.message.Message): ) -> None: ... global___ClusterMetadata = ClusterMetadata + +class GetNexusEndpointRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + id: builtins.str + """Server-generated unique endpoint ID.""" + def __init__( + self, + *, + id: builtins.str = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["id", b"id"] + ) -> None: ... + +global___GetNexusEndpointRequest = GetNexusEndpointRequest + +class GetNexusEndpointResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENDPOINT_FIELD_NUMBER: builtins.int + @property + def endpoint(self) -> temporalio.api.nexus.v1.message_pb2.Endpoint: ... + def __init__( + self, + *, + endpoint: temporalio.api.nexus.v1.message_pb2.Endpoint | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + ) -> None: ... + +global___GetNexusEndpointResponse = GetNexusEndpointResponse + +class CreateNexusEndpointRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SPEC_FIELD_NUMBER: builtins.int + @property + def spec(self) -> temporalio.api.nexus.v1.message_pb2.EndpointSpec: + """Endpoint definition to create.""" + def __init__( + self, + *, + spec: temporalio.api.nexus.v1.message_pb2.EndpointSpec | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["spec", b"spec"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["spec", b"spec"] + ) -> None: ... + +global___CreateNexusEndpointRequest = CreateNexusEndpointRequest + +class CreateNexusEndpointResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENDPOINT_FIELD_NUMBER: builtins.int + @property + def endpoint(self) -> temporalio.api.nexus.v1.message_pb2.Endpoint: + """Data post acceptance. Can be used to issue additional updates to this record.""" + def __init__( + self, + *, + endpoint: temporalio.api.nexus.v1.message_pb2.Endpoint | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + ) -> None: ... + +global___CreateNexusEndpointResponse = CreateNexusEndpointResponse + +class UpdateNexusEndpointRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + SPEC_FIELD_NUMBER: builtins.int + id: builtins.str + """Server-generated unique endpoint ID.""" + version: builtins.int + """Data version for this endpoint. Must match current version.""" + @property + def spec(self) -> temporalio.api.nexus.v1.message_pb2.EndpointSpec: ... + def __init__( + self, + *, + id: builtins.str = ..., + version: builtins.int = ..., + spec: temporalio.api.nexus.v1.message_pb2.EndpointSpec | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["spec", b"spec"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "id", b"id", "spec", b"spec", "version", b"version" + ], + ) -> None: ... + +global___UpdateNexusEndpointRequest = UpdateNexusEndpointRequest + +class UpdateNexusEndpointResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENDPOINT_FIELD_NUMBER: builtins.int + @property + def endpoint(self) -> temporalio.api.nexus.v1.message_pb2.Endpoint: + """Data post acceptance. Can be used to issue additional updates to this record.""" + def __init__( + self, + *, + endpoint: temporalio.api.nexus.v1.message_pb2.Endpoint | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + ) -> None: ... + +global___UpdateNexusEndpointResponse = UpdateNexusEndpointResponse + +class DeleteNexusEndpointRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + id: builtins.str + """Server-generated unique endpoint ID.""" + version: builtins.int + """Data version for this endpoint. Must match current version.""" + def __init__( + self, + *, + id: builtins.str = ..., + version: builtins.int = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["id", b"id", "version", b"version"] + ) -> None: ... + +global___DeleteNexusEndpointRequest = DeleteNexusEndpointRequest + +class DeleteNexusEndpointResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___DeleteNexusEndpointResponse = DeleteNexusEndpointResponse + +class ListNexusEndpointsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGE_SIZE_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + page_size: builtins.int + next_page_token: builtins.bytes + """To get the next page, pass in `ListNexusEndpointsResponse.next_page_token` from the previous page's + response, the token will be empty if there's no other page. + Note: the last page may be empty if the total number of endpoints registered is a multiple of the page size. + """ + name: builtins.str + """Name of the incoming endpoint to filter on - optional. Specifying this will result in zero or one results. + (-- api-linter: core::203::field-behavior-required=disabled + aip.dev/not-precedent: Not following linter rules. --) + """ + def __init__( + self, + *, + page_size: builtins.int = ..., + next_page_token: builtins.bytes = ..., + name: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "name", + b"name", + "next_page_token", + b"next_page_token", + "page_size", + b"page_size", + ], + ) -> None: ... + +global___ListNexusEndpointsRequest = ListNexusEndpointsRequest + +class ListNexusEndpointsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + ENDPOINTS_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes + """Token for getting the next page.""" + @property + def endpoints( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.nexus.v1.message_pb2.Endpoint + ]: ... + def __init__( + self, + *, + next_page_token: builtins.bytes = ..., + endpoints: collections.abc.Iterable[ + temporalio.api.nexus.v1.message_pb2.Endpoint + ] + | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "endpoints", b"endpoints", "next_page_token", b"next_page_token" + ], + ) -> None: ... + +global___ListNexusEndpointsResponse = ListNexusEndpointsResponse diff --git a/temporalio/api/operatorservice/v1/service_pb2.py b/temporalio/api/operatorservice/v1/service_pb2.py index 8c35d824f..684f8f815 100644 --- a/temporalio/api/operatorservice/v1/service_pb2.py +++ b/temporalio/api/operatorservice/v1/service_pb2.py @@ -20,7 +20,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n-temporal/api/operatorservice/v1/service.proto\x12\x1ftemporal.api.operatorservice.v1\x1a\x36temporal/api/operatorservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\xd5\x08\n\x0fOperatorService\x12\x92\x01\n\x13\x41\x64\x64SearchAttributes\x12;.temporal.api.operatorservice.v1.AddSearchAttributesRequest\x1a<.temporal.api.operatorservice.v1.AddSearchAttributesResponse"\x00\x12\x9b\x01\n\x16RemoveSearchAttributes\x12>.temporal.api.operatorservice.v1.RemoveSearchAttributesRequest\x1a?.temporal.api.operatorservice.v1.RemoveSearchAttributesResponse"\x00\x12\xcd\x01\n\x14ListSearchAttributes\x12<.temporal.api.operatorservice.v1.ListSearchAttributesRequest\x1a=.temporal.api.operatorservice.v1.ListSearchAttributesResponse"8\x82\xd3\xe4\x93\x02\x32\x12\x30/api/v1/namespaces/{namespace}/search-attributes\x12\x86\x01\n\x0f\x44\x65leteNamespace\x12\x37.temporal.api.operatorservice.v1.DeleteNamespaceRequest\x1a\x38.temporal.api.operatorservice.v1.DeleteNamespaceResponse"\x00\x12\xa1\x01\n\x18\x41\x64\x64OrUpdateRemoteCluster\x12@.temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest\x1a\x41.temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse"\x00\x12\x92\x01\n\x13RemoveRemoteCluster\x12;.temporal.api.operatorservice.v1.RemoveRemoteClusterRequest\x1a<.temporal.api.operatorservice.v1.RemoveRemoteClusterResponse"\x00\x12}\n\x0cListClusters\x12\x34.temporal.api.operatorservice.v1.ListClustersRequest\x1a\x35.temporal.api.operatorservice.v1.ListClustersResponse"\x00\x42\xb6\x01\n"io.temporal.api.operatorservice.v1B\x0cServiceProtoP\x01Z5go.temporal.io/api/operatorservice/v1;operatorservice\xaa\x02!Temporalio.Api.OperatorService.V1\xea\x02$Temporalio::Api::OperatorService::V1b\x06proto3' + b'\n-temporal/api/operatorservice/v1/service.proto\x12\x1ftemporal.api.operatorservice.v1\x1a\x36temporal/api/operatorservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\xe9\x0f\n\x0fOperatorService\x12\x92\x01\n\x13\x41\x64\x64SearchAttributes\x12;.temporal.api.operatorservice.v1.AddSearchAttributesRequest\x1a<.temporal.api.operatorservice.v1.AddSearchAttributesResponse"\x00\x12\x9b\x01\n\x16RemoveSearchAttributes\x12>.temporal.api.operatorservice.v1.RemoveSearchAttributesRequest\x1a?.temporal.api.operatorservice.v1.RemoveSearchAttributesResponse"\x00\x12\xcd\x01\n\x14ListSearchAttributes\x12<.temporal.api.operatorservice.v1.ListSearchAttributesRequest\x1a=.temporal.api.operatorservice.v1.ListSearchAttributesResponse"8\x82\xd3\xe4\x93\x02\x32\x12\x30/api/v1/namespaces/{namespace}/search-attributes\x12\x86\x01\n\x0f\x44\x65leteNamespace\x12\x37.temporal.api.operatorservice.v1.DeleteNamespaceRequest\x1a\x38.temporal.api.operatorservice.v1.DeleteNamespaceResponse"\x00\x12\xa1\x01\n\x18\x41\x64\x64OrUpdateRemoteCluster\x12@.temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest\x1a\x41.temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse"\x00\x12\x92\x01\n\x13RemoveRemoteCluster\x12;.temporal.api.operatorservice.v1.RemoveRemoteClusterRequest\x1a<.temporal.api.operatorservice.v1.RemoveRemoteClusterResponse"\x00\x12}\n\x0cListClusters\x12\x34.temporal.api.operatorservice.v1.ListClustersRequest\x1a\x35.temporal.api.operatorservice.v1.ListClustersResponse"\x00\x12\xad\x01\n\x10GetNexusEndpoint\x12\x38.temporal.api.operatorservice.v1.GetNexusEndpointRequest\x1a\x39.temporal.api.operatorservice.v1.GetNexusEndpointResponse"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/v1/nexus/endpoints/{id}\x12\xb4\x01\n\x13\x43reateNexusEndpoint\x12;.temporal.api.operatorservice.v1.CreateNexusEndpointRequest\x1a<.temporal.api.operatorservice.v1.CreateNexusEndpointResponse""\x82\xd3\xe4\x93\x02\x1c"\x17/api/v1/nexus/endpoints:\x01*\x12\xc0\x01\n\x13UpdateNexusEndpoint\x12;.temporal.api.operatorservice.v1.UpdateNexusEndpointRequest\x1a<.temporal.api.operatorservice.v1.UpdateNexusEndpointResponse".\x82\xd3\xe4\x93\x02("#/api/v1/nexus/endpoints/{id}/update:\x01*\x12\xb6\x01\n\x13\x44\x65leteNexusEndpoint\x12;.temporal.api.operatorservice.v1.DeleteNexusEndpointRequest\x1a<.temporal.api.operatorservice.v1.DeleteNexusEndpointResponse"$\x82\xd3\xe4\x93\x02\x1e*\x1c/api/v1/nexus/endpoints/{id}\x12\xae\x01\n\x12ListNexusEndpoints\x12:.temporal.api.operatorservice.v1.ListNexusEndpointsRequest\x1a;.temporal.api.operatorservice.v1.ListNexusEndpointsResponse"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/api/v1/nexus/endpointsB\xb6\x01\n"io.temporal.api.operatorservice.v1B\x0cServiceProtoP\x01Z5go.temporal.io/api/operatorservice/v1;operatorservice\xaa\x02!Temporalio.Api.OperatorService.V1\xea\x02$Temporalio::Api::OperatorService::V1b\x06proto3' ) @@ -34,6 +34,32 @@ ]._serialized_options = ( b"\202\323\344\223\0022\0220/api/v1/namespaces/{namespace}/search-attributes" ) + _OPERATORSERVICE.methods_by_name["GetNexusEndpoint"]._options = None + _OPERATORSERVICE.methods_by_name[ + "GetNexusEndpoint" + ]._serialized_options = ( + b"\202\323\344\223\002\036\022\034/api/v1/nexus/endpoints/{id}" + ) + _OPERATORSERVICE.methods_by_name["CreateNexusEndpoint"]._options = None + _OPERATORSERVICE.methods_by_name[ + "CreateNexusEndpoint" + ]._serialized_options = ( + b'\202\323\344\223\002\034"\027/api/v1/nexus/endpoints:\001*' + ) + _OPERATORSERVICE.methods_by_name["UpdateNexusEndpoint"]._options = None + _OPERATORSERVICE.methods_by_name[ + "UpdateNexusEndpoint" + ]._serialized_options = ( + b'\202\323\344\223\002("#/api/v1/nexus/endpoints/{id}/update:\001*' + ) + _OPERATORSERVICE.methods_by_name["DeleteNexusEndpoint"]._options = None + _OPERATORSERVICE.methods_by_name[ + "DeleteNexusEndpoint" + ]._serialized_options = b"\202\323\344\223\002\036*\034/api/v1/nexus/endpoints/{id}" + _OPERATORSERVICE.methods_by_name["ListNexusEndpoints"]._options = None + _OPERATORSERVICE.methods_by_name[ + "ListNexusEndpoints" + ]._serialized_options = b"\202\323\344\223\002\031\022\027/api/v1/nexus/endpoints" _OPERATORSERVICE._serialized_start = 169 - _OPERATORSERVICE._serialized_end = 1278 + _OPERATORSERVICE._serialized_end = 2194 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/operatorservice/v1/service_pb2_grpc.py b/temporalio/api/operatorservice/v1/service_pb2_grpc.py index 9609f4ce7..24504d18b 100644 --- a/temporalio/api/operatorservice/v1/service_pb2_grpc.py +++ b/temporalio/api/operatorservice/v1/service_pb2_grpc.py @@ -56,6 +56,31 @@ def __init__(self, channel): request_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListClustersRequest.SerializeToString, response_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListClustersResponse.FromString, ) + self.GetNexusEndpoint = channel.unary_unary( + "/temporal.api.operatorservice.v1.OperatorService/GetNexusEndpoint", + request_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.GetNexusEndpointRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.GetNexusEndpointResponse.FromString, + ) + self.CreateNexusEndpoint = channel.unary_unary( + "/temporal.api.operatorservice.v1.OperatorService/CreateNexusEndpoint", + request_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.CreateNexusEndpointRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.CreateNexusEndpointResponse.FromString, + ) + self.UpdateNexusEndpoint = channel.unary_unary( + "/temporal.api.operatorservice.v1.OperatorService/UpdateNexusEndpoint", + request_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.UpdateNexusEndpointRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.UpdateNexusEndpointResponse.FromString, + ) + self.DeleteNexusEndpoint = channel.unary_unary( + "/temporal.api.operatorservice.v1.OperatorService/DeleteNexusEndpoint", + request_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.DeleteNexusEndpointRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.DeleteNexusEndpointResponse.FromString, + ) + self.ListNexusEndpoints = channel.unary_unary( + "/temporal.api.operatorservice.v1.OperatorService/ListNexusEndpoints", + request_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListNexusEndpointsRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListNexusEndpointsResponse.FromString, + ) class OperatorServiceServicer(object): @@ -92,12 +117,7 @@ def ListSearchAttributes(self, request, context): raise NotImplementedError("Method not implemented!") def DeleteNamespace(self, request, context): - """DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources. - (-- api-linter: core::0135::method-signature=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - (-- api-linter: core::0135::response-message-name=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - """ + """DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -120,6 +140,48 @@ def ListClusters(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") + def GetNexusEndpoint(self, request, context): + """Get a registered Nexus endpoint by ID. The returned version can be used for optimistic updates.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def CreateNexusEndpoint(self, request, context): + """Create a Nexus endpoint. This will fail if an endpoint with the same name is already registered with a status of + ALREADY_EXISTS. + Returns the created endpoint with its initial version. You may use this version for subsequent updates. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def UpdateNexusEndpoint(self, request, context): + """Optimistically update a Nexus endpoint based on provided version as obtained via the `GetNexusEndpoint` or + `ListNexusEndpointResponse` APIs. This will fail with a status of FAILED_PRECONDITION if the version does not + match. + Returns the updated endpoint with its updated version. You may use this version for subsequent updates. You don't + need to increment the version yourself. The server will increment the version for you after each update. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def DeleteNexusEndpoint(self, request, context): + """Delete an incoming Nexus service by ID.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def ListNexusEndpoints(self, request, context): + """List all Nexus endpoints for the cluster, sorted by ID in ascending order. Set page_token in the request to the + next_page_token field of the previous response to get the next page of results. An empty next_page_token + indicates that there are no more results. During pagination, a newly added service with an ID lexicographically + earlier than the previous page's last endpoint's ID may be missed. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + def add_OperatorServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -158,6 +220,31 @@ def add_OperatorServiceServicer_to_server(servicer, server): request_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListClustersRequest.FromString, response_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListClustersResponse.SerializeToString, ), + "GetNexusEndpoint": grpc.unary_unary_rpc_method_handler( + servicer.GetNexusEndpoint, + request_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.GetNexusEndpointRequest.FromString, + response_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.GetNexusEndpointResponse.SerializeToString, + ), + "CreateNexusEndpoint": grpc.unary_unary_rpc_method_handler( + servicer.CreateNexusEndpoint, + request_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.CreateNexusEndpointRequest.FromString, + response_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.CreateNexusEndpointResponse.SerializeToString, + ), + "UpdateNexusEndpoint": grpc.unary_unary_rpc_method_handler( + servicer.UpdateNexusEndpoint, + request_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.UpdateNexusEndpointRequest.FromString, + response_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.UpdateNexusEndpointResponse.SerializeToString, + ), + "DeleteNexusEndpoint": grpc.unary_unary_rpc_method_handler( + servicer.DeleteNexusEndpoint, + request_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.DeleteNexusEndpointRequest.FromString, + response_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.DeleteNexusEndpointResponse.SerializeToString, + ), + "ListNexusEndpoints": grpc.unary_unary_rpc_method_handler( + servicer.ListNexusEndpoints, + request_deserializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListNexusEndpointsRequest.FromString, + response_serializer=temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListNexusEndpointsResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( "temporal.api.operatorservice.v1.OperatorService", rpc_method_handlers @@ -376,3 +463,148 @@ def ListClusters( timeout, metadata, ) + + @staticmethod + def GetNexusEndpoint( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.operatorservice.v1.OperatorService/GetNexusEndpoint", + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.GetNexusEndpointRequest.SerializeToString, + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.GetNexusEndpointResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateNexusEndpoint( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.operatorservice.v1.OperatorService/CreateNexusEndpoint", + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.CreateNexusEndpointRequest.SerializeToString, + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.CreateNexusEndpointResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateNexusEndpoint( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.operatorservice.v1.OperatorService/UpdateNexusEndpoint", + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.UpdateNexusEndpointRequest.SerializeToString, + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.UpdateNexusEndpointResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteNexusEndpoint( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.operatorservice.v1.OperatorService/DeleteNexusEndpoint", + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.DeleteNexusEndpointRequest.SerializeToString, + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.DeleteNexusEndpointResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListNexusEndpoints( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.operatorservice.v1.OperatorService/ListNexusEndpoints", + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListNexusEndpointsRequest.SerializeToString, + temporal_dot_api_dot_operatorservice_dot_v1_dot_request__response__pb2.ListNexusEndpointsResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi b/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi index f7fc55603..5c148e236 100644 --- a/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi @@ -62,12 +62,7 @@ class OperatorServiceStub: temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceRequest, temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceResponse, ] - """DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources. - (-- api-linter: core::0135::method-signature=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - (-- api-linter: core::0135::response-message-name=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - """ + """DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources.""" AddOrUpdateRemoteCluster: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterRequest, temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterResponse, @@ -83,6 +78,43 @@ class OperatorServiceStub: temporalio.api.operatorservice.v1.request_response_pb2.ListClustersResponse, ] """ListClusters returns information about Temporal clusters.""" + GetNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointRequest, + temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointResponse, + ] + """Get a registered Nexus endpoint by ID. The returned version can be used for optimistic updates.""" + CreateNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointRequest, + temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointResponse, + ] + """Create a Nexus endpoint. This will fail if an endpoint with the same name is already registered with a status of + ALREADY_EXISTS. + Returns the created endpoint with its initial version. You may use this version for subsequent updates. + """ + UpdateNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointRequest, + temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointResponse, + ] + """Optimistically update a Nexus endpoint based on provided version as obtained via the `GetNexusEndpoint` or + `ListNexusEndpointResponse` APIs. This will fail with a status of FAILED_PRECONDITION if the version does not + match. + Returns the updated endpoint with its updated version. You may use this version for subsequent updates. You don't + need to increment the version yourself. The server will increment the version for you after each update. + """ + DeleteNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointRequest, + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointResponse, + ] + """Delete an incoming Nexus service by ID.""" + ListNexusEndpoints: grpc.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsRequest, + temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsResponse, + ] + """List all Nexus endpoints for the cluster, sorted by ID in ascending order. Set page_token in the request to the + next_page_token field of the previous response to get the next page of results. An empty next_page_token + indicates that there are no more results. During pagination, a newly added service with an ID lexicographically + earlier than the previous page's last endpoint's ID may be missed. + """ class OperatorServiceServicer(metaclass=abc.ABCMeta): """OperatorService API defines how Temporal SDKs and other clients interact with the Temporal server @@ -132,12 +164,7 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): request: temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceRequest, context: grpc.ServicerContext, ) -> temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceResponse: - """DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources. - (-- api-linter: core::0135::method-signature=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - (-- api-linter: core::0135::response-message-name=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - """ + """DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources.""" @abc.abstractmethod def AddOrUpdateRemoteCluster( self, @@ -163,6 +190,63 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): context: grpc.ServicerContext, ) -> temporalio.api.operatorservice.v1.request_response_pb2.ListClustersResponse: """ListClusters returns information about Temporal clusters.""" + @abc.abstractmethod + def GetNexusEndpoint( + self, + request: temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointResponse + ): + """Get a registered Nexus endpoint by ID. The returned version can be used for optimistic updates.""" + @abc.abstractmethod + def CreateNexusEndpoint( + self, + request: temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointResponse + ): + """Create a Nexus endpoint. This will fail if an endpoint with the same name is already registered with a status of + ALREADY_EXISTS. + Returns the created endpoint with its initial version. You may use this version for subsequent updates. + """ + @abc.abstractmethod + def UpdateNexusEndpoint( + self, + request: temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointResponse + ): + """Optimistically update a Nexus endpoint based on provided version as obtained via the `GetNexusEndpoint` or + `ListNexusEndpointResponse` APIs. This will fail with a status of FAILED_PRECONDITION if the version does not + match. + Returns the updated endpoint with its updated version. You may use this version for subsequent updates. You don't + need to increment the version yourself. The server will increment the version for you after each update. + """ + @abc.abstractmethod + def DeleteNexusEndpoint( + self, + request: temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointResponse + ): + """Delete an incoming Nexus service by ID.""" + @abc.abstractmethod + def ListNexusEndpoints( + self, + request: temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsResponse + ): + """List all Nexus endpoints for the cluster, sorted by ID in ascending order. Set page_token in the request to the + next_page_token field of the previous response to get the next page of results. An empty next_page_token + indicates that there are no more results. During pagination, a newly added service with an ID lexicographically + earlier than the previous page's last endpoint's ID may be missed. + """ def add_OperatorServiceServicer_to_server( servicer: OperatorServiceServicer, server: grpc.Server diff --git a/temporalio/api/schedule/v1/message_pb2.py b/temporalio/api/schedule/v1/message_pb2.py index bc511138b..64458c94c 100644 --- a/temporalio/api/schedule/v1/message_pb2.py +++ b/temporalio/api/schedule/v1/message_pb2.py @@ -27,7 +27,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n&temporal/api/schedule/v1/message.proto\x12\x18temporal.api.schedule.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/schedule.proto\x1a&temporal/api/workflow/v1/message.proto"\x95\x01\n\x0c\x43\x61lendarSpec\x12\x0e\n\x06second\x18\x01 \x01(\t\x12\x0e\n\x06minute\x18\x02 \x01(\t\x12\x0c\n\x04hour\x18\x03 \x01(\t\x12\x14\n\x0c\x64\x61y_of_month\x18\x04 \x01(\t\x12\r\n\x05month\x18\x05 \x01(\t\x12\x0c\n\x04year\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x61y_of_week\x18\x07 \x01(\t\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t"1\n\x05Range\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x0c\n\x04step\x18\x03 \x01(\x05"\x86\x03\n\x16StructuredCalendarSpec\x12/\n\x06second\x18\x01 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12/\n\x06minute\x18\x02 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12-\n\x04hour\x18\x03 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x35\n\x0c\x64\x61y_of_month\x18\x04 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12.\n\x05month\x18\x05 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12-\n\x04year\x18\x06 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x34\n\x0b\x64\x61y_of_week\x18\x07 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t"e\n\x0cIntervalSpec\x12+\n\x08interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n\x05phase\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xba\x04\n\x0cScheduleSpec\x12M\n\x13structured_calendar\x18\x07 \x03(\x0b\x32\x30.temporal.api.schedule.v1.StructuredCalendarSpec\x12\x13\n\x0b\x63ron_string\x18\x08 \x03(\t\x12\x38\n\x08\x63\x61lendar\x18\x01 \x03(\x0b\x32&.temporal.api.schedule.v1.CalendarSpec\x12\x38\n\x08interval\x18\x02 \x03(\x0b\x32&.temporal.api.schedule.v1.IntervalSpec\x12\x44\n\x10\x65xclude_calendar\x18\x03 \x03(\x0b\x32&.temporal.api.schedule.v1.CalendarSpecB\x02\x18\x01\x12U\n\x1b\x65xclude_structured_calendar\x18\t \x03(\x0b\x32\x30.temporal.api.schedule.v1.StructuredCalendarSpec\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\x06jitter\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rtimezone_name\x18\n \x01(\t\x12\x15\n\rtimezone_data\x18\x0b \x01(\x0c"\xa5\x01\n\x10SchedulePolicies\x12\x44\n\x0eoverlap_policy\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy\x12\x31\n\x0e\x63\x61tchup_window\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10pause_on_failure\x18\x03 \x01(\x08"h\n\x0eScheduleAction\x12L\n\x0estart_workflow\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.NewWorkflowExecutionInfoH\x00\x42\x08\n\x06\x61\x63tion"\xc4\x01\n\x14ScheduleActionResult\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x61\x63tual_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x15start_workflow_result\x18\x0b \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"b\n\rScheduleState\x12\r\n\x05notes\x18\x01 \x01(\t\x12\x0e\n\x06paused\x18\x02 \x01(\x08\x12\x17\n\x0flimited_actions\x18\x03 \x01(\x08\x12\x19\n\x11remaining_actions\x18\x04 \x01(\x03"a\n\x19TriggerImmediatelyRequest\x12\x44\n\x0eoverlap_policy\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy"\xb5\x01\n\x0f\x42\x61\x63kfillRequest\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x0eoverlap_policy\x18\x03 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy"\xc6\x01\n\rSchedulePatch\x12P\n\x13trigger_immediately\x18\x01 \x01(\x0b\x32\x33.temporal.api.schedule.v1.TriggerImmediatelyRequest\x12\x43\n\x10\x62\x61\x63kfill_request\x18\x02 \x03(\x0b\x32).temporal.api.schedule.v1.BackfillRequest\x12\r\n\x05pause\x18\x03 \x01(\t\x12\x0f\n\x07unpause\x18\x04 \x01(\t"\xd6\x03\n\x0cScheduleInfo\x12\x14\n\x0c\x61\x63tion_count\x18\x01 \x01(\x03\x12\x1d\n\x15missed_catchup_window\x18\x02 \x01(\x03\x12\x17\n\x0foverlap_skipped\x18\x03 \x01(\x03\x12\x16\n\x0e\x62uffer_dropped\x18\n \x01(\x03\x12\x13\n\x0b\x62uffer_size\x18\x0b \x01(\x03\x12\x44\n\x11running_workflows\x18\t \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x46\n\x0erecent_actions\x18\x04 \x03(\x0b\x32..temporal.api.schedule.v1.ScheduleActionResult\x12\x37\n\x13\x66uture_action_times\x18\x05 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12"\n\x16invalid_schedule_error\x18\x08 \x01(\tB\x02\x18\x01"\xf0\x01\n\x08Schedule\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleSpec\x12\x38\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32(.temporal.api.schedule.v1.ScheduleAction\x12<\n\x08policies\x18\x03 \x01(\x0b\x32*.temporal.api.schedule.v1.SchedulePolicies\x12\x36\n\x05state\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.ScheduleState"\xa5\x02\n\x10ScheduleListInfo\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleSpec\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\r\n\x05notes\x18\x03 \x01(\t\x12\x0e\n\x06paused\x18\x04 \x01(\x08\x12\x46\n\x0erecent_actions\x18\x05 \x03(\x0b\x32..temporal.api.schedule.v1.ScheduleActionResult\x12\x37\n\x13\x66uture_action_times\x18\x06 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"\xd3\x01\n\x11ScheduleListEntry\x12\x13\n\x0bschedule_id\x18\x01 \x01(\t\x12*\n\x04memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x03 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x38\n\x04info\x18\x04 \x01(\x0b\x32*.temporal.api.schedule.v1.ScheduleListInfoB\x93\x01\n\x1bio.temporal.api.schedule.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/schedule/v1;schedule\xaa\x02\x1aTemporalio.Api.Schedule.V1\xea\x02\x1dTemporalio::Api::Schedule::V1b\x06proto3' + b'\n&temporal/api/schedule/v1/message.proto\x12\x18temporal.api.schedule.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/schedule.proto\x1a&temporal/api/workflow/v1/message.proto"\x95\x01\n\x0c\x43\x61lendarSpec\x12\x0e\n\x06second\x18\x01 \x01(\t\x12\x0e\n\x06minute\x18\x02 \x01(\t\x12\x0c\n\x04hour\x18\x03 \x01(\t\x12\x14\n\x0c\x64\x61y_of_month\x18\x04 \x01(\t\x12\r\n\x05month\x18\x05 \x01(\t\x12\x0c\n\x04year\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x61y_of_week\x18\x07 \x01(\t\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t"1\n\x05Range\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x0c\n\x04step\x18\x03 \x01(\x05"\x86\x03\n\x16StructuredCalendarSpec\x12/\n\x06second\x18\x01 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12/\n\x06minute\x18\x02 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12-\n\x04hour\x18\x03 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x35\n\x0c\x64\x61y_of_month\x18\x04 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12.\n\x05month\x18\x05 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12-\n\x04year\x18\x06 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x34\n\x0b\x64\x61y_of_week\x18\x07 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t"e\n\x0cIntervalSpec\x12+\n\x08interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n\x05phase\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xba\x04\n\x0cScheduleSpec\x12M\n\x13structured_calendar\x18\x07 \x03(\x0b\x32\x30.temporal.api.schedule.v1.StructuredCalendarSpec\x12\x13\n\x0b\x63ron_string\x18\x08 \x03(\t\x12\x38\n\x08\x63\x61lendar\x18\x01 \x03(\x0b\x32&.temporal.api.schedule.v1.CalendarSpec\x12\x38\n\x08interval\x18\x02 \x03(\x0b\x32&.temporal.api.schedule.v1.IntervalSpec\x12\x44\n\x10\x65xclude_calendar\x18\x03 \x03(\x0b\x32&.temporal.api.schedule.v1.CalendarSpecB\x02\x18\x01\x12U\n\x1b\x65xclude_structured_calendar\x18\t \x03(\x0b\x32\x30.temporal.api.schedule.v1.StructuredCalendarSpec\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\x06jitter\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rtimezone_name\x18\n \x01(\t\x12\x15\n\rtimezone_data\x18\x0b \x01(\x0c"\xc8\x01\n\x10SchedulePolicies\x12\x44\n\x0eoverlap_policy\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy\x12\x31\n\x0e\x63\x61tchup_window\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10pause_on_failure\x18\x03 \x01(\x08\x12!\n\x19keep_original_workflow_id\x18\x04 \x01(\x08"h\n\x0eScheduleAction\x12L\n\x0estart_workflow\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.NewWorkflowExecutionInfoH\x00\x42\x08\n\x06\x61\x63tion"\xc4\x01\n\x14ScheduleActionResult\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x61\x63tual_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x15start_workflow_result\x18\x0b \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"b\n\rScheduleState\x12\r\n\x05notes\x18\x01 \x01(\t\x12\x0e\n\x06paused\x18\x02 \x01(\x08\x12\x17\n\x0flimited_actions\x18\x03 \x01(\x08\x12\x19\n\x11remaining_actions\x18\x04 \x01(\x03"a\n\x19TriggerImmediatelyRequest\x12\x44\n\x0eoverlap_policy\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy"\xb5\x01\n\x0f\x42\x61\x63kfillRequest\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x0eoverlap_policy\x18\x03 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy"\xc6\x01\n\rSchedulePatch\x12P\n\x13trigger_immediately\x18\x01 \x01(\x0b\x32\x33.temporal.api.schedule.v1.TriggerImmediatelyRequest\x12\x43\n\x10\x62\x61\x63kfill_request\x18\x02 \x03(\x0b\x32).temporal.api.schedule.v1.BackfillRequest\x12\r\n\x05pause\x18\x03 \x01(\t\x12\x0f\n\x07unpause\x18\x04 \x01(\t"\xd6\x03\n\x0cScheduleInfo\x12\x14\n\x0c\x61\x63tion_count\x18\x01 \x01(\x03\x12\x1d\n\x15missed_catchup_window\x18\x02 \x01(\x03\x12\x17\n\x0foverlap_skipped\x18\x03 \x01(\x03\x12\x16\n\x0e\x62uffer_dropped\x18\n \x01(\x03\x12\x13\n\x0b\x62uffer_size\x18\x0b \x01(\x03\x12\x44\n\x11running_workflows\x18\t \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x46\n\x0erecent_actions\x18\x04 \x03(\x0b\x32..temporal.api.schedule.v1.ScheduleActionResult\x12\x37\n\x13\x66uture_action_times\x18\x05 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12"\n\x16invalid_schedule_error\x18\x08 \x01(\tB\x02\x18\x01"\xf0\x01\n\x08Schedule\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleSpec\x12\x38\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32(.temporal.api.schedule.v1.ScheduleAction\x12<\n\x08policies\x18\x03 \x01(\x0b\x32*.temporal.api.schedule.v1.SchedulePolicies\x12\x36\n\x05state\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.ScheduleState"\xa5\x02\n\x10ScheduleListInfo\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleSpec\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\r\n\x05notes\x18\x03 \x01(\t\x12\x0e\n\x06paused\x18\x04 \x01(\x08\x12\x46\n\x0erecent_actions\x18\x05 \x03(\x0b\x32..temporal.api.schedule.v1.ScheduleActionResult\x12\x37\n\x13\x66uture_action_times\x18\x06 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"\xd3\x01\n\x11ScheduleListEntry\x12\x13\n\x0bschedule_id\x18\x01 \x01(\t\x12*\n\x04memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x03 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x38\n\x04info\x18\x04 \x01(\x0b\x32*.temporal.api.schedule.v1.ScheduleListInfoB\x93\x01\n\x1bio.temporal.api.schedule.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/schedule/v1;schedule\xaa\x02\x1aTemporalio.Api.Schedule.V1\xea\x02\x1dTemporalio::Api::Schedule::V1b\x06proto3' ) @@ -245,25 +245,25 @@ _SCHEDULESPEC._serialized_start = 949 _SCHEDULESPEC._serialized_end = 1519 _SCHEDULEPOLICIES._serialized_start = 1522 - _SCHEDULEPOLICIES._serialized_end = 1687 - _SCHEDULEACTION._serialized_start = 1689 - _SCHEDULEACTION._serialized_end = 1793 - _SCHEDULEACTIONRESULT._serialized_start = 1796 - _SCHEDULEACTIONRESULT._serialized_end = 1992 - _SCHEDULESTATE._serialized_start = 1994 - _SCHEDULESTATE._serialized_end = 2092 - _TRIGGERIMMEDIATELYREQUEST._serialized_start = 2094 - _TRIGGERIMMEDIATELYREQUEST._serialized_end = 2191 - _BACKFILLREQUEST._serialized_start = 2194 - _BACKFILLREQUEST._serialized_end = 2375 - _SCHEDULEPATCH._serialized_start = 2378 - _SCHEDULEPATCH._serialized_end = 2576 - _SCHEDULEINFO._serialized_start = 2579 - _SCHEDULEINFO._serialized_end = 3049 - _SCHEDULE._serialized_start = 3052 - _SCHEDULE._serialized_end = 3292 - _SCHEDULELISTINFO._serialized_start = 3295 - _SCHEDULELISTINFO._serialized_end = 3588 - _SCHEDULELISTENTRY._serialized_start = 3591 - _SCHEDULELISTENTRY._serialized_end = 3802 + _SCHEDULEPOLICIES._serialized_end = 1722 + _SCHEDULEACTION._serialized_start = 1724 + _SCHEDULEACTION._serialized_end = 1828 + _SCHEDULEACTIONRESULT._serialized_start = 1831 + _SCHEDULEACTIONRESULT._serialized_end = 2027 + _SCHEDULESTATE._serialized_start = 2029 + _SCHEDULESTATE._serialized_end = 2127 + _TRIGGERIMMEDIATELYREQUEST._serialized_start = 2129 + _TRIGGERIMMEDIATELYREQUEST._serialized_end = 2226 + _BACKFILLREQUEST._serialized_start = 2229 + _BACKFILLREQUEST._serialized_end = 2410 + _SCHEDULEPATCH._serialized_start = 2413 + _SCHEDULEPATCH._serialized_end = 2611 + _SCHEDULEINFO._serialized_start = 2614 + _SCHEDULEINFO._serialized_end = 3084 + _SCHEDULE._serialized_start = 3087 + _SCHEDULE._serialized_end = 3327 + _SCHEDULELISTINFO._serialized_start = 3330 + _SCHEDULELISTINFO._serialized_end = 3623 + _SCHEDULELISTENTRY._serialized_start = 3626 + _SCHEDULELISTENTRY._serialized_end = 3837 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/schedule/v1/message_pb2.pyi b/temporalio/api/schedule/v1/message_pb2.pyi index 0d1250859..38d9d33ad 100644 --- a/temporalio/api/schedule/v1/message_pb2.pyi +++ b/temporalio/api/schedule/v1/message_pb2.pyi @@ -494,6 +494,7 @@ class SchedulePolicies(google.protobuf.message.Message): OVERLAP_POLICY_FIELD_NUMBER: builtins.int CATCHUP_WINDOW_FIELD_NUMBER: builtins.int PAUSE_ON_FAILURE_FIELD_NUMBER: builtins.int + KEEP_ORIGINAL_WORKFLOW_ID_FIELD_NUMBER: builtins.int overlap_policy: temporalio.api.enums.v1.schedule_pb2.ScheduleOverlapPolicy.ValueType """Policy for overlaps. Note that this can be changed after a schedule has taken some actions, @@ -513,12 +514,17 @@ class SchedulePolicies(google.protobuf.message.Message): This applies after retry policies: the full chain of retries must fail to trigger a pause here. """ + keep_original_workflow_id: builtins.bool + """If true, and the action would start a workflow, a timestamp will not be + appended to the scheduled workflow id. + """ def __init__( self, *, overlap_policy: temporalio.api.enums.v1.schedule_pb2.ScheduleOverlapPolicy.ValueType = ..., catchup_window: google.protobuf.duration_pb2.Duration | None = ..., pause_on_failure: builtins.bool = ..., + keep_original_workflow_id: builtins.bool = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal["catchup_window", b"catchup_window"] @@ -528,6 +534,8 @@ class SchedulePolicies(google.protobuf.message.Message): field_name: typing_extensions.Literal[ "catchup_window", b"catchup_window", + "keep_original_workflow_id", + b"keep_original_workflow_id", "overlap_policy", b"overlap_policy", "pause_on_failure", diff --git a/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi b/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi index 6dfe72b55..d116daa51 100644 --- a/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi +++ b/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi @@ -38,7 +38,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class WorkflowMetadata(google.protobuf.message.Message): - """The name of the query to retrieve this information is `__temporal_getWorkflowMetadata`.""" + """The name of the query to retrieve this information is `__temporal_workflow_metadata`.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor diff --git a/temporalio/api/taskqueue/v1/__init__.py b/temporalio/api/taskqueue/v1/__init__.py index ba4e4aa67..a1562cf5d 100644 --- a/temporalio/api/taskqueue/v1/__init__.py +++ b/temporalio/api/taskqueue/v1/__init__.py @@ -1,7 +1,10 @@ from .message_pb2 import ( + BuildIdAssignmentRule, BuildIdReachability, + CompatibleBuildIdRedirectRule, CompatibleVersionSet, PollerInfo, + RampByPercentage, StickyExecutionAttributes, TaskIdBlock, TaskQueue, @@ -9,12 +12,20 @@ TaskQueuePartitionMetadata, TaskQueueReachability, TaskQueueStatus, + TaskQueueTypeInfo, + TaskQueueVersionInfo, + TaskQueueVersionSelection, + TimestampedBuildIdAssignmentRule, + TimestampedCompatibleBuildIdRedirectRule, ) __all__ = [ + "BuildIdAssignmentRule", "BuildIdReachability", + "CompatibleBuildIdRedirectRule", "CompatibleVersionSet", "PollerInfo", + "RampByPercentage", "StickyExecutionAttributes", "TaskIdBlock", "TaskQueue", @@ -22,4 +33,9 @@ "TaskQueuePartitionMetadata", "TaskQueueReachability", "TaskQueueStatus", + "TaskQueueTypeInfo", + "TaskQueueVersionInfo", + "TaskQueueVersionSelection", + "TimestampedBuildIdAssignmentRule", + "TimestampedCompatibleBuildIdRedirectRule", ] diff --git a/temporalio/api/taskqueue/v1/message_pb2.py b/temporalio/api/taskqueue/v1/message_pb2.py index 3e5210d08..86a5a815a 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.py +++ b/temporalio/api/taskqueue/v1/message_pb2.py @@ -25,12 +25,20 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t"\xc5\x01\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12V\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachabilityB\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3' + b'\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue"W\n\x19TaskQueueVersionSelection\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\x12\x13\n\x0bunversioned\x18\x02 \x01(\x08\x12\x12\n\nall_active\x18\x03 \x01(\x08"\x95\x02\n\x14TaskQueueVersionInfo\x12R\n\ntypes_info\x18\x01 \x03(\x0b\x32>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry\x12I\n\x11task_reachability\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.BuildIdTaskReachability\x1a^\n\x0eTypesInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueTypeInfo:\x02\x38\x01"K\n\x11TaskQueueTypeInfo\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t"\xc5\x01\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12V\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachability"+\n\x10RampByPercentage\x12\x17\n\x0framp_percentage\x18\x01 \x01(\x02"\x80\x01\n\x15\x42uildIdAssignmentRule\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\x46\n\x0fpercentage_ramp\x18\x03 \x01(\x0b\x32+.temporal.api.taskqueue.v1.RampByPercentageH\x00\x42\x06\n\x04ramp"Q\n\x1d\x43ompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x12\x17\n\x0ftarget_build_id\x18\x02 \x01(\t"\x93\x01\n TimestampedBuildIdAssignmentRule\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa3\x01\n(TimestampedCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3' ) _TASKQUEUE = DESCRIPTOR.message_types_by_name["TaskQueue"] _TASKQUEUEMETADATA = DESCRIPTOR.message_types_by_name["TaskQueueMetadata"] +_TASKQUEUEVERSIONSELECTION = DESCRIPTOR.message_types_by_name[ + "TaskQueueVersionSelection" +] +_TASKQUEUEVERSIONINFO = DESCRIPTOR.message_types_by_name["TaskQueueVersionInfo"] +_TASKQUEUEVERSIONINFO_TYPESINFOENTRY = _TASKQUEUEVERSIONINFO.nested_types_by_name[ + "TypesInfoEntry" +] +_TASKQUEUETYPEINFO = DESCRIPTOR.message_types_by_name["TaskQueueTypeInfo"] _TASKQUEUESTATUS = DESCRIPTOR.message_types_by_name["TaskQueueStatus"] _TASKIDBLOCK = DESCRIPTOR.message_types_by_name["TaskIdBlock"] _TASKQUEUEPARTITIONMETADATA = DESCRIPTOR.message_types_by_name[ @@ -43,6 +51,17 @@ _COMPATIBLEVERSIONSET = DESCRIPTOR.message_types_by_name["CompatibleVersionSet"] _TASKQUEUEREACHABILITY = DESCRIPTOR.message_types_by_name["TaskQueueReachability"] _BUILDIDREACHABILITY = DESCRIPTOR.message_types_by_name["BuildIdReachability"] +_RAMPBYPERCENTAGE = DESCRIPTOR.message_types_by_name["RampByPercentage"] +_BUILDIDASSIGNMENTRULE = DESCRIPTOR.message_types_by_name["BuildIdAssignmentRule"] +_COMPATIBLEBUILDIDREDIRECTRULE = DESCRIPTOR.message_types_by_name[ + "CompatibleBuildIdRedirectRule" +] +_TIMESTAMPEDBUILDIDASSIGNMENTRULE = DESCRIPTOR.message_types_by_name[ + "TimestampedBuildIdAssignmentRule" +] +_TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE = DESCRIPTOR.message_types_by_name[ + "TimestampedCompatibleBuildIdRedirectRule" +] TaskQueue = _reflection.GeneratedProtocolMessageType( "TaskQueue", (_message.Message,), @@ -65,6 +84,49 @@ ) _sym_db.RegisterMessage(TaskQueueMetadata) +TaskQueueVersionSelection = _reflection.GeneratedProtocolMessageType( + "TaskQueueVersionSelection", + (_message.Message,), + { + "DESCRIPTOR": _TASKQUEUEVERSIONSELECTION, + "__module__": "temporal.api.taskqueue.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionSelection) + }, +) +_sym_db.RegisterMessage(TaskQueueVersionSelection) + +TaskQueueVersionInfo = _reflection.GeneratedProtocolMessageType( + "TaskQueueVersionInfo", + (_message.Message,), + { + "TypesInfoEntry": _reflection.GeneratedProtocolMessageType( + "TypesInfoEntry", + (_message.Message,), + { + "DESCRIPTOR": _TASKQUEUEVERSIONINFO_TYPESINFOENTRY, + "__module__": "temporal.api.taskqueue.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry) + }, + ), + "DESCRIPTOR": _TASKQUEUEVERSIONINFO, + "__module__": "temporal.api.taskqueue.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionInfo) + }, +) +_sym_db.RegisterMessage(TaskQueueVersionInfo) +_sym_db.RegisterMessage(TaskQueueVersionInfo.TypesInfoEntry) + +TaskQueueTypeInfo = _reflection.GeneratedProtocolMessageType( + "TaskQueueTypeInfo", + (_message.Message,), + { + "DESCRIPTOR": _TASKQUEUETYPEINFO, + "__module__": "temporal.api.taskqueue.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueTypeInfo) + }, +) +_sym_db.RegisterMessage(TaskQueueTypeInfo) + TaskQueueStatus = _reflection.GeneratedProtocolMessageType( "TaskQueueStatus", (_message.Message,), @@ -153,27 +215,102 @@ ) _sym_db.RegisterMessage(BuildIdReachability) +RampByPercentage = _reflection.GeneratedProtocolMessageType( + "RampByPercentage", + (_message.Message,), + { + "DESCRIPTOR": _RAMPBYPERCENTAGE, + "__module__": "temporal.api.taskqueue.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.RampByPercentage) + }, +) +_sym_db.RegisterMessage(RampByPercentage) + +BuildIdAssignmentRule = _reflection.GeneratedProtocolMessageType( + "BuildIdAssignmentRule", + (_message.Message,), + { + "DESCRIPTOR": _BUILDIDASSIGNMENTRULE, + "__module__": "temporal.api.taskqueue.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.BuildIdAssignmentRule) + }, +) +_sym_db.RegisterMessage(BuildIdAssignmentRule) + +CompatibleBuildIdRedirectRule = _reflection.GeneratedProtocolMessageType( + "CompatibleBuildIdRedirectRule", + (_message.Message,), + { + "DESCRIPTOR": _COMPATIBLEBUILDIDREDIRECTRULE, + "__module__": "temporal.api.taskqueue.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule) + }, +) +_sym_db.RegisterMessage(CompatibleBuildIdRedirectRule) + +TimestampedBuildIdAssignmentRule = _reflection.GeneratedProtocolMessageType( + "TimestampedBuildIdAssignmentRule", + (_message.Message,), + { + "DESCRIPTOR": _TIMESTAMPEDBUILDIDASSIGNMENTRULE, + "__module__": "temporal.api.taskqueue.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule) + }, +) +_sym_db.RegisterMessage(TimestampedBuildIdAssignmentRule) + +TimestampedCompatibleBuildIdRedirectRule = _reflection.GeneratedProtocolMessageType( + "TimestampedCompatibleBuildIdRedirectRule", + (_message.Message,), + { + "DESCRIPTOR": _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE, + "__module__": "temporal.api.taskqueue.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule) + }, +) +_sym_db.RegisterMessage(TimestampedCompatibleBuildIdRedirectRule) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\034io.temporal.api.taskqueue.v1B\014MessageProtoP\001Z)go.temporal.io/api/taskqueue/v1;taskqueue\252\002\033Temporalio.Api.TaskQueue.V1\352\002\036Temporalio::Api::TaskQueue::V1" + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._options = None + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_options = b"8\001" _TASKQUEUE._serialized_start = 245 _TASKQUEUE._serialized_end = 343 _TASKQUEUEMETADATA._serialized_start = 345 _TASKQUEUEMETADATA._serialized_end = 424 - _TASKQUEUESTATUS._serialized_start = 427 - _TASKQUEUESTATUS._serialized_end = 599 - _TASKIDBLOCK._serialized_start = 601 - _TASKIDBLOCK._serialized_end = 648 - _TASKQUEUEPARTITIONMETADATA._serialized_start = 650 - _TASKQUEUEPARTITIONMETADATA._serialized_end = 716 - _POLLERINFO._serialized_start = 719 - _POLLERINFO._serialized_end = 916 - _STICKYEXECUTIONATTRIBUTES._serialized_start = 919 - _STICKYEXECUTIONATTRIBUTES._serialized_end = 1073 - _COMPATIBLEVERSIONSET._serialized_start = 1075 - _COMPATIBLEVERSIONSET._serialized_end = 1116 - _TASKQUEUEREACHABILITY._serialized_start = 1118 - _TASKQUEUEREACHABILITY._serialized_end = 1224 - _BUILDIDREACHABILITY._serialized_start = 1226 - _BUILDIDREACHABILITY._serialized_end = 1348 + _TASKQUEUEVERSIONSELECTION._serialized_start = 426 + _TASKQUEUEVERSIONSELECTION._serialized_end = 513 + _TASKQUEUEVERSIONINFO._serialized_start = 516 + _TASKQUEUEVERSIONINFO._serialized_end = 793 + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_start = 699 + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_end = 793 + _TASKQUEUETYPEINFO._serialized_start = 795 + _TASKQUEUETYPEINFO._serialized_end = 870 + _TASKQUEUESTATUS._serialized_start = 873 + _TASKQUEUESTATUS._serialized_end = 1045 + _TASKIDBLOCK._serialized_start = 1047 + _TASKIDBLOCK._serialized_end = 1094 + _TASKQUEUEPARTITIONMETADATA._serialized_start = 1096 + _TASKQUEUEPARTITIONMETADATA._serialized_end = 1162 + _POLLERINFO._serialized_start = 1165 + _POLLERINFO._serialized_end = 1362 + _STICKYEXECUTIONATTRIBUTES._serialized_start = 1365 + _STICKYEXECUTIONATTRIBUTES._serialized_end = 1519 + _COMPATIBLEVERSIONSET._serialized_start = 1521 + _COMPATIBLEVERSIONSET._serialized_end = 1562 + _TASKQUEUEREACHABILITY._serialized_start = 1564 + _TASKQUEUEREACHABILITY._serialized_end = 1670 + _BUILDIDREACHABILITY._serialized_start = 1672 + _BUILDIDREACHABILITY._serialized_end = 1794 + _RAMPBYPERCENTAGE._serialized_start = 1796 + _RAMPBYPERCENTAGE._serialized_end = 1839 + _BUILDIDASSIGNMENTRULE._serialized_start = 1842 + _BUILDIDASSIGNMENTRULE._serialized_end = 1970 + _COMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 1972 + _COMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2053 + _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_start = 2056 + _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_end = 2203 + _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2206 + _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2369 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/taskqueue/v1/message_pb2.pyi b/temporalio/api/taskqueue/v1/message_pb2.pyi index bdc7ed9ec..eb1ea3329 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.pyi +++ b/temporalio/api/taskqueue/v1/message_pb2.pyi @@ -102,7 +102,122 @@ class TaskQueueMetadata(google.protobuf.message.Message): global___TaskQueueMetadata = TaskQueueMetadata +class TaskQueueVersionSelection(google.protobuf.message.Message): + """Used for specifying versions the caller is interested in.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BUILD_IDS_FIELD_NUMBER: builtins.int + UNVERSIONED_FIELD_NUMBER: builtins.int + ALL_ACTIVE_FIELD_NUMBER: builtins.int + @property + def build_ids( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Include specific Build IDs.""" + unversioned: builtins.bool + """Include the unversioned queue.""" + all_active: builtins.bool + """Include all active versions. A version is considered active if it has had new + tasks or polls recently. + """ + def __init__( + self, + *, + build_ids: collections.abc.Iterable[builtins.str] | None = ..., + unversioned: builtins.bool = ..., + all_active: builtins.bool = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "all_active", + b"all_active", + "build_ids", + b"build_ids", + "unversioned", + b"unversioned", + ], + ) -> None: ... + +global___TaskQueueVersionSelection = TaskQueueVersionSelection + +class TaskQueueVersionInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class TypesInfoEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.int + @property + def value(self) -> global___TaskQueueTypeInfo: ... + def __init__( + self, + *, + key: builtins.int = ..., + value: global___TaskQueueTypeInfo | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... + + TYPES_INFO_FIELD_NUMBER: builtins.int + TASK_REACHABILITY_FIELD_NUMBER: builtins.int + @property + def types_info( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.int, global___TaskQueueTypeInfo + ]: + """Task Queue info per Task Type. Key is the numerical value of the temporalio.api.enums.v1.TaskQueueType enum.""" + task_reachability: temporalio.api.enums.v1.task_queue_pb2.BuildIdTaskReachability.ValueType + def __init__( + self, + *, + types_info: collections.abc.Mapping[builtins.int, global___TaskQueueTypeInfo] + | None = ..., + task_reachability: temporalio.api.enums.v1.task_queue_pb2.BuildIdTaskReachability.ValueType = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "task_reachability", b"task_reachability", "types_info", b"types_info" + ], + ) -> None: ... + +global___TaskQueueVersionInfo = TaskQueueVersionInfo + +class TaskQueueTypeInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLLERS_FIELD_NUMBER: builtins.int + @property + def pollers( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___PollerInfo + ]: + """Unversioned workers (with `useVersioning=false`) are reported in unversioned result even if they set a Build ID.""" + def __init__( + self, + *, + pollers: collections.abc.Iterable[global___PollerInfo] | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["pollers", b"pollers"] + ) -> None: ... + +global___TaskQueueTypeInfo = TaskQueueTypeInfo + class TaskQueueStatus(google.protobuf.message.Message): + """Deprecated. Use `InternalTaskQueueStatus`. This is kept until `DescribeTaskQueue` supports legacy behavior.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor BACKLOG_COUNT_HINT_FIELD_NUMBER: builtins.int @@ -377,3 +492,208 @@ class BuildIdReachability(google.protobuf.message.Message): ) -> None: ... global___BuildIdReachability = BuildIdReachability + +class RampByPercentage(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RAMP_PERCENTAGE_FIELD_NUMBER: builtins.int + ramp_percentage: builtins.float + """Acceptable range is [0,100).""" + def __init__( + self, + *, + ramp_percentage: builtins.float = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal["ramp_percentage", b"ramp_percentage"], + ) -> None: ... + +global___RampByPercentage = RampByPercentage + +class BuildIdAssignmentRule(google.protobuf.message.Message): + """These rules assign a Build ID to Unassigned Workflow Executions and + Activities. + + Specifically, assignment rules are applied to the following Executions or + Activities when they are scheduled in a Task Queue: + - Generally, any new Workflow Execution, except: + - When A Child Workflow or a Continue-As-New Execution inherits the + Build ID from its parent/previous execution by setting the + `inherit_build_id` flag. + - Workflow Executions started Eagerly are assigned to the Build ID of + the Starter. + - An Activity that is scheduled on a Task Queue different from the one + their Workflow runs on, unless the `use_workflow_build_id` flag is set. + + In absence of (applicable) redirect rules (`CompatibleBuildIdRedirectRule`s) + the task will be dispatched to Workers of the Build ID determined by the + assignment rules. Otherwise, the final Build ID will be determined by the + redirect rules. + + When using Worker Versioning, in the steady state, for a given Task Queue, + there should typically be exactly one assignment rule to send all Unassigned + tasks to the latest Build ID. Existence of at least one such "unconditional" + rule at all times is enforce by the system, unless the `force` flag is used + by the user when replacing/deleting these rules (for exceptional cases). + + During a deployment, one or more additional rules can be added to assign a + subset of the tasks to a new Build ID based on a "ramp percentage". + + When there are multiple assignment rules for a Task Queue, the rules are + evaluated in order, starting from index 0. The first applicable rule will be + applied and the rest will be ignored. + + In the event that no assignment rule is applicable on a task (or the Task + Queue is simply not versioned), the tasks will be sent to unversioned + workers, if available. Otherwise, they remain Unassigned, and will be + retried for assignment, or dispatch to unversioned workers, at a later time + depending on the availability of workers. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TARGET_BUILD_ID_FIELD_NUMBER: builtins.int + PERCENTAGE_RAMP_FIELD_NUMBER: builtins.int + target_build_id: builtins.str + @property + def percentage_ramp(self) -> global___RampByPercentage: + """This ramp is useful for gradual Blue/Green deployments (and similar) + where you want to send a certain portion of the traffic to the target + Build ID. + """ + def __init__( + self, + *, + target_build_id: builtins.str = ..., + percentage_ramp: global___RampByPercentage | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "percentage_ramp", b"percentage_ramp", "ramp", b"ramp" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "percentage_ramp", + b"percentage_ramp", + "ramp", + b"ramp", + "target_build_id", + b"target_build_id", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["ramp", b"ramp"] + ) -> typing_extensions.Literal["percentage_ramp"] | None: ... + +global___BuildIdAssignmentRule = BuildIdAssignmentRule + +class CompatibleBuildIdRedirectRule(google.protobuf.message.Message): + """These rules apply to tasks assigned to a particular Build ID + (`source_build_id`) to redirect them to another *compatible* Build ID + (`target_build_id`). + + It is user's responsibility to ensure that the target Build ID is compatible + with the source Build ID (e.g. by using the Patching API). + + Most deployments are not expected to need these rules, however following + situations can greatly benefit from redirects: + - Need to move long-running Workflow Executions from an old Build ID to a + newer one. + - Need to hotfix some broken or stuck Workflow Executions. + + In steady state, redirect rules are beneficial when dealing with old + Executions ran on now-decommissioned Build IDs: + - To redirecting the Workflow Queries to the current (compatible) Build ID. + - To be able to Reset an old Execution so it can run on the current + (compatible) Build ID. + + Redirect rules can be chained, but only the last rule in the chain can have + a ramp. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SOURCE_BUILD_ID_FIELD_NUMBER: builtins.int + TARGET_BUILD_ID_FIELD_NUMBER: builtins.int + source_build_id: builtins.str + target_build_id: builtins.str + def __init__( + self, + *, + source_build_id: builtins.str = ..., + target_build_id: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "source_build_id", b"source_build_id", "target_build_id", b"target_build_id" + ], + ) -> None: ... + +global___CompatibleBuildIdRedirectRule = CompatibleBuildIdRedirectRule + +class TimestampedBuildIdAssignmentRule(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RULE_FIELD_NUMBER: builtins.int + CREATE_TIME_FIELD_NUMBER: builtins.int + @property + def rule(self) -> global___BuildIdAssignmentRule: ... + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + rule: global___BuildIdAssignmentRule | None = ..., + create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "create_time", b"create_time", "rule", b"rule" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "create_time", b"create_time", "rule", b"rule" + ], + ) -> None: ... + +global___TimestampedBuildIdAssignmentRule = TimestampedBuildIdAssignmentRule + +class TimestampedCompatibleBuildIdRedirectRule(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RULE_FIELD_NUMBER: builtins.int + CREATE_TIME_FIELD_NUMBER: builtins.int + @property + def rule(self) -> global___CompatibleBuildIdRedirectRule: ... + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + rule: global___CompatibleBuildIdRedirectRule | None = ..., + create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "create_time", b"create_time", "rule", b"rule" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "create_time", b"create_time", "rule", b"rule" + ], + ) -> None: ... + +global___TimestampedCompatibleBuildIdRedirectRule = ( + TimestampedCompatibleBuildIdRedirectRule +) diff --git a/temporalio/api/workflow/v1/__init__.py b/temporalio/api/workflow/v1/__init__.py index 1c1f32513..42a68eb32 100644 --- a/temporalio/api/workflow/v1/__init__.py +++ b/temporalio/api/workflow/v1/__init__.py @@ -1,7 +1,10 @@ from .message_pb2 import ( + CallbackInfo, NewWorkflowExecutionInfo, + NexusOperationCancellationInfo, PendingActivityInfo, PendingChildExecutionInfo, + PendingNexusOperationInfo, PendingWorkflowTaskInfo, ResetPointInfo, ResetPoints, @@ -10,9 +13,12 @@ ) __all__ = [ + "CallbackInfo", "NewWorkflowExecutionInfo", + "NexusOperationCancellationInfo", "PendingActivityInfo", "PendingChildExecutionInfo", + "PendingNexusOperationInfo", "PendingWorkflowTaskInfo", "ResetPointInfo", "ResetPoints", diff --git a/temporalio/api/workflow/v1/message_pb2.py b/temporalio/api/workflow/v1/message_pb2.py index e3e810933..3dd9dd96e 100644 --- a/temporalio/api/workflow/v1/message_pb2.py +++ b/temporalio/api/workflow/v1/message_pb2.py @@ -14,11 +14,15 @@ from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.enums.v1 import ( + common_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_common__pb2, +) from temporalio.api.enums.v1 import ( workflow_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_workflow__pb2, ) @@ -30,7 +34,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n&temporal/api/workflow/v1/message.proto\x12\x18temporal.api.workflow.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto"\xb0\x06\n\x15WorkflowExecutionInfo\x12<\n\texecution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x04type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12\x16\n\x0ehistory_length\x18\x06 \x01(\x03\x12\x1b\n\x13parent_namespace_id\x18\x07 \x01(\t\x12\x43\n\x10parent_execution\x18\x08 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x0e\x65xecution_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x04memo\x18\n \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0b \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12@\n\x11\x61uto_reset_points\x18\x0c \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12\x12\n\ntask_queue\x18\r \x01(\t\x12\x1e\n\x16state_transition_count\x18\x0e \x01(\x03\x12\x1a\n\x12history_size_bytes\x18\x0f \x01(\x03\x12T\n most_recent_worker_version_stamp\x18\x10 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x8d\x02\n\x17WorkflowExecutionConfig\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x1aworkflow_execution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\x1d\x64\x65\x66\x61ult_workflow_task_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration"\xba\x04\n\x13PendingActivityInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12:\n\x05state\x18\x03 \x01(\x0e\x32+.temporal.api.enums.v1.PendingActivityState\x12;\n\x11heartbeat_details\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x13last_heartbeat_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_started_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x07 \x01(\x05\x12\x18\n\x10maximum_attempts\x18\x08 \x01(\x05\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x0clast_failure\x18\x0b \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1c\n\x14last_worker_identity\x18\x0c \x01(\t"\xb9\x01\n\x19PendingChildExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x1a\n\x12workflow_type_name\x18\x03 \x01(\t\x12\x14\n\x0cinitiated_id\x18\x04 \x01(\x03\x12\x45\n\x13parent_close_policy\x18\x05 \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy"\x8d\x02\n\x17PendingWorkflowTaskInfo\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.PendingWorkflowTaskState\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17original_scheduled_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05"G\n\x0bResetPoints\x12\x38\n\x06points\x18\x01 \x03(\x0b\x32(.temporal.api.workflow.v1.ResetPointInfo"\xeb\x01\n\x0eResetPointInfo\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12(\n first_workflow_task_completed_id\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nresettable\x18\x06 \x01(\x08"\xcc\x05\n\x18NewWorkflowExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x18workflow_id_reuse_policy\x18\x08 \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\n \x01(\t\x12*\n\x04memo\x18\x0b \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0c \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\r \x01(\x0b\x32\x1e.temporal.api.common.v1.HeaderB\x93\x01\n\x1bio.temporal.api.workflow.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/workflow/v1;workflow\xaa\x02\x1aTemporalio.Api.Workflow.V1\xea\x02\x1dTemporalio::Api::Workflow::V1b\x06proto3' + b'\n&temporal/api/workflow/v1/message.proto\x12\x18temporal.api.workflow.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto"\xe1\x07\n\x15WorkflowExecutionInfo\x12<\n\texecution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x04type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12\x16\n\x0ehistory_length\x18\x06 \x01(\x03\x12\x1b\n\x13parent_namespace_id\x18\x07 \x01(\t\x12\x43\n\x10parent_execution\x18\x08 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x0e\x65xecution_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x04memo\x18\n \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0b \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12@\n\x11\x61uto_reset_points\x18\x0c \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12\x12\n\ntask_queue\x18\r \x01(\t\x12\x1e\n\x16state_transition_count\x18\x0e \x01(\x03\x12\x1a\n\x12history_size_bytes\x18\x0f \x01(\x03\x12T\n most_recent_worker_version_stamp\x18\x10 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12\x35\n\x12\x65xecution_duration\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x0eroot_execution\x18\x12 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11\x61ssigned_build_id\x18\x13 \x01(\t\x12\x1a\n\x12inherited_build_id\x18\x14 \x01(\t"\x8d\x02\n\x17WorkflowExecutionConfig\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x1aworkflow_execution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\x1d\x64\x65\x66\x61ult_workflow_task_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration"\x87\x06\n\x13PendingActivityInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12:\n\x05state\x18\x03 \x01(\x0e\x32+.temporal.api.enums.v1.PendingActivityState\x12;\n\x11heartbeat_details\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x13last_heartbeat_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_started_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x07 \x01(\x05\x12\x18\n\x10maximum_attempts\x18\x08 \x01(\x05\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x0clast_failure\x18\x0b \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1c\n\x14last_worker_identity\x18\x0c \x01(\t\x12\x37\n\x15use_workflow_build_id\x18\r \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12.\n$last_independently_assigned_build_id\x18\x0e \x01(\tH\x00\x12M\n\x19last_worker_version_stamp\x18\x0f \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x13\n\x11\x61ssigned_build_id"\xb9\x01\n\x19PendingChildExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x1a\n\x12workflow_type_name\x18\x03 \x01(\t\x12\x14\n\x0cinitiated_id\x18\x04 \x01(\x03\x12\x45\n\x13parent_close_policy\x18\x05 \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy"\x8d\x02\n\x17PendingWorkflowTaskInfo\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.PendingWorkflowTaskState\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17original_scheduled_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05"G\n\x0bResetPoints\x12\x38\n\x06points\x18\x01 \x03(\x0b\x32(.temporal.api.workflow.v1.ResetPointInfo"\xeb\x01\n\x0eResetPointInfo\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12(\n first_workflow_task_completed_id\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nresettable\x18\x06 \x01(\x08"\xcc\x05\n\x18NewWorkflowExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x18workflow_id_reuse_policy\x18\x08 \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\n \x01(\t\x12*\n\x04memo\x18\x0b \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0c \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\r \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xba\x04\n\x0c\x43\x61llbackInfo\x12\x32\n\x08\x63\x61llback\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Callback\x12?\n\x07trigger\x18\x02 \x01(\x0b\x32..temporal.api.workflow.v1.CallbackInfo.Trigger\x12\x35\n\x11registration_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32$.temporal.api.enums.v1.CallbackState\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x10\n\x0eWorkflowClosed\x1a\x66\n\x07Trigger\x12P\n\x0fworkflow_closed\x18\x01 \x01(\x0b\x32\x35.temporal.api.workflow.v1.CallbackInfo.WorkflowClosedH\x00\x42\t\n\x07variant"\xc1\x04\n\x19PendingNexusOperationInfo\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12\x14\n\x0coperation_id\x18\x04 \x01(\t\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0escheduled_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x05state\x18\x07 \x01(\x0e\x32\x31.temporal.api.enums.v1.PendingNexusOperationState\x12\x0f\n\x07\x61ttempt\x18\x08 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12S\n\x11\x63\x61ncellation_info\x18\x0c \x01(\x0b\x32\x38.temporal.api.workflow.v1.NexusOperationCancellationInfo"\xec\x02\n\x1eNexusOperationCancellationInfo\x12\x32\n\x0erequested_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x05state\x18\x02 \x01(\x0e\x32\x36.temporal.api.enums.v1.NexusOperationCancellationState\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x93\x01\n\x1bio.temporal.api.workflow.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/workflow/v1;workflow\xaa\x02\x1aTemporalio.Api.Workflow.V1\xea\x02\x1dTemporalio::Api::Workflow::V1b\x06proto3' ) @@ -44,6 +48,15 @@ _RESETPOINTS = DESCRIPTOR.message_types_by_name["ResetPoints"] _RESETPOINTINFO = DESCRIPTOR.message_types_by_name["ResetPointInfo"] _NEWWORKFLOWEXECUTIONINFO = DESCRIPTOR.message_types_by_name["NewWorkflowExecutionInfo"] +_CALLBACKINFO = DESCRIPTOR.message_types_by_name["CallbackInfo"] +_CALLBACKINFO_WORKFLOWCLOSED = _CALLBACKINFO.nested_types_by_name["WorkflowClosed"] +_CALLBACKINFO_TRIGGER = _CALLBACKINFO.nested_types_by_name["Trigger"] +_PENDINGNEXUSOPERATIONINFO = DESCRIPTOR.message_types_by_name[ + "PendingNexusOperationInfo" +] +_NEXUSOPERATIONCANCELLATIONINFO = DESCRIPTOR.message_types_by_name[ + "NexusOperationCancellationInfo" +] WorkflowExecutionInfo = _reflection.GeneratedProtocolMessageType( "WorkflowExecutionInfo", (_message.Message,), @@ -132,23 +145,86 @@ ) _sym_db.RegisterMessage(NewWorkflowExecutionInfo) +CallbackInfo = _reflection.GeneratedProtocolMessageType( + "CallbackInfo", + (_message.Message,), + { + "WorkflowClosed": _reflection.GeneratedProtocolMessageType( + "WorkflowClosed", + (_message.Message,), + { + "DESCRIPTOR": _CALLBACKINFO_WORKFLOWCLOSED, + "__module__": "temporal.api.workflow.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo.WorkflowClosed) + }, + ), + "Trigger": _reflection.GeneratedProtocolMessageType( + "Trigger", + (_message.Message,), + { + "DESCRIPTOR": _CALLBACKINFO_TRIGGER, + "__module__": "temporal.api.workflow.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo.Trigger) + }, + ), + "DESCRIPTOR": _CALLBACKINFO, + "__module__": "temporal.api.workflow.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo) + }, +) +_sym_db.RegisterMessage(CallbackInfo) +_sym_db.RegisterMessage(CallbackInfo.WorkflowClosed) +_sym_db.RegisterMessage(CallbackInfo.Trigger) + +PendingNexusOperationInfo = _reflection.GeneratedProtocolMessageType( + "PendingNexusOperationInfo", + (_message.Message,), + { + "DESCRIPTOR": _PENDINGNEXUSOPERATIONINFO, + "__module__": "temporal.api.workflow.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingNexusOperationInfo) + }, +) +_sym_db.RegisterMessage(PendingNexusOperationInfo) + +NexusOperationCancellationInfo = _reflection.GeneratedProtocolMessageType( + "NexusOperationCancellationInfo", + (_message.Message,), + { + "DESCRIPTOR": _NEXUSOPERATIONCANCELLATIONINFO, + "__module__": "temporal.api.workflow.v1.message_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.NexusOperationCancellationInfo) + }, +) +_sym_db.RegisterMessage(NexusOperationCancellationInfo) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\033io.temporal.api.workflow.v1B\014MessageProtoP\001Z'go.temporal.io/api/workflow/v1;workflow\252\002\032Temporalio.Api.Workflow.V1\352\002\035Temporalio::Api::Workflow::V1" - _WORKFLOWEXECUTIONINFO._serialized_start = 290 - _WORKFLOWEXECUTIONINFO._serialized_end = 1106 - _WORKFLOWEXECUTIONCONFIG._serialized_start = 1109 - _WORKFLOWEXECUTIONCONFIG._serialized_end = 1378 - _PENDINGACTIVITYINFO._serialized_start = 1381 - _PENDINGACTIVITYINFO._serialized_end = 1951 - _PENDINGCHILDEXECUTIONINFO._serialized_start = 1954 - _PENDINGCHILDEXECUTIONINFO._serialized_end = 2139 - _PENDINGWORKFLOWTASKINFO._serialized_start = 2142 - _PENDINGWORKFLOWTASKINFO._serialized_end = 2411 - _RESETPOINTS._serialized_start = 2413 - _RESETPOINTS._serialized_end = 2484 - _RESETPOINTINFO._serialized_start = 2487 - _RESETPOINTINFO._serialized_end = 2722 - _NEWWORKFLOWEXECUTIONINFO._serialized_start = 2725 - _NEWWORKFLOWEXECUTIONINFO._serialized_end = 3441 + _WORKFLOWEXECUTIONINFO._serialized_start = 355 + _WORKFLOWEXECUTIONINFO._serialized_end = 1348 + _WORKFLOWEXECUTIONCONFIG._serialized_start = 1351 + _WORKFLOWEXECUTIONCONFIG._serialized_end = 1620 + _PENDINGACTIVITYINFO._serialized_start = 1623 + _PENDINGACTIVITYINFO._serialized_end = 2398 + _PENDINGCHILDEXECUTIONINFO._serialized_start = 2401 + _PENDINGCHILDEXECUTIONINFO._serialized_end = 2586 + _PENDINGWORKFLOWTASKINFO._serialized_start = 2589 + _PENDINGWORKFLOWTASKINFO._serialized_end = 2858 + _RESETPOINTS._serialized_start = 2860 + _RESETPOINTS._serialized_end = 2931 + _RESETPOINTINFO._serialized_start = 2934 + _RESETPOINTINFO._serialized_end = 3169 + _NEWWORKFLOWEXECUTIONINFO._serialized_start = 3172 + _NEWWORKFLOWEXECUTIONINFO._serialized_end = 3888 + _CALLBACKINFO._serialized_start = 3891 + _CALLBACKINFO._serialized_end = 4461 + _CALLBACKINFO_WORKFLOWCLOSED._serialized_start = 4341 + _CALLBACKINFO_WORKFLOWCLOSED._serialized_end = 4357 + _CALLBACKINFO_TRIGGER._serialized_start = 4359 + _CALLBACKINFO_TRIGGER._serialized_end = 4461 + _PENDINGNEXUSOPERATIONINFO._serialized_start = 4464 + _PENDINGNEXUSOPERATIONINFO._serialized_end = 5041 + _NEXUSOPERATIONCANCELLATIONINFO._serialized_start = 5044 + _NEXUSOPERATIONCANCELLATIONINFO._serialized_end = 5408 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/workflow/v1/message_pb2.pyi b/temporalio/api/workflow/v1/message_pb2.pyi index c50966be8..8fda26228 100644 --- a/temporalio/api/workflow/v1/message_pb2.pyi +++ b/temporalio/api/workflow/v1/message_pb2.pyi @@ -27,11 +27,13 @@ import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.duration_pb2 +import google.protobuf.empty_pb2 import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 import sys import temporalio.api.common.v1.message_pb2 +import temporalio.api.enums.v1.common_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 import temporalio.api.taskqueue.v1.message_pb2 @@ -62,6 +64,10 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): STATE_TRANSITION_COUNT_FIELD_NUMBER: builtins.int HISTORY_SIZE_BYTES_FIELD_NUMBER: builtins.int MOST_RECENT_WORKER_VERSION_STAMP_FIELD_NUMBER: builtins.int + EXECUTION_DURATION_FIELD_NUMBER: builtins.int + ROOT_EXECUTION_FIELD_NUMBER: builtins.int + ASSIGNED_BUILD_ID_FIELD_NUMBER: builtins.int + INHERITED_BUILD_ID_FIELD_NUMBER: builtins.int @property def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property @@ -95,6 +101,43 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): self, ) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """If set, the most recent worker version stamp that appeared in a workflow task completion""" + @property + def execution_duration(self) -> google.protobuf.duration_pb2.Duration: + """Workflow execution duration is defined as difference between close time and execution time. + This field is only populated if the workflow is closed. + """ + @property + def root_execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Contains information about the root workflow execution. + The root workflow execution is defined as follows: + 1. A workflow without parent workflow is its own root workflow. + 2. A workflow that has a parent workflow has the same root workflow as its parent workflow. + Note: workflows continued as new or reseted may or may not have parents, check examples below. + + Examples: + Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3. + - The root workflow of all three workflows is W1. + Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3. + - The root workflow of all three workflows is W1. + Scenario 3: Workflow W1 continued as new W2. + - The root workflow of W1 is W1 and the root workflow of W2 is W2. + Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3 + - The root workflow of all three workflows is W1. + Scenario 5: Workflow W1 is reseted, creating W2. + - The root workflow of W1 is W1 and the root workflow of W2 is W2. + """ + assigned_build_id: builtins.str + """The currently assigned build ID for this execution. Presence of this value means worker versioning is used + for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules + when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled + again, the assigned build ID may change according to the latest versioning rules. + Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to + this execution. + """ + inherited_build_id: builtins.str + """Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead + of using the assignment rules. + """ def __init__( self, *, @@ -117,6 +160,11 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): history_size_bytes: builtins.int = ..., most_recent_worker_version_stamp: temporalio.api.common.v1.message_pb2.WorkerVersionStamp | None = ..., + execution_duration: google.protobuf.duration_pb2.Duration | None = ..., + root_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution + | None = ..., + assigned_build_id: builtins.str = ..., + inherited_build_id: builtins.str = ..., ) -> None: ... def HasField( self, @@ -127,6 +175,8 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): b"close_time", "execution", b"execution", + "execution_duration", + b"execution_duration", "execution_time", b"execution_time", "memo", @@ -135,6 +185,8 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): b"most_recent_worker_version_stamp", "parent_execution", b"parent_execution", + "root_execution", + b"root_execution", "search_attributes", b"search_attributes", "start_time", @@ -146,18 +198,24 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ + "assigned_build_id", + b"assigned_build_id", "auto_reset_points", b"auto_reset_points", "close_time", b"close_time", "execution", b"execution", + "execution_duration", + b"execution_duration", "execution_time", b"execution_time", "history_length", b"history_length", "history_size_bytes", b"history_size_bytes", + "inherited_build_id", + b"inherited_build_id", "memo", b"memo", "most_recent_worker_version_stamp", @@ -166,6 +224,8 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): b"parent_execution", "parent_namespace_id", b"parent_namespace_id", + "root_execution", + b"root_execution", "search_attributes", b"search_attributes", "start_time", @@ -253,6 +313,9 @@ class PendingActivityInfo(google.protobuf.message.Message): EXPIRATION_TIME_FIELD_NUMBER: builtins.int LAST_FAILURE_FIELD_NUMBER: builtins.int LAST_WORKER_IDENTITY_FIELD_NUMBER: builtins.int + USE_WORKFLOW_BUILD_ID_FIELD_NUMBER: builtins.int + LAST_INDEPENDENTLY_ASSIGNED_BUILD_ID_FIELD_NUMBER: builtins.int + LAST_WORKER_VERSION_STAMP_FIELD_NUMBER: builtins.int activity_id: builtins.str @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... @@ -272,6 +335,20 @@ class PendingActivityInfo(google.protobuf.message.Message): @property def last_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... last_worker_identity: builtins.str + @property + def use_workflow_build_id(self) -> google.protobuf.empty_pb2.Empty: + """When present, it means this activity is assigned to the build ID of its workflow.""" + last_independently_assigned_build_id: builtins.str + """This means the activity is independently versioned and not bound to the build ID of its workflow. + The activity will use the build id in this field instead. + If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning + rules. + """ + @property + def last_worker_version_stamp( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: + """The version stamp of the worker to whom this activity was most recently dispatched""" def __init__( self, *, @@ -287,12 +364,18 @@ class PendingActivityInfo(google.protobuf.message.Message): expiration_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., last_failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., last_worker_identity: builtins.str = ..., + use_workflow_build_id: google.protobuf.empty_pb2.Empty | None = ..., + last_independently_assigned_build_id: builtins.str = ..., + last_worker_version_stamp: temporalio.api.common.v1.message_pb2.WorkerVersionStamp + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ "activity_type", b"activity_type", + "assigned_build_id", + b"assigned_build_id", "expiration_time", b"expiration_time", "heartbeat_details", @@ -301,10 +384,16 @@ class PendingActivityInfo(google.protobuf.message.Message): b"last_failure", "last_heartbeat_time", b"last_heartbeat_time", + "last_independently_assigned_build_id", + b"last_independently_assigned_build_id", "last_started_time", b"last_started_time", + "last_worker_version_stamp", + b"last_worker_version_stamp", "scheduled_time", b"scheduled_time", + "use_workflow_build_id", + b"use_workflow_build_id", ], ) -> builtins.bool: ... def ClearField( @@ -314,6 +403,8 @@ class PendingActivityInfo(google.protobuf.message.Message): b"activity_id", "activity_type", b"activity_type", + "assigned_build_id", + b"assigned_build_id", "attempt", b"attempt", "expiration_time", @@ -324,18 +415,35 @@ class PendingActivityInfo(google.protobuf.message.Message): b"last_failure", "last_heartbeat_time", b"last_heartbeat_time", + "last_independently_assigned_build_id", + b"last_independently_assigned_build_id", "last_started_time", b"last_started_time", "last_worker_identity", b"last_worker_identity", + "last_worker_version_stamp", + b"last_worker_version_stamp", "maximum_attempts", b"maximum_attempts", "scheduled_time", b"scheduled_time", "state", b"state", + "use_workflow_build_id", + b"use_workflow_build_id", ], ) -> None: ... + def WhichOneof( + self, + oneof_group: typing_extensions.Literal[ + "assigned_build_id", b"assigned_build_id" + ], + ) -> ( + typing_extensions.Literal[ + "use_workflow_build_id", "last_independently_assigned_build_id" + ] + | None + ): ... global___PendingActivityInfo = PendingActivityInfo @@ -660,3 +768,326 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): ) -> None: ... global___NewWorkflowExecutionInfo = NewWorkflowExecutionInfo + +class CallbackInfo(google.protobuf.message.Message): + """CallbackInfo contains the state of an attached workflow callback.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class WorkflowClosed(google.protobuf.message.Message): + """Trigger for when the workflow is closed.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + + class Trigger(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WORKFLOW_CLOSED_FIELD_NUMBER: builtins.int + @property + def workflow_closed(self) -> global___CallbackInfo.WorkflowClosed: ... + def __init__( + self, + *, + workflow_closed: global___CallbackInfo.WorkflowClosed | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "variant", b"variant", "workflow_closed", b"workflow_closed" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "variant", b"variant", "workflow_closed", b"workflow_closed" + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["variant", b"variant"] + ) -> typing_extensions.Literal["workflow_closed"] | None: ... + + CALLBACK_FIELD_NUMBER: builtins.int + TRIGGER_FIELD_NUMBER: builtins.int + REGISTRATION_TIME_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + ATTEMPT_FIELD_NUMBER: builtins.int + LAST_ATTEMPT_COMPLETE_TIME_FIELD_NUMBER: builtins.int + LAST_ATTEMPT_FAILURE_FIELD_NUMBER: builtins.int + NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int + @property + def callback(self) -> temporalio.api.common.v1.message_pb2.Callback: + """Information on how this callback should be invoked (e.g. its URL and type).""" + @property + def trigger(self) -> global___CallbackInfo.Trigger: + """Trigger for this callback.""" + @property + def registration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the callback was registered.""" + state: temporalio.api.enums.v1.common_pb2.CallbackState.ValueType + attempt: builtins.int + """The number of attempts made to deliver the callback. + This number represents a minimum bound since the attempt is incremented after the callback request completes. + """ + @property + def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the last attempt completed.""" + @property + def last_attempt_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """The last attempt's failure, if any.""" + @property + def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the next attempt is scheduled.""" + def __init__( + self, + *, + callback: temporalio.api.common.v1.message_pb2.Callback | None = ..., + trigger: global___CallbackInfo.Trigger | None = ..., + registration_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + state: temporalio.api.enums.v1.common_pb2.CallbackState.ValueType = ..., + attempt: builtins.int = ..., + last_attempt_complete_time: google.protobuf.timestamp_pb2.Timestamp + | None = ..., + last_attempt_failure: temporalio.api.failure.v1.message_pb2.Failure + | None = ..., + next_attempt_schedule_time: google.protobuf.timestamp_pb2.Timestamp + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "callback", + b"callback", + "last_attempt_complete_time", + b"last_attempt_complete_time", + "last_attempt_failure", + b"last_attempt_failure", + "next_attempt_schedule_time", + b"next_attempt_schedule_time", + "registration_time", + b"registration_time", + "trigger", + b"trigger", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "attempt", + b"attempt", + "callback", + b"callback", + "last_attempt_complete_time", + b"last_attempt_complete_time", + "last_attempt_failure", + b"last_attempt_failure", + "next_attempt_schedule_time", + b"next_attempt_schedule_time", + "registration_time", + b"registration_time", + "state", + b"state", + "trigger", + b"trigger", + ], + ) -> None: ... + +global___CallbackInfo = CallbackInfo + +class PendingNexusOperationInfo(google.protobuf.message.Message): + """PendingNexusOperationInfo contains the state of a pending Nexus operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENDPOINT_FIELD_NUMBER: builtins.int + SERVICE_FIELD_NUMBER: builtins.int + OPERATION_FIELD_NUMBER: builtins.int + OPERATION_ID_FIELD_NUMBER: builtins.int + SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int + SCHEDULED_TIME_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + ATTEMPT_FIELD_NUMBER: builtins.int + LAST_ATTEMPT_COMPLETE_TIME_FIELD_NUMBER: builtins.int + LAST_ATTEMPT_FAILURE_FIELD_NUMBER: builtins.int + NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int + CANCELLATION_INFO_FIELD_NUMBER: builtins.int + endpoint: builtins.str + """Endpoint name. + Resolved to a URL via the cluster's endpoint registry. + """ + service: builtins.str + """Service name.""" + operation: builtins.str + """Operation name.""" + operation_id: builtins.str + """Operation ID. Only set for asynchronous operations after a successful StartOperation call.""" + @property + def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: + """Schedule-to-close timeout for this operation. + This is the only timeout settable by a workflow. + (-- api-linter: core::0140::prepositions=disabled + aip.dev/not-precedent: "to" is used to indicate interval. --) + """ + @property + def scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the operation was scheduled.""" + state: temporalio.api.enums.v1.common_pb2.PendingNexusOperationState.ValueType + attempt: builtins.int + """The number of attempts made to deliver the start operation request. + This number represents a minimum bound since the attempt is incremented after the request completes. + """ + @property + def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the last attempt completed.""" + @property + def last_attempt_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """The last attempt's failure, if any.""" + @property + def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the next attempt is scheduled.""" + @property + def cancellation_info(self) -> global___NexusOperationCancellationInfo: ... + def __init__( + self, + *, + endpoint: builtins.str = ..., + service: builtins.str = ..., + operation: builtins.str = ..., + operation_id: builtins.str = ..., + schedule_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ..., + scheduled_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + state: temporalio.api.enums.v1.common_pb2.PendingNexusOperationState.ValueType = ..., + attempt: builtins.int = ..., + last_attempt_complete_time: google.protobuf.timestamp_pb2.Timestamp + | None = ..., + last_attempt_failure: temporalio.api.failure.v1.message_pb2.Failure + | None = ..., + next_attempt_schedule_time: google.protobuf.timestamp_pb2.Timestamp + | None = ..., + cancellation_info: global___NexusOperationCancellationInfo | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "cancellation_info", + b"cancellation_info", + "last_attempt_complete_time", + b"last_attempt_complete_time", + "last_attempt_failure", + b"last_attempt_failure", + "next_attempt_schedule_time", + b"next_attempt_schedule_time", + "schedule_to_close_timeout", + b"schedule_to_close_timeout", + "scheduled_time", + b"scheduled_time", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "attempt", + b"attempt", + "cancellation_info", + b"cancellation_info", + "endpoint", + b"endpoint", + "last_attempt_complete_time", + b"last_attempt_complete_time", + "last_attempt_failure", + b"last_attempt_failure", + "next_attempt_schedule_time", + b"next_attempt_schedule_time", + "operation", + b"operation", + "operation_id", + b"operation_id", + "schedule_to_close_timeout", + b"schedule_to_close_timeout", + "scheduled_time", + b"scheduled_time", + "service", + b"service", + "state", + b"state", + ], + ) -> None: ... + +global___PendingNexusOperationInfo = PendingNexusOperationInfo + +class NexusOperationCancellationInfo(google.protobuf.message.Message): + """NexusOperationCancellationInfo contains the state of a nexus operation cancellation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REQUESTED_TIME_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + ATTEMPT_FIELD_NUMBER: builtins.int + LAST_ATTEMPT_COMPLETE_TIME_FIELD_NUMBER: builtins.int + LAST_ATTEMPT_FAILURE_FIELD_NUMBER: builtins.int + NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int + @property + def requested_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when cancellation was requested.""" + state: temporalio.api.enums.v1.common_pb2.NexusOperationCancellationState.ValueType + attempt: builtins.int + """The number of attempts made to deliver the cancel operation request. + This number represents a minimum bound since the attempt is incremented after the request completes. + """ + @property + def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the last attempt completed.""" + @property + def last_attempt_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """The last attempt's failure, if any.""" + @property + def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the next attempt is scheduled.""" + def __init__( + self, + *, + requested_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + state: temporalio.api.enums.v1.common_pb2.NexusOperationCancellationState.ValueType = ..., + attempt: builtins.int = ..., + last_attempt_complete_time: google.protobuf.timestamp_pb2.Timestamp + | None = ..., + last_attempt_failure: temporalio.api.failure.v1.message_pb2.Failure + | None = ..., + next_attempt_schedule_time: google.protobuf.timestamp_pb2.Timestamp + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "last_attempt_complete_time", + b"last_attempt_complete_time", + "last_attempt_failure", + b"last_attempt_failure", + "next_attempt_schedule_time", + b"next_attempt_schedule_time", + "requested_time", + b"requested_time", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "attempt", + b"attempt", + "last_attempt_complete_time", + b"last_attempt_complete_time", + "last_attempt_failure", + b"last_attempt_failure", + "next_attempt_schedule_time", + b"next_attempt_schedule_time", + "requested_time", + b"requested_time", + "state", + b"state", + ], + ) -> None: ... + +global___NexusOperationCancellationInfo = NexusOperationCancellationInfo diff --git a/temporalio/api/workflowservice/v1/__init__.py b/temporalio/api/workflowservice/v1/__init__.py index c4ba61c54..a0dafb3fe 100644 --- a/temporalio/api/workflowservice/v1/__init__.py +++ b/temporalio/api/workflowservice/v1/__init__.py @@ -19,6 +19,8 @@ DescribeTaskQueueResponse, DescribeWorkflowExecutionRequest, DescribeWorkflowExecutionResponse, + ExecuteMultiOperationRequest, + ExecuteMultiOperationResponse, GetClusterInfoRequest, GetClusterInfoResponse, GetSearchAttributesRequest, @@ -29,6 +31,8 @@ GetWorkerBuildIdCompatibilityResponse, GetWorkerTaskReachabilityRequest, GetWorkerTaskReachabilityResponse, + GetWorkerVersioningRulesRequest, + GetWorkerVersioningRulesResponse, GetWorkflowExecutionHistoryRequest, GetWorkflowExecutionHistoryResponse, GetWorkflowExecutionHistoryReverseRequest, @@ -55,6 +59,8 @@ PatchScheduleResponse, PollActivityTaskQueueRequest, PollActivityTaskQueueResponse, + PollNexusTaskQueueRequest, + PollNexusTaskQueueResponse, PollWorkflowExecutionUpdateRequest, PollWorkflowExecutionUpdateResponse, PollWorkflowTaskQueueRequest, @@ -85,6 +91,10 @@ RespondActivityTaskFailedByIdResponse, RespondActivityTaskFailedRequest, RespondActivityTaskFailedResponse, + RespondNexusTaskCompletedRequest, + RespondNexusTaskCompletedResponse, + RespondNexusTaskFailedRequest, + RespondNexusTaskFailedResponse, RespondQueryTaskCompletedRequest, RespondQueryTaskCompletedResponse, RespondWorkflowTaskCompletedRequest, @@ -111,6 +121,8 @@ UpdateScheduleResponse, UpdateWorkerBuildIdCompatibilityRequest, UpdateWorkerBuildIdCompatibilityResponse, + UpdateWorkerVersioningRulesRequest, + UpdateWorkerVersioningRulesResponse, UpdateWorkflowExecutionRequest, UpdateWorkflowExecutionResponse, ) @@ -136,6 +148,8 @@ "DescribeTaskQueueResponse", "DescribeWorkflowExecutionRequest", "DescribeWorkflowExecutionResponse", + "ExecuteMultiOperationRequest", + "ExecuteMultiOperationResponse", "GetClusterInfoRequest", "GetClusterInfoResponse", "GetSearchAttributesRequest", @@ -146,6 +160,8 @@ "GetWorkerBuildIdCompatibilityResponse", "GetWorkerTaskReachabilityRequest", "GetWorkerTaskReachabilityResponse", + "GetWorkerVersioningRulesRequest", + "GetWorkerVersioningRulesResponse", "GetWorkflowExecutionHistoryRequest", "GetWorkflowExecutionHistoryResponse", "GetWorkflowExecutionHistoryReverseRequest", @@ -172,6 +188,8 @@ "PatchScheduleResponse", "PollActivityTaskQueueRequest", "PollActivityTaskQueueResponse", + "PollNexusTaskQueueRequest", + "PollNexusTaskQueueResponse", "PollWorkflowExecutionUpdateRequest", "PollWorkflowExecutionUpdateResponse", "PollWorkflowTaskQueueRequest", @@ -202,6 +220,10 @@ "RespondActivityTaskFailedByIdResponse", "RespondActivityTaskFailedRequest", "RespondActivityTaskFailedResponse", + "RespondNexusTaskCompletedRequest", + "RespondNexusTaskCompletedResponse", + "RespondNexusTaskFailedRequest", + "RespondNexusTaskFailedResponse", "RespondQueryTaskCompletedRequest", "RespondQueryTaskCompletedResponse", "RespondWorkflowTaskCompletedRequest", @@ -228,6 +250,8 @@ "UpdateScheduleResponse", "UpdateWorkerBuildIdCompatibilityRequest", "UpdateWorkerBuildIdCompatibilityResponse", + "UpdateWorkerVersioningRulesRequest", + "UpdateWorkerVersioningRulesResponse", "UpdateWorkflowExecutionRequest", "UpdateWorkflowExecutionResponse", ] diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.py b/temporalio/api/workflowservice/v1/request_response_pb2.py index 5e518b370..b31e4e099 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.py +++ b/temporalio/api/workflowservice/v1/request_response_pb2.py @@ -64,6 +64,9 @@ from temporalio.api.namespace.v1 import ( message_pb2 as temporal_dot_api_dot_namespace_dot_v1_dot_message__pb2, ) +from temporalio.api.nexus.v1 import ( + message_pb2 as temporal_dot_api_dot_nexus_dot_v1_dot_message__pb2, +) from temporalio.api.protocol.v1 import ( message_pb2 as temporal_dot_api_dot_protocol_dot_v1_dot_message__pb2, ) @@ -93,7 +96,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a"temporal/api/enums/v1/common.proto\x1a!temporal/api/enums/v1/query.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a"temporal/api/enums/v1/update.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/history/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a%temporal/api/command/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/filter/v1/message.proto\x1a&temporal/api/protocol/v1/message.proto\x1a\'temporal/api/namespace/v1/message.proto\x1a#temporal/api/query/v1/message.proto\x1a)temporal/api/replication/v1/message.proto\x1a&temporal/api/schedule/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a%temporal/api/version/v1/message.proto\x1a#temporal/api/batch/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x88\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bowner_email\x18\x03 \x01(\t\x12\x46\n#workflow_execution_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12G\n\x08\x63lusters\x18\x05 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x06 \x01(\t\x12Q\n\x04\x64\x61ta\x18\x07 \x03(\x0b\x32\x43.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0esecurity_token\x18\x08 \x01(\t\x12\x1b\n\x13is_global_namespace\x18\t \x01(\x08\x12\x44\n\x16history_archival_state\x18\n \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x0b \x01(\t\x12G\n\x19visibility_archival_state\x18\x0c \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\r \x01(\t\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1b\n\x19RegisterNamespaceResponse"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x44\n\x10namespace_filter\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceFilter"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\x0b\x32:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"9\n\x18\x44\x65scribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t"\xec\x02\n\x19\x44\x65scribeNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\x12\x45\n\x10\x66\x61ilover_history\x18\x06 \x03(\x0b\x32+.temporal.api.replication.v1.FailoverStatus"\xcf\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x43\n\x0bupdate_info\x18\x02 \x01(\x0b\x32..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06\x63onfig\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65lete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\x07 \x01(\x08"\xa3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08"F\n\x19\x44\x65precateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0esecurity_token\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65precateNamespaceResponse"\xe3\x07\n\x1dStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x1f\n\x17request_eager_execution\x18\x11 \x01(\x08\x12;\n\x11\x63ontinued_failure\x18\x12 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration"\x8d\x01\n\x1eStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12[\n\x13\x65\x61ger_workflow_task\x18\x02 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"\xaa\x02\n"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\x12\x16\n\x0ewait_new_event\x18\x05 \x01(\x08\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0e\x32-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\x07 \x01(\x08"\xba\x01\n#GetWorkflowExecutionHistoryResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x35\n\x0braw_history\x18\x02 \x03(\x0b\x32 .temporal.api.common.v1.DataBlob\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x10\n\x08\x61rchived\x18\x04 \x01(\x08"\xb0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"x\n*GetWorkflowExecutionHistoryReverseResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\xee\x01\n\x1cPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\x12V\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"\xbe\x06\n\x1dPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x05\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12\x31\n\x07history\x18\x08 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x33\n\x05query\x18\n \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1dworkflow_execution_task_queue\x18\x0b \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x32\n\x0escheduled_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\\\n\x07queries\x18\x0e \x03(\x0b\x32K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x12\x33\n\x08messages\x18\x0f \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x1aT\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery:\x02\x38\x01"\xa4\x06\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x32\n\x08\x63ommands\x18\x02 \x03(\x0b\x32 .temporal.api.command.v1.Command\x12\x10\n\x08identity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\x08\x12&\n\x1e\x66orce_create_new_workflow_task\x18\x06 \x01(\x08\x12\x17\n\x0f\x62inary_checksum\x18\x07 \x01(\t\x12m\n\rquery_results\x18\x08 \x03(\x0b\x32V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12H\n\x14worker_version_stamp\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12H\n\x0csdk_metadata\x18\x0c \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x1a_\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.temporal.api.query.v1.WorkflowQueryResult:\x02\x38\x01"\xf5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0e\x61\x63tivity_tasks\x18\x02 \x03(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1e\n\x16reset_history_event_id\x18\x03 \x01(\x03"\xdf\x02\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12=\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x05 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x33\n\x08messages\x18\x07 \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12\x42\n\x0eworker_version\x18\x08 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"#\n!RespondWorkflowTaskFailedResponse"\xa0\x02\n\x1cPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12V\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"\xe8\x06\n\x1dPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x1a\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x08 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\r \x01(\x05\x12<\n\x19schedule_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy"\x90\x01\n"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t"?\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08"\xba\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t"C\n\'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08"\xd4\x01\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"&\n$RespondActivityTaskCompletedResponse"\xba\x01\n\'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x30\n\x06result\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t"*\n(RespondActivityTaskCompletedByIdResponse"\x94\x02\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"W\n!RespondActivityTaskFailedResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xfa\x01\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"[\n%RespondActivityTaskFailedByIdResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xd4\x01\n"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"%\n#RespondActivityTaskCanceledResponse"\xba\x01\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t")\n\'RespondActivityTaskCanceledByIdResponse"\xd7\x01\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"(\n&RequestCancelWorkflowExecutionResponse"\xcc\x02\n\x1eSignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x0f\n\x07\x63ontrol\x18\x07 \x01(\t\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12#\n\x1bskip_generate_workflow_task\x18\t \x01(\x08"!\n\x1fSignalWorkflowExecutionResponse"\xd0\x07\n\'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x13\n\x0bsignal_name\x18\x0c \x01(\t\x12\x36\n\x0csignal_input\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x0e \x01(\t\x12\x39\n\x0cretry_policy\x18\x0f \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x12 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12#\n\x1bskip_generate_workflow_task\x18\x15 \x01(\x08":\n(SignalWithStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\xde\x02\n\x1dResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12%\n\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x43\n\x12reset_reapply_type\x18\x06 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType\x12S\n\x1breset_reapply_exclude_types\x18\x07 \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeType"0\n\x1eResetWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\xf2\x01\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t"$\n"TerminateWorkflowExecutionResponse"z\n\x1e\x44\x65leteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"!\n\x1f\x44\x65leteWorkflowExecutionResponse"\xc9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x42\t\n\x07\x66ilters"\x82\x01\n"ListOpenWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8a\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\x07 \x01(\x0b\x32$.temporal.api.filter.v1.StatusFilterH\x00\x42\t\n\x07\x66ilters"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eListWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eScanWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountWorkflowExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x1c\n\x1aGetSearchAttributesRequest"\xc9\x01\n\x1bGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\x0b\x32\x46.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1aT\n\tKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\xde\x01\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12>\n\x0e\x63ompleted_type\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x36\n\x0cquery_result\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\tJ\x04\x08\x05\x10\x06"#\n!RespondQueryTaskCompletedResponse"n\n\x1bResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x1e\n\x1cResetStickyTaskQueueResponse"\xe9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x33\n\x05query\x18\x03 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0e\x32+.temporal.api.enums.v1.QueryRejectCondition"\x8d\x01\n\x15QueryWorkflowResponse\x12\x36\n\x0cquery_result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x0equery_rejected\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.QueryRejected"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\xae\x03\n!DescribeWorkflowExecutionResponse\x12K\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32\x31.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\x0b\x32-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\x0b\x32\x31.temporal.api.workflow.v1.PendingWorkflowTaskInfo"\xc9\x01\n\x18\x44\x65scribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0ftask_queue_type\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12!\n\x19include_task_queue_status\x18\x04 \x01(\x08"\x9a\x01\n\x19\x44\x65scribeTaskQueueResponse\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x45\n\x11task_queue_status\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueStatus"\x17\n\x15GetClusterInfoRequest"\x8b\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\x0b\x32M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0cversion_info\x18\x04 \x01(\x0b\x32$.temporal.api.version.v1.VersionInfo\x12\x14\n\x0c\x63luster_name\x18\x05 \x01(\t\x12\x1b\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\x07 \x01(\t\x12\x18\n\x10visibility_store\x18\x08 \x01(\t\x1a\x37\n\x15SupportedClientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x16\n\x14GetSystemInfoRequest"\xe5\x03\n\x15GetSystemInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12Y\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32\x43.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1a\xd8\x02\n\x0c\x43\x61pabilities\x12\x1f\n\x17signal_and_query_header\x18\x01 \x01(\x08\x12&\n\x1einternal_error_differentiation\x18\x02 \x01(\x08\x12*\n"activity_failure_include_heartbeat\x18\x03 \x01(\x08\x12\x1a\n\x12supports_schedules\x18\x04 \x01(\x08\x12"\n\x1a\x65ncoded_failure_attributes\x18\x05 \x01(\x08\x12!\n\x19\x62uild_id_based_versioning\x18\x06 \x01(\x08\x12\x13\n\x0bupsert_memo\x18\x07 \x01(\x08\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x08 \x01(\x08\x12\x14\n\x0csdk_metadata\x18\t \x01(\x08\x12\'\n\x1f\x63ount_group_by_execution_status\x18\n \x01(\x08"m\n\x1eListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue"\xdf\x01\n\x1fListTaskQueuePartitionsResponse\x12]\n\x1e\x61\x63tivity_task_queue_partitions\x18\x01 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1eworkflow_task_queue_partitions\x18\x02 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"\xcc\x02\n\x15\x43reateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\x07 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"0\n\x16\x43reateScheduleResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"A\n\x17\x44\x65scribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t"\x8f\x02\n\x18\x44\x65scribeScheduleResponse\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x04 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c"\xb3\x01\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t"\x18\n\x16UpdateScheduleResponse"\x9c\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x36\n\x05patch\x18\x03 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\x17\n\x15PatchScheduleResponse"\xa8\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n!ListScheduleMatchingTimesResponse\x12.\n\nstart_time\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x15\x44\x65leteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t"\x18\n\x16\x44\x65leteScheduleResponse"]\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\x0b\x32+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x86\x05\n\'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\x1b\x61\x64\x64_new_compatible_build_id\x18\x04 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00\x12h\n\nmerge_sets\x18\x07 \x01(\x0b\x32R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH\x00\x1ao\n\x17\x41\x64\x64NewCompatibleVersion\x12\x14\n\x0cnew_build_id\x18\x01 \x01(\t\x12$\n\x1c\x65xisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\x08\x1aI\n\tMergeSets\x12\x1c\n\x14primary_set_build_id\x18\x01 \x01(\t\x12\x1e\n\x16secondary_set_build_id\x18\x02 \x01(\tB\x0b\n\toperation"@\n(UpdateWorkerBuildIdCompatibilityResponseJ\x04\x08\x01\x10\x02R\x0eversion_set_id"_\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\x08max_sets\x18\x03 \x01(\x05"t\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\x0b\x32/.temporal.api.taskqueue.v1.CompatibleVersionSet"\x9c\x01\n GetWorkerTaskReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tbuild_ids\x18\x02 \x03(\t\x12\x13\n\x0btask_queues\x18\x03 \x03(\t\x12=\n\x0creachability\x18\x04 \x01(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"r\n!GetWorkerTaskReachabilityResponse\x12M\n\x15\x62uild_id_reachability\x18\x01 \x03(\x0b\x32..temporal.api.taskqueue.v1.BuildIdReachability"\x85\x02\n\x1eUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x16\x66irst_execution_run_id\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy\x12\x30\n\x07request\x18\x05 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xd7\x01\n\x1fUpdateWorkflowExecutionResponse\x12\x35\n\nupdate_ref\x18\x01 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x03 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"\xdd\x04\n\x1aStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12=\n\nexecutions\x18\x05 \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19max_operations_per_second\x18\x06 \x01(\x02\x12Q\n\x15termination_operation\x18\n \x01(\x0b\x32\x30.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\x0b \x01(\x0b\x32+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16\x63\x61ncellation_operation\x18\x0c \x01(\x0b\x32\x31.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12\x64\x65letion_operation\x18\r \x01(\x0b\x32-.temporal.api.batch.v1.BatchOperationDeletionH\x00\x12\x45\n\x0freset_operation\x18\x0e \x01(\x0b\x32*.temporal.api.batch.v1.BatchOperationResetH\x00\x42\x0b\n\toperation"\x1d\n\x1bStartBatchOperationResponse"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t"\x1c\n\x1aStopBatchOperationResponse"B\n\x1d\x44\x65scribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\x92\x03\n\x1e\x44\x65scribeBatchOperationResponse\x12\x41\n\x0eoperation_type\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18\x63omplete_operation_count\x18\x07 \x01(\x03\x12\x1f\n\x17\x66\x61ilure_operation_count\x18\x08 \x01(\x03\x12\x10\n\x08identity\x18\t \x01(\t\x12\x0e\n\x06reason\x18\n \x01(\t"[\n\x1aListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"y\n\x1bListBatchOperationsResponse\x12\x41\n\x0eoperation_info\x18\x01 \x03(\x0b\x32).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xb9\x01\n"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\nupdate_ref\x18\x02 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy"\xdb\x01\n#PollWorkflowExecutionUpdateResponse\x12\x30\n\x07outcome\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12\x35\n\nupdate_ref\x18\x03 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRefB\xbe\x01\n"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' + b'\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a"temporal/api/enums/v1/common.proto\x1a!temporal/api/enums/v1/query.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a"temporal/api/enums/v1/update.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/history/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a%temporal/api/command/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/filter/v1/message.proto\x1a&temporal/api/protocol/v1/message.proto\x1a\'temporal/api/namespace/v1/message.proto\x1a#temporal/api/query/v1/message.proto\x1a)temporal/api/replication/v1/message.proto\x1a&temporal/api/schedule/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a%temporal/api/version/v1/message.proto\x1a#temporal/api/batch/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x88\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bowner_email\x18\x03 \x01(\t\x12\x46\n#workflow_execution_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12G\n\x08\x63lusters\x18\x05 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x06 \x01(\t\x12Q\n\x04\x64\x61ta\x18\x07 \x03(\x0b\x32\x43.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0esecurity_token\x18\x08 \x01(\t\x12\x1b\n\x13is_global_namespace\x18\t \x01(\x08\x12\x44\n\x16history_archival_state\x18\n \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x0b \x01(\t\x12G\n\x19visibility_archival_state\x18\x0c \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\r \x01(\t\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1b\n\x19RegisterNamespaceResponse"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x44\n\x10namespace_filter\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceFilter"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\x0b\x32:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"9\n\x18\x44\x65scribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t"\xec\x02\n\x19\x44\x65scribeNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\x12\x45\n\x10\x66\x61ilover_history\x18\x06 \x03(\x0b\x32+.temporal.api.replication.v1.FailoverStatus"\xcf\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x43\n\x0bupdate_info\x18\x02 \x01(\x0b\x32..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06\x63onfig\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65lete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\x07 \x01(\x08"\xa3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08"F\n\x19\x44\x65precateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0esecurity_token\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65precateNamespaceResponse"\xf9\x08\n\x1dStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x1f\n\x17request_eager_execution\x18\x11 \x01(\x08\x12;\n\x11\x63ontinued_failure\x18\x12 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x14\x63ompletion_callbacks\x18\x15 \x03(\x0b\x32 .temporal.api.common.v1.Callback"\x9e\x01\n\x1eStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x03 \x01(\x08\x12[\n\x13\x65\x61ger_workflow_task\x18\x02 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"\xaa\x02\n"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\x12\x16\n\x0ewait_new_event\x18\x05 \x01(\x08\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0e\x32-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\x07 \x01(\x08"\xba\x01\n#GetWorkflowExecutionHistoryResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x35\n\x0braw_history\x18\x02 \x03(\x0b\x32 .temporal.api.common.v1.DataBlob\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x10\n\x08\x61rchived\x18\x04 \x01(\x08"\xb0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"x\n*GetWorkflowExecutionHistoryReverseResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\xee\x01\n\x1cPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\x12V\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"\xbe\x06\n\x1dPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x05\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12\x31\n\x07history\x18\x08 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x33\n\x05query\x18\n \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1dworkflow_execution_task_queue\x18\x0b \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x32\n\x0escheduled_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\\\n\x07queries\x18\x0e \x03(\x0b\x32K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x12\x33\n\x08messages\x18\x0f \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x1aT\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery:\x02\x38\x01"\xa4\x06\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x32\n\x08\x63ommands\x18\x02 \x03(\x0b\x32 .temporal.api.command.v1.Command\x12\x10\n\x08identity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\x08\x12&\n\x1e\x66orce_create_new_workflow_task\x18\x06 \x01(\x08\x12\x17\n\x0f\x62inary_checksum\x18\x07 \x01(\t\x12m\n\rquery_results\x18\x08 \x03(\x0b\x32V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12H\n\x14worker_version_stamp\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12H\n\x0csdk_metadata\x18\x0c \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x1a_\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.temporal.api.query.v1.WorkflowQueryResult:\x02\x38\x01"\xf5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0e\x61\x63tivity_tasks\x18\x02 \x03(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1e\n\x16reset_history_event_id\x18\x03 \x01(\x03"\xdf\x02\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12=\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x05 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x33\n\x08messages\x18\x07 \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12\x42\n\x0eworker_version\x18\x08 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"#\n!RespondWorkflowTaskFailedResponse"\xa0\x02\n\x1cPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12V\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"\xe8\x06\n\x1dPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x1a\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x08 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\r \x01(\x05\x12<\n\x19schedule_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy"\x90\x01\n"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t"?\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08"\xba\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t"C\n\'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08"\xd4\x01\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"&\n$RespondActivityTaskCompletedResponse"\xba\x01\n\'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x30\n\x06result\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t"*\n(RespondActivityTaskCompletedByIdResponse"\x94\x02\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"W\n!RespondActivityTaskFailedResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xfa\x01\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"[\n%RespondActivityTaskFailedByIdResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xd4\x01\n"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"%\n#RespondActivityTaskCanceledResponse"\xba\x01\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t")\n\'RespondActivityTaskCanceledByIdResponse"\xd7\x01\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"(\n&RequestCancelWorkflowExecutionResponse"\xcc\x02\n\x1eSignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x0f\n\x07\x63ontrol\x18\x07 \x01(\t\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12#\n\x1bskip_generate_workflow_task\x18\t \x01(\x08"!\n\x1fSignalWorkflowExecutionResponse"\xa6\x08\n\'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x13\n\x0bsignal_name\x18\x0c \x01(\t\x12\x36\n\x0csignal_input\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x0e \x01(\t\x12\x39\n\x0cretry_policy\x18\x0f \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x12 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12#\n\x1bskip_generate_workflow_task\x18\x15 \x01(\x08"K\n(SignalWithStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08"\xde\x02\n\x1dResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12%\n\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x43\n\x12reset_reapply_type\x18\x06 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType\x12S\n\x1breset_reapply_exclude_types\x18\x07 \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeType"0\n\x1eResetWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\xf2\x01\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t"$\n"TerminateWorkflowExecutionResponse"z\n\x1e\x44\x65leteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"!\n\x1f\x44\x65leteWorkflowExecutionResponse"\xc9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x42\t\n\x07\x66ilters"\x82\x01\n"ListOpenWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8a\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\x07 \x01(\x0b\x32$.temporal.api.filter.v1.StatusFilterH\x00\x42\t\n\x07\x66ilters"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eListWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eScanWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountWorkflowExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x1c\n\x1aGetSearchAttributesRequest"\xc9\x01\n\x1bGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\x0b\x32\x46.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1aT\n\tKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\xde\x01\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12>\n\x0e\x63ompleted_type\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x36\n\x0cquery_result\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\tJ\x04\x08\x05\x10\x06"#\n!RespondQueryTaskCompletedResponse"n\n\x1bResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x1e\n\x1cResetStickyTaskQueueResponse"\xe9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x33\n\x05query\x18\x03 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0e\x32+.temporal.api.enums.v1.QueryRejectCondition"\x8d\x01\n\x15QueryWorkflowResponse\x12\x36\n\x0cquery_result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x0equery_rejected\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.QueryRejected"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\xc0\x04\n!DescribeWorkflowExecutionResponse\x12K\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32\x31.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\x0b\x32-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\x0b\x32\x31.temporal.api.workflow.v1.PendingWorkflowTaskInfo\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.workflow.v1.CallbackInfo\x12U\n\x18pending_nexus_operations\x18\x07 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingNexusOperationInfo"\xcb\x03\n\x18\x44\x65scribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0ftask_queue_type\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12!\n\x19include_task_queue_status\x18\x04 \x01(\x08\x12>\n\x08\x61pi_mode\x18\x05 \x01(\x0e\x32,.temporal.api.enums.v1.DescribeTaskQueueMode\x12\x46\n\x08versions\x18\x06 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.TaskQueueVersionSelection\x12>\n\x10task_queue_types\x18\x07 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x16\n\x0ereport_pollers\x18\t \x01(\x08\x12 \n\x18report_task_reachability\x18\n \x01(\x08"\xe5\x02\n\x19\x44\x65scribeTaskQueueResponse\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x45\n\x11task_queue_status\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueStatus\x12\x63\n\rversions_info\x18\x03 \x03(\x0b\x32L.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntry\x1a\x64\n\x11VersionsInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.temporal.api.taskqueue.v1.TaskQueueVersionInfo:\x02\x38\x01"\x17\n\x15GetClusterInfoRequest"\x8b\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\x0b\x32M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0cversion_info\x18\x04 \x01(\x0b\x32$.temporal.api.version.v1.VersionInfo\x12\x14\n\x0c\x63luster_name\x18\x05 \x01(\t\x12\x1b\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\x07 \x01(\t\x12\x18\n\x10visibility_store\x18\x08 \x01(\t\x1a\x37\n\x15SupportedClientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x16\n\x14GetSystemInfoRequest"\xe5\x03\n\x15GetSystemInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12Y\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32\x43.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1a\xd8\x02\n\x0c\x43\x61pabilities\x12\x1f\n\x17signal_and_query_header\x18\x01 \x01(\x08\x12&\n\x1einternal_error_differentiation\x18\x02 \x01(\x08\x12*\n"activity_failure_include_heartbeat\x18\x03 \x01(\x08\x12\x1a\n\x12supports_schedules\x18\x04 \x01(\x08\x12"\n\x1a\x65ncoded_failure_attributes\x18\x05 \x01(\x08\x12!\n\x19\x62uild_id_based_versioning\x18\x06 \x01(\x08\x12\x13\n\x0bupsert_memo\x18\x07 \x01(\x08\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x08 \x01(\x08\x12\x14\n\x0csdk_metadata\x18\t \x01(\x08\x12\'\n\x1f\x63ount_group_by_execution_status\x18\n \x01(\x08"m\n\x1eListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue"\xdf\x01\n\x1fListTaskQueuePartitionsResponse\x12]\n\x1e\x61\x63tivity_task_queue_partitions\x18\x01 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1eworkflow_task_queue_partitions\x18\x02 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"\xcc\x02\n\x15\x43reateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\x07 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"0\n\x16\x43reateScheduleResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"A\n\x17\x44\x65scribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t"\x8f\x02\n\x18\x44\x65scribeScheduleResponse\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x04 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c"\xf8\x01\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x43\n\x11search_attributes\x18\x07 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"\x18\n\x16UpdateScheduleResponse"\x9c\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x36\n\x05patch\x18\x03 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\x17\n\x15PatchScheduleResponse"\xa8\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n!ListScheduleMatchingTimesResponse\x12.\n\nstart_time\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x15\x44\x65leteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t"\x18\n\x16\x44\x65leteScheduleResponse"l\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\x0b\x32+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x86\x05\n\'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\x1b\x61\x64\x64_new_compatible_build_id\x18\x04 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00\x12h\n\nmerge_sets\x18\x07 \x01(\x0b\x32R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH\x00\x1ao\n\x17\x41\x64\x64NewCompatibleVersion\x12\x14\n\x0cnew_build_id\x18\x01 \x01(\t\x12$\n\x1c\x65xisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\x08\x1aI\n\tMergeSets\x12\x1c\n\x14primary_set_build_id\x18\x01 \x01(\t\x12\x1e\n\x16secondary_set_build_id\x18\x02 \x01(\tB\x0b\n\toperation"@\n(UpdateWorkerBuildIdCompatibilityResponseJ\x04\x08\x01\x10\x02R\x0eversion_set_id"_\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\x08max_sets\x18\x03 \x01(\x05"t\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\x0b\x32/.temporal.api.taskqueue.v1.CompatibleVersionSet"\xb5\r\n"UpdateWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c\x12\x81\x01\n\x16insert_assignment_rule\x18\x04 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRuleH\x00\x12\x83\x01\n\x17replace_assignment_rule\x18\x05 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRuleH\x00\x12\x81\x01\n\x16\x64\x65lete_assignment_rule\x18\x06 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRuleH\x00\x12\x8c\x01\n\x1c\x61\x64\x64_compatible_redirect_rule\x18\x07 \x01(\x0b\x32\x64.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRuleH\x00\x12\x94\x01\n replace_compatible_redirect_rule\x18\x08 \x01(\x0b\x32h.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRuleH\x00\x12\x92\x01\n\x1f\x64\x65lete_compatible_redirect_rule\x18\t \x01(\x0b\x32g.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRuleH\x00\x12l\n\x0f\x63ommit_build_id\x18\n \x01(\x0b\x32Q.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildIdH\x00\x1aq\n\x1bInsertBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x1a\x81\x01\n\x1cReplaceBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x1a@\n\x1b\x44\x65leteBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x1aj\n AddCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1an\n$ReplaceCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1a>\n#DeleteCompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x1a\x37\n\rCommitBuildId\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x42\x0b\n\toperation"\xfc\x01\n#UpdateWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"H\n\x1fGetWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t"\xf9\x01\n GetWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"\x9c\x01\n GetWorkerTaskReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tbuild_ids\x18\x02 \x03(\t\x12\x13\n\x0btask_queues\x18\x03 \x03(\t\x12=\n\x0creachability\x18\x04 \x01(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"r\n!GetWorkerTaskReachabilityResponse\x12M\n\x15\x62uild_id_reachability\x18\x01 \x03(\x0b\x32..temporal.api.taskqueue.v1.BuildIdReachability"\x85\x02\n\x1eUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x16\x66irst_execution_run_id\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy\x12\x30\n\x07request\x18\x05 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xd7\x01\n\x1fUpdateWorkflowExecutionResponse\x12\x35\n\nupdate_ref\x18\x01 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x03 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"\xdd\x04\n\x1aStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12=\n\nexecutions\x18\x05 \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19max_operations_per_second\x18\x06 \x01(\x02\x12Q\n\x15termination_operation\x18\n \x01(\x0b\x32\x30.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\x0b \x01(\x0b\x32+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16\x63\x61ncellation_operation\x18\x0c \x01(\x0b\x32\x31.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12\x64\x65letion_operation\x18\r \x01(\x0b\x32-.temporal.api.batch.v1.BatchOperationDeletionH\x00\x12\x45\n\x0freset_operation\x18\x0e \x01(\x0b\x32*.temporal.api.batch.v1.BatchOperationResetH\x00\x42\x0b\n\toperation"\x1d\n\x1bStartBatchOperationResponse"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t"\x1c\n\x1aStopBatchOperationResponse"B\n\x1d\x44\x65scribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\x92\x03\n\x1e\x44\x65scribeBatchOperationResponse\x12\x41\n\x0eoperation_type\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18\x63omplete_operation_count\x18\x07 \x01(\x03\x12\x1f\n\x17\x66\x61ilure_operation_count\x18\x08 \x01(\x03\x12\x10\n\x08identity\x18\t \x01(\t\x12\x0e\n\x06reason\x18\n \x01(\t"[\n\x1aListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"y\n\x1bListBatchOperationsResponse\x12\x41\n\x0eoperation_info\x18\x01 \x03(\x0b\x32).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xb9\x01\n"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\nupdate_ref\x18\x02 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy"\xdb\x01\n#PollWorkflowExecutionUpdateResponse\x12\x30\n\x07outcome\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12\x35\n\nupdate_ref\x18\x03 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef"\xd2\x01\n\x19PollNexusTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12V\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"a\n\x1aPollNexusTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12/\n\x07request\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Request"\x8e\x01\n RespondNexusTaskCompletedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x31\n\x08response\x18\x04 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Response"#\n!RespondNexusTaskCompletedResponse"\x8c\x01\n\x1dRespondNexusTaskFailedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x32\n\x05\x65rror\x18\x04 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerError" \n\x1eRespondNexusTaskFailedResponse"\xdf\x02\n\x1c\x45xecuteMultiOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12[\n\noperations\x18\x02 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation\x1a\xce\x01\n\tOperation\x12X\n\x0estart_workflow\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestH\x00\x12Z\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequestH\x00\x42\x0b\n\toperation"\xcc\x02\n\x1d\x45xecuteMultiOperationResponse\x12Z\n\tresponses\x18\x01 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response\x1a\xce\x01\n\x08Response\x12Y\n\x0estart_workflow\x18\x01 \x01(\x0b\x32?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponseH\x00\x12[\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponseH\x00\x42\n\n\x08responseB\xbe\x01\n"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' ) @@ -322,6 +325,9 @@ _DESCRIBETASKQUEUERESPONSE = DESCRIPTOR.message_types_by_name[ "DescribeTaskQueueResponse" ] +_DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY = ( + _DESCRIBETASKQUEUERESPONSE.nested_types_by_name["VersionsInfoEntry"] +) _GETCLUSTERINFOREQUEST = DESCRIPTOR.message_types_by_name["GetClusterInfoRequest"] _GETCLUSTERINFORESPONSE = DESCRIPTOR.message_types_by_name["GetClusterInfoResponse"] _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY = ( @@ -376,6 +382,51 @@ _GETWORKERBUILDIDCOMPATIBILITYRESPONSE = DESCRIPTOR.message_types_by_name[ "GetWorkerBuildIdCompatibilityResponse" ] +_UPDATEWORKERVERSIONINGRULESREQUEST = DESCRIPTOR.message_types_by_name[ + "UpdateWorkerVersioningRulesRequest" +] +_UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE = ( + _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ + "InsertBuildIdAssignmentRule" + ] +) +_UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE = ( + _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ + "ReplaceBuildIdAssignmentRule" + ] +) +_UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE = ( + _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ + "DeleteBuildIdAssignmentRule" + ] +) +_UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE = ( + _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ + "AddCompatibleBuildIdRedirectRule" + ] +) +_UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE = ( + _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ + "ReplaceCompatibleBuildIdRedirectRule" + ] +) +_UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE = ( + _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ + "DeleteCompatibleBuildIdRedirectRule" + ] +) +_UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID = ( + _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name["CommitBuildId"] +) +_UPDATEWORKERVERSIONINGRULESRESPONSE = DESCRIPTOR.message_types_by_name[ + "UpdateWorkerVersioningRulesResponse" +] +_GETWORKERVERSIONINGRULESREQUEST = DESCRIPTOR.message_types_by_name[ + "GetWorkerVersioningRulesRequest" +] +_GETWORKERVERSIONINGRULESRESPONSE = DESCRIPTOR.message_types_by_name[ + "GetWorkerVersioningRulesResponse" +] _GETWORKERTASKREACHABILITYREQUEST = DESCRIPTOR.message_types_by_name[ "GetWorkerTaskReachabilityRequest" ] @@ -418,6 +469,36 @@ _POLLWORKFLOWEXECUTIONUPDATERESPONSE = DESCRIPTOR.message_types_by_name[ "PollWorkflowExecutionUpdateResponse" ] +_POLLNEXUSTASKQUEUEREQUEST = DESCRIPTOR.message_types_by_name[ + "PollNexusTaskQueueRequest" +] +_POLLNEXUSTASKQUEUERESPONSE = DESCRIPTOR.message_types_by_name[ + "PollNexusTaskQueueResponse" +] +_RESPONDNEXUSTASKCOMPLETEDREQUEST = DESCRIPTOR.message_types_by_name[ + "RespondNexusTaskCompletedRequest" +] +_RESPONDNEXUSTASKCOMPLETEDRESPONSE = DESCRIPTOR.message_types_by_name[ + "RespondNexusTaskCompletedResponse" +] +_RESPONDNEXUSTASKFAILEDREQUEST = DESCRIPTOR.message_types_by_name[ + "RespondNexusTaskFailedRequest" +] +_RESPONDNEXUSTASKFAILEDRESPONSE = DESCRIPTOR.message_types_by_name[ + "RespondNexusTaskFailedResponse" +] +_EXECUTEMULTIOPERATIONREQUEST = DESCRIPTOR.message_types_by_name[ + "ExecuteMultiOperationRequest" +] +_EXECUTEMULTIOPERATIONREQUEST_OPERATION = ( + _EXECUTEMULTIOPERATIONREQUEST.nested_types_by_name["Operation"] +) +_EXECUTEMULTIOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name[ + "ExecuteMultiOperationResponse" +] +_EXECUTEMULTIOPERATIONRESPONSE_RESPONSE = ( + _EXECUTEMULTIOPERATIONRESPONSE.nested_types_by_name["Response"] +) RegisterNamespaceRequest = _reflection.GeneratedProtocolMessageType( "RegisterNamespaceRequest", (_message.Message,), @@ -1297,12 +1378,22 @@ "DescribeTaskQueueResponse", (_message.Message,), { + "VersionsInfoEntry": _reflection.GeneratedProtocolMessageType( + "VersionsInfoEntry", + (_message.Message,), + { + "DESCRIPTOR": _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntry) + }, + ), "DESCRIPTOR": _DESCRIBETASKQUEUERESPONSE, "__module__": "temporal.api.workflowservice.v1.request_response_pb2" # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueResponse) }, ) _sym_db.RegisterMessage(DescribeTaskQueueResponse) +_sym_db.RegisterMessage(DescribeTaskQueueResponse.VersionsInfoEntry) GetClusterInfoRequest = _reflection.GeneratedProtocolMessageType( "GetClusterInfoRequest", @@ -1608,6 +1699,126 @@ ) _sym_db.RegisterMessage(GetWorkerBuildIdCompatibilityResponse) +UpdateWorkerVersioningRulesRequest = _reflection.GeneratedProtocolMessageType( + "UpdateWorkerVersioningRulesRequest", + (_message.Message,), + { + "InsertBuildIdAssignmentRule": _reflection.GeneratedProtocolMessageType( + "InsertBuildIdAssignmentRule", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule) + }, + ), + "ReplaceBuildIdAssignmentRule": _reflection.GeneratedProtocolMessageType( + "ReplaceBuildIdAssignmentRule", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule) + }, + ), + "DeleteBuildIdAssignmentRule": _reflection.GeneratedProtocolMessageType( + "DeleteBuildIdAssignmentRule", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRule) + }, + ), + "AddCompatibleBuildIdRedirectRule": _reflection.GeneratedProtocolMessageType( + "AddCompatibleBuildIdRedirectRule", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule) + }, + ), + "ReplaceCompatibleBuildIdRedirectRule": _reflection.GeneratedProtocolMessageType( + "ReplaceCompatibleBuildIdRedirectRule", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule) + }, + ), + "DeleteCompatibleBuildIdRedirectRule": _reflection.GeneratedProtocolMessageType( + "DeleteCompatibleBuildIdRedirectRule", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRule) + }, + ), + "CommitBuildId": _reflection.GeneratedProtocolMessageType( + "CommitBuildId", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildId) + }, + ), + "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest) + }, +) +_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest) +_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule) +_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule) +_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRule) +_sym_db.RegisterMessage( + UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule +) +_sym_db.RegisterMessage( + UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule +) +_sym_db.RegisterMessage( + UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRule +) +_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest.CommitBuildId) + +UpdateWorkerVersioningRulesResponse = _reflection.GeneratedProtocolMessageType( + "UpdateWorkerVersioningRulesResponse", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse) + }, +) +_sym_db.RegisterMessage(UpdateWorkerVersioningRulesResponse) + +GetWorkerVersioningRulesRequest = _reflection.GeneratedProtocolMessageType( + "GetWorkerVersioningRulesRequest", + (_message.Message,), + { + "DESCRIPTOR": _GETWORKERVERSIONINGRULESREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest) + }, +) +_sym_db.RegisterMessage(GetWorkerVersioningRulesRequest) + +GetWorkerVersioningRulesResponse = _reflection.GeneratedProtocolMessageType( + "GetWorkerVersioningRulesResponse", + (_message.Message,), + { + "DESCRIPTOR": _GETWORKERVERSIONINGRULESRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse) + }, +) +_sym_db.RegisterMessage(GetWorkerVersioningRulesResponse) + GetWorkerTaskReachabilityRequest = _reflection.GeneratedProtocolMessageType( "GetWorkerTaskReachabilityRequest", (_message.Message,), @@ -1762,6 +1973,114 @@ ) _sym_db.RegisterMessage(PollWorkflowExecutionUpdateResponse) +PollNexusTaskQueueRequest = _reflection.GeneratedProtocolMessageType( + "PollNexusTaskQueueRequest", + (_message.Message,), + { + "DESCRIPTOR": _POLLNEXUSTASKQUEUEREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollNexusTaskQueueRequest) + }, +) +_sym_db.RegisterMessage(PollNexusTaskQueueRequest) + +PollNexusTaskQueueResponse = _reflection.GeneratedProtocolMessageType( + "PollNexusTaskQueueResponse", + (_message.Message,), + { + "DESCRIPTOR": _POLLNEXUSTASKQUEUERESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollNexusTaskQueueResponse) + }, +) +_sym_db.RegisterMessage(PollNexusTaskQueueResponse) + +RespondNexusTaskCompletedRequest = _reflection.GeneratedProtocolMessageType( + "RespondNexusTaskCompletedRequest", + (_message.Message,), + { + "DESCRIPTOR": _RESPONDNEXUSTASKCOMPLETEDREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest) + }, +) +_sym_db.RegisterMessage(RespondNexusTaskCompletedRequest) + +RespondNexusTaskCompletedResponse = _reflection.GeneratedProtocolMessageType( + "RespondNexusTaskCompletedResponse", + (_message.Message,), + { + "DESCRIPTOR": _RESPONDNEXUSTASKCOMPLETEDRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse) + }, +) +_sym_db.RegisterMessage(RespondNexusTaskCompletedResponse) + +RespondNexusTaskFailedRequest = _reflection.GeneratedProtocolMessageType( + "RespondNexusTaskFailedRequest", + (_message.Message,), + { + "DESCRIPTOR": _RESPONDNEXUSTASKFAILEDREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest) + }, +) +_sym_db.RegisterMessage(RespondNexusTaskFailedRequest) + +RespondNexusTaskFailedResponse = _reflection.GeneratedProtocolMessageType( + "RespondNexusTaskFailedResponse", + (_message.Message,), + { + "DESCRIPTOR": _RESPONDNEXUSTASKFAILEDRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse) + }, +) +_sym_db.RegisterMessage(RespondNexusTaskFailedResponse) + +ExecuteMultiOperationRequest = _reflection.GeneratedProtocolMessageType( + "ExecuteMultiOperationRequest", + (_message.Message,), + { + "Operation": _reflection.GeneratedProtocolMessageType( + "Operation", + (_message.Message,), + { + "DESCRIPTOR": _EXECUTEMULTIOPERATIONREQUEST_OPERATION, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation) + }, + ), + "DESCRIPTOR": _EXECUTEMULTIOPERATIONREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationRequest) + }, +) +_sym_db.RegisterMessage(ExecuteMultiOperationRequest) +_sym_db.RegisterMessage(ExecuteMultiOperationRequest.Operation) + +ExecuteMultiOperationResponse = _reflection.GeneratedProtocolMessageType( + "ExecuteMultiOperationResponse", + (_message.Message,), + { + "Response": _reflection.GeneratedProtocolMessageType( + "Response", + (_message.Message,), + { + "DESCRIPTOR": _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response) + }, + ), + "DESCRIPTOR": _EXECUTEMULTIOPERATIONRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationResponse) + }, +) +_sym_db.RegisterMessage(ExecuteMultiOperationResponse) +_sym_db.RegisterMessage(ExecuteMultiOperationResponse.Response) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n"io.temporal.api.workflowservice.v1B\024RequestResponseProtoP\001Z5go.temporal.io/api/workflowservice/v1;workflowservice\252\002!Temporalio.Api.WorkflowService.V1\352\002$Temporalio::Api::WorkflowService::V1' @@ -1775,256 +2094,326 @@ ) _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._options = None _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_options = b"8\001" + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._options = None + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_options = b"8\001" _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._options = None _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_options = b"8\001" - _REGISTERNAMESPACEREQUEST._serialized_start = 1142 - _REGISTERNAMESPACEREQUEST._serialized_end = 1790 - _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_start = 1747 - _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_end = 1790 - _REGISTERNAMESPACERESPONSE._serialized_start = 1792 - _REGISTERNAMESPACERESPONSE._serialized_end = 1819 - _LISTNAMESPACESREQUEST._serialized_start = 1822 - _LISTNAMESPACESREQUEST._serialized_end = 1959 - _LISTNAMESPACESRESPONSE._serialized_start = 1962 - _LISTNAMESPACESRESPONSE._serialized_end = 2091 - _DESCRIBENAMESPACEREQUEST._serialized_start = 2093 - _DESCRIBENAMESPACEREQUEST._serialized_end = 2150 - _DESCRIBENAMESPACERESPONSE._serialized_start = 2153 - _DESCRIBENAMESPACERESPONSE._serialized_end = 2517 - _UPDATENAMESPACEREQUEST._serialized_start = 2520 - _UPDATENAMESPACEREQUEST._serialized_end = 2855 - _UPDATENAMESPACERESPONSE._serialized_start = 2858 - _UPDATENAMESPACERESPONSE._serialized_end = 3149 - _DEPRECATENAMESPACEREQUEST._serialized_start = 3151 - _DEPRECATENAMESPACEREQUEST._serialized_end = 3221 - _DEPRECATENAMESPACERESPONSE._serialized_start = 3223 - _DEPRECATENAMESPACERESPONSE._serialized_end = 3251 - _STARTWORKFLOWEXECUTIONREQUEST._serialized_start = 3254 - _STARTWORKFLOWEXECUTIONREQUEST._serialized_end = 4249 - _STARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 4252 - _STARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 4393 - _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_start = 4396 - _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_end = 4694 - _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_start = 4697 - _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_end = 4883 - _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_start = 4886 - _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_end = 5062 - _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_start = 5064 - _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_end = 5184 - _POLLWORKFLOWTASKQUEUEREQUEST._serialized_start = 5187 - _POLLWORKFLOWTASKQUEUEREQUEST._serialized_end = 5425 - _POLLWORKFLOWTASKQUEUERESPONSE._serialized_start = 5428 - _POLLWORKFLOWTASKQUEUERESPONSE._serialized_end = 6258 - _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_start = 6174 - _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_end = 6258 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_start = 6261 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_end = 7065 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_start = 6970 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_end = 7065 - _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_start = 7068 - _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_end = 7313 - _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_start = 7316 - _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_end = 7667 - _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_start = 7669 - _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_end = 7704 - _POLLACTIVITYTASKQUEUEREQUEST._serialized_start = 7707 - _POLLACTIVITYTASKQUEUEREQUEST._serialized_end = 7995 - _POLLACTIVITYTASKQUEUERESPONSE._serialized_start = 7998 - _POLLACTIVITYTASKQUEUERESPONSE._serialized_end = 8870 - _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_start = 8873 - _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_end = 9017 - _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_start = 9019 - _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_end = 9082 - _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_start = 9085 - _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_end = 9271 - _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_start = 9273 - _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_end = 9340 - _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_start = 9343 - _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_end = 9555 - _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_start = 9557 - _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_end = 9595 - _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_start = 9598 - _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_end = 9784 - _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_start = 9786 - _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_end = 9828 - _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_start = 9831 - _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_end = 10107 - _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_start = 10109 - _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_end = 10196 - _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_start = 10199 - _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_end = 10449 - _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_start = 10451 - _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_end = 10542 - _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_start = 10545 - _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_end = 10757 - _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_start = 10759 - _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_end = 10796 - _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_start = 10799 - _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_end = 10985 - _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_start = 10987 - _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_end = 11028 - _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_start = 11031 - _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_end = 11246 - _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_start = 11248 - _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_end = 11288 - _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_start = 11291 - _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_end = 11623 - _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_start = 11625 - _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_end = 11658 - _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_start = 11661 - _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_end = 12637 - _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 12639 - _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 12697 - _RESETWORKFLOWEXECUTIONREQUEST._serialized_start = 12700 - _RESETWORKFLOWEXECUTIONREQUEST._serialized_end = 13050 - _RESETWORKFLOWEXECUTIONRESPONSE._serialized_start = 13052 - _RESETWORKFLOWEXECUTIONRESPONSE._serialized_end = 13100 - _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_start = 13103 - _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_end = 13345 - _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 13347 - _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 13383 - _DELETEWORKFLOWEXECUTIONREQUEST._serialized_start = 13385 - _DELETEWORKFLOWEXECUTIONREQUEST._serialized_end = 13507 - _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_start = 13509 - _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_end = 13542 - _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_start = 13545 - _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_end = 13874 - _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_start = 13877 - _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_end = 14007 - _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 14010 - _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 14404 - _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 14407 - _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 14539 - _LISTWORKFLOWEXECUTIONSREQUEST._serialized_start = 14541 - _LISTWORKFLOWEXECUTIONSREQUEST._serialized_end = 14650 - _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 14652 - _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 14778 - _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 14780 - _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 14897 - _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 14900 - _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15034 - _SCANWORKFLOWEXECUTIONSREQUEST._serialized_start = 15036 - _SCANWORKFLOWEXECUTIONSREQUEST._serialized_end = 15145 - _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_start = 15147 - _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15273 - _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_start = 15275 - _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_end = 15341 - _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 15344 - _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15581 - _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 15493 - _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 15581 - _GETSEARCHATTRIBUTESREQUEST._serialized_start = 15583 - _GETSEARCHATTRIBUTESREQUEST._serialized_end = 15611 - _GETSEARCHATTRIBUTESRESPONSE._serialized_start = 15614 - _GETSEARCHATTRIBUTESRESPONSE._serialized_end = 15815 - _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_start = 15731 - _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_end = 15815 - _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_start = 15818 - _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_end = 16040 - _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_start = 16042 - _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_end = 16077 - _RESETSTICKYTASKQUEUEREQUEST._serialized_start = 16079 - _RESETSTICKYTASKQUEUEREQUEST._serialized_end = 16189 - _RESETSTICKYTASKQUEUERESPONSE._serialized_start = 16191 - _RESETSTICKYTASKQUEUERESPONSE._serialized_end = 16221 - _QUERYWORKFLOWREQUEST._serialized_start = 16224 - _QUERYWORKFLOWREQUEST._serialized_end = 16457 - _QUERYWORKFLOWRESPONSE._serialized_start = 16460 - _QUERYWORKFLOWRESPONSE._serialized_end = 16601 - _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_start = 16603 - _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_end = 16718 - _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_start = 16721 - _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_end = 17151 - _DESCRIBETASKQUEUEREQUEST._serialized_start = 17154 - _DESCRIBETASKQUEUEREQUEST._serialized_end = 17355 - _DESCRIBETASKQUEUERESPONSE._serialized_start = 17358 - _DESCRIBETASKQUEUERESPONSE._serialized_end = 17512 - _GETCLUSTERINFOREQUEST._serialized_start = 17514 - _GETCLUSTERINFOREQUEST._serialized_end = 17537 - _GETCLUSTERINFORESPONSE._serialized_start = 17540 - _GETCLUSTERINFORESPONSE._serialized_end = 17935 - _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_start = 17880 - _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_end = 17935 - _GETSYSTEMINFOREQUEST._serialized_start = 17937 - _GETSYSTEMINFOREQUEST._serialized_end = 17959 - _GETSYSTEMINFORESPONSE._serialized_start = 17962 - _GETSYSTEMINFORESPONSE._serialized_end = 18447 - _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_start = 18103 - _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_end = 18447 - _LISTTASKQUEUEPARTITIONSREQUEST._serialized_start = 18449 - _LISTTASKQUEUEPARTITIONSREQUEST._serialized_end = 18558 - _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_start = 18561 - _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_end = 18784 - _CREATESCHEDULEREQUEST._serialized_start = 18787 - _CREATESCHEDULEREQUEST._serialized_end = 19119 - _CREATESCHEDULERESPONSE._serialized_start = 19121 - _CREATESCHEDULERESPONSE._serialized_end = 19169 - _DESCRIBESCHEDULEREQUEST._serialized_start = 19171 - _DESCRIBESCHEDULEREQUEST._serialized_end = 19236 - _DESCRIBESCHEDULERESPONSE._serialized_start = 19239 - _DESCRIBESCHEDULERESPONSE._serialized_end = 19510 - _UPDATESCHEDULEREQUEST._serialized_start = 19513 - _UPDATESCHEDULEREQUEST._serialized_end = 19692 - _UPDATESCHEDULERESPONSE._serialized_start = 19694 - _UPDATESCHEDULERESPONSE._serialized_end = 19718 - _PATCHSCHEDULEREQUEST._serialized_start = 19721 - _PATCHSCHEDULEREQUEST._serialized_end = 19877 - _PATCHSCHEDULERESPONSE._serialized_start = 19879 - _PATCHSCHEDULERESPONSE._serialized_end = 19902 - _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_start = 19905 - _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_end = 20073 - _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_start = 20075 - _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_end = 20158 - _DELETESCHEDULEREQUEST._serialized_start = 20160 - _DELETESCHEDULEREQUEST._serialized_end = 20241 - _DELETESCHEDULERESPONSE._serialized_start = 20243 - _DELETESCHEDULERESPONSE._serialized_end = 20267 - _LISTSCHEDULESREQUEST._serialized_start = 20269 - _LISTSCHEDULESREQUEST._serialized_end = 20362 - _LISTSCHEDULESRESPONSE._serialized_start = 20364 - _LISTSCHEDULESRESPONSE._serialized_end = 20476 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 20479 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 21125 + _REGISTERNAMESPACEREQUEST._serialized_start = 1179 + _REGISTERNAMESPACEREQUEST._serialized_end = 1827 + _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_start = 1784 + _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_end = 1827 + _REGISTERNAMESPACERESPONSE._serialized_start = 1829 + _REGISTERNAMESPACERESPONSE._serialized_end = 1856 + _LISTNAMESPACESREQUEST._serialized_start = 1859 + _LISTNAMESPACESREQUEST._serialized_end = 1996 + _LISTNAMESPACESRESPONSE._serialized_start = 1999 + _LISTNAMESPACESRESPONSE._serialized_end = 2128 + _DESCRIBENAMESPACEREQUEST._serialized_start = 2130 + _DESCRIBENAMESPACEREQUEST._serialized_end = 2187 + _DESCRIBENAMESPACERESPONSE._serialized_start = 2190 + _DESCRIBENAMESPACERESPONSE._serialized_end = 2554 + _UPDATENAMESPACEREQUEST._serialized_start = 2557 + _UPDATENAMESPACEREQUEST._serialized_end = 2892 + _UPDATENAMESPACERESPONSE._serialized_start = 2895 + _UPDATENAMESPACERESPONSE._serialized_end = 3186 + _DEPRECATENAMESPACEREQUEST._serialized_start = 3188 + _DEPRECATENAMESPACEREQUEST._serialized_end = 3258 + _DEPRECATENAMESPACERESPONSE._serialized_start = 3260 + _DEPRECATENAMESPACERESPONSE._serialized_end = 3288 + _STARTWORKFLOWEXECUTIONREQUEST._serialized_start = 3291 + _STARTWORKFLOWEXECUTIONREQUEST._serialized_end = 4436 + _STARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 4439 + _STARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 4597 + _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_start = 4600 + _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_end = 4898 + _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_start = 4901 + _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_end = 5087 + _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_start = 5090 + _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_end = 5266 + _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_start = 5268 + _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_end = 5388 + _POLLWORKFLOWTASKQUEUEREQUEST._serialized_start = 5391 + _POLLWORKFLOWTASKQUEUEREQUEST._serialized_end = 5629 + _POLLWORKFLOWTASKQUEUERESPONSE._serialized_start = 5632 + _POLLWORKFLOWTASKQUEUERESPONSE._serialized_end = 6462 + _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_start = 6378 + _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_end = 6462 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_start = 6465 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_end = 7269 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_start = 7174 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_end = 7269 + _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_start = 7272 + _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_end = 7517 + _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_start = 7520 + _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_end = 7871 + _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_start = 7873 + _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_end = 7908 + _POLLACTIVITYTASKQUEUEREQUEST._serialized_start = 7911 + _POLLACTIVITYTASKQUEUEREQUEST._serialized_end = 8199 + _POLLACTIVITYTASKQUEUERESPONSE._serialized_start = 8202 + _POLLACTIVITYTASKQUEUERESPONSE._serialized_end = 9074 + _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_start = 9077 + _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_end = 9221 + _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_start = 9223 + _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_end = 9286 + _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_start = 9289 + _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_end = 9475 + _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_start = 9477 + _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_end = 9544 + _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_start = 9547 + _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_end = 9759 + _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_start = 9761 + _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_end = 9799 + _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_start = 9802 + _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_end = 9988 + _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_start = 9990 + _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_end = 10032 + _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_start = 10035 + _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_end = 10311 + _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_start = 10313 + _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_end = 10400 + _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_start = 10403 + _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_end = 10653 + _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_start = 10655 + _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_end = 10746 + _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_start = 10749 + _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_end = 10961 + _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_start = 10963 + _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_end = 11000 + _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_start = 11003 + _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_end = 11189 + _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_start = 11191 + _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_end = 11232 + _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_start = 11235 + _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_end = 11450 + _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_start = 11452 + _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_end = 11492 + _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_start = 11495 + _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_end = 11827 + _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_start = 11829 + _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_end = 11862 + _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_start = 11865 + _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_end = 12927 + _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 12929 + _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 13004 + _RESETWORKFLOWEXECUTIONREQUEST._serialized_start = 13007 + _RESETWORKFLOWEXECUTIONREQUEST._serialized_end = 13357 + _RESETWORKFLOWEXECUTIONRESPONSE._serialized_start = 13359 + _RESETWORKFLOWEXECUTIONRESPONSE._serialized_end = 13407 + _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_start = 13410 + _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_end = 13652 + _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 13654 + _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 13690 + _DELETEWORKFLOWEXECUTIONREQUEST._serialized_start = 13692 + _DELETEWORKFLOWEXECUTIONREQUEST._serialized_end = 13814 + _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_start = 13816 + _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_end = 13849 + _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_start = 13852 + _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_end = 14181 + _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_start = 14184 + _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_end = 14314 + _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 14317 + _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 14711 + _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 14714 + _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 14846 + _LISTWORKFLOWEXECUTIONSREQUEST._serialized_start = 14848 + _LISTWORKFLOWEXECUTIONSREQUEST._serialized_end = 14957 + _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 14959 + _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15085 + _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 15087 + _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 15204 + _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 15207 + _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15341 + _SCANWORKFLOWEXECUTIONSREQUEST._serialized_start = 15343 + _SCANWORKFLOWEXECUTIONSREQUEST._serialized_end = 15452 + _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_start = 15454 + _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15580 + _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_start = 15582 + _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_end = 15648 + _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 15651 + _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15888 + _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 15800 + _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 15888 + _GETSEARCHATTRIBUTESREQUEST._serialized_start = 15890 + _GETSEARCHATTRIBUTESREQUEST._serialized_end = 15918 + _GETSEARCHATTRIBUTESRESPONSE._serialized_start = 15921 + _GETSEARCHATTRIBUTESRESPONSE._serialized_end = 16122 + _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_start = 16038 + _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_end = 16122 + _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_start = 16125 + _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_end = 16347 + _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_start = 16349 + _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_end = 16384 + _RESETSTICKYTASKQUEUEREQUEST._serialized_start = 16386 + _RESETSTICKYTASKQUEUEREQUEST._serialized_end = 16496 + _RESETSTICKYTASKQUEUERESPONSE._serialized_start = 16498 + _RESETSTICKYTASKQUEUERESPONSE._serialized_end = 16528 + _QUERYWORKFLOWREQUEST._serialized_start = 16531 + _QUERYWORKFLOWREQUEST._serialized_end = 16764 + _QUERYWORKFLOWRESPONSE._serialized_start = 16767 + _QUERYWORKFLOWRESPONSE._serialized_end = 16908 + _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_start = 16910 + _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_end = 17025 + _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_start = 17028 + _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_end = 17604 + _DESCRIBETASKQUEUEREQUEST._serialized_start = 17607 + _DESCRIBETASKQUEUEREQUEST._serialized_end = 18066 + _DESCRIBETASKQUEUERESPONSE._serialized_start = 18069 + _DESCRIBETASKQUEUERESPONSE._serialized_end = 18426 + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_start = 18326 + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_end = 18426 + _GETCLUSTERINFOREQUEST._serialized_start = 18428 + _GETCLUSTERINFOREQUEST._serialized_end = 18451 + _GETCLUSTERINFORESPONSE._serialized_start = 18454 + _GETCLUSTERINFORESPONSE._serialized_end = 18849 + _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_start = 18794 + _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_end = 18849 + _GETSYSTEMINFOREQUEST._serialized_start = 18851 + _GETSYSTEMINFOREQUEST._serialized_end = 18873 + _GETSYSTEMINFORESPONSE._serialized_start = 18876 + _GETSYSTEMINFORESPONSE._serialized_end = 19361 + _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_start = 19017 + _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_end = 19361 + _LISTTASKQUEUEPARTITIONSREQUEST._serialized_start = 19363 + _LISTTASKQUEUEPARTITIONSREQUEST._serialized_end = 19472 + _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_start = 19475 + _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_end = 19698 + _CREATESCHEDULEREQUEST._serialized_start = 19701 + _CREATESCHEDULEREQUEST._serialized_end = 20033 + _CREATESCHEDULERESPONSE._serialized_start = 20035 + _CREATESCHEDULERESPONSE._serialized_end = 20083 + _DESCRIBESCHEDULEREQUEST._serialized_start = 20085 + _DESCRIBESCHEDULEREQUEST._serialized_end = 20150 + _DESCRIBESCHEDULERESPONSE._serialized_start = 20153 + _DESCRIBESCHEDULERESPONSE._serialized_end = 20424 + _UPDATESCHEDULEREQUEST._serialized_start = 20427 + _UPDATESCHEDULEREQUEST._serialized_end = 20675 + _UPDATESCHEDULERESPONSE._serialized_start = 20677 + _UPDATESCHEDULERESPONSE._serialized_end = 20701 + _PATCHSCHEDULEREQUEST._serialized_start = 20704 + _PATCHSCHEDULEREQUEST._serialized_end = 20860 + _PATCHSCHEDULERESPONSE._serialized_start = 20862 + _PATCHSCHEDULERESPONSE._serialized_end = 20885 + _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_start = 20888 + _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_end = 21056 + _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_start = 21058 + _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_end = 21141 + _DELETESCHEDULEREQUEST._serialized_start = 21143 + _DELETESCHEDULEREQUEST._serialized_end = 21224 + _DELETESCHEDULERESPONSE._serialized_start = 21226 + _DELETESCHEDULERESPONSE._serialized_end = 21250 + _LISTSCHEDULESREQUEST._serialized_start = 21252 + _LISTSCHEDULESREQUEST._serialized_end = 21360 + _LISTSCHEDULESRESPONSE._serialized_start = 21362 + _LISTSCHEDULESRESPONSE._serialized_end = 21474 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 21477 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 22123 _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_start = ( - 20926 + 21924 ) _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_end = ( - 21037 + 22035 + ) + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_start = 22037 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_end = 22110 + _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 22125 + _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 22189 + _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 22191 + _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 22286 + _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 22288 + _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 22404 + _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_start = 22407 + _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_end = 24124 + _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_start = ( + 23459 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_end = ( + 23572 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_start = ( + 23575 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_end = ( + 23704 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_start = ( + 23706 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_end = ( + 23770 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = ( + 23772 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = ( + 23878 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = ( + 23880 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = ( + 23990 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = ( + 23992 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = ( + 24054 ) - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_start = 21039 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_end = 21112 - _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 21127 - _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 21191 - _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 21193 - _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 21288 - _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 21290 - _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 21406 - _GETWORKERTASKREACHABILITYREQUEST._serialized_start = 21409 - _GETWORKERTASKREACHABILITYREQUEST._serialized_end = 21565 - _GETWORKERTASKREACHABILITYRESPONSE._serialized_start = 21567 - _GETWORKERTASKREACHABILITYRESPONSE._serialized_end = 21681 - _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_start = 21684 - _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_end = 21945 - _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 21948 - _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 22163 - _STARTBATCHOPERATIONREQUEST._serialized_start = 22166 - _STARTBATCHOPERATIONREQUEST._serialized_end = 22771 - _STARTBATCHOPERATIONRESPONSE._serialized_start = 22773 - _STARTBATCHOPERATIONRESPONSE._serialized_end = 22802 - _STOPBATCHOPERATIONREQUEST._serialized_start = 22804 - _STOPBATCHOPERATIONREQUEST._serialized_end = 22900 - _STOPBATCHOPERATIONRESPONSE._serialized_start = 22902 - _STOPBATCHOPERATIONRESPONSE._serialized_end = 22930 - _DESCRIBEBATCHOPERATIONREQUEST._serialized_start = 22932 - _DESCRIBEBATCHOPERATIONREQUEST._serialized_end = 22998 - _DESCRIBEBATCHOPERATIONRESPONSE._serialized_start = 23001 - _DESCRIBEBATCHOPERATIONRESPONSE._serialized_end = 23403 - _LISTBATCHOPERATIONSREQUEST._serialized_start = 23405 - _LISTBATCHOPERATIONSREQUEST._serialized_end = 23496 - _LISTBATCHOPERATIONSRESPONSE._serialized_start = 23498 - _LISTBATCHOPERATIONSRESPONSE._serialized_end = 23619 - _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_start = 23622 - _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_end = 23807 - _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_start = 23810 - _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_end = 24029 + _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_start = 24056 + _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_end = 24111 + _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_start = 24127 + _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_end = 24379 + _GETWORKERVERSIONINGRULESREQUEST._serialized_start = 24381 + _GETWORKERVERSIONINGRULESREQUEST._serialized_end = 24453 + _GETWORKERVERSIONINGRULESRESPONSE._serialized_start = 24456 + _GETWORKERVERSIONINGRULESRESPONSE._serialized_end = 24705 + _GETWORKERTASKREACHABILITYREQUEST._serialized_start = 24708 + _GETWORKERTASKREACHABILITYREQUEST._serialized_end = 24864 + _GETWORKERTASKREACHABILITYRESPONSE._serialized_start = 24866 + _GETWORKERTASKREACHABILITYRESPONSE._serialized_end = 24980 + _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_start = 24983 + _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_end = 25244 + _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 25247 + _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 25462 + _STARTBATCHOPERATIONREQUEST._serialized_start = 25465 + _STARTBATCHOPERATIONREQUEST._serialized_end = 26070 + _STARTBATCHOPERATIONRESPONSE._serialized_start = 26072 + _STARTBATCHOPERATIONRESPONSE._serialized_end = 26101 + _STOPBATCHOPERATIONREQUEST._serialized_start = 26103 + _STOPBATCHOPERATIONREQUEST._serialized_end = 26199 + _STOPBATCHOPERATIONRESPONSE._serialized_start = 26201 + _STOPBATCHOPERATIONRESPONSE._serialized_end = 26229 + _DESCRIBEBATCHOPERATIONREQUEST._serialized_start = 26231 + _DESCRIBEBATCHOPERATIONREQUEST._serialized_end = 26297 + _DESCRIBEBATCHOPERATIONRESPONSE._serialized_start = 26300 + _DESCRIBEBATCHOPERATIONRESPONSE._serialized_end = 26702 + _LISTBATCHOPERATIONSREQUEST._serialized_start = 26704 + _LISTBATCHOPERATIONSREQUEST._serialized_end = 26795 + _LISTBATCHOPERATIONSRESPONSE._serialized_start = 26797 + _LISTBATCHOPERATIONSRESPONSE._serialized_end = 26918 + _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_start = 26921 + _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_end = 27106 + _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_start = 27109 + _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_end = 27328 + _POLLNEXUSTASKQUEUEREQUEST._serialized_start = 27331 + _POLLNEXUSTASKQUEUEREQUEST._serialized_end = 27541 + _POLLNEXUSTASKQUEUERESPONSE._serialized_start = 27543 + _POLLNEXUSTASKQUEUERESPONSE._serialized_end = 27640 + _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_start = 27643 + _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_end = 27785 + _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_start = 27787 + _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_end = 27822 + _RESPONDNEXUSTASKFAILEDREQUEST._serialized_start = 27825 + _RESPONDNEXUSTASKFAILEDREQUEST._serialized_end = 27965 + _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_start = 27967 + _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_end = 27999 + _EXECUTEMULTIOPERATIONREQUEST._serialized_start = 28002 + _EXECUTEMULTIOPERATIONREQUEST._serialized_end = 28353 + _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_start = 28147 + _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_end = 28353 + _EXECUTEMULTIOPERATIONRESPONSE._serialized_start = 28356 + _EXECUTEMULTIOPERATIONRESPONSE._serialized_end = 28688 + _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_start = 28482 + _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_end = 28688 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.pyi b/temporalio/api/workflowservice/v1/request_response_pb2.pyi index f184eb87f..0cedc71be 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.pyi +++ b/temporalio/api/workflowservice/v1/request_response_pb2.pyi @@ -47,6 +47,7 @@ import temporalio.api.failure.v1.message_pb2 import temporalio.api.filter.v1.message_pb2 import temporalio.api.history.v1.message_pb2 import temporalio.api.namespace.v1.message_pb2 +import temporalio.api.nexus.v1.message_pb2 import temporalio.api.protocol.v1.message_pb2 import temporalio.api.query.v1.message_pb2 import temporalio.api.replication.v1.message_pb2 @@ -359,12 +360,6 @@ class DescribeNamespaceResponse(google.protobuf.message.Message): global___DescribeNamespaceResponse = DescribeNamespaceResponse class UpdateNamespaceRequest(google.protobuf.message.Message): - """(-- api-linter: core::0134::request-mask-required=disabled - aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --) - (-- api-linter: core::0134::request-resource-required=disabled - aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --) - """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int @@ -544,6 +539,7 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int REQUEST_ID_FIELD_NUMBER: builtins.int WORKFLOW_ID_REUSE_POLICY_FIELD_NUMBER: builtins.int + WORKFLOW_ID_CONFLICT_POLICY_FIELD_NUMBER: builtins.int RETRY_POLICY_FIELD_NUMBER: builtins.int CRON_SCHEDULE_FIELD_NUMBER: builtins.int MEMO_FIELD_NUMBER: builtins.int @@ -553,6 +549,7 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): CONTINUED_FAILURE_FIELD_NUMBER: builtins.int LAST_COMPLETION_RESULT_FIELD_NUMBER: builtins.int WORKFLOW_START_DELAY_FIELD_NUMBER: builtins.int + COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int namespace: builtins.str workflow_id: builtins.str @property @@ -576,7 +573,17 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): request_id: builtins.str """A unique identifier for this start request. Typically UUIDv4.""" workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType - """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" + """Defines whether to allow re-using the workflow id from a previously *closed* workflow. + The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + + See `workflow_id_conflict_policy` for handling a workflow id duplication with a *running* workflow. + """ + workflow_id_conflict_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType + """Defines how to resolve a workflow id conflict with a *running* workflow. + The default policy is WORKFLOW_ID_CONFLICT_POLICY_FAIL. + + See `workflow_id_reuse_policy` for handling a workflow id duplication with a *closed* workflow. + """ @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.""" @@ -613,6 +620,16 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest of the delay will be ignored. """ + @property + def completion_callbacks( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.common.v1.message_pb2.Callback + ]: + """Callbacks to be called by the server when this workflow reaches a terminal state. + If the workflow continues-as-new, these callbacks will be carried over to the new execution. + Callback addresses must be whitelisted in the server's dynamic configuration. + """ def __init__( self, *, @@ -627,6 +644,7 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): identity: builtins.str = ..., request_id: builtins.str = ..., workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType = ..., + workflow_id_conflict_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType = ..., retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ..., cron_schedule: builtins.str = ..., memo: temporalio.api.common.v1.message_pb2.Memo | None = ..., @@ -638,6 +656,10 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): last_completion_result: temporalio.api.common.v1.message_pb2.Payloads | None = ..., workflow_start_delay: google.protobuf.duration_pb2.Duration | None = ..., + completion_callbacks: collections.abc.Iterable[ + temporalio.api.common.v1.message_pb2.Callback + ] + | None = ..., ) -> None: ... def HasField( self, @@ -673,6 +695,8 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ + "completion_callbacks", + b"completion_callbacks", "continued_failure", b"continued_failure", "cron_schedule", @@ -703,6 +727,8 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): b"workflow_execution_timeout", "workflow_id", b"workflow_id", + "workflow_id_conflict_policy", + b"workflow_id_conflict_policy", "workflow_id_reuse_policy", b"workflow_id_reuse_policy", "workflow_run_timeout", @@ -722,8 +748,12 @@ class StartWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor RUN_ID_FIELD_NUMBER: builtins.int + STARTED_FIELD_NUMBER: builtins.int EAGER_WORKFLOW_TASK_FIELD_NUMBER: builtins.int run_id: builtins.str + """The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).""" + started: builtins.bool + """If true, a new workflow was started.""" @property def eager_workflow_task(self) -> global___PollWorkflowTaskQueueResponse: """When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will @@ -734,6 +764,7 @@ class StartWorkflowExecutionResponse(google.protobuf.message.Message): self, *, run_id: builtins.str = ..., + started: builtins.bool = ..., eager_workflow_task: global___PollWorkflowTaskQueueResponse | None = ..., ) -> None: ... def HasField( @@ -745,7 +776,12 @@ class StartWorkflowExecutionResponse(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ - "eager_workflow_task", b"eager_workflow_task", "run_id", b"run_id" + "eager_workflow_task", + b"eager_workflow_task", + "run_id", + b"run_id", + "started", + b"started", ], ) -> None: ... @@ -2528,6 +2564,7 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int REQUEST_ID_FIELD_NUMBER: builtins.int WORKFLOW_ID_REUSE_POLICY_FIELD_NUMBER: builtins.int + WORKFLOW_ID_CONFLICT_POLICY_FIELD_NUMBER: builtins.int SIGNAL_NAME_FIELD_NUMBER: builtins.int SIGNAL_INPUT_FIELD_NUMBER: builtins.int CONTROL_FIELD_NUMBER: builtins.int @@ -2562,6 +2599,18 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): request_id: builtins.str """Used to de-dupe signal w/ start requests""" workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + """Defines whether to allow re-using the workflow id from a previously *closed* workflow. + The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + + See `workflow_id_reuse_policy` for handling a workflow id duplication with a *running* workflow. + """ + workflow_id_conflict_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType + """Defines how to resolve a workflow id conflict with a *running* workflow. + The default policy is WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING. + Note that WORKFLOW_ID_CONFLICT_POLICY_FAIL is an invalid option. + + See `workflow_id_reuse_policy` for handling a workflow id duplication with a *closed* workflow. + """ signal_name: builtins.str """The workflow author-defined name of the signal to send to the workflow""" @property @@ -2571,7 +2620,7 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): """Deprecated""" @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: - """Retry policy for the workflow Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" + """Retry policy for the workflow""" cron_schedule: builtins.str """See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/""" @property @@ -2607,6 +2656,7 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): identity: builtins.str = ..., request_id: builtins.str = ..., workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType = ..., + workflow_id_conflict_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType = ..., signal_name: builtins.str = ..., signal_input: temporalio.api.common.v1.message_pb2.Payloads | None = ..., control: builtins.str = ..., @@ -2683,6 +2733,8 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): b"workflow_execution_timeout", "workflow_id", b"workflow_id", + "workflow_id_conflict_policy", + b"workflow_id_conflict_policy", "workflow_id_reuse_policy", b"workflow_id_reuse_policy", "workflow_run_timeout", @@ -2704,14 +2756,22 @@ class SignalWithStartWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor RUN_ID_FIELD_NUMBER: builtins.int + STARTED_FIELD_NUMBER: builtins.int run_id: builtins.str + """The run id of the workflow that was started - or just signaled, if it was already running.""" + started: builtins.bool + """If true, a new workflow was started.""" def __init__( self, *, run_id: builtins.str = ..., + started: builtins.bool = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["run_id", b"run_id"] + self, + field_name: typing_extensions.Literal[ + "run_id", b"run_id", "started", b"started" + ], ) -> None: ... global___SignalWithStartWorkflowExecutionResponse = ( @@ -2742,7 +2802,7 @@ class ResetWorkflowExecutionRequest(google.protobuf.message.Message): """Used to de-dupe reset requests""" reset_reapply_type: temporalio.api.enums.v1.reset_pb2.ResetReapplyType.ValueType """Event types to be reapplied (deprecated) - Default: RESET_REAPPLY_TYPE_ALL_ELIGIBLE + Default: RESET_REAPPLY_TYPE_SIGNAL """ @property def reset_reapply_exclude_types( @@ -2882,12 +2942,6 @@ class TerminateWorkflowExecutionResponse(google.protobuf.message.Message): global___TerminateWorkflowExecutionResponse = TerminateWorkflowExecutionResponse class DeleteWorkflowExecutionRequest(google.protobuf.message.Message): - """(-- api-linter: core::0135::request-unknown-fields=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - (-- api-linter: core::0135::request-name-required=disabled - aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --) - """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int @@ -3681,6 +3735,8 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): PENDING_ACTIVITIES_FIELD_NUMBER: builtins.int PENDING_CHILDREN_FIELD_NUMBER: builtins.int PENDING_WORKFLOW_TASK_FIELD_NUMBER: builtins.int + CALLBACKS_FIELD_NUMBER: builtins.int + PENDING_NEXUS_OPERATIONS_FIELD_NUMBER: builtins.int @property def execution_config( self, @@ -3705,6 +3761,18 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): def pending_workflow_task( self, ) -> temporalio.api.workflow.v1.message_pb2.PendingWorkflowTaskInfo: ... + @property + def callbacks( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.workflow.v1.message_pb2.CallbackInfo + ]: ... + @property + def pending_nexus_operations( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.workflow.v1.message_pb2.PendingNexusOperationInfo + ]: ... def __init__( self, *, @@ -3722,6 +3790,14 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): | None = ..., pending_workflow_task: temporalio.api.workflow.v1.message_pb2.PendingWorkflowTaskInfo | None = ..., + callbacks: collections.abc.Iterable[ + temporalio.api.workflow.v1.message_pb2.CallbackInfo + ] + | None = ..., + pending_nexus_operations: collections.abc.Iterable[ + temporalio.api.workflow.v1.message_pb2.PendingNexusOperationInfo + ] + | None = ..., ) -> None: ... def HasField( self, @@ -3737,12 +3813,16 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ + "callbacks", + b"callbacks", "execution_config", b"execution_config", "pending_activities", b"pending_activities", "pending_children", b"pending_children", + "pending_nexus_operations", + b"pending_nexus_operations", "pending_workflow_task", b"pending_workflow_task", "workflow_execution_info", @@ -3753,18 +3833,58 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): global___DescribeWorkflowExecutionResponse = DescribeWorkflowExecutionResponse class DescribeTaskQueueRequest(google.protobuf.message.Message): + """(-- api-linter: core::0203::optional=disabled + aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) + """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int TASK_QUEUE_FIELD_NUMBER: builtins.int TASK_QUEUE_TYPE_FIELD_NUMBER: builtins.int INCLUDE_TASK_QUEUE_STATUS_FIELD_NUMBER: builtins.int + API_MODE_FIELD_NUMBER: builtins.int + VERSIONS_FIELD_NUMBER: builtins.int + TASK_QUEUE_TYPES_FIELD_NUMBER: builtins.int + REPORT_POLLERS_FIELD_NUMBER: builtins.int + REPORT_TASK_REACHABILITY_FIELD_NUMBER: builtins.int namespace: builtins.str @property - def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... + def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: + """Sticky queues are not supported in `ENHANCED` mode.""" task_queue_type: temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType - """If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used.""" + """Deprecated. Use `ENHANCED` mode with `task_queue_types`. Ignored in `ENHANCED` mode. + If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used. + """ include_task_queue_status: builtins.bool + """Deprecated. Ignored in `ENHANCED` mode.""" + api_mode: temporalio.api.enums.v1.task_queue_pb2.DescribeTaskQueueMode.ValueType + """All options except `task_queue_type` and `include_task_queue_status` are only available in the `ENHANCED` mode.""" + @property + def versions( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueueVersionSelection: + """Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one + mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the + unversioned queue will be returned. + (-- api-linter: core::0140::prepositions --) + """ + @property + def task_queue_types( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType + ]: + """Task queue types to report info about. If not specified, all types are considered.""" + report_pollers: builtins.bool + """Report backlog info for the requested task queue types and versions + bool report_backlog_info = 8; + Report list of pollers for requested task queue types and versions + """ + report_task_reachability: builtins.bool + """Report task reachability for the requested versions and all task types (task reachability is not reported + per task type). + """ def __init__( self, *, @@ -3772,21 +3892,43 @@ class DescribeTaskQueueRequest(google.protobuf.message.Message): task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ..., task_queue_type: temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType = ..., include_task_queue_status: builtins.bool = ..., + api_mode: temporalio.api.enums.v1.task_queue_pb2.DescribeTaskQueueMode.ValueType = ..., + versions: temporalio.api.taskqueue.v1.message_pb2.TaskQueueVersionSelection + | None = ..., + task_queue_types: collections.abc.Iterable[ + temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType + ] + | None = ..., + report_pollers: builtins.bool = ..., + report_task_reachability: builtins.bool = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["task_queue", b"task_queue"] + self, + field_name: typing_extensions.Literal[ + "task_queue", b"task_queue", "versions", b"versions" + ], ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ + "api_mode", + b"api_mode", "include_task_queue_status", b"include_task_queue_status", "namespace", b"namespace", + "report_pollers", + b"report_pollers", + "report_task_reachability", + b"report_task_reachability", "task_queue", b"task_queue", "task_queue_type", b"task_queue_type", + "task_queue_types", + b"task_queue_types", + "versions", + b"versions", ], ) -> None: ... @@ -3795,18 +3937,57 @@ global___DescribeTaskQueueRequest = DescribeTaskQueueRequest class DescribeTaskQueueResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class VersionsInfoEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueueVersionInfo: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: temporalio.api.taskqueue.v1.message_pb2.TaskQueueVersionInfo + | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... + POLLERS_FIELD_NUMBER: builtins.int TASK_QUEUE_STATUS_FIELD_NUMBER: builtins.int + VERSIONS_INFO_FIELD_NUMBER: builtins.int @property def pollers( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.taskqueue.v1.message_pb2.PollerInfo - ]: ... + ]: + """Deprecated. Use `versions_info.types_info.pollers` with `ENHANCED` mode instead. + Not set in `ENHANCED` mode. + """ @property def task_queue_status( self, - ) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueueStatus: ... + ) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueueStatus: + """Deprecated. Not set in `ENHANCED` mode.""" + @property + def versions_info( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.str, temporalio.api.taskqueue.v1.message_pb2.TaskQueueVersionInfo + ]: + """This map contains Task Queue information for each Build ID. Empty string as key value means unversioned. + Only set in `ENHANCED` mode. + """ def __init__( self, *, @@ -3816,6 +3997,10 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): | None = ..., task_queue_status: temporalio.api.taskqueue.v1.message_pb2.TaskQueueStatus | None = ..., + versions_info: collections.abc.Mapping[ + builtins.str, temporalio.api.taskqueue.v1.message_pb2.TaskQueueVersionInfo + ] + | None = ..., ) -> None: ... def HasField( self, @@ -3826,7 +4011,12 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ - "pollers", b"pollers", "task_queue_status", b"task_queue_status" + "pollers", + b"pollers", + "task_queue_status", + b"task_queue_status", + "versions_info", + b"versions_info", ], ) -> None: ... @@ -4119,14 +4309,8 @@ class ListTaskQueuePartitionsResponse(google.protobuf.message.Message): global___ListTaskQueuePartitionsResponse = ListTaskQueuePartitionsResponse class CreateScheduleRequest(google.protobuf.message.Message): - """(-- api-linter: core::0133::request-parent-required=disabled - aip.dev/not-precedent: CreateSchedule doesn't follow Google API format --) - (-- api-linter: core::0133::request-unknown-fields=disabled - aip.dev/not-precedent: CreateSchedule doesn't follow Google API format --) - (-- api-linter: core::0133::request-resource-behavior=disabled - aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) - (-- api-linter: core::0203::optional=disabled - aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) + """(-- api-linter: core::0203::optional=disabled + aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) """ DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4326,10 +4510,6 @@ class DescribeScheduleResponse(google.protobuf.message.Message): global___DescribeScheduleResponse = DescribeScheduleResponse class UpdateScheduleRequest(google.protobuf.message.Message): - """(-- api-linter: core::0134::request-mask-required=disabled - aip.dev/not-precedent: UpdateSchedule doesn't follow Google API format --) - """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int @@ -4338,6 +4518,7 @@ class UpdateScheduleRequest(google.protobuf.message.Message): CONFLICT_TOKEN_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int REQUEST_ID_FIELD_NUMBER: builtins.int + SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int namespace: builtins.str """The namespace of the schedule to update.""" schedule_id: builtins.str @@ -4357,6 +4538,16 @@ class UpdateScheduleRequest(google.protobuf.message.Message): """The identity of the client who initiated this request.""" request_id: builtins.str """A unique identifier for this update request for idempotence. Typically UUIDv4.""" + @property + def search_attributes( + self, + ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: + """Schedule search attributes to be updated. + Do not set this field if you do not want to update the search attributes. + A non-null empty object will set the search attributes to an empty map. + Note: you cannot only update the search attributes with `UpdateScheduleRequest`, + you must also set the `schedule` field; otherwise, it will unset the schedule. + """ def __init__( self, *, @@ -4366,9 +4557,14 @@ class UpdateScheduleRequest(google.protobuf.message.Message): conflict_token: builtins.bytes = ..., identity: builtins.str = ..., request_id: builtins.str = ..., + search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes + | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["schedule", b"schedule"] + self, + field_name: typing_extensions.Literal[ + "schedule", b"schedule", "search_attributes", b"search_attributes" + ], ) -> builtins.bool: ... def ClearField( self, @@ -4385,6 +4581,8 @@ class UpdateScheduleRequest(google.protobuf.message.Message): b"schedule", "schedule_id", b"schedule_id", + "search_attributes", + b"search_attributes", ], ) -> None: ... @@ -4525,12 +4723,6 @@ class ListScheduleMatchingTimesResponse(google.protobuf.message.Message): global___ListScheduleMatchingTimesResponse = ListScheduleMatchingTimesResponse class DeleteScheduleRequest(google.protobuf.message.Message): - """(-- api-linter: core::0135::request-name-required=disabled - aip.dev/not-precedent: DeleteSchedule doesn't follow Google API format --) - (-- api-linter: core::0135::request-unknown-fields=disabled - aip.dev/not-precedent: DeleteSchedule doesn't follow Google API format --) - """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int @@ -4578,18 +4770,22 @@ class ListSchedulesRequest(google.protobuf.message.Message): NAMESPACE_FIELD_NUMBER: builtins.int MAXIMUM_PAGE_SIZE_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int namespace: builtins.str """The namespace to list schedules in.""" maximum_page_size: builtins.int """How many to return at once.""" next_page_token: builtins.bytes """Token to get the next page of results.""" + query: builtins.str + """Query to filter schedules.""" def __init__( self, *, namespace: builtins.str = ..., maximum_page_size: builtins.int = ..., next_page_token: builtins.bytes = ..., + query: builtins.str = ..., ) -> None: ... def ClearField( self, @@ -4600,6 +4796,8 @@ class ListSchedulesRequest(google.protobuf.message.Message): b"namespace", "next_page_token", b"next_page_token", + "query", + b"query", ], ) -> None: ... @@ -4636,12 +4834,6 @@ class ListSchedulesResponse(google.protobuf.message.Message): global___ListSchedulesResponse = ListSchedulesResponse class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): - """(-- api-linter: core::0134::request-mask-required=disabled - aip.dev/not-precedent: UpdateWorkerBuildIdCompatibilityRequest doesn't follow Google API format --) - (-- api-linter: core::0134::request-resource-required=disabled - aip.dev/not-precedent: UpdateWorkerBuildIdCompatibilityRequest RPC doesn't follow Google API format. --) - """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor class AddNewCompatibleVersion(google.protobuf.message.Message): @@ -4833,10 +5025,6 @@ global___UpdateWorkerBuildIdCompatibilityResponse = ( ) class GetWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): - """(-- api-linter: core::0134::request-resource-required=disabled - aip.dev/not-precedent: GetWorkerBuildIdCompatibilityRequest RPC doesn't follow Google API format. --) - """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int @@ -4903,101 +5091,576 @@ class GetWorkerBuildIdCompatibilityResponse(google.protobuf.message.Message): global___GetWorkerBuildIdCompatibilityResponse = GetWorkerBuildIdCompatibilityResponse -class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): +class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): + """(-- api-linter: core::0134::request-mask-required=disabled + aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --) + (-- api-linter: core::0134::request-resource-required=disabled + aip.dev/not-precedent: GetWorkerBuildIdCompatibilityRequest RPC doesn't follow Google API format. --) + """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor - NAMESPACE_FIELD_NUMBER: builtins.int - BUILD_IDS_FIELD_NUMBER: builtins.int - TASK_QUEUES_FIELD_NUMBER: builtins.int - REACHABILITY_FIELD_NUMBER: builtins.int - namespace: builtins.str - @property - def build_ids( - self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker. - The number of build ids that can be queried in a single API call is limited. - Open source users can adjust this limit by setting the server's dynamic config value for - `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store. + class InsertBuildIdAssignmentRule(google.protobuf.message.Message): + """Inserts the rule to the list of assignment rules for this Task Queue. + The rules are evaluated in order, starting from index 0. The first + applicable rule will be applied and the rest will be ignored. """ - @property - def task_queues( - self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given - build ids in the namespace. - Must specify at least one task queue if querying for an unversioned worker. - The number of task queues that the server will fetch reachability information for is limited. - See the `GetWorkerTaskReachabilityResponse` documentation for more information. + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RULE_INDEX_FIELD_NUMBER: builtins.int + RULE_FIELD_NUMBER: builtins.int + rule_index: builtins.int + """Use this option to insert the rule in a particular index. By + default, the new rule is inserted at the beginning of the list + (index 0). If the given index is too larger the rule will be + inserted at the end of the list. """ - reachability: temporalio.api.enums.v1.task_queue_pb2.TaskReachability.ValueType - """Type of reachability to query for. - `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response. - Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows. - Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left - unspecified. - See the TaskReachability docstring for information about each enum variant. - """ - def __init__( - self, - *, - namespace: builtins.str = ..., - build_ids: collections.abc.Iterable[builtins.str] | None = ..., - task_queues: collections.abc.Iterable[builtins.str] | None = ..., - reachability: temporalio.api.enums.v1.task_queue_pb2.TaskReachability.ValueType = ..., - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions.Literal[ - "build_ids", - b"build_ids", - "namespace", - b"namespace", - "reachability", - b"reachability", - "task_queues", - b"task_queues", - ], - ) -> None: ... + @property + def rule( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.BuildIdAssignmentRule: ... + def __init__( + self, + *, + rule_index: builtins.int = ..., + rule: temporalio.api.taskqueue.v1.message_pb2.BuildIdAssignmentRule + | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["rule", b"rule"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "rule", b"rule", "rule_index", b"rule_index" + ], + ) -> None: ... -global___GetWorkerTaskReachabilityRequest = GetWorkerTaskReachabilityRequest + class ReplaceBuildIdAssignmentRule(google.protobuf.message.Message): + """Replaces the assignment rule at a given index.""" -class GetWorkerTaskReachabilityResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - BUILD_ID_REACHABILITY_FIELD_NUMBER: builtins.int - @property - def build_id_reachability( - self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ - temporalio.api.taskqueue.v1.message_pb2.BuildIdReachability - ]: - """Task reachability, broken down by build id and then task queue. - When requesting a large number of task queues or all task queues associated with the given build ids in a - namespace, all task queues will be listed in the response but some of them may not contain reachability - information due to a server enforced limit. When reaching the limit, task queues that reachability information - could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue - another call to get the reachability for those task queues. + RULE_INDEX_FIELD_NUMBER: builtins.int + RULE_FIELD_NUMBER: builtins.int + FORCE_FIELD_NUMBER: builtins.int + rule_index: builtins.int + @property + def rule( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.BuildIdAssignmentRule: ... + force: builtins.bool + """By default presence of one unconditional rule is enforced, otherwise + the replace operation will be rejected. Set `force` to true to + bypass this validation. An unconditional assignment rule: + - Has no hint filter + - Has no ramp + """ + def __init__( + self, + *, + rule_index: builtins.int = ..., + rule: temporalio.api.taskqueue.v1.message_pb2.BuildIdAssignmentRule + | None = ..., + force: builtins.bool = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["rule", b"rule"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "force", b"force", "rule", b"rule", "rule_index", b"rule_index" + ], + ) -> None: ... - Open source users can adjust this limit by setting the server's dynamic config value for - `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. + class DeleteBuildIdAssignmentRule(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RULE_INDEX_FIELD_NUMBER: builtins.int + FORCE_FIELD_NUMBER: builtins.int + rule_index: builtins.int + force: builtins.bool + """By default presence of one unconditional rule is enforced, otherwise + the delete operation will be rejected. Set `force` to true to + bypass this validation. An unconditional assignment rule: + - Has no hint filter + - Has no ramp """ - def __init__( - self, - *, - build_id_reachability: collections.abc.Iterable[ - temporalio.api.taskqueue.v1.message_pb2.BuildIdReachability - ] - | None = ..., - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions.Literal[ - "build_id_reachability", b"build_id_reachability" - ], - ) -> None: ... + def __init__( + self, + *, + rule_index: builtins.int = ..., + force: builtins.bool = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "force", b"force", "rule_index", b"rule_index" + ], + ) -> None: ... -global___GetWorkerTaskReachabilityResponse = GetWorkerTaskReachabilityResponse + class AddCompatibleBuildIdRedirectRule(google.protobuf.message.Message): + """Adds the rule to the list of redirect rules for this Task Queue. There + can be at most one redirect rule for each distinct Source Build ID. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RULE_FIELD_NUMBER: builtins.int + @property + def rule( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.CompatibleBuildIdRedirectRule: ... + def __init__( + self, + *, + rule: temporalio.api.taskqueue.v1.message_pb2.CompatibleBuildIdRedirectRule + | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["rule", b"rule"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["rule", b"rule"] + ) -> None: ... + + class ReplaceCompatibleBuildIdRedirectRule(google.protobuf.message.Message): + """Replaces the routing rule with the given source Build ID.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RULE_FIELD_NUMBER: builtins.int + @property + def rule( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.CompatibleBuildIdRedirectRule: ... + def __init__( + self, + *, + rule: temporalio.api.taskqueue.v1.message_pb2.CompatibleBuildIdRedirectRule + | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["rule", b"rule"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["rule", b"rule"] + ) -> None: ... + + class DeleteCompatibleBuildIdRedirectRule(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SOURCE_BUILD_ID_FIELD_NUMBER: builtins.int + source_build_id: builtins.str + def __init__( + self, + *, + source_build_id: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "source_build_id", b"source_build_id" + ], + ) -> None: ... + + class CommitBuildId(google.protobuf.message.Message): + """This command is intended to be used to complete the rollout of a Build + ID and cleanup unnecessary rules possibly created during a gradual + rollout. Specifically, this command will make the following changes + atomically: + 1. Adds an assignment rule (with full ramp) for the target Build ID at + the end of the list. + 2. Removes all previously added assignment rules to the given target + Build ID (if any). + 3. Removes any fully-ramped assignment rule for other Build IDs. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TARGET_BUILD_ID_FIELD_NUMBER: builtins.int + FORCE_FIELD_NUMBER: builtins.int + target_build_id: builtins.str + force: builtins.bool + """To prevent committing invalid Build IDs, we reject the request if no + pollers has been seen recently for this Build ID. Use the `force` + option to disable this validation. + """ + def __init__( + self, + *, + target_build_id: builtins.str = ..., + force: builtins.bool = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "force", b"force", "target_build_id", b"target_build_id" + ], + ) -> None: ... + + NAMESPACE_FIELD_NUMBER: builtins.int + TASK_QUEUE_FIELD_NUMBER: builtins.int + CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + INSERT_ASSIGNMENT_RULE_FIELD_NUMBER: builtins.int + REPLACE_ASSIGNMENT_RULE_FIELD_NUMBER: builtins.int + DELETE_ASSIGNMENT_RULE_FIELD_NUMBER: builtins.int + ADD_COMPATIBLE_REDIRECT_RULE_FIELD_NUMBER: builtins.int + REPLACE_COMPATIBLE_REDIRECT_RULE_FIELD_NUMBER: builtins.int + DELETE_COMPATIBLE_REDIRECT_RULE_FIELD_NUMBER: builtins.int + COMMIT_BUILD_ID_FIELD_NUMBER: builtins.int + namespace: builtins.str + task_queue: builtins.str + conflict_token: builtins.bytes + """A valid conflict_token can be taken from the previous + ListWorkerVersioningRulesResponse or UpdateWorkerVersioningRulesResponse. + An invalid token will cause this request to fail, ensuring that if the rules + for this Task Queue have been modified between the previous and current + operation, the request will fail instead of causing an unpredictable mutation. + """ + @property + def insert_assignment_rule( + self, + ) -> global___UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule: ... + @property + def replace_assignment_rule( + self, + ) -> global___UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule: ... + @property + def delete_assignment_rule( + self, + ) -> global___UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRule: ... + @property + def add_compatible_redirect_rule( + self, + ) -> ( + global___UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule + ): ... + @property + def replace_compatible_redirect_rule( + self, + ) -> ( + global___UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule + ): ... + @property + def delete_compatible_redirect_rule( + self, + ) -> ( + global___UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRule + ): ... + @property + def commit_build_id( + self, + ) -> global___UpdateWorkerVersioningRulesRequest.CommitBuildId: ... + def __init__( + self, + *, + namespace: builtins.str = ..., + task_queue: builtins.str = ..., + conflict_token: builtins.bytes = ..., + insert_assignment_rule: global___UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule + | None = ..., + replace_assignment_rule: global___UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule + | None = ..., + delete_assignment_rule: global___UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRule + | None = ..., + add_compatible_redirect_rule: global___UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule + | None = ..., + replace_compatible_redirect_rule: global___UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule + | None = ..., + delete_compatible_redirect_rule: global___UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRule + | None = ..., + commit_build_id: global___UpdateWorkerVersioningRulesRequest.CommitBuildId + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "add_compatible_redirect_rule", + b"add_compatible_redirect_rule", + "commit_build_id", + b"commit_build_id", + "delete_assignment_rule", + b"delete_assignment_rule", + "delete_compatible_redirect_rule", + b"delete_compatible_redirect_rule", + "insert_assignment_rule", + b"insert_assignment_rule", + "operation", + b"operation", + "replace_assignment_rule", + b"replace_assignment_rule", + "replace_compatible_redirect_rule", + b"replace_compatible_redirect_rule", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "add_compatible_redirect_rule", + b"add_compatible_redirect_rule", + "commit_build_id", + b"commit_build_id", + "conflict_token", + b"conflict_token", + "delete_assignment_rule", + b"delete_assignment_rule", + "delete_compatible_redirect_rule", + b"delete_compatible_redirect_rule", + "insert_assignment_rule", + b"insert_assignment_rule", + "namespace", + b"namespace", + "operation", + b"operation", + "replace_assignment_rule", + b"replace_assignment_rule", + "replace_compatible_redirect_rule", + b"replace_compatible_redirect_rule", + "task_queue", + b"task_queue", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["operation", b"operation"] + ) -> ( + typing_extensions.Literal[ + "insert_assignment_rule", + "replace_assignment_rule", + "delete_assignment_rule", + "add_compatible_redirect_rule", + "replace_compatible_redirect_rule", + "delete_compatible_redirect_rule", + "commit_build_id", + ] + | None + ): ... + +global___UpdateWorkerVersioningRulesRequest = UpdateWorkerVersioningRulesRequest + +class UpdateWorkerVersioningRulesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASSIGNMENT_RULES_FIELD_NUMBER: builtins.int + COMPATIBLE_REDIRECT_RULES_FIELD_NUMBER: builtins.int + CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + @property + def assignment_rules( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.taskqueue.v1.message_pb2.TimestampedBuildIdAssignmentRule + ]: ... + @property + def compatible_redirect_rules( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.taskqueue.v1.message_pb2.TimestampedCompatibleBuildIdRedirectRule + ]: ... + conflict_token: builtins.bytes + """This value can be passed back to UpdateWorkerVersioningRulesRequest to + ensure that the rules were not modified between the two updates, which + could lead to lost updates and other confusion. + """ + def __init__( + self, + *, + assignment_rules: collections.abc.Iterable[ + temporalio.api.taskqueue.v1.message_pb2.TimestampedBuildIdAssignmentRule + ] + | None = ..., + compatible_redirect_rules: collections.abc.Iterable[ + temporalio.api.taskqueue.v1.message_pb2.TimestampedCompatibleBuildIdRedirectRule + ] + | None = ..., + conflict_token: builtins.bytes = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "assignment_rules", + b"assignment_rules", + "compatible_redirect_rules", + b"compatible_redirect_rules", + "conflict_token", + b"conflict_token", + ], + ) -> None: ... + +global___UpdateWorkerVersioningRulesResponse = UpdateWorkerVersioningRulesResponse + +class GetWorkerVersioningRulesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + TASK_QUEUE_FIELD_NUMBER: builtins.int + namespace: builtins.str + task_queue: builtins.str + def __init__( + self, + *, + namespace: builtins.str = ..., + task_queue: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "namespace", b"namespace", "task_queue", b"task_queue" + ], + ) -> None: ... + +global___GetWorkerVersioningRulesRequest = GetWorkerVersioningRulesRequest + +class GetWorkerVersioningRulesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASSIGNMENT_RULES_FIELD_NUMBER: builtins.int + COMPATIBLE_REDIRECT_RULES_FIELD_NUMBER: builtins.int + CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + @property + def assignment_rules( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.taskqueue.v1.message_pb2.TimestampedBuildIdAssignmentRule + ]: ... + @property + def compatible_redirect_rules( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.taskqueue.v1.message_pb2.TimestampedCompatibleBuildIdRedirectRule + ]: ... + conflict_token: builtins.bytes + """This value can be passed back to UpdateWorkerVersioningRulesRequest to + ensure that the rules were not modified between this List and the Update, + which could lead to lost updates and other confusion. + """ + def __init__( + self, + *, + assignment_rules: collections.abc.Iterable[ + temporalio.api.taskqueue.v1.message_pb2.TimestampedBuildIdAssignmentRule + ] + | None = ..., + compatible_redirect_rules: collections.abc.Iterable[ + temporalio.api.taskqueue.v1.message_pb2.TimestampedCompatibleBuildIdRedirectRule + ] + | None = ..., + conflict_token: builtins.bytes = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "assignment_rules", + b"assignment_rules", + "compatible_redirect_rules", + b"compatible_redirect_rules", + "conflict_token", + b"conflict_token", + ], + ) -> None: ... + +global___GetWorkerVersioningRulesResponse = GetWorkerVersioningRulesResponse + +class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): + """Deprecated. Use `DescribeTaskQueue`.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + BUILD_IDS_FIELD_NUMBER: builtins.int + TASK_QUEUES_FIELD_NUMBER: builtins.int + REACHABILITY_FIELD_NUMBER: builtins.int + namespace: builtins.str + @property + def build_ids( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker. + The number of build ids that can be queried in a single API call is limited. + Open source users can adjust this limit by setting the server's dynamic config value for + `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store. + """ + @property + def task_queues( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given + build ids in the namespace. + Must specify at least one task queue if querying for an unversioned worker. + The number of task queues that the server will fetch reachability information for is limited. + See the `GetWorkerTaskReachabilityResponse` documentation for more information. + """ + reachability: temporalio.api.enums.v1.task_queue_pb2.TaskReachability.ValueType + """Type of reachability to query for. + `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response. + Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows. + Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left + unspecified. + See the TaskReachability docstring for information about each enum variant. + """ + def __init__( + self, + *, + namespace: builtins.str = ..., + build_ids: collections.abc.Iterable[builtins.str] | None = ..., + task_queues: collections.abc.Iterable[builtins.str] | None = ..., + reachability: temporalio.api.enums.v1.task_queue_pb2.TaskReachability.ValueType = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "build_ids", + b"build_ids", + "namespace", + b"namespace", + "reachability", + b"reachability", + "task_queues", + b"task_queues", + ], + ) -> None: ... + +global___GetWorkerTaskReachabilityRequest = GetWorkerTaskReachabilityRequest + +class GetWorkerTaskReachabilityResponse(google.protobuf.message.Message): + """Deprecated. Use `DescribeTaskQueue`.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BUILD_ID_REACHABILITY_FIELD_NUMBER: builtins.int + @property + def build_id_reachability( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.taskqueue.v1.message_pb2.BuildIdReachability + ]: + """Task reachability, broken down by build id and then task queue. + When requesting a large number of task queues or all task queues associated with the given build ids in a + namespace, all task queues will be listed in the response but some of them may not contain reachability + information due to a server enforced limit. When reaching the limit, task queues that reachability information + could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue + another call to get the reachability for those task queues. + + Open source users can adjust this limit by setting the server's dynamic config value for + `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. + """ + def __init__( + self, + *, + build_id_reachability: collections.abc.Iterable[ + temporalio.api.taskqueue.v1.message_pb2.BuildIdReachability + ] + | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "build_id_reachability", b"build_id_reachability" + ], + ) -> None: ... + +global___GetWorkerTaskReachabilityResponse = GetWorkerTaskReachabilityResponse class UpdateWorkflowExecutionRequest(google.protobuf.message.Message): """(-- api-linter: core::0134=disabled @@ -5600,3 +6263,335 @@ class PollWorkflowExecutionUpdateResponse(google.protobuf.message.Message): ) -> None: ... global___PollWorkflowExecutionUpdateResponse = PollWorkflowExecutionUpdateResponse + +class PollNexusTaskQueueRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + TASK_QUEUE_FIELD_NUMBER: builtins.int + WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int + namespace: builtins.str + identity: builtins.str + """The identity of the client who initiated this request.""" + @property + def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... + @property + def worker_version_capabilities( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities: + """Information about this worker's build identifier and if it is choosing to use the versioning + feature. See the `WorkerVersionCapabilities` docstring for more. + """ + def __init__( + self, + *, + namespace: builtins.str = ..., + identity: builtins.str = ..., + task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ..., + worker_version_capabilities: temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "task_queue", + b"task_queue", + "worker_version_capabilities", + b"worker_version_capabilities", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "identity", + b"identity", + "namespace", + b"namespace", + "task_queue", + b"task_queue", + "worker_version_capabilities", + b"worker_version_capabilities", + ], + ) -> None: ... + +global___PollNexusTaskQueueRequest = PollNexusTaskQueueRequest + +class PollNexusTaskQueueResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TASK_TOKEN_FIELD_NUMBER: builtins.int + REQUEST_FIELD_NUMBER: builtins.int + task_token: builtins.bytes + """An opaque unique identifier for this task for correlating a completion request the embedded request.""" + @property + def request(self) -> temporalio.api.nexus.v1.message_pb2.Request: + """Embedded request as translated from the incoming frontend request.""" + def __init__( + self, + *, + task_token: builtins.bytes = ..., + request: temporalio.api.nexus.v1.message_pb2.Request | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["request", b"request"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "request", b"request", "task_token", b"task_token" + ], + ) -> None: ... + +global___PollNexusTaskQueueResponse = PollNexusTaskQueueResponse + +class RespondNexusTaskCompletedRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + TASK_TOKEN_FIELD_NUMBER: builtins.int + RESPONSE_FIELD_NUMBER: builtins.int + namespace: builtins.str + identity: builtins.str + """The identity of the client who initiated this request.""" + task_token: builtins.bytes + """A unique identifier for this task as received via a poll response.""" + @property + def response(self) -> temporalio.api.nexus.v1.message_pb2.Response: + """Embedded response to be translated into a frontend response.""" + def __init__( + self, + *, + namespace: builtins.str = ..., + identity: builtins.str = ..., + task_token: builtins.bytes = ..., + response: temporalio.api.nexus.v1.message_pb2.Response | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["response", b"response"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "identity", + b"identity", + "namespace", + b"namespace", + "response", + b"response", + "task_token", + b"task_token", + ], + ) -> None: ... + +global___RespondNexusTaskCompletedRequest = RespondNexusTaskCompletedRequest + +class RespondNexusTaskCompletedResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___RespondNexusTaskCompletedResponse = RespondNexusTaskCompletedResponse + +class RespondNexusTaskFailedRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + TASK_TOKEN_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + namespace: builtins.str + identity: builtins.str + """The identity of the client who initiated this request.""" + task_token: builtins.bytes + """A unique identifier for this task.""" + @property + def error(self) -> temporalio.api.nexus.v1.message_pb2.HandlerError: + """The error the handler failed with.""" + def __init__( + self, + *, + namespace: builtins.str = ..., + identity: builtins.str = ..., + task_token: builtins.bytes = ..., + error: temporalio.api.nexus.v1.message_pb2.HandlerError | 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", + "identity", + b"identity", + "namespace", + b"namespace", + "task_token", + b"task_token", + ], + ) -> None: ... + +global___RespondNexusTaskFailedRequest = RespondNexusTaskFailedRequest + +class RespondNexusTaskFailedResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___RespondNexusTaskFailedResponse = RespondNexusTaskFailedResponse + +class ExecuteMultiOperationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class Operation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + START_WORKFLOW_FIELD_NUMBER: builtins.int + UPDATE_WORKFLOW_FIELD_NUMBER: builtins.int + @property + def start_workflow(self) -> global___StartWorkflowExecutionRequest: + """Additional restrictions: + - setting `cron_schedule` is invalid + - setting `request_eager_execution` is invalid + """ + @property + def update_workflow(self) -> global___UpdateWorkflowExecutionRequest: ... + def __init__( + self, + *, + start_workflow: global___StartWorkflowExecutionRequest | None = ..., + update_workflow: global___UpdateWorkflowExecutionRequest | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "operation", + b"operation", + "start_workflow", + b"start_workflow", + "update_workflow", + b"update_workflow", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "operation", + b"operation", + "start_workflow", + b"start_workflow", + "update_workflow", + b"update_workflow", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["operation", b"operation"] + ) -> typing_extensions.Literal["start_workflow", "update_workflow"] | None: ... + + NAMESPACE_FIELD_NUMBER: builtins.int + OPERATIONS_FIELD_NUMBER: builtins.int + namespace: builtins.str + @property + def operations( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___ExecuteMultiOperationRequest.Operation + ]: + """List of operations to execute within a single workflow. + + Preconditions: + - The list of operations must not be empty. + - The workflow ids must match across operations. + - The only valid list of operations at this time is [StartWorkflow, UpdateWorkflow], in this order. + + Note that additional operation-specific restrictions have to be considered. + """ + def __init__( + self, + *, + namespace: builtins.str = ..., + operations: collections.abc.Iterable[ + global___ExecuteMultiOperationRequest.Operation + ] + | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "namespace", b"namespace", "operations", b"operations" + ], + ) -> None: ... + +global___ExecuteMultiOperationRequest = ExecuteMultiOperationRequest + +class ExecuteMultiOperationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class Response(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + START_WORKFLOW_FIELD_NUMBER: builtins.int + UPDATE_WORKFLOW_FIELD_NUMBER: builtins.int + @property + def start_workflow(self) -> global___StartWorkflowExecutionResponse: ... + @property + def update_workflow(self) -> global___UpdateWorkflowExecutionResponse: ... + def __init__( + self, + *, + start_workflow: global___StartWorkflowExecutionResponse | None = ..., + update_workflow: global___UpdateWorkflowExecutionResponse | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "response", + b"response", + "start_workflow", + b"start_workflow", + "update_workflow", + b"update_workflow", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "response", + b"response", + "start_workflow", + b"start_workflow", + "update_workflow", + b"update_workflow", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["response", b"response"] + ) -> typing_extensions.Literal["start_workflow", "update_workflow"] | None: ... + + RESPONSES_FIELD_NUMBER: builtins.int + @property + def responses( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___ExecuteMultiOperationResponse.Response + ]: ... + def __init__( + self, + *, + responses: collections.abc.Iterable[ + global___ExecuteMultiOperationResponse.Response + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["responses", b"responses"] + ) -> None: ... + +global___ExecuteMultiOperationResponse = ExecuteMultiOperationResponse diff --git a/temporalio/api/workflowservice/v1/service_pb2.py b/temporalio/api/workflowservice/v1/service_pb2.py index 9989fe817..4b4068e52 100644 --- a/temporalio/api/workflowservice/v1/service_pb2.py +++ b/temporalio/api/workflowservice/v1/service_pb2.py @@ -20,7 +20,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n-temporal/api/workflowservice/v1/service.proto\x12\x1ftemporal.api.workflowservice.v1\x1a\x36temporal/api/workflowservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\x8a]\n\x0fWorkflowService\x12\xa9\x01\n\x11RegisterNamespace\x12\x39.temporal.api.workflowservice.v1.RegisterNamespaceRequest\x1a:.temporal.api.workflowservice.v1.RegisterNamespaceResponse"\x1d\x82\xd3\xe4\x93\x02\x17"\x12/api/v1/namespaces:\x01*\x12\xb2\x01\n\x11\x44\x65scribeNamespace\x12\x39.temporal.api.workflowservice.v1.DescribeNamespaceRequest\x1a:.temporal.api.workflowservice.v1.DescribeNamespaceResponse"&\x82\xd3\xe4\x93\x02 \x12\x1e/api/v1/namespaces/{namespace}\x12\x9d\x01\n\x0eListNamespaces\x12\x36.temporal.api.workflowservice.v1.ListNamespacesRequest\x1a\x37.temporal.api.workflowservice.v1.ListNamespacesResponse"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/api/v1/namespaces\x12\xb6\x01\n\x0fUpdateNamespace\x12\x37.temporal.api.workflowservice.v1.UpdateNamespaceRequest\x1a\x38.temporal.api.workflowservice.v1.UpdateNamespaceResponse"0\x82\xd3\xe4\x93\x02*"%/api/v1/namespaces/{namespace}/update:\x01*\x12\x8f\x01\n\x12\x44\x65precateNamespace\x12:.temporal.api.workflowservice.v1.DeprecateNamespaceRequest\x1a;.temporal.api.workflowservice.v1.DeprecateNamespaceResponse"\x00\x12\xdc\x01\n\x16StartWorkflowExecution\x12>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponse"A\x82\xd3\xe4\x93\x02;"6/api/v1/namespaces/{namespace}/workflows/{workflow_id}:\x01*\x12\xfa\x01\n\x1bGetWorkflowExecutionHistory\x12\x43.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest\x1a\x44.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse"P\x82\xd3\xe4\x93\x02J\x12H/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history\x12\x97\x02\n"GetWorkflowExecutionHistoryReverse\x12J.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest\x1aK.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse"X\x82\xd3\xe4\x93\x02R\x12P/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverse\x12\x98\x01\n\x15PollWorkflowTaskQueue\x12=.temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"\x00\x12\xad\x01\n\x1cRespondWorkflowTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse"\x00\x12\xa4\x01\n\x19RespondWorkflowTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse"\x00\x12\x98\x01\n\x15PollActivityTaskQueue\x12=.temporal.api.workflowservice.v1.PollActivityTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse"\x00\x12\xe8\x01\n\x1bRecordActivityTaskHeartbeat\x12\x43.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest\x1a\x44.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse">\x82\xd3\xe4\x93\x02\x38"3/api/v1/namespaces/{namespace}/activities/heartbeat:\x01*\x12\xfa\x01\n\x1fRecordActivityTaskHeartbeatById\x12G.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest\x1aH.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse"D\x82\xd3\xe4\x93\x02>"9/api/v1/namespaces/{namespace}/activities/heartbeat-by-id:\x01*\x12\xea\x01\n\x1cRespondActivityTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse"=\x82\xd3\xe4\x93\x02\x37"2/api/v1/namespaces/{namespace}/activities/complete:\x01*\x12\xfc\x01\n RespondActivityTaskCompletedById\x12H.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest\x1aI.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse"C\x82\xd3\xe4\x93\x02="8/api/v1/namespaces/{namespace}/activities/complete-by-id:\x01*\x12\xdd\x01\n\x19RespondActivityTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse"9\x82\xd3\xe4\x93\x02\x33"./api/v1/namespaces/{namespace}/activities/fail:\x01*\x12\xef\x01\n\x1dRespondActivityTaskFailedById\x12\x45.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest\x1a\x46.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse"?\x82\xd3\xe4\x93\x02\x39"4/api/v1/namespaces/{namespace}/activities/fail-by-id:\x01*\x12\xe5\x01\n\x1bRespondActivityTaskCanceled\x12\x43.temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest\x1a\x44.temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse";\x82\xd3\xe4\x93\x02\x35"0/api/v1/namespaces/{namespace}/activities/cancel:\x01*\x12\xf7\x01\n\x1fRespondActivityTaskCanceledById\x12G.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest\x1aH.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse"A\x82\xd3\xe4\x93\x02;"6/api/v1/namespaces/{namespace}/activities/cancel-by-id:\x01*\x12\x8e\x02\n\x1eRequestCancelWorkflowExecution\x12\x46.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest\x1aG.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse"[\x82\xd3\xe4\x93\x02U"P/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/cancel:\x01*\x12\x87\x02\n\x17SignalWorkflowExecution\x12?.temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse"i\x82\xd3\xe4\x93\x02\x63"^/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/signal/{signal_name}:\x01*\x12\x9a\x02\n SignalWithStartWorkflowExecution\x12H.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest\x1aI.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse"a\x82\xd3\xe4\x93\x02["V/api/v1/namespaces/{namespace}/workflows/{workflow_id}/signal-with-start/{signal_name}:\x01*\x12\xf5\x01\n\x16ResetWorkflowExecution\x12>.temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse"Z\x82\xd3\xe4\x93\x02T"O/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset:\x01*\x12\x85\x02\n\x1aTerminateWorkflowExecution\x12\x42.temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest\x1a\x43.temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse"^\x82\xd3\xe4\x93\x02X"S/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate:\x01*\x12\x9e\x01\n\x17\x44\x65leteWorkflowExecution\x12?.temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse"\x00\x12\xa7\x01\n\x1aListOpenWorkflowExecutions\x12\x42.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest\x1a\x43.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse"\x00\x12\xad\x01\n\x1cListClosedWorkflowExecutions\x12\x44.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest\x1a\x45.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse"\x00\x12\xcb\x01\n\x16ListWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse"0\x82\xd3\xe4\x93\x02*\x12(/api/v1/namespaces/{namespace}/workflows\x12\xec\x01\n\x1eListArchivedWorkflowExecutions\x12\x46.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest\x1aG.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse"9\x82\xd3\xe4\x93\x02\x33\x12\x31/api/v1/namespaces/{namespace}/archived-workflows\x12\x9b\x01\n\x16ScanWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse"\x00\x12\xd3\x01\n\x17\x43ountWorkflowExecutions\x12?.temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest\x1a@.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse"5\x82\xd3\xe4\x93\x02/\x12-/api/v1/namespaces/{namespace}/workflow-count\x12\x92\x01\n\x13GetSearchAttributes\x12;.temporal.api.workflowservice.v1.GetSearchAttributesRequest\x1a<.temporal.api.workflowservice.v1.GetSearchAttributesResponse"\x00\x12\xa4\x01\n\x19RespondQueryTaskCompleted\x12\x41.temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse"\x00\x12\x95\x01\n\x14ResetStickyTaskQueue\x12<.temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest\x1a=.temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse"\x00\x12\xe4\x01\n\rQueryWorkflow\x12\x35.temporal.api.workflowservice.v1.QueryWorkflowRequest\x1a\x36.temporal.api.workflowservice.v1.QueryWorkflowResponse"d\x82\xd3\xe4\x93\x02^"Y/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}:\x01*\x12\xec\x01\n\x19\x44\x65scribeWorkflowExecution\x12\x41.temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest\x1a\x42.temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse"H\x82\xd3\xe4\x93\x02\x42\x12@/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}\x12\xd0\x01\n\x11\x44\x65scribeTaskQueue\x12\x39.temporal.api.workflowservice.v1.DescribeTaskQueueRequest\x1a:.temporal.api.workflowservice.v1.DescribeTaskQueueResponse"D\x82\xd3\xe4\x93\x02>\x12\x82\xd3\xe4\x93\x02\x38\x12\x36/api/v1/namespaces/{namespace}/schedules/{schedule_id}\x12\xcb\x01\n\x0eUpdateSchedule\x12\x36.temporal.api.workflowservice.v1.UpdateScheduleRequest\x1a\x37.temporal.api.workflowservice.v1.UpdateScheduleResponse"H\x82\xd3\xe4\x93\x02\x42"=/api/v1/namespaces/{namespace}/schedules/{schedule_id}/update:\x01*\x12\xc7\x01\n\rPatchSchedule\x12\x35.temporal.api.workflowservice.v1.PatchScheduleRequest\x1a\x36.temporal.api.workflowservice.v1.PatchScheduleResponse"G\x82\xd3\xe4\x93\x02\x41"\x82\xd3\xe4\x93\x02\x38*6/api/v1/namespaces/{namespace}/schedules/{schedule_id}\x12\xb0\x01\n\rListSchedules\x12\x35.temporal.api.workflowservice.v1.ListSchedulesRequest\x1a\x36.temporal.api.workflowservice.v1.ListSchedulesResponse"0\x82\xd3\xe4\x93\x02*\x12(/api/v1/namespaces/{namespace}/schedules\x12\xb9\x01\n UpdateWorkerBuildIdCompatibility\x12H.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest\x1aI.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse"\x00\x12\x8d\x02\n\x1dGetWorkerBuildIdCompatibility\x12\x45.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest\x1a\x46.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse"]\x82\xd3\xe4\x93\x02W\x12U/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibility\x12\xe3\x01\n\x19GetWorkerTaskReachability\x12\x41.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest\x1a\x42.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse"?\x82\xd3\xe4\x93\x02\x39\x12\x37/api/v1/namespaces/{namespace}/worker-task-reachability\x12\x8e\x02\n\x17UpdateWorkflowExecution\x12?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse"p\x82\xd3\xe4\x93\x02j"e/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update/{request.input.name}:\x01*\x12\xaa\x01\n\x1bPollWorkflowExecutionUpdate\x12\x43.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest\x1a\x44.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse"\x00\x12\xd5\x01\n\x13StartBatchOperation\x12;.temporal.api.workflowservice.v1.StartBatchOperationRequest\x1a<.temporal.api.workflowservice.v1.StartBatchOperationResponse"C\x82\xd3\xe4\x93\x02="8/api/v1/namespaces/{namespace}/batch-operations/{job_id}:\x01*\x12\xd7\x01\n\x12StopBatchOperation\x12:.temporal.api.workflowservice.v1.StopBatchOperationRequest\x1a;.temporal.api.workflowservice.v1.StopBatchOperationResponse"H\x82\xd3\xe4\x93\x02\x42"=/api/v1/namespaces/{namespace}/batch-operations/{job_id}/stop:\x01*\x12\xdb\x01\n\x16\x44\x65scribeBatchOperation\x12>.temporal.api.workflowservice.v1.DescribeBatchOperationRequest\x1a?.temporal.api.workflowservice.v1.DescribeBatchOperationResponse"@\x82\xd3\xe4\x93\x02:\x12\x38/api/v1/namespaces/{namespace}/batch-operations/{job_id}\x12\xc9\x01\n\x13ListBatchOperations\x12;.temporal.api.workflowservice.v1.ListBatchOperationsRequest\x1a<.temporal.api.workflowservice.v1.ListBatchOperationsResponse"7\x82\xd3\xe4\x93\x02\x31\x12//api/v1/namespaces/{namespace}/batch-operationsB\xb6\x01\n"io.temporal.api.workflowservice.v1B\x0cServiceProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' + b'\n-temporal/api/workflowservice/v1/service.proto\x12\x1ftemporal.api.workflowservice.v1\x1a\x36temporal/api/workflowservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\xef\x65\n\x0fWorkflowService\x12\xa9\x01\n\x11RegisterNamespace\x12\x39.temporal.api.workflowservice.v1.RegisterNamespaceRequest\x1a:.temporal.api.workflowservice.v1.RegisterNamespaceResponse"\x1d\x82\xd3\xe4\x93\x02\x17"\x12/api/v1/namespaces:\x01*\x12\xb2\x01\n\x11\x44\x65scribeNamespace\x12\x39.temporal.api.workflowservice.v1.DescribeNamespaceRequest\x1a:.temporal.api.workflowservice.v1.DescribeNamespaceResponse"&\x82\xd3\xe4\x93\x02 \x12\x1e/api/v1/namespaces/{namespace}\x12\x9d\x01\n\x0eListNamespaces\x12\x36.temporal.api.workflowservice.v1.ListNamespacesRequest\x1a\x37.temporal.api.workflowservice.v1.ListNamespacesResponse"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/api/v1/namespaces\x12\xb6\x01\n\x0fUpdateNamespace\x12\x37.temporal.api.workflowservice.v1.UpdateNamespaceRequest\x1a\x38.temporal.api.workflowservice.v1.UpdateNamespaceResponse"0\x82\xd3\xe4\x93\x02*"%/api/v1/namespaces/{namespace}/update:\x01*\x12\x8f\x01\n\x12\x44\x65precateNamespace\x12:.temporal.api.workflowservice.v1.DeprecateNamespaceRequest\x1a;.temporal.api.workflowservice.v1.DeprecateNamespaceResponse"\x00\x12\xdc\x01\n\x16StartWorkflowExecution\x12>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponse"A\x82\xd3\xe4\x93\x02;"6/api/v1/namespaces/{namespace}/workflows/{workflow_id}:\x01*\x12\xe3\x01\n\x15\x45xecuteMultiOperation\x12=.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest\x1a>.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse"K\x82\xd3\xe4\x93\x02\x45"@/api/v1/namespaces/{namespace}/workflows/execute-multi-operation:\x01*\x12\xfa\x01\n\x1bGetWorkflowExecutionHistory\x12\x43.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest\x1a\x44.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse"P\x82\xd3\xe4\x93\x02J\x12H/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history\x12\x97\x02\n"GetWorkflowExecutionHistoryReverse\x12J.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest\x1aK.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse"X\x82\xd3\xe4\x93\x02R\x12P/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverse\x12\x98\x01\n\x15PollWorkflowTaskQueue\x12=.temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"\x00\x12\xad\x01\n\x1cRespondWorkflowTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse"\x00\x12\xa4\x01\n\x19RespondWorkflowTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse"\x00\x12\x98\x01\n\x15PollActivityTaskQueue\x12=.temporal.api.workflowservice.v1.PollActivityTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse"\x00\x12\xe8\x01\n\x1bRecordActivityTaskHeartbeat\x12\x43.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest\x1a\x44.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse">\x82\xd3\xe4\x93\x02\x38"3/api/v1/namespaces/{namespace}/activities/heartbeat:\x01*\x12\xfa\x01\n\x1fRecordActivityTaskHeartbeatById\x12G.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest\x1aH.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse"D\x82\xd3\xe4\x93\x02>"9/api/v1/namespaces/{namespace}/activities/heartbeat-by-id:\x01*\x12\xea\x01\n\x1cRespondActivityTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse"=\x82\xd3\xe4\x93\x02\x37"2/api/v1/namespaces/{namespace}/activities/complete:\x01*\x12\xfc\x01\n RespondActivityTaskCompletedById\x12H.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest\x1aI.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse"C\x82\xd3\xe4\x93\x02="8/api/v1/namespaces/{namespace}/activities/complete-by-id:\x01*\x12\xdd\x01\n\x19RespondActivityTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse"9\x82\xd3\xe4\x93\x02\x33"./api/v1/namespaces/{namespace}/activities/fail:\x01*\x12\xef\x01\n\x1dRespondActivityTaskFailedById\x12\x45.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest\x1a\x46.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse"?\x82\xd3\xe4\x93\x02\x39"4/api/v1/namespaces/{namespace}/activities/fail-by-id:\x01*\x12\xe5\x01\n\x1bRespondActivityTaskCanceled\x12\x43.temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest\x1a\x44.temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse";\x82\xd3\xe4\x93\x02\x35"0/api/v1/namespaces/{namespace}/activities/cancel:\x01*\x12\xf7\x01\n\x1fRespondActivityTaskCanceledById\x12G.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest\x1aH.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse"A\x82\xd3\xe4\x93\x02;"6/api/v1/namespaces/{namespace}/activities/cancel-by-id:\x01*\x12\x8e\x02\n\x1eRequestCancelWorkflowExecution\x12\x46.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest\x1aG.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse"[\x82\xd3\xe4\x93\x02U"P/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/cancel:\x01*\x12\x87\x02\n\x17SignalWorkflowExecution\x12?.temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse"i\x82\xd3\xe4\x93\x02\x63"^/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/signal/{signal_name}:\x01*\x12\x9a\x02\n SignalWithStartWorkflowExecution\x12H.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest\x1aI.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse"a\x82\xd3\xe4\x93\x02["V/api/v1/namespaces/{namespace}/workflows/{workflow_id}/signal-with-start/{signal_name}:\x01*\x12\xf5\x01\n\x16ResetWorkflowExecution\x12>.temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse"Z\x82\xd3\xe4\x93\x02T"O/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset:\x01*\x12\x85\x02\n\x1aTerminateWorkflowExecution\x12\x42.temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest\x1a\x43.temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse"^\x82\xd3\xe4\x93\x02X"S/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate:\x01*\x12\x9e\x01\n\x17\x44\x65leteWorkflowExecution\x12?.temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse"\x00\x12\xa7\x01\n\x1aListOpenWorkflowExecutions\x12\x42.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest\x1a\x43.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse"\x00\x12\xad\x01\n\x1cListClosedWorkflowExecutions\x12\x44.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest\x1a\x45.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse"\x00\x12\xcb\x01\n\x16ListWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse"0\x82\xd3\xe4\x93\x02*\x12(/api/v1/namespaces/{namespace}/workflows\x12\xec\x01\n\x1eListArchivedWorkflowExecutions\x12\x46.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest\x1aG.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse"9\x82\xd3\xe4\x93\x02\x33\x12\x31/api/v1/namespaces/{namespace}/archived-workflows\x12\x9b\x01\n\x16ScanWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse"\x00\x12\xd3\x01\n\x17\x43ountWorkflowExecutions\x12?.temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest\x1a@.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse"5\x82\xd3\xe4\x93\x02/\x12-/api/v1/namespaces/{namespace}/workflow-count\x12\x92\x01\n\x13GetSearchAttributes\x12;.temporal.api.workflowservice.v1.GetSearchAttributesRequest\x1a<.temporal.api.workflowservice.v1.GetSearchAttributesResponse"\x00\x12\xa4\x01\n\x19RespondQueryTaskCompleted\x12\x41.temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse"\x00\x12\x95\x01\n\x14ResetStickyTaskQueue\x12<.temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest\x1a=.temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse"\x00\x12\xe4\x01\n\rQueryWorkflow\x12\x35.temporal.api.workflowservice.v1.QueryWorkflowRequest\x1a\x36.temporal.api.workflowservice.v1.QueryWorkflowResponse"d\x82\xd3\xe4\x93\x02^"Y/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}:\x01*\x12\xec\x01\n\x19\x44\x65scribeWorkflowExecution\x12\x41.temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest\x1a\x42.temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse"H\x82\xd3\xe4\x93\x02\x42\x12@/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}\x12\xd0\x01\n\x11\x44\x65scribeTaskQueue\x12\x39.temporal.api.workflowservice.v1.DescribeTaskQueueRequest\x1a:.temporal.api.workflowservice.v1.DescribeTaskQueueResponse"D\x82\xd3\xe4\x93\x02>\x12\x82\xd3\xe4\x93\x02\x38\x12\x36/api/v1/namespaces/{namespace}/schedules/{schedule_id}\x12\xcb\x01\n\x0eUpdateSchedule\x12\x36.temporal.api.workflowservice.v1.UpdateScheduleRequest\x1a\x37.temporal.api.workflowservice.v1.UpdateScheduleResponse"H\x82\xd3\xe4\x93\x02\x42"=/api/v1/namespaces/{namespace}/schedules/{schedule_id}/update:\x01*\x12\xc7\x01\n\rPatchSchedule\x12\x35.temporal.api.workflowservice.v1.PatchScheduleRequest\x1a\x36.temporal.api.workflowservice.v1.PatchScheduleResponse"G\x82\xd3\xe4\x93\x02\x41"\x82\xd3\xe4\x93\x02\x38*6/api/v1/namespaces/{namespace}/schedules/{schedule_id}\x12\xb0\x01\n\rListSchedules\x12\x35.temporal.api.workflowservice.v1.ListSchedulesRequest\x1a\x36.temporal.api.workflowservice.v1.ListSchedulesResponse"0\x82\xd3\xe4\x93\x02*\x12(/api/v1/namespaces/{namespace}/schedules\x12\xb9\x01\n UpdateWorkerBuildIdCompatibility\x12H.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest\x1aI.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse"\x00\x12\x8d\x02\n\x1dGetWorkerBuildIdCompatibility\x12\x45.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest\x1a\x46.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse"]\x82\xd3\xe4\x93\x02W\x12U/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibility\x12\xaa\x01\n\x1bUpdateWorkerVersioningRules\x12\x43.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest\x1a\x44.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse"\x00\x12\xf8\x01\n\x18GetWorkerVersioningRules\x12@.temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest\x1a\x41.temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rules\x12\xe3\x01\n\x19GetWorkerTaskReachability\x12\x41.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest\x1a\x42.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse"?\x82\xd3\xe4\x93\x02\x39\x12\x37/api/v1/namespaces/{namespace}/worker-task-reachability\x12\x8e\x02\n\x17UpdateWorkflowExecution\x12?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse"p\x82\xd3\xe4\x93\x02j"e/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update/{request.input.name}:\x01*\x12\xaa\x01\n\x1bPollWorkflowExecutionUpdate\x12\x43.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest\x1a\x44.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse"\x00\x12\xd5\x01\n\x13StartBatchOperation\x12;.temporal.api.workflowservice.v1.StartBatchOperationRequest\x1a<.temporal.api.workflowservice.v1.StartBatchOperationResponse"C\x82\xd3\xe4\x93\x02="8/api/v1/namespaces/{namespace}/batch-operations/{job_id}:\x01*\x12\xd7\x01\n\x12StopBatchOperation\x12:.temporal.api.workflowservice.v1.StopBatchOperationRequest\x1a;.temporal.api.workflowservice.v1.StopBatchOperationResponse"H\x82\xd3\xe4\x93\x02\x42"=/api/v1/namespaces/{namespace}/batch-operations/{job_id}/stop:\x01*\x12\xdb\x01\n\x16\x44\x65scribeBatchOperation\x12>.temporal.api.workflowservice.v1.DescribeBatchOperationRequest\x1a?.temporal.api.workflowservice.v1.DescribeBatchOperationResponse"@\x82\xd3\xe4\x93\x02:\x12\x38/api/v1/namespaces/{namespace}/batch-operations/{job_id}\x12\xc9\x01\n\x13ListBatchOperations\x12;.temporal.api.workflowservice.v1.ListBatchOperationsRequest\x1a<.temporal.api.workflowservice.v1.ListBatchOperationsResponse"7\x82\xd3\xe4\x93\x02\x31\x12//api/v1/namespaces/{namespace}/batch-operations\x12\x8f\x01\n\x12PollNexusTaskQueue\x12:.temporal.api.workflowservice.v1.PollNexusTaskQueueRequest\x1a;.temporal.api.workflowservice.v1.PollNexusTaskQueueResponse"\x00\x12\xa4\x01\n\x19RespondNexusTaskCompleted\x12\x41.temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse"\x00\x12\x9b\x01\n\x16RespondNexusTaskFailed\x12>.temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest\x1a?.temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse"\x00\x42\xb6\x01\n"io.temporal.api.workflowservice.v1B\x0cServiceProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' ) @@ -52,6 +52,10 @@ _WORKFLOWSERVICE.methods_by_name[ "StartWorkflowExecution" ]._serialized_options = b'\202\323\344\223\002;"6/api/v1/namespaces/{namespace}/workflows/{workflow_id}:\001*' + _WORKFLOWSERVICE.methods_by_name["ExecuteMultiOperation"]._options = None + _WORKFLOWSERVICE.methods_by_name[ + "ExecuteMultiOperation" + ]._serialized_options = b'\202\323\344\223\002E"@/api/v1/namespaces/{namespace}/workflows/execute-multi-operation:\001*' _WORKFLOWSERVICE.methods_by_name["GetWorkflowExecutionHistory"]._options = None _WORKFLOWSERVICE.methods_by_name[ "GetWorkflowExecutionHistory" @@ -192,6 +196,10 @@ _WORKFLOWSERVICE.methods_by_name[ "GetWorkerBuildIdCompatibility" ]._serialized_options = b"\202\323\344\223\002W\022U/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibility" + _WORKFLOWSERVICE.methods_by_name["GetWorkerVersioningRules"]._options = None + _WORKFLOWSERVICE.methods_by_name[ + "GetWorkerVersioningRules" + ]._serialized_options = b"\202\323\344\223\002Q\022O/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rules" _WORKFLOWSERVICE.methods_by_name["GetWorkerTaskReachability"]._options = None _WORKFLOWSERVICE.methods_by_name[ "GetWorkerTaskReachability" @@ -219,5 +227,5 @@ b"\202\323\344\223\0021\022//api/v1/namespaces/{namespace}/batch-operations" ) _WORKFLOWSERVICE._serialized_start = 169 - _WORKFLOWSERVICE._serialized_end = 12083 + _WORKFLOWSERVICE._serialized_end = 13208 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/workflowservice/v1/service_pb2_grpc.py b/temporalio/api/workflowservice/v1/service_pb2_grpc.py index 3a6eed43e..030d696c8 100644 --- a/temporalio/api/workflowservice/v1/service_pb2_grpc.py +++ b/temporalio/api/workflowservice/v1/service_pb2_grpc.py @@ -57,6 +57,11 @@ def __init__(self, channel): request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.StartWorkflowExecutionRequest.SerializeToString, response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.StartWorkflowExecutionResponse.FromString, ) + self.ExecuteMultiOperation = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/ExecuteMultiOperation", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ExecuteMultiOperationRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ExecuteMultiOperationResponse.FromString, + ) self.GetWorkflowExecutionHistory = channel.unary_unary( "/temporal.api.workflowservice.v1.WorkflowService/GetWorkflowExecutionHistory", request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkflowExecutionHistoryRequest.SerializeToString, @@ -277,6 +282,16 @@ def __init__(self, channel): request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerBuildIdCompatibilityRequest.SerializeToString, response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerBuildIdCompatibilityResponse.FromString, ) + self.UpdateWorkerVersioningRules = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/UpdateWorkerVersioningRules", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerVersioningRulesRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerVersioningRulesResponse.FromString, + ) + self.GetWorkerVersioningRules = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/GetWorkerVersioningRules", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerVersioningRulesRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerVersioningRulesResponse.FromString, + ) self.GetWorkerTaskReachability = channel.unary_unary( "/temporal.api.workflowservice.v1.WorkflowService/GetWorkerTaskReachability", request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerTaskReachabilityRequest.SerializeToString, @@ -312,6 +327,21 @@ def __init__(self, channel): request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListBatchOperationsRequest.SerializeToString, response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListBatchOperationsResponse.FromString, ) + self.PollNexusTaskQueue = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/PollNexusTaskQueue", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PollNexusTaskQueueRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PollNexusTaskQueueResponse.FromString, + ) + self.RespondNexusTaskCompleted = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/RespondNexusTaskCompleted", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskCompletedRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskCompletedResponse.FromString, + ) + self.RespondNexusTaskFailed = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/RespondNexusTaskFailed", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedResponse.FromString, + ) class WorkflowServiceServicer(object): @@ -385,6 +415,21 @@ def StartWorkflowExecution(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") + def ExecuteMultiOperation(self, request, context): + """ExecuteMultiOperation executes multiple operations within a single workflow. + + Operations are started atomically, meaning if *any* operation fails to be started, none are, + and the request fails. Upon start, the API returns only when *all* operations have a response. + + Upon failure, it returns `MultiOperationExecutionFailure` where the status code + equals the status code of the *first* operation that failed to be started. + + NOTE: Experimental API. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + def GetWorkflowExecutionHistory(self, request, context): """GetWorkflowExecutionHistory returns the history of specified workflow execution. Fails with `NotFound` if the specified workflow execution is unknown to the service. @@ -734,7 +779,11 @@ def DescribeWorkflowExecution(self, request, context): raise NotImplementedError("Method not implemented!") def DescribeTaskQueue(self, request, context): - """DescribeTaskQueue returns information about the target task queue.""" + """DescribeTaskQueue returns the following information about the target task queue, broken down by Build ID: + - List of pollers + - Workflow Reachability status + - Backlog info for Workflow and/or Activity tasks + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -802,7 +851,9 @@ def ListSchedules(self, request, context): raise NotImplementedError("Method not implemented!") def UpdateWorkerBuildIdCompatibility(self, request, context): - """Allows users to specify sets of worker build id versions on a per task queue basis. Versions + """Deprecated. Use `UpdateWorkerVersioningRules`. + + Allows users to specify sets of worker build id versions on a per task queue basis. Versions are ordered, and may be either compatible with some extant version, or a new incompatible version, forming sets of ids which are incompatible with each other, but whose contained members are compatible with one another. @@ -823,13 +874,35 @@ def UpdateWorkerBuildIdCompatibility(self, request, context): raise NotImplementedError("Method not implemented!") def GetWorkerBuildIdCompatibility(self, request, context): - """Fetches the worker build id versioning sets for a task queue.""" + """Deprecated. Use `GetWorkerVersioningRules`. + Fetches the worker build id versioning sets for a task queue. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def UpdateWorkerVersioningRules(self, request, context): + """Allows updating the Build ID assignment and redirect rules for a given Task Queue. + WARNING: Worker Versioning is not yet stable and the API and behavior may change incompatibly. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do yet expose versioning API to HTTP. --) + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def GetWorkerVersioningRules(self, request, context): + """Fetches the Build ID assignment and redirect rules for a Task Queue. + WARNING: Worker Versioning is not yet stable and the API and behavior may change incompatibly. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetWorkerTaskReachability(self, request, context): - """Fetches task reachability to determine whether a worker may be retired. + """Deprecated. Use `DescribeTaskQueue`. + + Fetches task reachability to determine whether a worker may be retired. The request may specify task queues to query for or let the server fetch all task queues mapped to the given build IDs. @@ -889,6 +962,33 @@ def ListBatchOperations(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") + def PollNexusTaskQueue(self, request, context): + """PollNexusTaskQueue is a long poll call used by workers to receive Nexus tasks. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def RespondNexusTaskCompleted(self, request, context): + """RespondNexusTaskCompleted is called by workers to respond to Nexus tasks received via PollNexusTaskQueue. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def RespondNexusTaskFailed(self, request, context): + """RespondNexusTaskFailed is called by workers to fail Nexus tasks received via PollNexusTaskQueue. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + def add_WorkflowServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -922,6 +1022,11 @@ def add_WorkflowServiceServicer_to_server(servicer, server): request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.StartWorkflowExecutionRequest.FromString, response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.StartWorkflowExecutionResponse.SerializeToString, ), + "ExecuteMultiOperation": grpc.unary_unary_rpc_method_handler( + servicer.ExecuteMultiOperation, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ExecuteMultiOperationRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ExecuteMultiOperationResponse.SerializeToString, + ), "GetWorkflowExecutionHistory": grpc.unary_unary_rpc_method_handler( servicer.GetWorkflowExecutionHistory, request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkflowExecutionHistoryRequest.FromString, @@ -1142,6 +1247,16 @@ def add_WorkflowServiceServicer_to_server(servicer, server): request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerBuildIdCompatibilityRequest.FromString, response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerBuildIdCompatibilityResponse.SerializeToString, ), + "UpdateWorkerVersioningRules": grpc.unary_unary_rpc_method_handler( + servicer.UpdateWorkerVersioningRules, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerVersioningRulesRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerVersioningRulesResponse.SerializeToString, + ), + "GetWorkerVersioningRules": grpc.unary_unary_rpc_method_handler( + servicer.GetWorkerVersioningRules, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerVersioningRulesRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerVersioningRulesResponse.SerializeToString, + ), "GetWorkerTaskReachability": grpc.unary_unary_rpc_method_handler( servicer.GetWorkerTaskReachability, request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerTaskReachabilityRequest.FromString, @@ -1177,6 +1292,21 @@ def add_WorkflowServiceServicer_to_server(servicer, server): request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListBatchOperationsRequest.FromString, response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListBatchOperationsResponse.SerializeToString, ), + "PollNexusTaskQueue": grpc.unary_unary_rpc_method_handler( + servicer.PollNexusTaskQueue, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PollNexusTaskQueueRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PollNexusTaskQueueResponse.SerializeToString, + ), + "RespondNexusTaskCompleted": grpc.unary_unary_rpc_method_handler( + servicer.RespondNexusTaskCompleted, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskCompletedRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskCompletedResponse.SerializeToString, + ), + "RespondNexusTaskFailed": grpc.unary_unary_rpc_method_handler( + servicer.RespondNexusTaskFailed, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( "temporal.api.workflowservice.v1.WorkflowService", rpc_method_handlers @@ -1373,6 +1503,35 @@ def StartWorkflowExecution( metadata, ) + @staticmethod + def ExecuteMultiOperation( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/ExecuteMultiOperation", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ExecuteMultiOperationRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ExecuteMultiOperationResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + @staticmethod def GetWorkflowExecutionHistory( request, @@ -2649,6 +2808,64 @@ def GetWorkerBuildIdCompatibility( metadata, ) + @staticmethod + def UpdateWorkerVersioningRules( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/UpdateWorkerVersioningRules", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerVersioningRulesRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerVersioningRulesResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetWorkerVersioningRules( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/GetWorkerVersioningRules", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerVersioningRulesRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerVersioningRulesResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + @staticmethod def GetWorkerTaskReachability( request, @@ -2851,3 +3068,90 @@ def ListBatchOperations( timeout, metadata, ) + + @staticmethod + def PollNexusTaskQueue( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/PollNexusTaskQueue", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PollNexusTaskQueueRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PollNexusTaskQueueResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def RespondNexusTaskCompleted( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/RespondNexusTaskCompleted", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskCompletedRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskCompletedResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def RespondNexusTaskFailed( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/RespondNexusTaskFailed", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi b/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi index b6824908d..95affccaa 100644 --- a/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi @@ -93,6 +93,20 @@ class WorkflowServiceStub: also schedule the first workflow task. Returns `WorkflowExecutionAlreadyStarted`, if an instance already exists with same workflow id. """ + ExecuteMultiOperation: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationResponse, + ] + """ExecuteMultiOperation executes multiple operations within a single workflow. + + Operations are started atomically, meaning if *any* operation fails to be started, none are, + and the request fails. Upon start, the API returns only when *all* operations have a response. + + Upon failure, it returns `MultiOperationExecutionFailure` where the status code + equals the status code of the *first* operation that failed to be started. + + NOTE: Experimental API. + """ GetWorkflowExecutionHistory: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryResponse, @@ -414,7 +428,11 @@ class WorkflowServiceStub: temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueResponse, ] - """DescribeTaskQueue returns information about the target task queue.""" + """DescribeTaskQueue returns the following information about the target task queue, broken down by Build ID: + - List of pollers + - Workflow Reachability status + - Backlog info for Workflow and/or Activity tasks + """ GetClusterInfo: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoResponse, @@ -471,7 +489,9 @@ class WorkflowServiceStub: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityResponse, ] - """Allows users to specify sets of worker build id versions on a per task queue basis. Versions + """Deprecated. Use `UpdateWorkerVersioningRules`. + + Allows users to specify sets of worker build id versions on a per task queue basis. Versions are ordered, and may be either compatible with some extant version, or a new incompatible version, forming sets of ids which are incompatible with each other, but whose contained members are compatible with one another. @@ -491,12 +511,32 @@ class WorkflowServiceStub: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityResponse, ] - """Fetches the worker build id versioning sets for a task queue.""" + """Deprecated. Use `GetWorkerVersioningRules`. + Fetches the worker build id versioning sets for a task queue. + """ + UpdateWorkerVersioningRules: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesResponse, + ] + """Allows updating the Build ID assignment and redirect rules for a given Task Queue. + WARNING: Worker Versioning is not yet stable and the API and behavior may change incompatibly. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do yet expose versioning API to HTTP. --) + """ + GetWorkerVersioningRules: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesResponse, + ] + """Fetches the Build ID assignment and redirect rules for a Task Queue. + WARNING: Worker Versioning is not yet stable and the API and behavior may change incompatibly. + """ GetWorkerTaskReachability: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityResponse, ] - """Fetches task reachability to determine whether a worker may be retired. + """Deprecated. Use `DescribeTaskQueue`. + + Fetches task reachability to determine whether a worker may be retired. The request may specify task queues to query for or let the server fetch all task queues mapped to the given build IDs. @@ -546,6 +586,30 @@ class WorkflowServiceStub: temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsResponse, ] """ListBatchOperations returns a list of batch operations""" + PollNexusTaskQueue: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse, + ] + """PollNexusTaskQueue is a long poll call used by workers to receive Nexus tasks. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + RespondNexusTaskCompleted: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedResponse, + ] + """RespondNexusTaskCompleted is called by workers to respond to Nexus tasks received via PollNexusTaskQueue. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + RespondNexusTaskFailed: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedResponse, + ] + """RespondNexusTaskFailed is called by workers to fail Nexus tasks received via PollNexusTaskQueue. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ class WorkflowServiceServicer(metaclass=abc.ABCMeta): """WorkflowService API defines how Temporal SDKs and other clients interact with the Temporal server @@ -633,6 +697,24 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): instance already exists with same workflow id. """ @abc.abstractmethod + def ExecuteMultiOperation( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationResponse + ): + """ExecuteMultiOperation executes multiple operations within a single workflow. + + Operations are started atomically, meaning if *any* operation fails to be started, none are, + and the request fails. Upon start, the API returns only when *all* operations have a response. + + Upon failure, it returns `MultiOperationExecutionFailure` where the status code + equals the status code of the *first* operation that failed to be started. + + NOTE: Experimental API. + """ + @abc.abstractmethod def GetWorkflowExecutionHistory( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryRequest, @@ -1079,7 +1161,11 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): ) -> ( temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueResponse ): - """DescribeTaskQueue returns information about the target task queue.""" + """DescribeTaskQueue returns the following information about the target task queue, broken down by Build ID: + - List of pollers + - Workflow Reachability status + - Backlog info for Workflow and/or Activity tasks + """ @abc.abstractmethod def GetClusterInfo( self, @@ -1166,7 +1252,9 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): ) -> ( temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityResponse ): - """Allows users to specify sets of worker build id versions on a per task queue basis. Versions + """Deprecated. Use `UpdateWorkerVersioningRules`. + + Allows users to specify sets of worker build id versions on a per task queue basis. Versions are ordered, and may be either compatible with some extant version, or a new incompatible version, forming sets of ids which are incompatible with each other, but whose contained members are compatible with one another. @@ -1190,7 +1278,33 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): ) -> ( temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityResponse ): - """Fetches the worker build id versioning sets for a task queue.""" + """Deprecated. Use `GetWorkerVersioningRules`. + Fetches the worker build id versioning sets for a task queue. + """ + @abc.abstractmethod + def UpdateWorkerVersioningRules( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesResponse + ): + """Allows updating the Build ID assignment and redirect rules for a given Task Queue. + WARNING: Worker Versioning is not yet stable and the API and behavior may change incompatibly. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do yet expose versioning API to HTTP. --) + """ + @abc.abstractmethod + def GetWorkerVersioningRules( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesResponse + ): + """Fetches the Build ID assignment and redirect rules for a Task Queue. + WARNING: Worker Versioning is not yet stable and the API and behavior may change incompatibly. + """ @abc.abstractmethod def GetWorkerTaskReachability( self, @@ -1199,7 +1313,9 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): ) -> ( temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityResponse ): - """Fetches task reachability to determine whether a worker may be retired. + """Deprecated. Use `DescribeTaskQueue`. + + Fetches task reachability to determine whether a worker may be retired. The request may specify task queues to query for or let the server fetch all task queues mapped to the given build IDs. @@ -1273,6 +1389,42 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsResponse ): """ListBatchOperations returns a list of batch operations""" + @abc.abstractmethod + def PollNexusTaskQueue( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse + ): + """PollNexusTaskQueue is a long poll call used by workers to receive Nexus tasks. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + @abc.abstractmethod + def RespondNexusTaskCompleted( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedResponse + ): + """RespondNexusTaskCompleted is called by workers to respond to Nexus tasks received via PollNexusTaskQueue. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + @abc.abstractmethod + def RespondNexusTaskFailed( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedRequest, + context: grpc.ServicerContext, + ) -> ( + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedResponse + ): + """RespondNexusTaskFailed is called by workers to fail Nexus tasks received via PollNexusTaskQueue. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ def add_WorkflowServiceServicer_to_server( servicer: WorkflowServiceServicer, server: grpc.Server diff --git a/temporalio/bridge/Cargo.lock b/temporalio/bridge/Cargo.lock index dcb798893..8de488cf0 100644 --- a/temporalio/bridge/Cargo.lock +++ b/temporalio/bridge/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "addr2line" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" dependencies = [ "gimli", ] @@ -19,9 +19,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aes" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac1f845298e95f983ff1944b728ae08b8cebab80d684f0a832ed0fc74dfa27e2" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ "cfg-if", "cipher", @@ -30,9 +30,9 @@ dependencies = [ [[package]] name = "ahash" -version = "0.8.7" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", "once_cell", @@ -42,30 +42,39 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ "memchr", ] [[package]] name = "allocator-api2" -version = "0.2.16" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" +checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" [[package]] name = "anstyle" -version = "1.0.6" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc" +checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" [[package]] name = "anyhow" -version = "1.0.79" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" + +[[package]] +name = "arbitrary" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110" +dependencies = [ + "derive_arbitrary", +] [[package]] name = "async-stream" @@ -86,25 +95,31 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "async-trait" -version = "0.1.77" +version = "0.1.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" +checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + [[package]] name = "autocfg" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "axum" @@ -117,9 +132,9 @@ dependencies = [ "bitflags 1.3.2", "bytes", "futures-util", - "http 0.2.11", + "http 0.2.12", "http-body 0.4.6", - "hyper 0.14.28", + "hyper 0.14.29", "itoa", "matchit", "memchr", @@ -143,7 +158,7 @@ dependencies = [ "async-trait", "bytes", "futures-util", - "http 0.2.11", + "http 0.2.12", "http-body 0.4.6", "mime", "rustversion", @@ -164,9 +179,9 @@ dependencies = [ [[package]] name = "backtrace" -version = "0.3.69" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +checksum = "17c6a35df3749d2e8bb1b7b21a976d82b15548788d2735b9d82f329268f71a11" dependencies = [ "addr2line", "cc", @@ -184,10 +199,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] -name = "base64ct" -version = "1.6.0" +name = "base64" +version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bitflags" @@ -197,9 +212,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" +checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" [[package]] name = "block-buffer" @@ -212,9 +227,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.14.0" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "byteorder" @@ -224,9 +239,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" +checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" [[package]] name = "bzip2" @@ -251,12 +266,13 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.83" +version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" +checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f" dependencies = [ "jobserver", "libc", + "once_cell", ] [[package]] @@ -273,9 +289,9 @@ checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" [[package]] name = "chrono" -version = "0.4.31" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ "num-traits", "serde", @@ -293,9 +309,9 @@ dependencies = [ [[package]] name = "constant_time_eq" -version = "0.1.5" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" +checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" [[package]] name = "convert_case" @@ -328,20 +344,54 @@ dependencies = [ "libc", ] +[[package]] +name = "crc" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69e6e4d7b33a94f0991c26729976b10ebde1d34c3ee82408fb536164fa10d636" +dependencies = [ + "crc-catalog", +] + +[[package]] +name = "crc-catalog" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" + [[package]] name = "crc32fast" -version = "1.3.2" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ "cfg-if", ] [[package]] name = "crossbeam-channel" -version = "0.5.11" +version = "0.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "176dc175b78f56c0f321911d9c8eb2b77a78a4860b9c19db83835fea1a46649b" +checksum = "33480d6946193aa8033910124896ca395333cae7e2d1113d1fef6c3272217df2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" dependencies = [ "crossbeam-utils", ] @@ -357,9 +407,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.19" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] name = "crypto-common" @@ -373,9 +423,9 @@ dependencies = [ [[package]] name = "darling" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54e36fcd13ed84ffdfda6f5be89b31287cbb80c439841fe69e04841435464391" +checksum = "83b2eb4d90d12bdda5ed17de686c2acb4c57914f8f921b8da7e112b5a36f3fe1" dependencies = [ "darling_core", "darling_macro", @@ -383,27 +433,27 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c2cf1c23a687a1feeb728783b993c4e1ad83d99f351801977dd809b48d0a70f" +checksum = "622687fe0bac72a04e5599029151f5796111b90f1baaa9b544d807a5e31cd120" dependencies = [ "fnv", "ident_case", "proc-macro2", "quote", "strsim", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "darling_macro" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a668eda54683121533a393014d8692171709ff57a7d61f187b6e782719f8933f" +checksum = "733cabb43482b1a1b53eee8583c2b9e8684d592215ea83efd305dd31bc2f0178" dependencies = [ "darling_core", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] @@ -413,12 +463,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ "cfg-if", - "hashbrown 0.14.3", + "hashbrown 0.14.5", "lock_api", "once_cell", "parking_lot_core", ] +[[package]] +name = "deflate64" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83ace6c86376be0b6cdcf3fb41882e81d94b31587573d1cfa9d01cd06bba210d" + [[package]] name = "deranged" version = "0.3.11" @@ -428,6 +484,17 @@ dependencies = [ "powerfmt", ] +[[package]] +name = "derive_arbitrary" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.66", +] + [[package]] name = "derive_builder" version = "0.20.0" @@ -446,7 +513,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] @@ -456,7 +523,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "206868b8242f27cecce124c19fd88157fbd0dd334df2587f36417bafbc85097b" dependencies = [ "derive_builder_core", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] @@ -483,6 +550,17 @@ dependencies = [ "subtle", ] +[[package]] +name = "displaydoc" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.66", +] + [[package]] name = "downcast" version = "0.11.0" @@ -491,49 +569,49 @@ checksum = "1435fa1053d8b2fbbe9be7e97eca7f33d37b28409959813daefc1446a14247f1" [[package]] name = "either" -version = "1.9.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" +checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b" [[package]] name = "encoding_rs" -version = "0.8.33" +version = "0.8.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7268b386296a025e474d5140678f75d6de9493ae55a5d709eeb9dd08149945e1" +checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" dependencies = [ "cfg-if", ] [[package]] name = "enum-iterator" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "600536cfe9e2da0820aa498e570f6b2b9223eec3ce2f835c8ae4861304fa4794" +checksum = "c280b9e6b3ae19e152d8e31cf47f18389781e119d4013a2a2bb0180e5facc635" dependencies = [ "enum-iterator-derive", ] [[package]] name = "enum-iterator-derive" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03cdc46ec28bd728e67540c528013c6a10eb69a02eb31078a1bda695438cbfb8" +checksum = "a1ab991c1362ac86c61ab6f556cff143daa22e5a15e4e189df818b2fd19fe65b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "enum_dispatch" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f33313078bb8d4d05a2733a94ac4c2d8a0df9a2b84424ebf4f33bfc224a890e" +checksum = "aa18ce2bc66555b3218614519ac839ddb759a7d6720732f979ef8d13be147ecd" dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] @@ -544,18 +622,19 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "erased-serde" -version = "0.4.2" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55d05712b2d8d88102bc9868020c9e5c7a1f5527c452b9b97450a1d006140ba7" +checksum = "24e2389d65ab4fab27dc2a5de7b191e1f6617d1f1c8855c0dc569c94a4cbb18d" dependencies = [ "serde", + "typeid", ] [[package]] name = "errno" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" +checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" dependencies = [ "libc", "windows-sys 0.52.0", @@ -563,9 +642,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.0.1" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" +checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "filetime" @@ -575,7 +654,7 @@ checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.4.1", "windows-sys 0.52.0", ] @@ -587,9 +666,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.28" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" +checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" dependencies = [ "crc32fast", "miniz_oxide", @@ -672,7 +751,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] @@ -700,9 +779,9 @@ checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" [[package]] name = "futures-timer" -version = "3.0.2" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" +checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" [[package]] name = "futures-util" @@ -734,9 +813,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.12" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", @@ -745,9 +824,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.28.1" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" [[package]] name = "glob" @@ -757,9 +836,9 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "governor" -version = "0.6.0" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "821239e5672ff23e2a7060901fa622950bbd80b649cdaadd78d1c1767ed14eb4" +checksum = "68a7f542ee6b35af73b06abc0dad1c1bae89964e4e253bc4b587b91c9637867b" dependencies = [ "cfg-if", "dashmap", @@ -768,24 +847,26 @@ dependencies = [ "no-std-compat", "nonzero_ext", "parking_lot", + "portable-atomic", "quanta", "rand", "smallvec", + "spinning_top", ] [[package]] name = "h2" -version = "0.3.24" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ "bytes", "fnv", "futures-core", "futures-sink", "futures-util", - "http 0.2.11", - "indexmap 2.1.0", + "http 0.2.12", + "indexmap 2.2.6", "slab", "tokio", "tokio-util", @@ -794,17 +875,17 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.2" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31d030e59af851932b72ceebadf4a2b5986dba4c3b99dd2493f8273a0f151943" +checksum = "fa82e28a107a8cc405f0839610bdc9b15f1e25ec7d696aa5cf173edbcb1486ab" dependencies = [ + "atomic-waker", "bytes", "fnv", "futures-core", "futures-sink", - "futures-util", "http 1.1.0", - "indexmap 2.1.0", + "indexmap 2.2.6", "slab", "tokio", "tokio-util", @@ -819,9 +900,9 @@ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" [[package]] name = "hashbrown" -version = "0.14.3" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash", "allocator-api2", @@ -829,15 +910,15 @@ dependencies = [ [[package]] name = "heck" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" -version = "0.3.3" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "hmac" @@ -848,20 +929,11 @@ dependencies = [ "digest", ] -[[package]] -name = "home" -version = "0.5.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" -dependencies = [ - "windows-sys 0.52.0", -] - [[package]] name = "http" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ "bytes", "fnv", @@ -886,7 +958,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", - "http 0.2.11", + "http 0.2.12", "pin-project-lite", ] @@ -927,16 +999,16 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "0.14.28" +version = "0.14.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" +checksum = "f361cde2f109281a220d4307746cdfd5ee3f410da58a70377762396775634b33" dependencies = [ "bytes", "futures-channel", "futures-core", "futures-util", - "h2 0.3.24", - "http 0.2.11", + "h2 0.3.26", + "http 0.2.12", "http-body 0.4.6", "httparse", "httpdate", @@ -951,14 +1023,14 @@ dependencies = [ [[package]] name = "hyper" -version = "1.2.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "186548d73ac615b32a73aafe38fb4f56c0d340e110e5a200bcadbaf2e199263a" +checksum = "fe575dd17d0862a9a33781c8c4696a55c320909004a67a00fb286ba8b1bc496d" dependencies = [ "bytes", "futures-channel", "futures-util", - "h2 0.4.2", + "h2 0.4.5", "http 1.1.0", "http-body 1.0.0", "httparse", @@ -976,9 +1048,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ "futures-util", - "http 0.2.11", - "hyper 0.14.28", - "rustls 0.21.10", + "http 0.2.12", + "hyper 0.14.29", + "rustls 0.21.12", "tokio", "tokio-rustls 0.24.1", ] @@ -989,7 +1061,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" dependencies = [ - "hyper 0.14.28", + "hyper 0.14.29", "pin-project-lite", "tokio", "tokio-io-timeout", @@ -997,17 +1069,16 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.3" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca38ef113da30126bbff9cd1705f9273e15d45498615d138b0c20279ac7a76aa" +checksum = "7b875924a60b96e5d7b9ae7b066540b1dd1cbd90d1828f54c92e02a283351c56" dependencies = [ "bytes", "futures-util", "http 1.1.0", "http-body 1.0.0", - "hyper 1.2.0", + "hyper 1.3.1", "pin-project-lite", - "socket2", "tokio", ] @@ -1039,12 +1110,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.1.0" +version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" +checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", - "hashbrown 0.14.3", + "hashbrown 0.14.5", ] [[package]] @@ -1064,18 +1135,18 @@ dependencies = [ [[package]] name = "instant" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ "cfg-if", ] [[package]] name = "inventory" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8573b2b1fb643a372c73b23f4da5f888677feef3305146d68a539250a9bccc7" +checksum = "f958d3d68f4167080a18141e10381e7634563984a537f2a49a30fd8e53ac5767" [[package]] name = "ipnet" @@ -1085,42 +1156,42 @@ checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "itertools" -version = "0.11.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" dependencies = [ "either", ] [[package]] name = "itertools" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" dependencies = [ "either", ] [[package]] name = "itoa" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jobserver" -version = "0.1.27" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d" +checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" dependencies = [ "libc", ] [[package]] name = "js-sys" -version = "0.3.66" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca" +checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ "wasm-bindgen", ] @@ -1133,31 +1204,37 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.153" +version = "0.2.155" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "linux-raw-sys" -version = "0.4.12" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4cd1a83af159aa67994778be9070f0ae1bd732942279cabb14f86f986a21456" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "lock_api" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ "autocfg", "scopeguard", ] +[[package]] +name = "lockfree-object-pool" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e" + [[package]] name = "log" -version = "0.4.20" +version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "lru" @@ -1165,16 +1242,17 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc" dependencies = [ - "hashbrown 0.14.3", + "hashbrown 0.14.5", ] [[package]] -name = "mach2" -version = "0.4.2" +name = "lzma-rs" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709" +checksum = "297e814c836ae64db86b36cf2a557ba54368d03f6afcd7d947c266692f71115e" dependencies = [ - "libc", + "byteorder", + "crc", ] [[package]] @@ -1194,15 +1272,15 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] name = "memchr" -version = "2.7.1" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" +checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" [[package]] name = "memoffset" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" dependencies = [ "autocfg", ] @@ -1215,18 +1293,18 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniz_oxide" -version = "0.7.1" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +checksum = "87dfd01fe195c66b572b37921ad8803d010623c0aca821bea2302239d155cdae" dependencies = [ "adler", ] [[package]] name = "mio" -version = "0.8.10" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "wasi", @@ -1257,14 +1335,14 @@ dependencies = [ "cfg-if", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "multimap" -version = "0.8.3" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" +checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" [[package]] name = "nix" @@ -1272,7 +1350,7 @@ version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.5.0", "cfg-if", "cfg_aliases", "libc", @@ -1290,6 +1368,15 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21" +[[package]] +name = "ntapi" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4" +dependencies = [ + "winapi", +] + [[package]] name = "nu-ansi-term" version = "0.46.0" @@ -1300,11 +1387,17 @@ dependencies = [ "winapi", ] +[[package]] +name = "num-conv" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" + [[package]] name = "num-traits" -version = "0.2.17" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ "autocfg", ] @@ -1321,9 +1414,9 @@ dependencies = [ [[package]] name = "object" -version = "0.32.2" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +checksum = "b8ec7ab813848ba4522158d5517a6093db1ded27575b070f4177b8d12b41db5e" dependencies = [ "memchr", ] @@ -1342,9 +1435,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "opentelemetry" -version = "0.22.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "900d57987be3f2aeb70d385fff9b27fb74c5723cc9a52d904d4f9c807a0667bf" +checksum = "1b69a91d4893e713e06f724597ad630f1fa76057a5e1026c0ca67054a9032a76" dependencies = [ "futures-core", "futures-sink", @@ -1352,21 +1445,19 @@ dependencies = [ "once_cell", "pin-project-lite", "thiserror", - "urlencoding", ] [[package]] name = "opentelemetry-otlp" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a016b8d9495c639af2145ac22387dcb88e44118e45320d9238fbf4e7889abcb" +checksum = "a94c69209c05319cdf7460c6d4c055ed102be242a0a6245835d7bc42c6ec7f54" dependencies = [ "async-trait", "futures-core", - "http 0.2.11", + "http 0.2.12", "opentelemetry", "opentelemetry-proto", - "opentelemetry-semantic-conventions", "opentelemetry_sdk", "prost", "thiserror", @@ -1376,9 +1467,9 @@ dependencies = [ [[package]] name = "opentelemetry-prometheus" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30bbcf6341cab7e2193e5843f0ac36c446a5b3fccb28747afaeda17996dcd02e" +checksum = "5e1a24eafe47b693cb938f8505f240dc26c71db60df9aca376b4f857e9653ec7" dependencies = [ "once_cell", "opentelemetry", @@ -1389,9 +1480,9 @@ dependencies = [ [[package]] name = "opentelemetry-proto" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a8fddc9b68f5b80dae9d6f510b88e02396f006ad48cac349411fbecc80caae4" +checksum = "984806e6cf27f2b49282e2a05e288f30594f3dbc74eb7a6e99422bc48ed78162" dependencies = [ "opentelemetry", "opentelemetry_sdk", @@ -1399,24 +1490,18 @@ dependencies = [ "tonic", ] -[[package]] -name = "opentelemetry-semantic-conventions" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9ab5bd6c42fb9349dcf28af2ba9a0667f697f9bdcca045d39f2cec5543e2910" - [[package]] name = "opentelemetry_sdk" -version = "0.22.1" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e90c7113be649e31e9a0f8b5ee24ed7a16923b322c3c5ab6367469c049d6b7e" +checksum = "ae312d58eaa90a82d2e627fd86e075cf5230b3f11794e2ed74199ebbe572d4fd" dependencies = [ "async-trait", - "crossbeam-channel", "futures-channel", "futures-executor", "futures-util", "glob", + "lazy_static", "once_cell", "opentelemetry", "ordered-float", @@ -1444,9 +1529,9 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] name = "parking_lot" -version = "0.12.1" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ "lock_api", "parking_lot_core", @@ -1454,38 +1539,25 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.5.1", "smallvec", - "windows-targets 0.48.5", -] - -[[package]] -name = "password-hash" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7676374caaee8a325c9e7a2ae557f216c5563a171d6997b0ef8a65af35147700" -dependencies = [ - "base64ct", - "rand_core", - "subtle", + "windows-targets 0.52.5", ] [[package]] name = "pbkdf2" -version = "0.11.0" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" +checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" dependencies = [ "digest", "hmac", - "password-hash", - "sha2", ] [[package]] @@ -1496,39 +1568,48 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "petgraph" -version = "0.6.4" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" +checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.1.0", + "indexmap 2.2.6", +] + +[[package]] +name = "pid" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c931ef9756cd5e3fa3d395bfe09df4dfa6f0612c6ca8f6b12927d17ca34e36" +dependencies = [ + "num-traits", ] [[package]] name = "pin-project" -version = "1.1.3" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" +checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.3" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" +checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "pin-project-lite" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" [[package]] name = "pin-utils" @@ -1538,9 +1619,15 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkg-config" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69d3587f8a9e599cc7ec2c00e331f71c4e69a5f9a4b8a6efd5b07466b9736f9a" +checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" + +[[package]] +name = "portable-atomic" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" [[package]] name = "powerfmt" @@ -1582,28 +1669,28 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.2.16" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a41cf62165e97c7f814d2221421dbb9afcbcdb0a88068e5ea206e19951c2cbb5" +checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e" dependencies = [ "proc-macro2", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "proc-macro2" -version = "1.0.76" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" +checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23" dependencies = [ "unicode-ident", ] [[package]] name = "prometheus" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "449811d15fbdf5ceb5c1144416066429cf82316e2ec8ce0c1f6f8a02e7bbcf8c" +checksum = "3d33c28a30771f7f96db69893f78b857f7450d7e0237e9c8fc6427a81bae7ed1" dependencies = [ "cfg-if", "fnv", @@ -1616,9 +1703,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.12.3" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" +checksum = "deb1435c188b76130da55f17a466d252ff7b1418b2ad3e037d127b94e3411f29" dependencies = [ "bytes", "prost-derive", @@ -1626,13 +1713,13 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.12.3" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c55e02e35260070b6f716a2423c2ff1c3bb1642ddca6f99e1f26d06268a0e2d2" +checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4" dependencies = [ "bytes", "heck", - "itertools 0.11.0", + "itertools 0.12.1", "log", "multimap", "once_cell", @@ -1641,38 +1728,37 @@ dependencies = [ "prost", "prost-types", "regex", - "syn 2.0.48", + "syn 2.0.66", "tempfile", - "which", ] [[package]] name = "prost-derive" -version = "0.12.3" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" +checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" dependencies = [ "anyhow", - "itertools 0.11.0", + "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "prost-types" -version = "0.12.3" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" +checksum = "9091c90b0a32608e984ff2fa4091273cbdd755d54935c51d520887f4a1dbd5b0" dependencies = [ "prost", ] [[package]] name = "prost-wkt" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d8ef9c3f0f1dab910d2b7e2c24a8e4322e122eba6d7a1921eeebcebbc046c40" +checksum = "5fb7ec2850c138ebaa7ab682503b5d08c3cb330343e9c94776612928b6ddb53f" dependencies = [ "chrono", "inventory", @@ -1685,9 +1771,9 @@ dependencies = [ [[package]] name = "prost-wkt-build" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b31cae9a54ca84fee1504740a82eebf2479532905e106f63ca0c3bc8d780321" +checksum = "598b7365952c2ed4e32902de0533653aafbe5ae3da436e8e2335c7d375a1cef3" dependencies = [ "heck", "prost", @@ -1698,9 +1784,9 @@ dependencies = [ [[package]] name = "prost-wkt-types" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435be4a8704091b4c5fb1d79799de7f2dbff53af05edf29385237f8cf7ab37ee" +checksum = "1a8eadc2381640a49c1fbfb9f4a857794b4e5bf5a2cbc2d858cfdb74f64dcd22" dependencies = [ "chrono", "prost", @@ -1805,13 +1891,12 @@ dependencies = [ [[package]] name = "quanta" -version = "0.11.1" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a17e662a7a8291a865152364c20c7abc5e60486ab2001e8ec10b24862de0b9ab" +checksum = "8e5167a477619228a0b284fac2674e3c388cba90631d7b7de620e6f1fcd08da5" dependencies = [ "crossbeam-utils", "libc", - "mach2", "once_cell", "raw-cpuid", "wasi", @@ -1821,9 +1906,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.35" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -1860,11 +1945,31 @@ dependencies = [ [[package]] name = "raw-cpuid" -version = "10.7.0" +version = "11.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c297679cb867470fa8c9f67dbba74a78d78e3e98d7cf2b08d6d71540f797332" +checksum = "e29830cbb1290e404f24c73af91c5d8d631ce7e128691e9477556b540cd01ecd" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.5.0", +] + +[[package]] +name = "rayon" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", ] [[package]] @@ -1876,16 +1981,25 @@ dependencies = [ "bitflags 1.3.2", ] +[[package]] +name = "redox_syscall" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469052894dcb553421e483e4209ee581a45100d31b4018de03e5a7ad86374a7e" +dependencies = [ + "bitflags 2.5.0", +] + [[package]] name = "regex" -version = "1.10.2" +version = "1.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" +checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.3", - "regex-syntax 0.8.2", + "regex-automata 0.4.6", + "regex-syntax 0.8.3", ] [[package]] @@ -1899,13 +2013,13 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.3" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" +checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.2", + "regex-syntax 0.8.3", ] [[package]] @@ -1916,25 +2030,25 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" +checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "reqwest" -version = "0.11.23" +version = "0.11.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37b1ae8d9ac08420c66222fb9096fc5de435c3c48542bc5336c51892cffafb41" +checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" dependencies = [ - "base64", + "base64 0.21.7", "bytes", "encoding_rs", "futures-core", "futures-util", - "h2 0.3.24", - "http 0.2.11", + "h2 0.3.26", + "http 0.2.12", "http-body 0.4.6", - "hyper 0.14.28", + "hyper 0.14.29", "hyper-rustls", "ipnet", "js-sys", @@ -1943,11 +2057,12 @@ dependencies = [ "once_cell", "percent-encoding", "pin-project-lite", - "rustls 0.21.10", + "rustls 0.21.12", "rustls-pemfile 1.0.4", "serde", "serde_json", "serde_urlencoded", + "sync_wrapper", "system-configuration", "tokio", "tokio-rustls 0.24.1", @@ -1964,32 +2079,33 @@ dependencies = [ [[package]] name = "ring" -version = "0.17.7" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "688c63d65483050968b2a8937f7995f443e27041a0f7700aa59b0822aedebb74" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", + "cfg-if", "getrandom", "libc", "spin", "untrusted", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "ringbuf" -version = "0.3.3" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79abed428d1fd2a128201cec72c5f6938e2da607c6f3745f769fabea399d950a" +checksum = "5c65e4c865bc3d2e3294493dff0acf7e6c259d066e34e22059fa9c39645c3636" dependencies = [ "crossbeam-utils", ] [[package]] name = "rustc-demangle" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc_version" @@ -2016,7 +2132,7 @@ dependencies = [ "proc-macro2", "quote", "rustfsm_trait", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] @@ -2025,11 +2141,11 @@ version = "0.1.0" [[package]] name = "rustix" -version = "0.38.28" +version = "0.38.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72e572a5e8ca657d7366229cdde4bd14c4eb5499a9573d4d366fe1b599daa316" +checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.5.0", "errno", "libc", "linux-raw-sys", @@ -2038,9 +2154,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.21.10" +version = "0.21.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" +checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" dependencies = [ "log", "ring", @@ -2050,14 +2166,14 @@ dependencies = [ [[package]] name = "rustls" -version = "0.22.2" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e87c9956bd9807afa1f77e0f7594af32566e830e088a5576d27c5b6f30f49d41" +checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432" dependencies = [ "log", "ring", "rustls-pki-types", - "rustls-webpki 0.102.2", + "rustls-webpki 0.102.4", "subtle", "zeroize", ] @@ -2069,7 +2185,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f1fb85efa936c42c6d5fc28d2629bb51e4b2f4b8a5211e297d599cc5a093792" dependencies = [ "openssl-probe", - "rustls-pemfile 2.1.1", + "rustls-pemfile 2.1.2", "rustls-pki-types", "schannel", "security-framework", @@ -2081,24 +2197,24 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ - "base64", + "base64 0.21.7", ] [[package]] name = "rustls-pemfile" -version = "2.1.1" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f48172685e6ff52a556baa527774f61fcaa884f59daf3375c62a3f1cd2549dab" +checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" dependencies = [ - "base64", + "base64 0.22.1", "rustls-pki-types", ] [[package]] name = "rustls-pki-types" -version = "1.3.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ede67b28608b4c60685c7d54122d4400d90f62b40caee7700e700380a390fa8" +checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" [[package]] name = "rustls-webpki" @@ -2112,9 +2228,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.102.2" +version = "0.102.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "faaa0a62740bedb9b2ef5afa303da42764c012f743917351dc9a237ea1663610" +checksum = "ff448f7e92e913c4b7d4c6d8e4540a1724b319b4152b8aef6d4cf8339712b33e" dependencies = [ "ring", "rustls-pki-types", @@ -2123,15 +2239,15 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "ryu" -version = "1.0.16" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "schannel" @@ -2160,11 +2276,11 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.9.2" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" +checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.5.0", "core-foundation", "core-foundation-sys", "libc", @@ -2173,9 +2289,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.9.1" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" +checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" dependencies = [ "core-foundation-sys", "libc", @@ -2183,35 +2299,35 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.21" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.195" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02" +checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.195" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c" +checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "serde_json" -version = "1.0.111" +version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" +checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" dependencies = [ "itoa", "ryu", @@ -2241,17 +2357,6 @@ dependencies = [ "digest", ] -[[package]] -name = "sha2" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - [[package]] name = "sharded-slab" version = "0.1.7" @@ -2263,18 +2368,24 @@ dependencies = [ [[package]] name = "signal-hook-registry" -version = "1.4.1" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" dependencies = [ "libc", ] +[[package]] +name = "simd-adler32" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" + [[package]] name = "siphasher" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54ac45299ccbd390721be55b412d41931911f654fa99e2cb8bfb57184b2061fe" +checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" [[package]] name = "slab" @@ -2296,18 +2407,18 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "socket2" -version = "0.5.5" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" +checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" dependencies = [ "libc", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -2316,11 +2427,20 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +[[package]] +name = "spinning_top" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300" +dependencies = [ + "lock_api", +] + [[package]] name = "strsim" -version = "0.10.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "subtle" @@ -2341,9 +2461,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.48" +version = "2.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" +checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" dependencies = [ "proc-macro2", "quote", @@ -2356,6 +2476,21 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +[[package]] +name = "sysinfo" +version = "0.30.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "732ffa00f53e6b2af46208fba5718d9662a421049204e156328b66791ffa15ae" +dependencies = [ + "cfg-if", + "core-foundation-sys", + "libc", + "ntapi", + "once_cell", + "rayon", + "windows", +] + [[package]] name = "system-configuration" version = "0.5.1" @@ -2390,19 +2525,18 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.13" +version = "0.12.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69758bda2e78f098e4ccb393021a0963bb3442eac05f135c30f61b7370bbafae" +checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" [[package]] name = "tempfile" -version = "3.9.0" +version = "3.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa" +checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" dependencies = [ "cfg-if", "fastrand", - "redox_syscall", "rustix", "windows-sys 0.52.0", ] @@ -2414,13 +2548,13 @@ dependencies = [ "anyhow", "async-trait", "backoff", - "base64", + "base64 0.22.1", "derive_builder", "derive_more", "futures", "futures-retry", - "http 0.2.11", - "hyper 0.14.28", + "http 0.2.12", + "hyper 0.14.29", "once_cell", "parking_lot", "prost-types", @@ -2465,9 +2599,9 @@ version = "0.1.0" dependencies = [ "anyhow", "async-trait", - "base64", "crossbeam-channel", "crossbeam-queue", + "crossbeam-utils", "dashmap", "derive_builder", "derive_more", @@ -2478,10 +2612,9 @@ dependencies = [ "futures-util", "governor", "http-body-util", - "hyper 1.2.0", + "hyper 1.3.1", "hyper-util", - "itertools 0.12.1", - "log", + "itertools 0.13.0", "lru", "mockall", "nix", @@ -2491,6 +2624,7 @@ dependencies = [ "opentelemetry-prometheus", "opentelemetry_sdk", "parking_lot", + "pid", "pin-project", "prometheus", "prost", @@ -2503,6 +2637,7 @@ dependencies = [ "serde_json", "siphasher", "slotmap", + "sysinfo", "tar", "temporal-client", "temporal-sdk-core-api", @@ -2542,7 +2677,7 @@ name = "temporal-sdk-core-protos" version = "0.1.0" dependencies = [ "anyhow", - "base64", + "base64 0.22.1", "derive_more", "prost", "prost-wkt", @@ -2565,29 +2700,29 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "thiserror" -version = "1.0.56" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" +checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.56" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" +checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "thread_local" -version = "1.1.7" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" dependencies = [ "cfg-if", "once_cell", @@ -2595,11 +2730,12 @@ dependencies = [ [[package]] name = "time" -version = "0.3.31" +version = "0.3.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f657ba42c3f86e7680e53c8cd3af8abbe56b5491790b46e22e19c0d57463583e" +checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" dependencies = [ "deranged", + "num-conv", "powerfmt", "serde", "time-core", @@ -2628,9 +2764,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.35.1" +version = "1.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c89b4efa943be685f629b149f53829423f8f5531ea21249408e8e2f8671ec104" +checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" dependencies = [ "backtrace", "bytes", @@ -2657,13 +2793,13 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" +checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] @@ -2672,7 +2808,7 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.21.10", + "rustls 0.21.12", "tokio", ] @@ -2682,16 +2818,16 @@ version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" dependencies = [ - "rustls 0.22.2", + "rustls 0.22.4", "rustls-pki-types", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" +checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" dependencies = [ "futures-core", "pin-project-lite", @@ -2700,16 +2836,15 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.10" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" +checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" dependencies = [ "bytes", "futures-core", "futures-sink", "pin-project-lite", "tokio", - "tracing", ] [[package]] @@ -2721,18 +2856,18 @@ dependencies = [ "async-stream", "async-trait", "axum", - "base64", + "base64 0.21.7", "bytes", - "h2 0.3.24", - "http 0.2.11", + "h2 0.3.26", + "http 0.2.12", "http-body 0.4.6", - "hyper 0.14.28", + "hyper 0.14.29", "hyper-timeout", "percent-encoding", "pin-project", "prost", "rustls-native-certs", - "rustls-pemfile 2.1.1", + "rustls-pemfile 2.1.2", "rustls-pki-types", "tokio", "tokio-rustls 0.25.0", @@ -2753,7 +2888,7 @@ dependencies = [ "proc-macro2", "prost-build", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] @@ -2808,7 +2943,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] @@ -2857,6 +2992,12 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +[[package]] +name = "typeid" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "059d83cc991e7a42fc37bd50941885db0888e34209f8cfd9aab07ddec03bc9cf" + [[package]] name = "typenum" version = "1.17.0" @@ -2865,9 +3006,9 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "typetag" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c43148481c7b66502c48f35b8eef38b6ccdc7a9f04bd4cc294226d901ccc9bc7" +checksum = "661d18414ec032a49ece2d56eee03636e43c4e8d577047ab334c0ba892e29aaf" dependencies = [ "erased-serde", "inventory", @@ -2878,20 +3019,20 @@ dependencies = [ [[package]] name = "typetag-impl" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291db8a81af4840c10d636e047cac67664e343be44e24dfdbd1492df9a5d3390" +checksum = "ac73887f47b9312552aa90ef477927ff014d63d1920ca8037c6c1951eab64bb1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "unicode-bidi" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" @@ -2901,9 +3042,9 @@ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" dependencies = [ "tinyvec", ] @@ -2931,17 +3072,11 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "urlencoding" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" - [[package]] name = "uuid" -version = "1.6.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560" +checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" dependencies = [ "getrandom", ] @@ -2975,9 +3110,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e" +checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -2985,24 +3120,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826" +checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.39" +version = "0.4.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac36a15a220124ac510204aec1c3e5db8a22ab06fd6706d881dc6149f8ed9a12" +checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" dependencies = [ "cfg-if", "js-sys", @@ -3012,9 +3147,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2" +checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3022,28 +3157,28 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" +checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f" +checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" [[package]] name = "wasm-streams" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4609d447824375f43e1ffbc051b50ad8f4b3ae8219680c94452ea05eb240ac7" +checksum = "b65dc4c90b63b118468cf747d8bf3566c1913ef60be765b5730ead9e0a3ba129" dependencies = [ "futures-util", "js-sys", @@ -3054,9 +3189,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.66" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50c24a44ec86bb68fbecd1b3efed7e85ea5621b39b35ef2766b66cd984f8010f" +checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" dependencies = [ "js-sys", "wasm-bindgen", @@ -3064,21 +3199,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.25.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1778a42e8b3b90bff8d0f5032bf22250792889a5cdc752aa0020c84abe3aaf10" - -[[package]] -name = "which" -version = "4.4.2" +version = "0.25.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" -dependencies = [ - "either", - "home", - "once_cell", - "rustix", -] +checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" [[package]] name = "winapi" @@ -3102,6 +3225,25 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" +dependencies = [ + "windows-core", + "windows-targets 0.52.5", +] + +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.5", +] + [[package]] name = "windows-sys" version = "0.48.0" @@ -3117,7 +3259,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.0", + "windows-targets 0.52.5", ] [[package]] @@ -3137,17 +3279,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" +checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm 0.52.0", - "windows_aarch64_msvc 0.52.0", - "windows_i686_gnu 0.52.0", - "windows_i686_msvc 0.52.0", - "windows_x86_64_gnu 0.52.0", - "windows_x86_64_gnullvm 0.52.0", - "windows_x86_64_msvc 0.52.0", + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.5", + "windows_x86_64_gnu 0.52.5", + "windows_x86_64_gnullvm 0.52.5", + "windows_x86_64_msvc 0.52.5", ] [[package]] @@ -3158,9 +3301,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" +checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" [[package]] name = "windows_aarch64_msvc" @@ -3170,9 +3313,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" +checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" [[package]] name = "windows_i686_gnu" @@ -3182,9 +3325,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" +checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" [[package]] name = "windows_i686_msvc" @@ -3194,9 +3343,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" +checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" [[package]] name = "windows_x86_64_gnu" @@ -3206,9 +3355,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" +checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" [[package]] name = "windows_x86_64_gnullvm" @@ -3218,9 +3367,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" +checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" [[package]] name = "windows_x86_64_msvc" @@ -3230,9 +3379,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" +checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "winreg" @@ -3246,9 +3395,9 @@ dependencies = [ [[package]] name = "xattr" -version = "1.2.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "914566e6413e7fa959cc394fb30e563ba80f3541fbd40816d4c05a0fc3f2a0f1" +checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" dependencies = [ "libc", "linux-raw-sys", @@ -3257,74 +3406,110 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.32" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" +checksum = "ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.32" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" +checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.66", ] [[package]] name = "zeroize" -version = "1.7.0" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.66", +] [[package]] name = "zip" -version = "0.6.6" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261" +checksum = "098d5d7737fb0b70814faa73c17df84f047d38dd31d13bbf2ec3fb354b5abf45" dependencies = [ "aes", - "byteorder", + "arbitrary", "bzip2", "constant_time_eq", "crc32fast", "crossbeam-utils", + "deflate64", + "displaydoc", "flate2", "hmac", + "indexmap 2.2.6", + "lzma-rs", + "memchr", "pbkdf2", + "rand", "sha1", + "thiserror", "time", + "zeroize", + "zopfli", "zstd", ] +[[package]] +name = "zopfli" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5019f391bac5cf252e93bbcc53d039ffd62c7bfb7c150414d61369afe57e946" +dependencies = [ + "bumpalo", + "crc32fast", + "lockfree-object-pool", + "log", + "once_cell", + "simd-adler32", +] + [[package]] name = "zstd" -version = "0.11.2+zstd.1.5.2" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" +checksum = "2d789b1514203a1120ad2429eae43a7bd32b90976a7bb8a05f7ec02fa88cc23a" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "5.0.2+zstd.1.5.2" +version = "7.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" +checksum = "1cd99b45c6bc03a018c8b8a86025678c87e55526064e38f9df301989dce7ec0a" dependencies = [ - "libc", "zstd-sys", ] [[package]] name = "zstd-sys" -version = "2.0.9+zstd.1.5.5" +version = "2.0.10+zstd.1.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e16efa8a874a0481a574084d34cc26fdb3b99627480f785888deb6386506656" +checksum = "c253a4914af5bafc8fa8c86ee400827e83cf6ec01195ec1f1ed8441bf00d65aa" dependencies = [ "cc", "pkg-config", diff --git a/temporalio/bridge/sdk-core b/temporalio/bridge/sdk-core index f85937668..e4baa48bf 160000 --- a/temporalio/bridge/sdk-core +++ b/temporalio/bridge/sdk-core @@ -1 +1 @@ -Subproject commit f859376686e46c36607ea527e9fdceec481f549d +Subproject commit e4baa48bf2c87bf824f266a5e85a44d3814b655e diff --git a/temporalio/bridge/src/client.rs b/temporalio/bridge/src/client.rs index ff163bf7d..ab3bf3ae4 100644 --- a/temporalio/bridge/src/client.rs +++ b/temporalio/bridge/src/client.rs @@ -139,6 +139,7 @@ impl ClientRef { "describe_workflow_execution" => { rpc_call!(retry_client, call, describe_workflow_execution) } + "execute_multi_operation" => rpc_call!(retry_client, call, execute_multi_operation), "get_cluster_info" => rpc_call!(retry_client, call, get_cluster_info), "get_search_attributes" => { rpc_call!(retry_client, call, get_search_attributes) @@ -150,6 +151,9 @@ impl ClientRef { "get_worker_task_reachability" => { rpc_call!(retry_client, call, get_worker_task_reachability) } + "get_worker_versioning_rules" => { + rpc_call!(retry_client, call, get_worker_versioning_rules) + } "get_workflow_execution_history" => { rpc_call!(retry_client, call, get_workflow_execution_history) } @@ -184,6 +188,7 @@ impl ClientRef { "poll_activity_task_queue" => { rpc_call!(retry_client, call, poll_activity_task_queue) } + "poll_nexus_task_queue" => rpc_call!(retry_client, call, poll_nexus_task_queue), "poll_workflow_execution_update" => { rpc_call!(retry_client, call, poll_workflow_execution_update) } @@ -225,6 +230,12 @@ impl ClientRef { "respond_activity_task_failed_by_id" => { rpc_call!(retry_client, call, respond_activity_task_failed_by_id) } + "respond_nexus_task_completed" => { + rpc_call!(retry_client, call, respond_nexus_task_completed) + } + "respond_nexus_task_failed" => { + rpc_call!(retry_client, call, respond_nexus_task_failed) + } "respond_query_task_completed" => { rpc_call!(retry_client, call, respond_query_task_completed) } @@ -257,6 +268,9 @@ impl ClientRef { "update_worker_build_id_compatibility" => { rpc_call!(retry_client, call, update_worker_build_id_compatibility) } + "update_worker_versioning_rules" => { + rpc_call!(retry_client, call, update_worker_versioning_rules) + } _ => { return Err(PyValueError::new_err(format!( "Unknown RPC call {}", @@ -279,8 +293,12 @@ impl ClientRef { "add_search_attributes" => { rpc_call!(retry_client, call, add_search_attributes) } + "create_nexus_endpoint" => rpc_call!(retry_client, call, create_nexus_endpoint), "delete_namespace" => rpc_call!(retry_client, call, delete_namespace), + "delete_nexus_endpoint" => rpc_call!(retry_client, call, delete_nexus_endpoint), + "get_nexus_endpoint" => rpc_call!(retry_client, call, get_nexus_endpoint), "list_clusters" => rpc_call!(retry_client, call, list_clusters), + "list_nexus_endpoints" => rpc_call!(retry_client, call, list_nexus_endpoints), "list_search_attributes" => { rpc_call!(retry_client, call, list_search_attributes) } @@ -290,6 +308,7 @@ impl ClientRef { "remove_search_attributes" => { rpc_call!(retry_client, call, remove_search_attributes) } + "update_nexus_endpoint" => rpc_call!(retry_client, call, update_nexus_endpoint), _ => { return Err(PyValueError::new_err(format!( "Unknown RPC call {}", diff --git a/temporalio/bridge/src/worker.rs b/temporalio/bridge/src/worker.rs index 29836301a..5c21272b2 100644 --- a/temporalio/bridge/src/worker.rs +++ b/temporalio/bridge/src/worker.rs @@ -104,6 +104,15 @@ pub fn new_replay_worker<'a>( #[pymethods] impl WorkerRef { + fn validate<'p>(&self, py: Python<'p>) -> PyResult<&'p PyAny> { + let worker = self.worker.as_ref().unwrap().clone(); + self.runtime.future_into_py(py, async move { + worker.validate().await.map_err(|err| { + PyRuntimeError::new_err(format!("Worker validation failed: {}", err)) + }) + }) + } + fn poll_workflow_activation<'p>(&self, py: Python<'p>) -> PyResult<&'p PyAny> { let worker = self.worker.as_ref().unwrap().clone(); self.runtime.future_into_py(py, async move { diff --git a/temporalio/bridge/worker.py b/temporalio/bridge/worker.py index 2ea595799..9060d6469 100644 --- a/temporalio/bridge/worker.py +++ b/temporalio/bridge/worker.py @@ -91,6 +91,10 @@ def __init__(self, ref: temporalio.bridge.temporal_sdk_bridge.WorkerRef) -> None """Create SDK core worker from a bridge worker.""" self._ref = ref + async def validate(self) -> None: + """Validate the bridge worker.""" + await self._ref.validate() + async def poll_workflow_activation( self, ) -> temporalio.bridge.proto.workflow_activation.WorkflowActivation: diff --git a/temporalio/service.py b/temporalio/service.py index c79abb30f..c5b8cce93 100644 --- a/temporalio/service.py +++ b/temporalio/service.py @@ -348,6 +348,11 @@ def __init__(self, client: ServiceClient) -> None: wsv1.DescribeWorkflowExecutionRequest, wsv1.DescribeWorkflowExecutionResponse, ) + self.execute_multi_operation = client._new_call( + "execute_multi_operation", + wsv1.ExecuteMultiOperationRequest, + wsv1.ExecuteMultiOperationResponse, + ) self.get_cluster_info = client._new_call( "get_cluster_info", wsv1.GetClusterInfoRequest, @@ -373,6 +378,11 @@ def __init__(self, client: ServiceClient) -> None: wsv1.GetWorkerTaskReachabilityRequest, wsv1.GetWorkerTaskReachabilityResponse, ) + self.get_worker_versioning_rules = client._new_call( + "get_worker_versioning_rules", + wsv1.GetWorkerVersioningRulesRequest, + wsv1.GetWorkerVersioningRulesResponse, + ) self.get_workflow_execution_history = client._new_call( "get_workflow_execution_history", wsv1.GetWorkflowExecutionHistoryRequest, @@ -438,6 +448,11 @@ def __init__(self, client: ServiceClient) -> None: wsv1.PollActivityTaskQueueRequest, wsv1.PollActivityTaskQueueResponse, ) + self.poll_nexus_task_queue = client._new_call( + "poll_nexus_task_queue", + wsv1.PollNexusTaskQueueRequest, + wsv1.PollNexusTaskQueueResponse, + ) self.poll_workflow_execution_update = client._new_call( "poll_workflow_execution_update", wsv1.PollWorkflowExecutionUpdateRequest, @@ -513,6 +528,16 @@ def __init__(self, client: ServiceClient) -> None: wsv1.RespondActivityTaskFailedByIdRequest, wsv1.RespondActivityTaskFailedByIdResponse, ) + self.respond_nexus_task_completed = client._new_call( + "respond_nexus_task_completed", + wsv1.RespondNexusTaskCompletedRequest, + wsv1.RespondNexusTaskCompletedResponse, + ) + self.respond_nexus_task_failed = client._new_call( + "respond_nexus_task_failed", + wsv1.RespondNexusTaskFailedRequest, + wsv1.RespondNexusTaskFailedResponse, + ) self.respond_query_task_completed = client._new_call( "respond_query_task_completed", wsv1.RespondQueryTaskCompletedRequest, @@ -583,6 +608,11 @@ def __init__(self, client: ServiceClient) -> None: wsv1.UpdateWorkerBuildIdCompatibilityRequest, wsv1.UpdateWorkerBuildIdCompatibilityResponse, ) + self.update_worker_versioning_rules = client._new_call( + "update_worker_versioning_rules", + wsv1.UpdateWorkerVersioningRulesRequest, + wsv1.UpdateWorkerVersioningRulesResponse, + ) class OperatorService: @@ -603,18 +633,42 @@ def __init__(self, client: ServiceClient) -> None: osv1.AddSearchAttributesResponse, service="operator", ) + self.create_nexus_endpoint = client._new_call( + "create_nexus_endpoint", + osv1.CreateNexusEndpointRequest, + osv1.CreateNexusEndpointResponse, + service="operator", + ) + self.delete_nexus_endpoint = client._new_call( + "delete_nexus_endpoint", + osv1.DeleteNexusEndpointRequest, + osv1.DeleteNexusEndpointResponse, + service="operator", + ) self.delete_namespace = client._new_call( "delete_namespace", osv1.DeleteNamespaceRequest, osv1.DeleteNamespaceResponse, service="operator", ) + self.get_nexus_endpoint = client._new_call( + "get_nexus_endpoint", + osv1.GetNexusEndpointRequest, + osv1.GetNexusEndpointResponse, + service="operator", + ) self.list_clusters = client._new_call( "list_clusters", osv1.ListClustersRequest, osv1.ListClustersResponse, service="operator", ) + self.list_nexus_endpoints = client._new_call( + "list_nexus_endpoints", + osv1.ListNexusEndpointsRequest, + osv1.ListNexusEndpointsResponse, + service="operator", + ) self.list_search_attributes = client._new_call( "list_search_attributes", osv1.ListSearchAttributesRequest, @@ -633,6 +687,12 @@ def __init__(self, client: ServiceClient) -> None: osv1.RemoveSearchAttributesResponse, service="operator", ) + self.update_nexus_endpoint = client._new_call( + "update_nexus_endpoint", + osv1.UpdateNexusEndpointRequest, + osv1.UpdateNexusEndpointResponse, + service="operator", + ) class TestService: diff --git a/temporalio/worker/_worker.py b/temporalio/worker/_worker.py index a341c5503..7f6f068f8 100644 --- a/temporalio/worker/_worker.py +++ b/temporalio/worker/_worker.py @@ -439,6 +439,9 @@ async def run(self) -> None: also cancel the shutdown process. Therefore users are encouraged to use explicit shutdown instead. """ + # Eagerly validate which will do a namespace check in Core + await self._bridge_worker.validate() + if self._started: raise RuntimeError("Already started") self._started = True diff --git a/tests/test_service.py b/tests/test_service.py index c29b231c5..573c7dc0f 100644 --- a/tests/test_service.py +++ b/tests/test_service.py @@ -42,7 +42,10 @@ def assert_all_calls_present( new_stub(channel) # Confirm they are the same - assert channel.calls == service_calls + missing = channel.calls.keys() - service_calls.keys() + assert not missing + added = service_calls.keys() - channel.calls.keys() + assert not added assert_all_calls_present( client.workflow_service, diff --git a/tests/worker/test_worker.py b/tests/worker/test_worker.py index 734b747d2..8389435b4 100644 --- a/tests/worker/test_worker.py +++ b/tests/worker/test_worker.py @@ -214,6 +214,20 @@ async def test_worker_versioning(client: Client, env: WorkflowEnvironment): await wf2.result() +async def test_worker_validate_fail(client: Client, env: WorkflowEnvironment): + if env.supports_time_skipping: + pytest.skip("Java test server does not appear to fail on invalid namespace") + # Try to run a worker on an invalid namespace + config = client.config() + config["namespace"] = "does-not-exist" + client = Client(**config) + with pytest.raises(RuntimeError) as err: + await Worker( + client, task_queue=f"tq-{uuid.uuid4()}", workflows=[NeverRunWorkflow] + ).run() + assert str(err.value).startswith("Worker validation failed") + + def create_worker( client: Client, on_fatal_error: Optional[Callable[[BaseException], Awaitable[None]]] = None,