temporalio 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.lock +1461 -621
- data/Cargo.toml +1 -1
- data/Gemfile +6 -5
- data/README.md +42 -1
- data/ext/Cargo.toml +9 -3
- data/lib/temporalio/api/activity/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/billing/v1/message.rb +2 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +17 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
- data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
- data/lib/temporalio/api/cloud/namespace/v1/message.rb +5 -1
- data/lib/temporalio/api/command/v1/message.rb +2 -1
- data/lib/temporalio/api/common/v1/message.rb +5 -1
- data/lib/temporalio/api/deployment/v1/message.rb +3 -1
- data/lib/temporalio/api/history/v1/message.rb +3 -1
- data/lib/temporalio/api/namespace/v1/message.rb +1 -1
- data/lib/temporalio/api/nexus/v1/message.rb +1 -1
- data/lib/temporalio/api/nexusannotations/v1/options.rb +20 -0
- data/lib/temporalio/api/payload_visitor.rb +32 -0
- data/lib/temporalio/api/schedule/v1/message.rb +1 -1
- data/lib/temporalio/api/sdk/v1/event_group_marker.rb +26 -0
- data/lib/temporalio/api/update/v1/message.rb +1 -1
- data/lib/temporalio/api/workflow/v1/message.rb +3 -2
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +11 -1
- data/lib/temporalio/api/workflowservice/v1/service.rb +3 -2
- data/lib/temporalio/client/connection/cloud_service.rb +120 -0
- data/lib/temporalio/client/connection/workflow_service.rb +75 -0
- data/lib/temporalio/client/connection.rb +37 -2
- data/lib/temporalio/client.rb +10 -5
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
- data/lib/temporalio/internal/bridge/client.rb +6 -1
- data/lib/temporalio/internal/bridge.rb +20 -0
- data/lib/temporalio/internal/google_protobuf.rb +11 -0
- data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
- data/lib/temporalio/internal/worker/workflow_instance/details.rb +3 -1
- data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +73 -2
- data/lib/temporalio/internal/worker/workflow_instance.rb +36 -6
- data/lib/temporalio/internal/worker/workflow_worker.rb +10 -2
- data/lib/temporalio/internal/workflow_task_failure_error.rb +9 -0
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/activity_executor/fiber.rb +1 -1
- data/lib/temporalio/worker/activity_executor/thread_pool.rb +1 -1
- data/lib/temporalio/worker/illegal_workflow_call_validator.rb +3 -1
- data/lib/temporalio/worker/workflow_executor/thread_pool.rb +5 -1
- data/lib/temporalio/worker/workflow_replayer.rb +17 -4
- data/lib/temporalio/worker.rb +30 -5
- data/lib/temporalio/workflow/future.rb +5 -0
- data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
- data/lib/temporalio/workflow.rb +8 -0
- data/rbi/google/protobuf.rbi +25 -0
- data/rbi/temporalio/activity/cancellation_details.rbi +33 -0
- data/rbi/temporalio/activity/complete_async_error.rbi +3 -0
- data/rbi/temporalio/activity/context.rbi +42 -0
- data/rbi/temporalio/activity/definition.rbi +74 -0
- data/rbi/temporalio/activity/info.rbi +112 -0
- data/rbi/temporalio/activity.rbi +3 -0
- data/rbi/temporalio/api/activity/v1/message.rbi +1453 -0
- data/rbi/temporalio/api/batch/v1/message.rbi +1283 -0
- data/rbi/temporalio/api/callback/v1/message.rbi +188 -0
- data/rbi/temporalio/api/cloud/account/v1/message.rbi +650 -0
- data/rbi/temporalio/api/cloud/auditlog/v1/message.rbi +318 -0
- data/rbi/temporalio/api/cloud/billing/v1/message.rbi +480 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +12454 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +709 -0
- data/rbi/temporalio/api/cloud/cloudservice.rbi +5 -0
- data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +403 -0
- data/rbi/temporalio/api/cloud/identity/v1/message.rbi +3072 -0
- data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +3659 -0
- data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +595 -0
- data/rbi/temporalio/api/cloud/operation/v1/message.rbi +244 -0
- data/rbi/temporalio/api/cloud/region/v1/message.rbi +166 -0
- data/rbi/temporalio/api/cloud/resource/v1/message.rbi +29 -0
- data/rbi/temporalio/api/cloud/sink/v1/message.rbi +438 -0
- data/rbi/temporalio/api/cloud/usage/v1/message.rbi +409 -0
- data/rbi/temporalio/api/command/v1/message.rbi +2655 -0
- data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
- data/rbi/temporalio/api/common/v1/message.rbi +2983 -0
- data/rbi/temporalio/api/compute/v1/config.rbi +421 -0
- data/rbi/temporalio/api/compute/v1/provider.rbi +125 -0
- data/rbi/temporalio/api/compute/v1/scaler.rbi +102 -0
- data/rbi/temporalio/api/deployment/v1/message.rbi +2340 -0
- data/rbi/temporalio/api/enums/v1/activity.rbi +62 -0
- data/rbi/temporalio/api/enums/v1/batch_operation.rbi +47 -0
- data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
- data/rbi/temporalio/api/enums/v1/common.rbi +181 -0
- data/rbi/temporalio/api/enums/v1/deployment.rbi +80 -0
- data/rbi/temporalio/api/enums/v1/event_type.rbi +79 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +155 -0
- data/rbi/temporalio/api/enums/v1/namespace.rbi +58 -0
- data/rbi/temporalio/api/enums/v1/nexus.rbi +98 -0
- data/rbi/temporalio/api/enums/v1/query.rbi +40 -0
- data/rbi/temporalio/api/enums/v1/reset.rbi +60 -0
- data/rbi/temporalio/api/enums/v1/schedule.rbi +25 -0
- data/rbi/temporalio/api/enums/v1/task_queue.rbi +134 -0
- data/rbi/temporalio/api/enums/v1/update.rbi +39 -0
- data/rbi/temporalio/api/enums/v1/workflow.rbi +259 -0
- data/rbi/temporalio/api/errordetails/v1/message.rbi +1389 -0
- data/rbi/temporalio/api/export/v1/message.rbi +123 -0
- data/rbi/temporalio/api/failure/v1/message.rbi +1303 -0
- data/rbi/temporalio/api/filter/v1/message.rbi +267 -0
- data/rbi/temporalio/api/history/v1/message.rbi +10737 -0
- data/rbi/temporalio/api/namespace/v1/message.rbi +1044 -0
- data/rbi/temporalio/api/nexus/v1/message.rbi +2780 -0
- data/rbi/temporalio/api/nexusannotations/v1/options.rbi +161 -0
- data/rbi/temporalio/api/nexusservices/workerservice/v1/request_response.rbi +124 -0
- data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +1836 -0
- data/rbi/temporalio/api/operatorservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +143 -0
- data/rbi/temporalio/api/operatorservice.rbi +5 -0
- data/rbi/temporalio/api/payload_visitor.rbi +876 -0
- data/rbi/temporalio/api/protoc_gen_openapiv2/options/annotations.rbi +3 -0
- data/rbi/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbi +3482 -0
- data/rbi/temporalio/api/protocol/v1/message.rbi +139 -0
- data/rbi/temporalio/api/protometa/v1/annotations.rbi +97 -0
- data/rbi/temporalio/api/query/v1/message.rbi +288 -0
- data/rbi/temporalio/api/replication/v1/message.rbi +226 -0
- data/rbi/temporalio/api/rules/v1/message.rbi +492 -0
- data/rbi/temporalio/api/schedule/v1/message.rbi +2377 -0
- data/rbi/temporalio/api/sdk/v1/enhanced_stack_trace.rbi +478 -0
- data/rbi/temporalio/api/sdk/v1/event_group_marker.rbi +337 -0
- data/rbi/temporalio/api/sdk/v1/external_storage.rbi +85 -0
- data/rbi/temporalio/api/sdk/v1/task_complete_metadata.rbi +206 -0
- data/rbi/temporalio/api/sdk/v1/user_metadata.rbi +98 -0
- data/rbi/temporalio/api/sdk/v1/worker_config.rbi +255 -0
- data/rbi/temporalio/api/sdk/v1/workflow_metadata.rbi +297 -0
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +2460 -0
- data/rbi/temporalio/api/testservice/v1/request_response.rbi +380 -0
- data/rbi/temporalio/api/testservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/testservice/v1/service_services.rbi +100 -0
- data/rbi/temporalio/api/update/v1/message.rbi +800 -0
- data/rbi/temporalio/api/version/v1/message.rbi +281 -0
- data/rbi/temporalio/api/worker/v1/message.rbi +1565 -0
- data/rbi/temporalio/api/workflow/v1/message.rbi +5011 -0
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +30477 -0
- data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1571 -0
- data/rbi/temporalio/api/workflowservice.rbi +5 -0
- data/rbi/temporalio/api.rbi +7 -0
- data/rbi/temporalio/cancellation.rbi +40 -0
- data/rbi/temporalio/client/activity_execution.rbi +134 -0
- data/rbi/temporalio/client/activity_execution_count.rbi +23 -0
- data/rbi/temporalio/client/activity_execution_status.rbi +11 -0
- data/rbi/temporalio/client/activity_handle.rbi +49 -0
- data/rbi/temporalio/client/activity_id_reference.rbi +24 -0
- data/rbi/temporalio/client/async_activity_handle.rbi +49 -0
- data/rbi/temporalio/client/connection/cloud_service.rbi +239 -0
- data/rbi/temporalio/client/connection/operator_service.rbi +47 -0
- data/rbi/temporalio/client/connection/service.rbi +19 -0
- data/rbi/temporalio/client/connection/test_service.rbi +29 -0
- data/rbi/temporalio/client/connection/workflow_service.rbi +377 -0
- data/rbi/temporalio/client/connection.rbi +284 -0
- data/rbi/temporalio/client/interceptor.rbi +1067 -0
- data/rbi/temporalio/client/pending_activity_state.rbi +9 -0
- data/rbi/temporalio/client/plugin.rbi +17 -0
- data/rbi/temporalio/client/schedule.rbi +677 -0
- data/rbi/temporalio/client/schedule_handle.rbi +40 -0
- data/rbi/temporalio/client/with_start_workflow_operation.rbi +126 -0
- data/rbi/temporalio/client/workflow_execution.rbi +62 -0
- data/rbi/temporalio/client/workflow_execution_count.rbi +23 -0
- data/rbi/temporalio/client/workflow_execution_status.rbi +11 -0
- data/rbi/temporalio/client/workflow_handle.rbi +148 -0
- data/rbi/temporalio/client/workflow_query_reject_condition.rbi +7 -0
- data/rbi/temporalio/client/workflow_update_handle.rbi +38 -0
- data/rbi/temporalio/client/workflow_update_wait_stage.rbi +7 -0
- data/rbi/temporalio/client.rbi +534 -0
- data/rbi/temporalio/common_enums.rbi +45 -0
- data/rbi/temporalio/contrib/open_telemetry.rbi +73 -0
- data/rbi/temporalio/converters/data_converter.rbi +44 -0
- data/rbi/temporalio/converters/failure_converter.rbi +20 -0
- data/rbi/temporalio/converters/payload_codec.rbi +11 -0
- data/rbi/temporalio/converters/payload_converter/binary_null.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/binary_plain.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/binary_protobuf.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/composite.rbi +20 -0
- data/rbi/temporalio/converters/payload_converter/encoding.rbi +14 -0
- data/rbi/temporalio/converters/payload_converter/json_plain.rbi +10 -0
- data/rbi/temporalio/converters/payload_converter/json_protobuf.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter.rbi +28 -0
- data/rbi/temporalio/converters/raw_value.rbi +11 -0
- data/rbi/temporalio/converters.rbi +3 -0
- data/rbi/temporalio/env_config.rbi +156 -0
- data/rbi/temporalio/error/failure.rbi +3 -0
- data/rbi/temporalio/error.rbi +313 -0
- data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +547 -0
- data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +705 -0
- data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +332 -0
- data/rbi/temporalio/internal/bridge/api/common/common.rbi +191 -0
- data/rbi/temporalio/internal/bridge/api/core_interface.rbi +567 -0
- data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +255 -0
- data/rbi/temporalio/internal/bridge/api/nexus/nexus.rbi +527 -0
- data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +2808 -0
- data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +3309 -0
- data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +272 -0
- data/rbi/temporalio/internal/bridge/api.rbi +3 -0
- data/rbi/temporalio/internal/bridge/client.rbi +346 -0
- data/rbi/temporalio/internal/bridge/runtime.rbi +231 -0
- data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
- data/rbi/temporalio/internal/bridge/worker.rbi +250 -0
- data/rbi/temporalio/internal/bridge.rbi +47 -0
- data/rbi/temporalio/internal/client/implementation.rbi +53 -0
- data/rbi/temporalio/internal/google_protobuf.rbi +8 -0
- data/rbi/temporalio/internal/metric.rbi +55 -0
- data/rbi/temporalio/internal/proto_utils.rbi +148 -0
- data/rbi/temporalio/internal/worker/activity_worker.rbi +108 -0
- data/rbi/temporalio/internal/worker/multi_runner.rbi +175 -0
- data/rbi/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbi +20 -0
- data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +290 -0
- data/rbi/temporalio/internal/worker/workflow_instance/details.rbi +87 -0
- data/rbi/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbi +14 -0
- data/rbi/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/handler_execution.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/handler_hash.rbi +24 -0
- data/rbi/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/inbound_implementation.rbi +21 -0
- data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +47 -0
- data/rbi/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbi +19 -0
- data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +43 -0
- data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbi +11 -0
- data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbi +15 -0
- data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +36 -0
- data/rbi/temporalio/internal/worker/workflow_instance.rbi +231 -0
- data/rbi/temporalio/internal/worker/workflow_worker.rbi +199 -0
- data/rbi/temporalio/internal/workflow_task_failure_error.rbi +3 -0
- data/rbi/temporalio/internal.rbi +3 -0
- data/rbi/temporalio/metric.rbi +56 -0
- data/rbi/temporalio/priority.rbi +38 -0
- data/rbi/temporalio/retry_policy.rbi +40 -0
- data/rbi/temporalio/runtime/metric_buffer.rbi +45 -0
- data/rbi/temporalio/runtime.rbi +185 -0
- data/rbi/temporalio/scoped_logger.rbi +50 -0
- data/rbi/temporalio/search_attributes.rbi +94 -0
- data/rbi/temporalio/simple_plugin.rbi +41 -0
- data/rbi/temporalio/testing/activity_environment.rbi +43 -0
- data/rbi/temporalio/testing/workflow_environment.rbi +116 -0
- data/rbi/temporalio/testing.rbi +3 -0
- data/rbi/temporalio/version.rbi +5 -0
- data/rbi/temporalio/versioning_override.rbi +13 -0
- data/rbi/temporalio/worker/activity_executor/fiber.rbi +20 -0
- data/rbi/temporalio/worker/activity_executor/thread_pool.rbi +20 -0
- data/rbi/temporalio/worker/activity_executor.rbi +20 -0
- data/rbi/temporalio/worker/deployment_options.rbi +23 -0
- data/rbi/temporalio/worker/illegal_workflow_call_validator.rbi +33 -0
- data/rbi/temporalio/worker/interceptor.rbi +489 -0
- data/rbi/temporalio/worker/plugin.rbi +49 -0
- data/rbi/temporalio/worker/poller_behavior.rbi +29 -0
- data/rbi/temporalio/worker/thread_pool.rbi +38 -0
- data/rbi/temporalio/worker/tuner.rbi +221 -0
- data/rbi/temporalio/worker/workflow_executor/thread_pool.rbi +15 -0
- data/rbi/temporalio/worker/workflow_executor.rbi +8 -0
- data/rbi/temporalio/worker/workflow_replayer.rbi +152 -0
- data/rbi/temporalio/worker.rbi +258 -0
- data/rbi/temporalio/worker_deployment_version.rbi +29 -0
- data/rbi/temporalio/workflow/activity_cancellation_type.rbi +7 -0
- data/rbi/temporalio/workflow/child_workflow_cancellation_type.rbi +8 -0
- data/rbi/temporalio/workflow/child_workflow_handle.rbi +27 -0
- data/rbi/temporalio/workflow/definition.rbi +305 -0
- data/rbi/temporalio/workflow/external_workflow_handle.rbi +24 -0
- data/rbi/temporalio/workflow/future.rbi +62 -0
- data/rbi/temporalio/workflow/handler_unfinished_policy.rbi +6 -0
- data/rbi/temporalio/workflow/info.rbi +100 -0
- data/rbi/temporalio/workflow/nexus_client.rbi +65 -0
- data/rbi/temporalio/workflow/nexus_operation_cancellation_type.rbi +8 -0
- data/rbi/temporalio/workflow/nexus_operation_handle.rbi +14 -0
- data/rbi/temporalio/workflow/parent_close_policy.rbi +8 -0
- data/rbi/temporalio/workflow/update_info.rbi +14 -0
- data/rbi/temporalio/workflow.rbi +393 -0
- data/rbi/temporalio/workflow_history.rbi +21 -0
- data/rbi/temporalio.rbi +5 -0
- data/sig/common.rbs +1 -0
- data/sig/google/protobuf_compat.rbs +17 -0
- data/sig/open_telemetry.rbs +47 -0
- data/sig/temporalio/activity/cancellation_details.rbs +21 -0
- data/sig/temporalio/activity/complete_async_error.rbs +6 -0
- data/sig/temporalio/activity/context.rbs +26 -0
- data/sig/temporalio/activity/definition.rbs +60 -0
- data/sig/temporalio/activity/info.rbs +57 -0
- data/sig/temporalio/activity.rbs +4 -0
- data/sig/temporalio/api/activity/v1/message.rbs +708 -0
- data/sig/temporalio/api/batch/v1/message.rbs +594 -0
- data/sig/temporalio/api/callback/v1/message.rbs +112 -0
- data/sig/temporalio/api/cloud/account/v1/message.rbs +314 -0
- data/sig/temporalio/api/cloud/auditlog/v1/message.rbs +168 -0
- data/sig/temporalio/api/cloud/billing/v1/message.rbs +279 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +4726 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/service.rbs +25 -0
- data/sig/temporalio/api/cloud/cloudservice.rbs +8 -0
- data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +191 -0
- data/sig/temporalio/api/cloud/identity/v1/message.rbs +1372 -0
- data/sig/temporalio/api/cloud/namespace/v1/message.rbs +1571 -0
- data/sig/temporalio/api/cloud/nexus/v1/message.rbs +269 -0
- data/sig/temporalio/api/cloud/operation/v1/message.rbs +156 -0
- data/sig/temporalio/api/cloud/region/v1/message.rbs +109 -0
- data/sig/temporalio/api/cloud/resource/v1/message.rbs +61 -0
- data/sig/temporalio/api/cloud/sink/v1/message.rbs +207 -0
- data/sig/temporalio/api/cloud/usage/v1/message.rbs +230 -0
- data/sig/temporalio/api/command/v1/message.rbs +1211 -0
- data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
- data/sig/temporalio/api/common/v1/message.rbs +1238 -0
- data/sig/temporalio/api/compute/v1/config.rbs +176 -0
- data/sig/temporalio/api/compute/v1/provider.rbs +73 -0
- data/sig/temporalio/api/compute/v1/scaler.rbs +60 -0
- data/sig/temporalio/api/deployment/v1/message.rbs +1063 -0
- data/sig/temporalio/api/enums/v1/activity.rbs +134 -0
- data/sig/temporalio/api/enums/v1/batch_operation.rbs +80 -0
- data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
- data/sig/temporalio/api/enums/v1/common.rbs +271 -0
- data/sig/temporalio/api/enums/v1/deployment.rbs +177 -0
- data/sig/temporalio/api/enums/v1/event_type.rbs +263 -0
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +281 -0
- data/sig/temporalio/api/enums/v1/namespace.rbs +87 -0
- data/sig/temporalio/api/enums/v1/nexus.rbs +172 -0
- data/sig/temporalio/api/enums/v1/query.rbs +69 -0
- data/sig/temporalio/api/enums/v1/reset.rbs +106 -0
- data/sig/temporalio/api/enums/v1/schedule.rbs +68 -0
- data/sig/temporalio/api/enums/v1/task_queue.rbs +238 -0
- data/sig/temporalio/api/enums/v1/update.rbs +87 -0
- data/sig/temporalio/api/enums/v1/workflow.rbs +435 -0
- data/sig/temporalio/api/errordetails/v1/message.rbs +532 -0
- data/sig/temporalio/api/export/v1/message.rbs +63 -0
- data/sig/temporalio/api/failure/v1/message.rbs +579 -0
- data/sig/temporalio/api/filter/v1/message.rbs +121 -0
- data/sig/temporalio/api/history/v1/message.rbs +4928 -0
- data/sig/temporalio/api/namespace/v1/message.rbs +465 -0
- data/sig/temporalio/api/nexus/v1/message.rbs +1268 -0
- data/sig/temporalio/api/nexusannotations/v1/options.rbs +76 -0
- data/sig/temporalio/api/nexusservices/workerservice/v1/request_response.rbs +65 -0
- data/sig/temporalio/api/operatorservice/v1/request_response.rbs +679 -0
- data/sig/temporalio/api/operatorservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/operatorservice.rbs +6 -0
- data/sig/temporalio/api/payload_visitor.rbs +298 -0
- data/sig/temporalio/api/protoc_gen_openapiv2/options/annotations.rbs +23 -0
- data/sig/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbs +1691 -0
- data/sig/temporalio/api/protocol/v1/message.rbs +90 -0
- data/sig/temporalio/api/protometa/v1/annotations.rbs +62 -0
- data/sig/temporalio/api/query/v1/message.rbs +138 -0
- data/sig/temporalio/api/replication/v1/message.rbs +109 -0
- data/sig/temporalio/api/rules/v1/message.rbs +213 -0
- data/sig/temporalio/api/schedule/v1/message.rbs +1066 -0
- data/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs +210 -0
- data/sig/temporalio/api/sdk/v1/event_group_marker.rbs +154 -0
- data/sig/temporalio/api/sdk/v1/external_storage.rbs +54 -0
- data/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs +92 -0
- data/sig/temporalio/api/sdk/v1/user_metadata.rbs +58 -0
- data/sig/temporalio/api/sdk/v1/worker_config.rbs +122 -0
- data/sig/temporalio/api/sdk/v1/workflow_metadata.rbs +138 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +1013 -0
- data/sig/temporalio/api/testservice/v1/request_response.rbs +125 -0
- data/sig/temporalio/api/testservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/update/v1/message.rbs +349 -0
- data/sig/temporalio/api/version/v1/message.rbs +143 -0
- data/sig/temporalio/api/worker/v1/message.rbs +716 -0
- data/sig/temporalio/api/workflow/v1/message.rbs +2322 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +12735 -0
- data/sig/temporalio/api/workflowservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/workflowservice.rbs +6 -0
- data/sig/temporalio/api.rbs +4 -0
- data/sig/temporalio/cancellation.rbs +20 -0
- data/sig/temporalio/client/activity_execution.rbs +50 -0
- data/sig/temporalio/client/activity_execution_count.rbs +17 -0
- data/sig/temporalio/client/activity_execution_status.rbs +15 -0
- data/sig/temporalio/client/activity_handle.rbs +26 -0
- data/sig/temporalio/client/activity_id_reference.rbs +16 -0
- data/sig/temporalio/client/async_activity_handle.rbs +41 -0
- data/sig/temporalio/client/connection/cloud_service.rbs +315 -0
- data/sig/temporalio/client/connection/operator_service.rbs +59 -0
- data/sig/temporalio/client/connection/service.rbs +17 -0
- data/sig/temporalio/client/connection/test_service.rbs +35 -0
- data/sig/temporalio/client/connection/workflow_service.rbs +499 -0
- data/sig/temporalio/client/connection.rbs +143 -0
- data/sig/temporalio/client/interceptor.rbs +622 -0
- data/sig/temporalio/client/pending_activity_state.rbs +14 -0
- data/sig/temporalio/client/plugin.rbs +14 -0
- data/sig/temporalio/client/schedule.rbs +337 -0
- data/sig/temporalio/client/schedule_handle.rbs +44 -0
- data/sig/temporalio/client/with_start_workflow_operation.rbs +82 -0
- data/sig/temporalio/client/workflow_execution.rbs +37 -0
- data/sig/temporalio/client/workflow_execution_count.rbs +17 -0
- data/sig/temporalio/client/workflow_execution_status.rbs +16 -0
- data/sig/temporalio/client/workflow_handle.rbs +95 -0
- data/sig/temporalio/client/workflow_query_reject_condition.rbs +12 -0
- data/sig/temporalio/client/workflow_update_handle.rbs +26 -0
- data/sig/temporalio/client/workflow_update_wait_stage.rbs +12 -0
- data/sig/temporalio/client.rbs +271 -0
- data/sig/temporalio/common_enums.rbs +60 -0
- data/sig/temporalio/contrib/open_telemetry.rbs +74 -0
- data/sig/temporalio/converters/data_converter.rbs +32 -0
- data/sig/temporalio/converters/failure_converter.rbs +12 -0
- data/sig/temporalio/converters/payload_codec.rbs +8 -0
- data/sig/temporalio/converters/payload_converter/binary_null.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/binary_plain.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/composite.rbs +16 -0
- data/sig/temporalio/converters/payload_converter/encoding.rbs +13 -0
- data/sig/temporalio/converters/payload_converter/json_plain.rbs +14 -0
- data/sig/temporalio/converters/payload_converter/json_protobuf.rbs +9 -0
- data/sig/temporalio/converters/payload_converter.rbs +24 -0
- data/sig/temporalio/converters/raw_value.rbs +9 -0
- data/sig/temporalio/converters.rbs +4 -0
- data/sig/temporalio/env_config.rbs +86 -0
- data/sig/temporalio/error/failure.rbs +170 -0
- data/sig/temporalio/error.rbs +88 -0
- data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +247 -0
- data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +372 -0
- data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +207 -0
- data/sig/temporalio/internal/bridge/api/common/common.rbs +123 -0
- data/sig/temporalio/internal/bridge/api/core_interface.rbs +231 -0
- data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +134 -0
- data/sig/temporalio/internal/bridge/api/nexus/nexus.rbs +285 -0
- data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +1304 -0
- data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +1526 -0
- data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +136 -0
- data/sig/temporalio/internal/bridge/api.rbs +8 -0
- data/sig/temporalio/internal/bridge/client.rbs +144 -0
- data/sig/temporalio/internal/bridge/metric.rbs +28 -0
- data/sig/temporalio/internal/bridge/runtime.rbs +97 -0
- data/sig/temporalio/internal/bridge/testing.rbs +91 -0
- data/sig/temporalio/internal/bridge/worker.rbs +199 -0
- data/sig/temporalio/internal/bridge.rbs +36 -0
- data/sig/temporalio/internal/client/implementation.rbs +33 -0
- data/sig/temporalio/internal/google_protobuf.rbs +7 -0
- data/sig/temporalio/internal/metric.rbs +35 -0
- data/sig/temporalio/internal/proto_utils.rbs +94 -0
- data/sig/temporalio/internal/worker/activity_worker.rbs +64 -0
- data/sig/temporalio/internal/worker/multi_runner.rbs +132 -0
- data/sig/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbs +22 -0
- data/sig/temporalio/internal/worker/workflow_instance/context.rbs +172 -0
- data/sig/temporalio/internal/worker/workflow_instance/details.rbs +43 -0
- data/sig/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbs +15 -0
- data/sig/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbs +16 -0
- data/sig/temporalio/internal/worker/workflow_instance/handler_execution.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/handler_hash.rbs +14 -0
- data/sig/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbs +20 -0
- data/sig/temporalio/internal/worker/workflow_instance/inbound_implementation.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +25 -0
- data/sig/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +35 -0
- data/sig/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbs +16 -0
- data/sig/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbs +15 -0
- data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +52 -0
- data/sig/temporalio/internal/worker/workflow_instance.rbs +111 -0
- data/sig/temporalio/internal/worker/workflow_worker.rbs +99 -0
- data/sig/temporalio/internal/workflow_task_failure_error.rbs +6 -0
- data/sig/temporalio/internal.rbs +4 -0
- data/sig/temporalio/metric.rbs +55 -0
- data/sig/temporalio/priority.rbs +17 -0
- data/sig/temporalio/retry_policy.rbs +21 -0
- data/sig/temporalio/runtime/metric_buffer.rbs +49 -0
- data/sig/temporalio/runtime.rbs +118 -0
- data/sig/temporalio/scoped_logger.rbs +15 -0
- data/sig/temporalio/search_attributes.rbs +82 -0
- data/sig/temporalio/simple_plugin.rbs +65 -0
- data/sig/temporalio/testing/activity_environment.rbs +52 -0
- data/sig/temporalio/testing/workflow_environment.rbs +141 -0
- data/sig/temporalio/testing.rbs +4 -0
- data/sig/temporalio/version.rbs +3 -0
- data/sig/temporalio/versioning_override.rbs +17 -0
- data/sig/temporalio/worker/activity_executor/fiber.rbs +9 -0
- data/sig/temporalio/worker/activity_executor/thread_pool.rbs +11 -0
- data/sig/temporalio/worker/activity_executor.rbs +12 -0
- data/sig/temporalio/worker/deployment_options.rbs +17 -0
- data/sig/temporalio/worker/illegal_workflow_call_validator.rbs +25 -0
- data/sig/temporalio/worker/interceptor.rbs +373 -0
- data/sig/temporalio/worker/plugin.rbs +47 -0
- data/sig/temporalio/worker/poller_behavior.rbs +23 -0
- data/sig/temporalio/worker/thread_pool.rbs +44 -0
- data/sig/temporalio/worker/tuner.rbs +121 -0
- data/sig/temporalio/worker/workflow_executor/thread_pool.rbs +58 -0
- data/sig/temporalio/worker/workflow_executor.rbs +15 -0
- data/sig/temporalio/worker/workflow_replayer.rbs +105 -0
- data/sig/temporalio/worker.rbs +168 -0
- data/sig/temporalio/worker_deployment_version.rbs +17 -0
- data/sig/temporalio/workflow/activity_cancellation_type.rbs +11 -0
- data/sig/temporalio/workflow/child_workflow_cancellation_type.rbs +12 -0
- data/sig/temporalio/workflow/child_workflow_handle.rbs +18 -0
- data/sig/temporalio/workflow/definition.rbs +181 -0
- data/sig/temporalio/workflow/external_workflow_handle.rbs +17 -0
- data/sig/temporalio/workflow/future.rbs +24 -0
- data/sig/temporalio/workflow/handler_unfinished_policy.rbs +10 -0
- data/sig/temporalio/workflow/info.rbs +79 -0
- data/sig/temporalio/workflow/nexus_client.rbs +34 -0
- data/sig/temporalio/workflow/nexus_operation_cancellation_type.rbs +12 -0
- data/sig/temporalio/workflow/nexus_operation_handle.rbs +10 -0
- data/sig/temporalio/workflow/parent_close_policy.rbs +12 -0
- data/sig/temporalio/workflow/update_info.rbs +15 -0
- data/sig/temporalio/workflow.rbs +215 -0
- data/sig/temporalio/workflow_history.rbs +13 -0
- data/sig/temporalio.rbs +3 -0
- data/temporalio.gemspec +1 -1
- metadata +445 -2
|
@@ -0,0 +1,2983 @@
|
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
|
2
|
+
# source: temporal/api/common/v1/message.proto
|
|
3
|
+
# typed: strict
|
|
4
|
+
|
|
5
|
+
class Temporalio::Api::Common::V1::DataBlob
|
|
6
|
+
include ::Google::Protobuf::MessageExts
|
|
7
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
8
|
+
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
encoding_type: T.nilable(T.any(Symbol, String, Integer)),
|
|
12
|
+
data: T.nilable(String)
|
|
13
|
+
).void
|
|
14
|
+
end
|
|
15
|
+
def initialize(
|
|
16
|
+
encoding_type: :ENCODING_TYPE_UNSPECIFIED,
|
|
17
|
+
data: ""
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
22
|
+
def encoding_type
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
26
|
+
def encoding_type=(value)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { void }
|
|
30
|
+
def clear_encoding_type
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig { returns(String) }
|
|
34
|
+
def data
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
sig { params(value: String).void }
|
|
38
|
+
def data=(value)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig { void }
|
|
42
|
+
def clear_data
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
sig { params(field: String).returns(T.untyped) }
|
|
46
|
+
def [](field)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig { params(field: String, value: T.untyped).void }
|
|
50
|
+
def []=(field, value)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
54
|
+
def to_h
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::DataBlob) }
|
|
58
|
+
def self.decode(str)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
sig { params(msg: Temporalio::Api::Common::V1::DataBlob).returns(String) }
|
|
62
|
+
def self.encode(msg)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::DataBlob) }
|
|
66
|
+
def self.decode_json(str, **kw)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
sig { params(msg: Temporalio::Api::Common::V1::DataBlob, kw: T.untyped).returns(String) }
|
|
70
|
+
def self.encode_json(msg, **kw)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
74
|
+
def self.descriptor
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# See `Payload`
|
|
79
|
+
class Temporalio::Api::Common::V1::Payloads
|
|
80
|
+
include ::Google::Protobuf::MessageExts
|
|
81
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
82
|
+
|
|
83
|
+
sig do
|
|
84
|
+
params(
|
|
85
|
+
payloads: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)])
|
|
86
|
+
).void
|
|
87
|
+
end
|
|
88
|
+
def initialize(
|
|
89
|
+
payloads: []
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
|
|
94
|
+
def payloads
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
98
|
+
def payloads=(value)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
sig { void }
|
|
102
|
+
def clear_payloads
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
sig { params(field: String).returns(T.untyped) }
|
|
106
|
+
def [](field)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
sig { params(field: String, value: T.untyped).void }
|
|
110
|
+
def []=(field, value)
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
114
|
+
def to_h
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Payloads) }
|
|
118
|
+
def self.decode(str)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
sig { params(msg: Temporalio::Api::Common::V1::Payloads).returns(String) }
|
|
122
|
+
def self.encode(msg)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Payloads) }
|
|
126
|
+
def self.decode_json(str, **kw)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
sig { params(msg: Temporalio::Api::Common::V1::Payloads, kw: T.untyped).returns(String) }
|
|
130
|
+
def self.encode_json(msg, **kw)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
134
|
+
def self.descriptor
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Represents some binary (byte array) data (ex: activity input parameters or workflow result) with
|
|
139
|
+
# metadata which describes this binary data (format, encoding, encryption, etc). Serialization
|
|
140
|
+
# of the data may be user-defined.
|
|
141
|
+
class Temporalio::Api::Common::V1::Payload
|
|
142
|
+
include ::Google::Protobuf::MessageExts
|
|
143
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
144
|
+
|
|
145
|
+
sig do
|
|
146
|
+
params(
|
|
147
|
+
metadata: T.nilable(T::Hash[String, String]),
|
|
148
|
+
data: T.nilable(String),
|
|
149
|
+
external_payloads: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails)])
|
|
150
|
+
).void
|
|
151
|
+
end
|
|
152
|
+
def initialize(
|
|
153
|
+
metadata: ::Google::Protobuf::Map.new(:string, :bytes),
|
|
154
|
+
data: "",
|
|
155
|
+
external_payloads: []
|
|
156
|
+
)
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
sig { returns(T::Hash[String, String]) }
|
|
160
|
+
def metadata
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
sig { params(value: ::Google::Protobuf::Map).void }
|
|
164
|
+
def metadata=(value)
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
sig { void }
|
|
168
|
+
def clear_metadata
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
sig { returns(String) }
|
|
172
|
+
def data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
sig { params(value: String).void }
|
|
176
|
+
def data=(value)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
sig { void }
|
|
180
|
+
def clear_data
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Details about externally stored payloads associated with this payload.
|
|
184
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails)]) }
|
|
185
|
+
def external_payloads
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Details about externally stored payloads associated with this payload.
|
|
189
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
190
|
+
def external_payloads=(value)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Details about externally stored payloads associated with this payload.
|
|
194
|
+
sig { void }
|
|
195
|
+
def clear_external_payloads
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
sig { params(field: String).returns(T.untyped) }
|
|
199
|
+
def [](field)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
sig { params(field: String, value: T.untyped).void }
|
|
203
|
+
def []=(field, value)
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
207
|
+
def to_h
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Payload) }
|
|
211
|
+
def self.decode(str)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
sig { params(msg: Temporalio::Api::Common::V1::Payload).returns(String) }
|
|
215
|
+
def self.encode(msg)
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Payload) }
|
|
219
|
+
def self.decode_json(str, **kw)
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
sig { params(msg: Temporalio::Api::Common::V1::Payload, kw: T.untyped).returns(String) }
|
|
223
|
+
def self.encode_json(msg, **kw)
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
227
|
+
def self.descriptor
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# A user-defined set of *indexed* fields that are used/exposed when listing/searching workflows.
|
|
232
|
+
# The payload is not serialized in a user-defined way.
|
|
233
|
+
class Temporalio::Api::Common::V1::SearchAttributes
|
|
234
|
+
include ::Google::Protobuf::MessageExts
|
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
236
|
+
|
|
237
|
+
sig do
|
|
238
|
+
params(
|
|
239
|
+
indexed_fields: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)])
|
|
240
|
+
).void
|
|
241
|
+
end
|
|
242
|
+
def initialize(
|
|
243
|
+
indexed_fields: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload)
|
|
244
|
+
)
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
|
|
248
|
+
def indexed_fields
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
sig { params(value: ::Google::Protobuf::Map).void }
|
|
252
|
+
def indexed_fields=(value)
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
sig { void }
|
|
256
|
+
def clear_indexed_fields
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
sig { params(field: String).returns(T.untyped) }
|
|
260
|
+
def [](field)
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
sig { params(field: String, value: T.untyped).void }
|
|
264
|
+
def []=(field, value)
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
268
|
+
def to_h
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::SearchAttributes) }
|
|
272
|
+
def self.decode(str)
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
sig { params(msg: Temporalio::Api::Common::V1::SearchAttributes).returns(String) }
|
|
276
|
+
def self.encode(msg)
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::SearchAttributes) }
|
|
280
|
+
def self.decode_json(str, **kw)
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
sig { params(msg: Temporalio::Api::Common::V1::SearchAttributes, kw: T.untyped).returns(String) }
|
|
284
|
+
def self.encode_json(msg, **kw)
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
288
|
+
def self.descriptor
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# A user-defined set of *unindexed* fields that are exposed when listing/searching workflows
|
|
293
|
+
class Temporalio::Api::Common::V1::Memo
|
|
294
|
+
include ::Google::Protobuf::MessageExts
|
|
295
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
296
|
+
|
|
297
|
+
sig do
|
|
298
|
+
params(
|
|
299
|
+
fields: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)])
|
|
300
|
+
).void
|
|
301
|
+
end
|
|
302
|
+
def initialize(
|
|
303
|
+
fields: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload)
|
|
304
|
+
)
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
|
|
308
|
+
def fields
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
sig { params(value: ::Google::Protobuf::Map).void }
|
|
312
|
+
def fields=(value)
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
sig { void }
|
|
316
|
+
def clear_fields
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
sig { params(field: String).returns(T.untyped) }
|
|
320
|
+
def [](field)
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
sig { params(field: String, value: T.untyped).void }
|
|
324
|
+
def []=(field, value)
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
328
|
+
def to_h
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Memo) }
|
|
332
|
+
def self.decode(str)
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
sig { params(msg: Temporalio::Api::Common::V1::Memo).returns(String) }
|
|
336
|
+
def self.encode(msg)
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Memo) }
|
|
340
|
+
def self.decode_json(str, **kw)
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
sig { params(msg: Temporalio::Api::Common::V1::Memo, kw: T.untyped).returns(String) }
|
|
344
|
+
def self.encode_json(msg, **kw)
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
348
|
+
def self.descriptor
|
|
349
|
+
end
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Contains metadata that can be attached to a variety of requests, like starting a workflow, and
|
|
353
|
+
# can be propagated between, for example, workflows and activities.
|
|
354
|
+
class Temporalio::Api::Common::V1::Header
|
|
355
|
+
include ::Google::Protobuf::MessageExts
|
|
356
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
357
|
+
|
|
358
|
+
sig do
|
|
359
|
+
params(
|
|
360
|
+
fields: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)])
|
|
361
|
+
).void
|
|
362
|
+
end
|
|
363
|
+
def initialize(
|
|
364
|
+
fields: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload)
|
|
365
|
+
)
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
|
|
369
|
+
def fields
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
sig { params(value: ::Google::Protobuf::Map).void }
|
|
373
|
+
def fields=(value)
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
sig { void }
|
|
377
|
+
def clear_fields
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
sig { params(field: String).returns(T.untyped) }
|
|
381
|
+
def [](field)
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
sig { params(field: String, value: T.untyped).void }
|
|
385
|
+
def []=(field, value)
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
389
|
+
def to_h
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Header) }
|
|
393
|
+
def self.decode(str)
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
sig { params(msg: Temporalio::Api::Common::V1::Header).returns(String) }
|
|
397
|
+
def self.encode(msg)
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Header) }
|
|
401
|
+
def self.decode_json(str, **kw)
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
sig { params(msg: Temporalio::Api::Common::V1::Header, kw: T.untyped).returns(String) }
|
|
405
|
+
def self.encode_json(msg, **kw)
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
409
|
+
def self.descriptor
|
|
410
|
+
end
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Identifies a specific workflow within a namespace. Practically speaking, because run_id is a
|
|
414
|
+
# uuid, a workflow execution is globally unique. Note that many commands allow specifying an empty
|
|
415
|
+
# run id as a way of saying "target the latest run of the workflow".
|
|
416
|
+
class Temporalio::Api::Common::V1::WorkflowExecution
|
|
417
|
+
include ::Google::Protobuf::MessageExts
|
|
418
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
419
|
+
|
|
420
|
+
sig do
|
|
421
|
+
params(
|
|
422
|
+
workflow_id: T.nilable(String),
|
|
423
|
+
run_id: T.nilable(String)
|
|
424
|
+
).void
|
|
425
|
+
end
|
|
426
|
+
def initialize(
|
|
427
|
+
workflow_id: "",
|
|
428
|
+
run_id: ""
|
|
429
|
+
)
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
sig { returns(String) }
|
|
433
|
+
def workflow_id
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
sig { params(value: String).void }
|
|
437
|
+
def workflow_id=(value)
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
sig { void }
|
|
441
|
+
def clear_workflow_id
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
sig { returns(String) }
|
|
445
|
+
def run_id
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
sig { params(value: String).void }
|
|
449
|
+
def run_id=(value)
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
sig { void }
|
|
453
|
+
def clear_run_id
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
sig { params(field: String).returns(T.untyped) }
|
|
457
|
+
def [](field)
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
sig { params(field: String, value: T.untyped).void }
|
|
461
|
+
def []=(field, value)
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
465
|
+
def to_h
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::WorkflowExecution) }
|
|
469
|
+
def self.decode(str)
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkflowExecution).returns(String) }
|
|
473
|
+
def self.encode(msg)
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::WorkflowExecution) }
|
|
477
|
+
def self.decode_json(str, **kw)
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkflowExecution, kw: T.untyped).returns(String) }
|
|
481
|
+
def self.encode_json(msg, **kw)
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
485
|
+
def self.descriptor
|
|
486
|
+
end
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# Represents the identifier used by a workflow author to define the workflow. Typically, the
|
|
490
|
+
# name of a function. This is sometimes referred to as the workflow's "name"
|
|
491
|
+
class Temporalio::Api::Common::V1::WorkflowType
|
|
492
|
+
include ::Google::Protobuf::MessageExts
|
|
493
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
494
|
+
|
|
495
|
+
sig do
|
|
496
|
+
params(
|
|
497
|
+
name: T.nilable(String)
|
|
498
|
+
).void
|
|
499
|
+
end
|
|
500
|
+
def initialize(
|
|
501
|
+
name: ""
|
|
502
|
+
)
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
sig { returns(String) }
|
|
506
|
+
def name
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
sig { params(value: String).void }
|
|
510
|
+
def name=(value)
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
sig { void }
|
|
514
|
+
def clear_name
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
sig { params(field: String).returns(T.untyped) }
|
|
518
|
+
def [](field)
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
sig { params(field: String, value: T.untyped).void }
|
|
522
|
+
def []=(field, value)
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
526
|
+
def to_h
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::WorkflowType) }
|
|
530
|
+
def self.decode(str)
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkflowType).returns(String) }
|
|
534
|
+
def self.encode(msg)
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::WorkflowType) }
|
|
538
|
+
def self.decode_json(str, **kw)
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkflowType, kw: T.untyped).returns(String) }
|
|
542
|
+
def self.encode_json(msg, **kw)
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
546
|
+
def self.descriptor
|
|
547
|
+
end
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# Represents the identifier used by a activity author to define the activity. Typically, the
|
|
551
|
+
# name of a function. This is sometimes referred to as the activity's "name"
|
|
552
|
+
class Temporalio::Api::Common::V1::ActivityType
|
|
553
|
+
include ::Google::Protobuf::MessageExts
|
|
554
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
555
|
+
|
|
556
|
+
sig do
|
|
557
|
+
params(
|
|
558
|
+
name: T.nilable(String)
|
|
559
|
+
).void
|
|
560
|
+
end
|
|
561
|
+
def initialize(
|
|
562
|
+
name: ""
|
|
563
|
+
)
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
sig { returns(String) }
|
|
567
|
+
def name
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
sig { params(value: String).void }
|
|
571
|
+
def name=(value)
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
sig { void }
|
|
575
|
+
def clear_name
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
sig { params(field: String).returns(T.untyped) }
|
|
579
|
+
def [](field)
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
sig { params(field: String, value: T.untyped).void }
|
|
583
|
+
def []=(field, value)
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
587
|
+
def to_h
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::ActivityType) }
|
|
591
|
+
def self.decode(str)
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
sig { params(msg: Temporalio::Api::Common::V1::ActivityType).returns(String) }
|
|
595
|
+
def self.encode(msg)
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::ActivityType) }
|
|
599
|
+
def self.decode_json(str, **kw)
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
sig { params(msg: Temporalio::Api::Common::V1::ActivityType, kw: T.untyped).returns(String) }
|
|
603
|
+
def self.encode_json(msg, **kw)
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
607
|
+
def self.descriptor
|
|
608
|
+
end
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
# How retries ought to be handled, usable by both workflows and activities
|
|
612
|
+
class Temporalio::Api::Common::V1::RetryPolicy
|
|
613
|
+
include ::Google::Protobuf::MessageExts
|
|
614
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
615
|
+
|
|
616
|
+
sig do
|
|
617
|
+
params(
|
|
618
|
+
initial_interval: T.nilable(Google::Protobuf::Duration),
|
|
619
|
+
backoff_coefficient: T.nilable(Float),
|
|
620
|
+
maximum_interval: T.nilable(Google::Protobuf::Duration),
|
|
621
|
+
maximum_attempts: T.nilable(Integer),
|
|
622
|
+
non_retryable_error_types: T.nilable(T::Array[String])
|
|
623
|
+
).void
|
|
624
|
+
end
|
|
625
|
+
def initialize(
|
|
626
|
+
initial_interval: nil,
|
|
627
|
+
backoff_coefficient: 0.0,
|
|
628
|
+
maximum_interval: nil,
|
|
629
|
+
maximum_attempts: 0,
|
|
630
|
+
non_retryable_error_types: []
|
|
631
|
+
)
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
# Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
|
|
635
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
636
|
+
def initial_interval
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
# Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
|
|
640
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
641
|
+
def initial_interval=(value)
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
# Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
|
|
645
|
+
sig { void }
|
|
646
|
+
def clear_initial_interval
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
# Coefficient used to calculate the next retry interval.
|
|
650
|
+
# The next retry interval is previous interval multiplied by the coefficient.
|
|
651
|
+
# Must be 1 or larger.
|
|
652
|
+
sig { returns(Float) }
|
|
653
|
+
def backoff_coefficient
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
# Coefficient used to calculate the next retry interval.
|
|
657
|
+
# The next retry interval is previous interval multiplied by the coefficient.
|
|
658
|
+
# Must be 1 or larger.
|
|
659
|
+
sig { params(value: Float).void }
|
|
660
|
+
def backoff_coefficient=(value)
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
# Coefficient used to calculate the next retry interval.
|
|
664
|
+
# The next retry interval is previous interval multiplied by the coefficient.
|
|
665
|
+
# Must be 1 or larger.
|
|
666
|
+
sig { void }
|
|
667
|
+
def clear_backoff_coefficient
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
# Maximum interval between retries. Exponential backoff leads to interval increase.
|
|
671
|
+
# This value is the cap of the increase. Default is 100x of the initial interval.
|
|
672
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
673
|
+
def maximum_interval
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# Maximum interval between retries. Exponential backoff leads to interval increase.
|
|
677
|
+
# This value is the cap of the increase. Default is 100x of the initial interval.
|
|
678
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
679
|
+
def maximum_interval=(value)
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
# Maximum interval between retries. Exponential backoff leads to interval increase.
|
|
683
|
+
# This value is the cap of the increase. Default is 100x of the initial interval.
|
|
684
|
+
sig { void }
|
|
685
|
+
def clear_maximum_interval
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
# Maximum number of attempts. When exceeded the retries stop even if not expired yet.
|
|
689
|
+
# 1 disables retries. 0 means unlimited (up to the timeouts)
|
|
690
|
+
sig { returns(Integer) }
|
|
691
|
+
def maximum_attempts
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# Maximum number of attempts. When exceeded the retries stop even if not expired yet.
|
|
695
|
+
# 1 disables retries. 0 means unlimited (up to the timeouts)
|
|
696
|
+
sig { params(value: Integer).void }
|
|
697
|
+
def maximum_attempts=(value)
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
# Maximum number of attempts. When exceeded the retries stop even if not expired yet.
|
|
701
|
+
# 1 disables retries. 0 means unlimited (up to the timeouts)
|
|
702
|
+
sig { void }
|
|
703
|
+
def clear_maximum_attempts
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
# Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
|
|
707
|
+
# this is not a substring match, the error *type* (not message) must match exactly.
|
|
708
|
+
sig { returns(T::Array[String]) }
|
|
709
|
+
def non_retryable_error_types
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
# Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
|
|
713
|
+
# this is not a substring match, the error *type* (not message) must match exactly.
|
|
714
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
715
|
+
def non_retryable_error_types=(value)
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
# Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
|
|
719
|
+
# this is not a substring match, the error *type* (not message) must match exactly.
|
|
720
|
+
sig { void }
|
|
721
|
+
def clear_non_retryable_error_types
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
sig { params(field: String).returns(T.untyped) }
|
|
725
|
+
def [](field)
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
sig { params(field: String, value: T.untyped).void }
|
|
729
|
+
def []=(field, value)
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
733
|
+
def to_h
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::RetryPolicy) }
|
|
737
|
+
def self.decode(str)
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
sig { params(msg: Temporalio::Api::Common::V1::RetryPolicy).returns(String) }
|
|
741
|
+
def self.encode(msg)
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::RetryPolicy) }
|
|
745
|
+
def self.decode_json(str, **kw)
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
sig { params(msg: Temporalio::Api::Common::V1::RetryPolicy, kw: T.untyped).returns(String) }
|
|
749
|
+
def self.encode_json(msg, **kw)
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
753
|
+
def self.descriptor
|
|
754
|
+
end
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
# Metadata relevant for metering purposes
|
|
758
|
+
class Temporalio::Api::Common::V1::MeteringMetadata
|
|
759
|
+
include ::Google::Protobuf::MessageExts
|
|
760
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
761
|
+
|
|
762
|
+
sig do
|
|
763
|
+
params(
|
|
764
|
+
nonfirst_local_activity_execution_attempts: T.nilable(Integer)
|
|
765
|
+
).void
|
|
766
|
+
end
|
|
767
|
+
def initialize(
|
|
768
|
+
nonfirst_local_activity_execution_attempts: 0
|
|
769
|
+
)
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
# Count of local activities which have begun an execution attempt during this workflow task,
|
|
773
|
+
# and whose first attempt occurred in some previous task. This is used for metering
|
|
774
|
+
# purposes, and does not affect workflow state.
|
|
775
|
+
#
|
|
776
|
+
# (-- api-linter: core::0141::forbidden-types=disabled
|
|
777
|
+
# aip.dev/not-precedent: Negative values make no sense to represent. --)
|
|
778
|
+
sig { returns(Integer) }
|
|
779
|
+
def nonfirst_local_activity_execution_attempts
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
# Count of local activities which have begun an execution attempt during this workflow task,
|
|
783
|
+
# and whose first attempt occurred in some previous task. This is used for metering
|
|
784
|
+
# purposes, and does not affect workflow state.
|
|
785
|
+
#
|
|
786
|
+
# (-- api-linter: core::0141::forbidden-types=disabled
|
|
787
|
+
# aip.dev/not-precedent: Negative values make no sense to represent. --)
|
|
788
|
+
sig { params(value: Integer).void }
|
|
789
|
+
def nonfirst_local_activity_execution_attempts=(value)
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
# Count of local activities which have begun an execution attempt during this workflow task,
|
|
793
|
+
# and whose first attempt occurred in some previous task. This is used for metering
|
|
794
|
+
# purposes, and does not affect workflow state.
|
|
795
|
+
#
|
|
796
|
+
# (-- api-linter: core::0141::forbidden-types=disabled
|
|
797
|
+
# aip.dev/not-precedent: Negative values make no sense to represent. --)
|
|
798
|
+
sig { void }
|
|
799
|
+
def clear_nonfirst_local_activity_execution_attempts
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
sig { params(field: String).returns(T.untyped) }
|
|
803
|
+
def [](field)
|
|
804
|
+
end
|
|
805
|
+
|
|
806
|
+
sig { params(field: String, value: T.untyped).void }
|
|
807
|
+
def []=(field, value)
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
811
|
+
def to_h
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::MeteringMetadata) }
|
|
815
|
+
def self.decode(str)
|
|
816
|
+
end
|
|
817
|
+
|
|
818
|
+
sig { params(msg: Temporalio::Api::Common::V1::MeteringMetadata).returns(String) }
|
|
819
|
+
def self.encode(msg)
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::MeteringMetadata) }
|
|
823
|
+
def self.decode_json(str, **kw)
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
sig { params(msg: Temporalio::Api::Common::V1::MeteringMetadata, kw: T.untyped).returns(String) }
|
|
827
|
+
def self.encode_json(msg, **kw)
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
831
|
+
def self.descriptor
|
|
832
|
+
end
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
# Deprecated. This message is replaced with `Deployment` and `VersioningBehavior`.
|
|
836
|
+
# Identifies the version(s) of a worker that processed a task
|
|
837
|
+
class Temporalio::Api::Common::V1::WorkerVersionStamp
|
|
838
|
+
include ::Google::Protobuf::MessageExts
|
|
839
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
840
|
+
|
|
841
|
+
sig do
|
|
842
|
+
params(
|
|
843
|
+
build_id: T.nilable(String),
|
|
844
|
+
use_versioning: T.nilable(T::Boolean)
|
|
845
|
+
).void
|
|
846
|
+
end
|
|
847
|
+
def initialize(
|
|
848
|
+
build_id: "",
|
|
849
|
+
use_versioning: false
|
|
850
|
+
)
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
# An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
|
|
854
|
+
# message is included in requests which previously used that.
|
|
855
|
+
sig { returns(String) }
|
|
856
|
+
def build_id
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
# An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
|
|
860
|
+
# message is included in requests which previously used that.
|
|
861
|
+
sig { params(value: String).void }
|
|
862
|
+
def build_id=(value)
|
|
863
|
+
end
|
|
864
|
+
|
|
865
|
+
# An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
|
|
866
|
+
# message is included in requests which previously used that.
|
|
867
|
+
sig { void }
|
|
868
|
+
def clear_build_id
|
|
869
|
+
end
|
|
870
|
+
|
|
871
|
+
# If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
|
|
872
|
+
# marker for workflow reset points and the BuildIDs search attribute.
|
|
873
|
+
sig { returns(T::Boolean) }
|
|
874
|
+
def use_versioning
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
|
|
878
|
+
# marker for workflow reset points and the BuildIDs search attribute.
|
|
879
|
+
sig { params(value: T::Boolean).void }
|
|
880
|
+
def use_versioning=(value)
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
# If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
|
|
884
|
+
# marker for workflow reset points and the BuildIDs search attribute.
|
|
885
|
+
sig { void }
|
|
886
|
+
def clear_use_versioning
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
sig { params(field: String).returns(T.untyped) }
|
|
890
|
+
def [](field)
|
|
891
|
+
end
|
|
892
|
+
|
|
893
|
+
sig { params(field: String, value: T.untyped).void }
|
|
894
|
+
def []=(field, value)
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
898
|
+
def to_h
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::WorkerVersionStamp) }
|
|
902
|
+
def self.decode(str)
|
|
903
|
+
end
|
|
904
|
+
|
|
905
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerVersionStamp).returns(String) }
|
|
906
|
+
def self.encode(msg)
|
|
907
|
+
end
|
|
908
|
+
|
|
909
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::WorkerVersionStamp) }
|
|
910
|
+
def self.decode_json(str, **kw)
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerVersionStamp, kw: T.untyped).returns(String) }
|
|
914
|
+
def self.encode_json(msg, **kw)
|
|
915
|
+
end
|
|
916
|
+
|
|
917
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
918
|
+
def self.descriptor
|
|
919
|
+
end
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
# Identifies the version that a worker is compatible with when polling or identifying itself,
|
|
923
|
+
# and whether or not this worker is opting into the build-id based versioning feature. This is
|
|
924
|
+
# used by matching to determine which workers ought to receive what tasks.
|
|
925
|
+
# Deprecated. Use WorkerDeploymentOptions instead.
|
|
926
|
+
class Temporalio::Api::Common::V1::WorkerVersionCapabilities
|
|
927
|
+
include ::Google::Protobuf::MessageExts
|
|
928
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
929
|
+
|
|
930
|
+
sig do
|
|
931
|
+
params(
|
|
932
|
+
build_id: T.nilable(String),
|
|
933
|
+
use_versioning: T.nilable(T::Boolean),
|
|
934
|
+
deployment_series_name: T.nilable(String)
|
|
935
|
+
).void
|
|
936
|
+
end
|
|
937
|
+
def initialize(
|
|
938
|
+
build_id: "",
|
|
939
|
+
use_versioning: false,
|
|
940
|
+
deployment_series_name: ""
|
|
941
|
+
)
|
|
942
|
+
end
|
|
943
|
+
|
|
944
|
+
# An opaque whole-worker identifier
|
|
945
|
+
sig { returns(String) }
|
|
946
|
+
def build_id
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
# An opaque whole-worker identifier
|
|
950
|
+
sig { params(value: String).void }
|
|
951
|
+
def build_id=(value)
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
# An opaque whole-worker identifier
|
|
955
|
+
sig { void }
|
|
956
|
+
def clear_build_id
|
|
957
|
+
end
|
|
958
|
+
|
|
959
|
+
# If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
|
|
960
|
+
# tasks.
|
|
961
|
+
sig { returns(T::Boolean) }
|
|
962
|
+
def use_versioning
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
# If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
|
|
966
|
+
# tasks.
|
|
967
|
+
sig { params(value: T::Boolean).void }
|
|
968
|
+
def use_versioning=(value)
|
|
969
|
+
end
|
|
970
|
+
|
|
971
|
+
# If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
|
|
972
|
+
# tasks.
|
|
973
|
+
sig { void }
|
|
974
|
+
def clear_use_versioning
|
|
975
|
+
end
|
|
976
|
+
|
|
977
|
+
# Must be sent if user has set a deployment series name (versioning-3).
|
|
978
|
+
sig { returns(String) }
|
|
979
|
+
def deployment_series_name
|
|
980
|
+
end
|
|
981
|
+
|
|
982
|
+
# Must be sent if user has set a deployment series name (versioning-3).
|
|
983
|
+
sig { params(value: String).void }
|
|
984
|
+
def deployment_series_name=(value)
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
# Must be sent if user has set a deployment series name (versioning-3).
|
|
988
|
+
sig { void }
|
|
989
|
+
def clear_deployment_series_name
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
sig { params(field: String).returns(T.untyped) }
|
|
993
|
+
def [](field)
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
sig { params(field: String, value: T.untyped).void }
|
|
997
|
+
def []=(field, value)
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1001
|
+
def to_h
|
|
1002
|
+
end
|
|
1003
|
+
|
|
1004
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::WorkerVersionCapabilities) }
|
|
1005
|
+
def self.decode(str)
|
|
1006
|
+
end
|
|
1007
|
+
|
|
1008
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerVersionCapabilities).returns(String) }
|
|
1009
|
+
def self.encode(msg)
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::WorkerVersionCapabilities) }
|
|
1013
|
+
def self.decode_json(str, **kw)
|
|
1014
|
+
end
|
|
1015
|
+
|
|
1016
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerVersionCapabilities, kw: T.untyped).returns(String) }
|
|
1017
|
+
def self.encode_json(msg, **kw)
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1021
|
+
def self.descriptor
|
|
1022
|
+
end
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
# Describes where and how to reset a workflow, used for batch reset currently
|
|
1026
|
+
# and may be used for single-workflow reset later.
|
|
1027
|
+
class Temporalio::Api::Common::V1::ResetOptions
|
|
1028
|
+
include ::Google::Protobuf::MessageExts
|
|
1029
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1030
|
+
|
|
1031
|
+
sig do
|
|
1032
|
+
params(
|
|
1033
|
+
first_workflow_task: T.nilable(Google::Protobuf::Empty),
|
|
1034
|
+
last_workflow_task: T.nilable(Google::Protobuf::Empty),
|
|
1035
|
+
workflow_task_id: T.nilable(Integer),
|
|
1036
|
+
build_id: T.nilable(String),
|
|
1037
|
+
reset_reapply_type: T.nilable(T.any(Symbol, String, Integer)),
|
|
1038
|
+
current_run_only: T.nilable(T::Boolean),
|
|
1039
|
+
reset_reapply_exclude_types: T.nilable(T::Array[T.any(Symbol, String, Integer)])
|
|
1040
|
+
).void
|
|
1041
|
+
end
|
|
1042
|
+
def initialize(
|
|
1043
|
+
first_workflow_task: nil,
|
|
1044
|
+
last_workflow_task: nil,
|
|
1045
|
+
workflow_task_id: 0,
|
|
1046
|
+
build_id: "",
|
|
1047
|
+
reset_reapply_type: :RESET_REAPPLY_TYPE_UNSPECIFIED,
|
|
1048
|
+
current_run_only: false,
|
|
1049
|
+
reset_reapply_exclude_types: []
|
|
1050
|
+
)
|
|
1051
|
+
end
|
|
1052
|
+
|
|
1053
|
+
# Resets to the first workflow task completed or started event.
|
|
1054
|
+
sig { returns(T.nilable(Google::Protobuf::Empty)) }
|
|
1055
|
+
def first_workflow_task
|
|
1056
|
+
end
|
|
1057
|
+
|
|
1058
|
+
# Resets to the first workflow task completed or started event.
|
|
1059
|
+
sig { params(value: T.nilable(Google::Protobuf::Empty)).void }
|
|
1060
|
+
def first_workflow_task=(value)
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
# Resets to the first workflow task completed or started event.
|
|
1064
|
+
sig { void }
|
|
1065
|
+
def clear_first_workflow_task
|
|
1066
|
+
end
|
|
1067
|
+
|
|
1068
|
+
# Resets to the last workflow task completed or started event.
|
|
1069
|
+
sig { returns(T.nilable(Google::Protobuf::Empty)) }
|
|
1070
|
+
def last_workflow_task
|
|
1071
|
+
end
|
|
1072
|
+
|
|
1073
|
+
# Resets to the last workflow task completed or started event.
|
|
1074
|
+
sig { params(value: T.nilable(Google::Protobuf::Empty)).void }
|
|
1075
|
+
def last_workflow_task=(value)
|
|
1076
|
+
end
|
|
1077
|
+
|
|
1078
|
+
# Resets to the last workflow task completed or started event.
|
|
1079
|
+
sig { void }
|
|
1080
|
+
def clear_last_workflow_task
|
|
1081
|
+
end
|
|
1082
|
+
|
|
1083
|
+
# The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
|
|
1084
|
+
# `WORKFLOW_TASK_STARTED` event to reset to.
|
|
1085
|
+
# Note that this option doesn't make sense when used as part of a batch request.
|
|
1086
|
+
sig { returns(Integer) }
|
|
1087
|
+
def workflow_task_id
|
|
1088
|
+
end
|
|
1089
|
+
|
|
1090
|
+
# The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
|
|
1091
|
+
# `WORKFLOW_TASK_STARTED` event to reset to.
|
|
1092
|
+
# Note that this option doesn't make sense when used as part of a batch request.
|
|
1093
|
+
sig { params(value: Integer).void }
|
|
1094
|
+
def workflow_task_id=(value)
|
|
1095
|
+
end
|
|
1096
|
+
|
|
1097
|
+
# The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
|
|
1098
|
+
# `WORKFLOW_TASK_STARTED` event to reset to.
|
|
1099
|
+
# Note that this option doesn't make sense when used as part of a batch request.
|
|
1100
|
+
sig { void }
|
|
1101
|
+
def clear_workflow_task_id
|
|
1102
|
+
end
|
|
1103
|
+
|
|
1104
|
+
# Resets to the first workflow task processed by this build id.
|
|
1105
|
+
# If the workflow was not processed by the build id, or the workflow task can't be
|
|
1106
|
+
# determined, no reset will be performed.
|
|
1107
|
+
# Note that by default, this reset is allowed to be to a prior run in a chain of
|
|
1108
|
+
# continue-as-new.
|
|
1109
|
+
sig { returns(String) }
|
|
1110
|
+
def build_id
|
|
1111
|
+
end
|
|
1112
|
+
|
|
1113
|
+
# Resets to the first workflow task processed by this build id.
|
|
1114
|
+
# If the workflow was not processed by the build id, or the workflow task can't be
|
|
1115
|
+
# determined, no reset will be performed.
|
|
1116
|
+
# Note that by default, this reset is allowed to be to a prior run in a chain of
|
|
1117
|
+
# continue-as-new.
|
|
1118
|
+
sig { params(value: String).void }
|
|
1119
|
+
def build_id=(value)
|
|
1120
|
+
end
|
|
1121
|
+
|
|
1122
|
+
# Resets to the first workflow task processed by this build id.
|
|
1123
|
+
# If the workflow was not processed by the build id, or the workflow task can't be
|
|
1124
|
+
# determined, no reset will be performed.
|
|
1125
|
+
# Note that by default, this reset is allowed to be to a prior run in a chain of
|
|
1126
|
+
# continue-as-new.
|
|
1127
|
+
sig { void }
|
|
1128
|
+
def clear_build_id
|
|
1129
|
+
end
|
|
1130
|
+
|
|
1131
|
+
# Deprecated. Use `options`.
|
|
1132
|
+
# Default: RESET_REAPPLY_TYPE_SIGNAL
|
|
1133
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
1134
|
+
def reset_reapply_type
|
|
1135
|
+
end
|
|
1136
|
+
|
|
1137
|
+
# Deprecated. Use `options`.
|
|
1138
|
+
# Default: RESET_REAPPLY_TYPE_SIGNAL
|
|
1139
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
1140
|
+
def reset_reapply_type=(value)
|
|
1141
|
+
end
|
|
1142
|
+
|
|
1143
|
+
# Deprecated. Use `options`.
|
|
1144
|
+
# Default: RESET_REAPPLY_TYPE_SIGNAL
|
|
1145
|
+
sig { void }
|
|
1146
|
+
def clear_reset_reapply_type
|
|
1147
|
+
end
|
|
1148
|
+
|
|
1149
|
+
# If true, limit the reset to only within the current run. (Applies to build_id targets and
|
|
1150
|
+
# possibly others in the future.)
|
|
1151
|
+
sig { returns(T::Boolean) }
|
|
1152
|
+
def current_run_only
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
# If true, limit the reset to only within the current run. (Applies to build_id targets and
|
|
1156
|
+
# possibly others in the future.)
|
|
1157
|
+
sig { params(value: T::Boolean).void }
|
|
1158
|
+
def current_run_only=(value)
|
|
1159
|
+
end
|
|
1160
|
+
|
|
1161
|
+
# If true, limit the reset to only within the current run. (Applies to build_id targets and
|
|
1162
|
+
# possibly others in the future.)
|
|
1163
|
+
sig { void }
|
|
1164
|
+
def clear_current_run_only
|
|
1165
|
+
end
|
|
1166
|
+
|
|
1167
|
+
# Event types not to be reapplied
|
|
1168
|
+
sig { returns(T::Array[T.any(Symbol, Integer)]) }
|
|
1169
|
+
def reset_reapply_exclude_types
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
# Event types not to be reapplied
|
|
1173
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
1174
|
+
def reset_reapply_exclude_types=(value)
|
|
1175
|
+
end
|
|
1176
|
+
|
|
1177
|
+
# Event types not to be reapplied
|
|
1178
|
+
sig { void }
|
|
1179
|
+
def clear_reset_reapply_exclude_types
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1183
|
+
def target
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1187
|
+
def [](field)
|
|
1188
|
+
end
|
|
1189
|
+
|
|
1190
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1191
|
+
def []=(field, value)
|
|
1192
|
+
end
|
|
1193
|
+
|
|
1194
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1195
|
+
def to_h
|
|
1196
|
+
end
|
|
1197
|
+
|
|
1198
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::ResetOptions) }
|
|
1199
|
+
def self.decode(str)
|
|
1200
|
+
end
|
|
1201
|
+
|
|
1202
|
+
sig { params(msg: Temporalio::Api::Common::V1::ResetOptions).returns(String) }
|
|
1203
|
+
def self.encode(msg)
|
|
1204
|
+
end
|
|
1205
|
+
|
|
1206
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::ResetOptions) }
|
|
1207
|
+
def self.decode_json(str, **kw)
|
|
1208
|
+
end
|
|
1209
|
+
|
|
1210
|
+
sig { params(msg: Temporalio::Api::Common::V1::ResetOptions, kw: T.untyped).returns(String) }
|
|
1211
|
+
def self.encode_json(msg, **kw)
|
|
1212
|
+
end
|
|
1213
|
+
|
|
1214
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1215
|
+
def self.descriptor
|
|
1216
|
+
end
|
|
1217
|
+
end
|
|
1218
|
+
|
|
1219
|
+
# Callback to attach to various events in the system, e.g. workflow run completion.
|
|
1220
|
+
class Temporalio::Api::Common::V1::Callback
|
|
1221
|
+
include ::Google::Protobuf::MessageExts
|
|
1222
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1223
|
+
|
|
1224
|
+
sig do
|
|
1225
|
+
params(
|
|
1226
|
+
nexus: T.nilable(Temporalio::Api::Common::V1::Callback::Nexus),
|
|
1227
|
+
internal: T.nilable(Temporalio::Api::Common::V1::Callback::Internal),
|
|
1228
|
+
links: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)])
|
|
1229
|
+
).void
|
|
1230
|
+
end
|
|
1231
|
+
def initialize(
|
|
1232
|
+
nexus: nil,
|
|
1233
|
+
internal: nil,
|
|
1234
|
+
links: []
|
|
1235
|
+
)
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Callback::Nexus)) }
|
|
1239
|
+
def nexus
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1242
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Callback::Nexus)).void }
|
|
1243
|
+
def nexus=(value)
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
sig { void }
|
|
1247
|
+
def clear_nexus
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1250
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Callback::Internal)) }
|
|
1251
|
+
def internal
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Callback::Internal)).void }
|
|
1255
|
+
def internal=(value)
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1258
|
+
sig { void }
|
|
1259
|
+
def clear_internal
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1262
|
+
# Links associated with the callback. It can be used to link to underlying resources of the
|
|
1263
|
+
# callback.
|
|
1264
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]) }
|
|
1265
|
+
def links
|
|
1266
|
+
end
|
|
1267
|
+
|
|
1268
|
+
# Links associated with the callback. It can be used to link to underlying resources of the
|
|
1269
|
+
# callback.
|
|
1270
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
1271
|
+
def links=(value)
|
|
1272
|
+
end
|
|
1273
|
+
|
|
1274
|
+
# Links associated with the callback. It can be used to link to underlying resources of the
|
|
1275
|
+
# callback.
|
|
1276
|
+
sig { void }
|
|
1277
|
+
def clear_links
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1281
|
+
def variant
|
|
1282
|
+
end
|
|
1283
|
+
|
|
1284
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1285
|
+
def [](field)
|
|
1286
|
+
end
|
|
1287
|
+
|
|
1288
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1289
|
+
def []=(field, value)
|
|
1290
|
+
end
|
|
1291
|
+
|
|
1292
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1293
|
+
def to_h
|
|
1294
|
+
end
|
|
1295
|
+
|
|
1296
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Callback) }
|
|
1297
|
+
def self.decode(str)
|
|
1298
|
+
end
|
|
1299
|
+
|
|
1300
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback).returns(String) }
|
|
1301
|
+
def self.encode(msg)
|
|
1302
|
+
end
|
|
1303
|
+
|
|
1304
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Callback) }
|
|
1305
|
+
def self.decode_json(str, **kw)
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback, kw: T.untyped).returns(String) }
|
|
1309
|
+
def self.encode_json(msg, **kw)
|
|
1310
|
+
end
|
|
1311
|
+
|
|
1312
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1313
|
+
def self.descriptor
|
|
1314
|
+
end
|
|
1315
|
+
end
|
|
1316
|
+
|
|
1317
|
+
# Link can be associated with history events. It might contain information about an external entity
|
|
1318
|
+
# related to the history event. For example, workflow A makes a Nexus call that starts workflow B:
|
|
1319
|
+
# in this case, a history event in workflow A could contain a Link to the workflow started event in
|
|
1320
|
+
# workflow B, and vice-versa.
|
|
1321
|
+
class Temporalio::Api::Common::V1::Link
|
|
1322
|
+
include ::Google::Protobuf::MessageExts
|
|
1323
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1324
|
+
|
|
1325
|
+
sig do
|
|
1326
|
+
params(
|
|
1327
|
+
workflow_event: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent),
|
|
1328
|
+
batch_job: T.nilable(Temporalio::Api::Common::V1::Link::BatchJob),
|
|
1329
|
+
activity: T.nilable(Temporalio::Api::Common::V1::Link::Activity),
|
|
1330
|
+
nexus_operation: T.nilable(Temporalio::Api::Common::V1::Link::NexusOperation),
|
|
1331
|
+
workflow: T.nilable(Temporalio::Api::Common::V1::Link::Workflow)
|
|
1332
|
+
).void
|
|
1333
|
+
end
|
|
1334
|
+
def initialize(
|
|
1335
|
+
workflow_event: nil,
|
|
1336
|
+
batch_job: nil,
|
|
1337
|
+
activity: nil,
|
|
1338
|
+
nexus_operation: nil,
|
|
1339
|
+
workflow: nil
|
|
1340
|
+
)
|
|
1341
|
+
end
|
|
1342
|
+
|
|
1343
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent)) }
|
|
1344
|
+
def workflow_event
|
|
1345
|
+
end
|
|
1346
|
+
|
|
1347
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent)).void }
|
|
1348
|
+
def workflow_event=(value)
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1351
|
+
sig { void }
|
|
1352
|
+
def clear_workflow_event
|
|
1353
|
+
end
|
|
1354
|
+
|
|
1355
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::BatchJob)) }
|
|
1356
|
+
def batch_job
|
|
1357
|
+
end
|
|
1358
|
+
|
|
1359
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::BatchJob)).void }
|
|
1360
|
+
def batch_job=(value)
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1363
|
+
sig { void }
|
|
1364
|
+
def clear_batch_job
|
|
1365
|
+
end
|
|
1366
|
+
|
|
1367
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::Activity)) }
|
|
1368
|
+
def activity
|
|
1369
|
+
end
|
|
1370
|
+
|
|
1371
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::Activity)).void }
|
|
1372
|
+
def activity=(value)
|
|
1373
|
+
end
|
|
1374
|
+
|
|
1375
|
+
sig { void }
|
|
1376
|
+
def clear_activity
|
|
1377
|
+
end
|
|
1378
|
+
|
|
1379
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::NexusOperation)) }
|
|
1380
|
+
def nexus_operation
|
|
1381
|
+
end
|
|
1382
|
+
|
|
1383
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::NexusOperation)).void }
|
|
1384
|
+
def nexus_operation=(value)
|
|
1385
|
+
end
|
|
1386
|
+
|
|
1387
|
+
sig { void }
|
|
1388
|
+
def clear_nexus_operation
|
|
1389
|
+
end
|
|
1390
|
+
|
|
1391
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::Workflow)) }
|
|
1392
|
+
def workflow
|
|
1393
|
+
end
|
|
1394
|
+
|
|
1395
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::Workflow)).void }
|
|
1396
|
+
def workflow=(value)
|
|
1397
|
+
end
|
|
1398
|
+
|
|
1399
|
+
sig { void }
|
|
1400
|
+
def clear_workflow
|
|
1401
|
+
end
|
|
1402
|
+
|
|
1403
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1404
|
+
def variant
|
|
1405
|
+
end
|
|
1406
|
+
|
|
1407
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1408
|
+
def [](field)
|
|
1409
|
+
end
|
|
1410
|
+
|
|
1411
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1412
|
+
def []=(field, value)
|
|
1413
|
+
end
|
|
1414
|
+
|
|
1415
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1416
|
+
def to_h
|
|
1417
|
+
end
|
|
1418
|
+
|
|
1419
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link) }
|
|
1420
|
+
def self.decode(str)
|
|
1421
|
+
end
|
|
1422
|
+
|
|
1423
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link).returns(String) }
|
|
1424
|
+
def self.encode(msg)
|
|
1425
|
+
end
|
|
1426
|
+
|
|
1427
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link) }
|
|
1428
|
+
def self.decode_json(str, **kw)
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link, kw: T.untyped).returns(String) }
|
|
1432
|
+
def self.encode_json(msg, **kw)
|
|
1433
|
+
end
|
|
1434
|
+
|
|
1435
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1436
|
+
def self.descriptor
|
|
1437
|
+
end
|
|
1438
|
+
end
|
|
1439
|
+
|
|
1440
|
+
# Principal is an authenticated caller identity computed by the server from trusted
|
|
1441
|
+
# authentication context.
|
|
1442
|
+
class Temporalio::Api::Common::V1::Principal
|
|
1443
|
+
include ::Google::Protobuf::MessageExts
|
|
1444
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1445
|
+
|
|
1446
|
+
sig do
|
|
1447
|
+
params(
|
|
1448
|
+
type: T.nilable(String),
|
|
1449
|
+
name: T.nilable(String)
|
|
1450
|
+
).void
|
|
1451
|
+
end
|
|
1452
|
+
def initialize(
|
|
1453
|
+
type: "",
|
|
1454
|
+
name: ""
|
|
1455
|
+
)
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1458
|
+
# Low-cardinality category of the principal (e.g., "jwt", "users").
|
|
1459
|
+
sig { returns(String) }
|
|
1460
|
+
def type
|
|
1461
|
+
end
|
|
1462
|
+
|
|
1463
|
+
# Low-cardinality category of the principal (e.g., "jwt", "users").
|
|
1464
|
+
sig { params(value: String).void }
|
|
1465
|
+
def type=(value)
|
|
1466
|
+
end
|
|
1467
|
+
|
|
1468
|
+
# Low-cardinality category of the principal (e.g., "jwt", "users").
|
|
1469
|
+
sig { void }
|
|
1470
|
+
def clear_type
|
|
1471
|
+
end
|
|
1472
|
+
|
|
1473
|
+
# Identifier within that category (e.g., sub JWT claim, email address).
|
|
1474
|
+
sig { returns(String) }
|
|
1475
|
+
def name
|
|
1476
|
+
end
|
|
1477
|
+
|
|
1478
|
+
# Identifier within that category (e.g., sub JWT claim, email address).
|
|
1479
|
+
sig { params(value: String).void }
|
|
1480
|
+
def name=(value)
|
|
1481
|
+
end
|
|
1482
|
+
|
|
1483
|
+
# Identifier within that category (e.g., sub JWT claim, email address).
|
|
1484
|
+
sig { void }
|
|
1485
|
+
def clear_name
|
|
1486
|
+
end
|
|
1487
|
+
|
|
1488
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1489
|
+
def [](field)
|
|
1490
|
+
end
|
|
1491
|
+
|
|
1492
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1493
|
+
def []=(field, value)
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1496
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1497
|
+
def to_h
|
|
1498
|
+
end
|
|
1499
|
+
|
|
1500
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Principal) }
|
|
1501
|
+
def self.decode(str)
|
|
1502
|
+
end
|
|
1503
|
+
|
|
1504
|
+
sig { params(msg: Temporalio::Api::Common::V1::Principal).returns(String) }
|
|
1505
|
+
def self.encode(msg)
|
|
1506
|
+
end
|
|
1507
|
+
|
|
1508
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Principal) }
|
|
1509
|
+
def self.decode_json(str, **kw)
|
|
1510
|
+
end
|
|
1511
|
+
|
|
1512
|
+
sig { params(msg: Temporalio::Api::Common::V1::Principal, kw: T.untyped).returns(String) }
|
|
1513
|
+
def self.encode_json(msg, **kw)
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1517
|
+
def self.descriptor
|
|
1518
|
+
end
|
|
1519
|
+
end
|
|
1520
|
+
|
|
1521
|
+
# Priority contains metadata that controls relative ordering of task processing
|
|
1522
|
+
# when tasks are backed up in a queue. Initially, Priority will be used in
|
|
1523
|
+
# matching (workflow and activity) task queues. Later it may be used in history
|
|
1524
|
+
# task queues and in rate limiting decisions.
|
|
1525
|
+
#
|
|
1526
|
+
# Priority is attached to workflows and activities. By default, activities
|
|
1527
|
+
# inherit Priority from the workflow that created them, but may override fields
|
|
1528
|
+
# when an activity is started or modified.
|
|
1529
|
+
#
|
|
1530
|
+
# Despite being named "Priority", this message also contains fields that
|
|
1531
|
+
# control "fairness" mechanisms.
|
|
1532
|
+
#
|
|
1533
|
+
# For all fields, the field not present or equal to zero/empty string means to
|
|
1534
|
+
# inherit the value from the calling workflow, or if there is no calling
|
|
1535
|
+
# workflow, then use the default value.
|
|
1536
|
+
#
|
|
1537
|
+
# For all fields other than fairness_key, the zero value isn't meaningful so
|
|
1538
|
+
# there's no confusion between inherit/default and a meaningful value. For
|
|
1539
|
+
# fairness_key, the empty string will be interpreted as "inherit". This means
|
|
1540
|
+
# that if a workflow has a non-empty fairness key, you can't override the
|
|
1541
|
+
# fairness key of its activity to the empty string.
|
|
1542
|
+
#
|
|
1543
|
+
# The overall semantics of Priority are:
|
|
1544
|
+
# 1. First, consider "priority": higher priority (lower number) goes first.
|
|
1545
|
+
# 2. Then, consider fairness: try to dispatch tasks for different fairness keys
|
|
1546
|
+
# in proportion to their weight.
|
|
1547
|
+
#
|
|
1548
|
+
# Applications may use any subset of mechanisms that are useful to them and
|
|
1549
|
+
# leave the other fields to use default values.
|
|
1550
|
+
#
|
|
1551
|
+
# Not all queues in the system may support the "full" semantics of all priority
|
|
1552
|
+
# fields. (Currently only support in matching task queues is planned.)
|
|
1553
|
+
class Temporalio::Api::Common::V1::Priority
|
|
1554
|
+
include ::Google::Protobuf::MessageExts
|
|
1555
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1556
|
+
|
|
1557
|
+
sig do
|
|
1558
|
+
params(
|
|
1559
|
+
priority_key: T.nilable(Integer),
|
|
1560
|
+
fairness_key: T.nilable(String),
|
|
1561
|
+
fairness_weight: T.nilable(Float)
|
|
1562
|
+
).void
|
|
1563
|
+
end
|
|
1564
|
+
def initialize(
|
|
1565
|
+
priority_key: 0,
|
|
1566
|
+
fairness_key: "",
|
|
1567
|
+
fairness_weight: 0.0
|
|
1568
|
+
)
|
|
1569
|
+
end
|
|
1570
|
+
|
|
1571
|
+
# Priority key is a positive integer from 1 to n, where smaller integers
|
|
1572
|
+
# correspond to higher priorities (tasks run sooner). In general, tasks in
|
|
1573
|
+
# a queue should be processed in close to priority order, although small
|
|
1574
|
+
# deviations are possible.
|
|
1575
|
+
#
|
|
1576
|
+
# The maximum priority value (minimum priority) is determined by server
|
|
1577
|
+
# configuration, and defaults to 5.
|
|
1578
|
+
#
|
|
1579
|
+
# If priority is not present (or zero), then the effective priority will be
|
|
1580
|
+
# the default priority, which is calculated by (min+max)/2. With the
|
|
1581
|
+
# default max of 5, and min of 1, that comes out to 3.
|
|
1582
|
+
sig { returns(Integer) }
|
|
1583
|
+
def priority_key
|
|
1584
|
+
end
|
|
1585
|
+
|
|
1586
|
+
# Priority key is a positive integer from 1 to n, where smaller integers
|
|
1587
|
+
# correspond to higher priorities (tasks run sooner). In general, tasks in
|
|
1588
|
+
# a queue should be processed in close to priority order, although small
|
|
1589
|
+
# deviations are possible.
|
|
1590
|
+
#
|
|
1591
|
+
# The maximum priority value (minimum priority) is determined by server
|
|
1592
|
+
# configuration, and defaults to 5.
|
|
1593
|
+
#
|
|
1594
|
+
# If priority is not present (or zero), then the effective priority will be
|
|
1595
|
+
# the default priority, which is calculated by (min+max)/2. With the
|
|
1596
|
+
# default max of 5, and min of 1, that comes out to 3.
|
|
1597
|
+
sig { params(value: Integer).void }
|
|
1598
|
+
def priority_key=(value)
|
|
1599
|
+
end
|
|
1600
|
+
|
|
1601
|
+
# Priority key is a positive integer from 1 to n, where smaller integers
|
|
1602
|
+
# correspond to higher priorities (tasks run sooner). In general, tasks in
|
|
1603
|
+
# a queue should be processed in close to priority order, although small
|
|
1604
|
+
# deviations are possible.
|
|
1605
|
+
#
|
|
1606
|
+
# The maximum priority value (minimum priority) is determined by server
|
|
1607
|
+
# configuration, and defaults to 5.
|
|
1608
|
+
#
|
|
1609
|
+
# If priority is not present (or zero), then the effective priority will be
|
|
1610
|
+
# the default priority, which is calculated by (min+max)/2. With the
|
|
1611
|
+
# default max of 5, and min of 1, that comes out to 3.
|
|
1612
|
+
sig { void }
|
|
1613
|
+
def clear_priority_key
|
|
1614
|
+
end
|
|
1615
|
+
|
|
1616
|
+
# Fairness key is a short string that's used as a key for a fairness
|
|
1617
|
+
# balancing mechanism. It may correspond to a tenant id, or to a fixed
|
|
1618
|
+
# string like "high" or "low". The default is the empty string.
|
|
1619
|
+
#
|
|
1620
|
+
# The fairness mechanism attempts to dispatch tasks for a given key in
|
|
1621
|
+
# proportion to its weight. For example, using a thousand distinct tenant
|
|
1622
|
+
# ids, each with a weight of 1.0 (the default) will result in each tenant
|
|
1623
|
+
# getting a roughly equal share of task dispatch throughput.
|
|
1624
|
+
#
|
|
1625
|
+
# (Note: this does not imply equal share of worker capacity! Fairness
|
|
1626
|
+
# decisions are made based on queue statistics, not
|
|
1627
|
+
# current worker load.)
|
|
1628
|
+
#
|
|
1629
|
+
# As another example, using keys "high" and "low" with weight 9.0 and 1.0
|
|
1630
|
+
# respectively will prefer dispatching "high" tasks over "low" tasks at a
|
|
1631
|
+
# 9:1 ratio, while allowing either key to use all worker capacity if the
|
|
1632
|
+
# other is not present.
|
|
1633
|
+
#
|
|
1634
|
+
# All fairness mechanisms, including rate limits, are best-effort and
|
|
1635
|
+
# probabilistic. The results may not match what a "perfect" algorithm with
|
|
1636
|
+
# infinite resources would produce. The more unique keys are used, the less
|
|
1637
|
+
# accurate the results will be.
|
|
1638
|
+
#
|
|
1639
|
+
# Fairness keys are limited to 64 bytes.
|
|
1640
|
+
sig { returns(String) }
|
|
1641
|
+
def fairness_key
|
|
1642
|
+
end
|
|
1643
|
+
|
|
1644
|
+
# Fairness key is a short string that's used as a key for a fairness
|
|
1645
|
+
# balancing mechanism. It may correspond to a tenant id, or to a fixed
|
|
1646
|
+
# string like "high" or "low". The default is the empty string.
|
|
1647
|
+
#
|
|
1648
|
+
# The fairness mechanism attempts to dispatch tasks for a given key in
|
|
1649
|
+
# proportion to its weight. For example, using a thousand distinct tenant
|
|
1650
|
+
# ids, each with a weight of 1.0 (the default) will result in each tenant
|
|
1651
|
+
# getting a roughly equal share of task dispatch throughput.
|
|
1652
|
+
#
|
|
1653
|
+
# (Note: this does not imply equal share of worker capacity! Fairness
|
|
1654
|
+
# decisions are made based on queue statistics, not
|
|
1655
|
+
# current worker load.)
|
|
1656
|
+
#
|
|
1657
|
+
# As another example, using keys "high" and "low" with weight 9.0 and 1.0
|
|
1658
|
+
# respectively will prefer dispatching "high" tasks over "low" tasks at a
|
|
1659
|
+
# 9:1 ratio, while allowing either key to use all worker capacity if the
|
|
1660
|
+
# other is not present.
|
|
1661
|
+
#
|
|
1662
|
+
# All fairness mechanisms, including rate limits, are best-effort and
|
|
1663
|
+
# probabilistic. The results may not match what a "perfect" algorithm with
|
|
1664
|
+
# infinite resources would produce. The more unique keys are used, the less
|
|
1665
|
+
# accurate the results will be.
|
|
1666
|
+
#
|
|
1667
|
+
# Fairness keys are limited to 64 bytes.
|
|
1668
|
+
sig { params(value: String).void }
|
|
1669
|
+
def fairness_key=(value)
|
|
1670
|
+
end
|
|
1671
|
+
|
|
1672
|
+
# Fairness key is a short string that's used as a key for a fairness
|
|
1673
|
+
# balancing mechanism. It may correspond to a tenant id, or to a fixed
|
|
1674
|
+
# string like "high" or "low". The default is the empty string.
|
|
1675
|
+
#
|
|
1676
|
+
# The fairness mechanism attempts to dispatch tasks for a given key in
|
|
1677
|
+
# proportion to its weight. For example, using a thousand distinct tenant
|
|
1678
|
+
# ids, each with a weight of 1.0 (the default) will result in each tenant
|
|
1679
|
+
# getting a roughly equal share of task dispatch throughput.
|
|
1680
|
+
#
|
|
1681
|
+
# (Note: this does not imply equal share of worker capacity! Fairness
|
|
1682
|
+
# decisions are made based on queue statistics, not
|
|
1683
|
+
# current worker load.)
|
|
1684
|
+
#
|
|
1685
|
+
# As another example, using keys "high" and "low" with weight 9.0 and 1.0
|
|
1686
|
+
# respectively will prefer dispatching "high" tasks over "low" tasks at a
|
|
1687
|
+
# 9:1 ratio, while allowing either key to use all worker capacity if the
|
|
1688
|
+
# other is not present.
|
|
1689
|
+
#
|
|
1690
|
+
# All fairness mechanisms, including rate limits, are best-effort and
|
|
1691
|
+
# probabilistic. The results may not match what a "perfect" algorithm with
|
|
1692
|
+
# infinite resources would produce. The more unique keys are used, the less
|
|
1693
|
+
# accurate the results will be.
|
|
1694
|
+
#
|
|
1695
|
+
# Fairness keys are limited to 64 bytes.
|
|
1696
|
+
sig { void }
|
|
1697
|
+
def clear_fairness_key
|
|
1698
|
+
end
|
|
1699
|
+
|
|
1700
|
+
# Fairness weight for a task can come from multiple sources for
|
|
1701
|
+
# flexibility. From highest to lowest precedence:
|
|
1702
|
+
# 1. Weights for a small set of keys can be overridden in task queue
|
|
1703
|
+
# configuration with an API.
|
|
1704
|
+
# 2. It can be attached to the workflow/activity in this field.
|
|
1705
|
+
# 3. The default weight of 1.0 will be used.
|
|
1706
|
+
#
|
|
1707
|
+
# Weight values are clamped to the range [0.001, 1000].
|
|
1708
|
+
sig { returns(Float) }
|
|
1709
|
+
def fairness_weight
|
|
1710
|
+
end
|
|
1711
|
+
|
|
1712
|
+
# Fairness weight for a task can come from multiple sources for
|
|
1713
|
+
# flexibility. From highest to lowest precedence:
|
|
1714
|
+
# 1. Weights for a small set of keys can be overridden in task queue
|
|
1715
|
+
# configuration with an API.
|
|
1716
|
+
# 2. It can be attached to the workflow/activity in this field.
|
|
1717
|
+
# 3. The default weight of 1.0 will be used.
|
|
1718
|
+
#
|
|
1719
|
+
# Weight values are clamped to the range [0.001, 1000].
|
|
1720
|
+
sig { params(value: Float).void }
|
|
1721
|
+
def fairness_weight=(value)
|
|
1722
|
+
end
|
|
1723
|
+
|
|
1724
|
+
# Fairness weight for a task can come from multiple sources for
|
|
1725
|
+
# flexibility. From highest to lowest precedence:
|
|
1726
|
+
# 1. Weights for a small set of keys can be overridden in task queue
|
|
1727
|
+
# configuration with an API.
|
|
1728
|
+
# 2. It can be attached to the workflow/activity in this field.
|
|
1729
|
+
# 3. The default weight of 1.0 will be used.
|
|
1730
|
+
#
|
|
1731
|
+
# Weight values are clamped to the range [0.001, 1000].
|
|
1732
|
+
sig { void }
|
|
1733
|
+
def clear_fairness_weight
|
|
1734
|
+
end
|
|
1735
|
+
|
|
1736
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1737
|
+
def [](field)
|
|
1738
|
+
end
|
|
1739
|
+
|
|
1740
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1741
|
+
def []=(field, value)
|
|
1742
|
+
end
|
|
1743
|
+
|
|
1744
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1745
|
+
def to_h
|
|
1746
|
+
end
|
|
1747
|
+
|
|
1748
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Priority) }
|
|
1749
|
+
def self.decode(str)
|
|
1750
|
+
end
|
|
1751
|
+
|
|
1752
|
+
sig { params(msg: Temporalio::Api::Common::V1::Priority).returns(String) }
|
|
1753
|
+
def self.encode(msg)
|
|
1754
|
+
end
|
|
1755
|
+
|
|
1756
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Priority) }
|
|
1757
|
+
def self.decode_json(str, **kw)
|
|
1758
|
+
end
|
|
1759
|
+
|
|
1760
|
+
sig { params(msg: Temporalio::Api::Common::V1::Priority, kw: T.untyped).returns(String) }
|
|
1761
|
+
def self.encode_json(msg, **kw)
|
|
1762
|
+
end
|
|
1763
|
+
|
|
1764
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1765
|
+
def self.descriptor
|
|
1766
|
+
end
|
|
1767
|
+
end
|
|
1768
|
+
|
|
1769
|
+
# This is used to send commands to a specific worker or a group of workers.
|
|
1770
|
+
# Right now, it is used to send commands to a specific worker instance.
|
|
1771
|
+
# Will be extended to be able to send command to multiple workers.
|
|
1772
|
+
class Temporalio::Api::Common::V1::WorkerSelector
|
|
1773
|
+
include ::Google::Protobuf::MessageExts
|
|
1774
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1775
|
+
|
|
1776
|
+
sig do
|
|
1777
|
+
params(
|
|
1778
|
+
worker_instance_key: T.nilable(String)
|
|
1779
|
+
).void
|
|
1780
|
+
end
|
|
1781
|
+
def initialize(
|
|
1782
|
+
worker_instance_key: ""
|
|
1783
|
+
)
|
|
1784
|
+
end
|
|
1785
|
+
|
|
1786
|
+
# Worker instance key to which the command should be sent.
|
|
1787
|
+
sig { returns(String) }
|
|
1788
|
+
def worker_instance_key
|
|
1789
|
+
end
|
|
1790
|
+
|
|
1791
|
+
# Worker instance key to which the command should be sent.
|
|
1792
|
+
sig { params(value: String).void }
|
|
1793
|
+
def worker_instance_key=(value)
|
|
1794
|
+
end
|
|
1795
|
+
|
|
1796
|
+
# Worker instance key to which the command should be sent.
|
|
1797
|
+
sig { void }
|
|
1798
|
+
def clear_worker_instance_key
|
|
1799
|
+
end
|
|
1800
|
+
|
|
1801
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1802
|
+
def selector
|
|
1803
|
+
end
|
|
1804
|
+
|
|
1805
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1806
|
+
def [](field)
|
|
1807
|
+
end
|
|
1808
|
+
|
|
1809
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1810
|
+
def []=(field, value)
|
|
1811
|
+
end
|
|
1812
|
+
|
|
1813
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1814
|
+
def to_h
|
|
1815
|
+
end
|
|
1816
|
+
|
|
1817
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::WorkerSelector) }
|
|
1818
|
+
def self.decode(str)
|
|
1819
|
+
end
|
|
1820
|
+
|
|
1821
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerSelector).returns(String) }
|
|
1822
|
+
def self.encode(msg)
|
|
1823
|
+
end
|
|
1824
|
+
|
|
1825
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::WorkerSelector) }
|
|
1826
|
+
def self.decode_json(str, **kw)
|
|
1827
|
+
end
|
|
1828
|
+
|
|
1829
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerSelector, kw: T.untyped).returns(String) }
|
|
1830
|
+
def self.encode_json(msg, **kw)
|
|
1831
|
+
end
|
|
1832
|
+
|
|
1833
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1834
|
+
def self.descriptor
|
|
1835
|
+
end
|
|
1836
|
+
end
|
|
1837
|
+
|
|
1838
|
+
# When starting an execution with a conflict policy that uses an existing execution and there is already an existing
|
|
1839
|
+
# running execution, OnConflictOptions defines actions to be taken on the existing running execution.
|
|
1840
|
+
class Temporalio::Api::Common::V1::OnConflictOptions
|
|
1841
|
+
include ::Google::Protobuf::MessageExts
|
|
1842
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1843
|
+
|
|
1844
|
+
sig do
|
|
1845
|
+
params(
|
|
1846
|
+
attach_request_id: T.nilable(T::Boolean),
|
|
1847
|
+
attach_completion_callbacks: T.nilable(T::Boolean),
|
|
1848
|
+
attach_links: T.nilable(T::Boolean)
|
|
1849
|
+
).void
|
|
1850
|
+
end
|
|
1851
|
+
def initialize(
|
|
1852
|
+
attach_request_id: false,
|
|
1853
|
+
attach_completion_callbacks: false,
|
|
1854
|
+
attach_links: false
|
|
1855
|
+
)
|
|
1856
|
+
end
|
|
1857
|
+
|
|
1858
|
+
# Attaches the request ID to the running execution.
|
|
1859
|
+
sig { returns(T::Boolean) }
|
|
1860
|
+
def attach_request_id
|
|
1861
|
+
end
|
|
1862
|
+
|
|
1863
|
+
# Attaches the request ID to the running execution.
|
|
1864
|
+
sig { params(value: T::Boolean).void }
|
|
1865
|
+
def attach_request_id=(value)
|
|
1866
|
+
end
|
|
1867
|
+
|
|
1868
|
+
# Attaches the request ID to the running execution.
|
|
1869
|
+
sig { void }
|
|
1870
|
+
def clear_attach_request_id
|
|
1871
|
+
end
|
|
1872
|
+
|
|
1873
|
+
# Attaches the completion callbacks to the running execution.
|
|
1874
|
+
sig { returns(T::Boolean) }
|
|
1875
|
+
def attach_completion_callbacks
|
|
1876
|
+
end
|
|
1877
|
+
|
|
1878
|
+
# Attaches the completion callbacks to the running execution.
|
|
1879
|
+
sig { params(value: T::Boolean).void }
|
|
1880
|
+
def attach_completion_callbacks=(value)
|
|
1881
|
+
end
|
|
1882
|
+
|
|
1883
|
+
# Attaches the completion callbacks to the running execution.
|
|
1884
|
+
sig { void }
|
|
1885
|
+
def clear_attach_completion_callbacks
|
|
1886
|
+
end
|
|
1887
|
+
|
|
1888
|
+
# Attaches the links to the running execution.
|
|
1889
|
+
sig { returns(T::Boolean) }
|
|
1890
|
+
def attach_links
|
|
1891
|
+
end
|
|
1892
|
+
|
|
1893
|
+
# Attaches the links to the running execution.
|
|
1894
|
+
sig { params(value: T::Boolean).void }
|
|
1895
|
+
def attach_links=(value)
|
|
1896
|
+
end
|
|
1897
|
+
|
|
1898
|
+
# Attaches the links to the running execution.
|
|
1899
|
+
sig { void }
|
|
1900
|
+
def clear_attach_links
|
|
1901
|
+
end
|
|
1902
|
+
|
|
1903
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1904
|
+
def [](field)
|
|
1905
|
+
end
|
|
1906
|
+
|
|
1907
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1908
|
+
def []=(field, value)
|
|
1909
|
+
end
|
|
1910
|
+
|
|
1911
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1912
|
+
def to_h
|
|
1913
|
+
end
|
|
1914
|
+
|
|
1915
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::OnConflictOptions) }
|
|
1916
|
+
def self.decode(str)
|
|
1917
|
+
end
|
|
1918
|
+
|
|
1919
|
+
sig { params(msg: Temporalio::Api::Common::V1::OnConflictOptions).returns(String) }
|
|
1920
|
+
def self.encode(msg)
|
|
1921
|
+
end
|
|
1922
|
+
|
|
1923
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::OnConflictOptions) }
|
|
1924
|
+
def self.decode_json(str, **kw)
|
|
1925
|
+
end
|
|
1926
|
+
|
|
1927
|
+
sig { params(msg: Temporalio::Api::Common::V1::OnConflictOptions, kw: T.untyped).returns(String) }
|
|
1928
|
+
def self.encode_json(msg, **kw)
|
|
1929
|
+
end
|
|
1930
|
+
|
|
1931
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1932
|
+
def self.descriptor
|
|
1933
|
+
end
|
|
1934
|
+
end
|
|
1935
|
+
|
|
1936
|
+
# The configuration for time skipping of a workflow execution (a chain of runs including retries, cron, continue-as-new).
|
|
1937
|
+
# When time skipping is enabled, virtual time advances automatically whenever there is no in-flight work.
|
|
1938
|
+
# In-flight work includes activities, child workflows, Nexus operations, signal/cancel external workflow operations,
|
|
1939
|
+
# and possibly other features added in the future.
|
|
1940
|
+
# User timers are not classified as in-flight work and will be skipped over; the virtual clock may also skip to the
|
|
1941
|
+
# time point of the registered fast forward when there is no in-flight work.
|
|
1942
|
+
# When time is skipped, a WorkflowExecutionTimeSkippingTransitionedEvent will be
|
|
1943
|
+
# added to the workflow history to capture the state changes.
|
|
1944
|
+
#
|
|
1945
|
+
# For child workflows, by default, if the parent execution is skipping time, the child execution will also skip time,
|
|
1946
|
+
# but a parent's fast_forward won't affect its child's execution. A flag is provided to disable propagation of the
|
|
1947
|
+
# "enabled" flag to child workflows; regardless of that flag, a child workflow inherits the virtual time from the
|
|
1948
|
+
# parent execution as its start time.
|
|
1949
|
+
class Temporalio::Api::Common::V1::TimeSkippingConfig
|
|
1950
|
+
include ::Google::Protobuf::MessageExts
|
|
1951
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1952
|
+
|
|
1953
|
+
sig do
|
|
1954
|
+
params(
|
|
1955
|
+
enabled: T.nilable(T::Boolean),
|
|
1956
|
+
fast_forward: T.nilable(Google::Protobuf::Duration),
|
|
1957
|
+
disable_child_propagation: T.nilable(T::Boolean)
|
|
1958
|
+
).void
|
|
1959
|
+
end
|
|
1960
|
+
def initialize(
|
|
1961
|
+
enabled: false,
|
|
1962
|
+
fast_forward: nil,
|
|
1963
|
+
disable_child_propagation: false
|
|
1964
|
+
)
|
|
1965
|
+
end
|
|
1966
|
+
|
|
1967
|
+
# Enables or disables time skipping for this workflow execution.
|
|
1968
|
+
sig { returns(T::Boolean) }
|
|
1969
|
+
def enabled
|
|
1970
|
+
end
|
|
1971
|
+
|
|
1972
|
+
# Enables or disables time skipping for this workflow execution.
|
|
1973
|
+
sig { params(value: T::Boolean).void }
|
|
1974
|
+
def enabled=(value)
|
|
1975
|
+
end
|
|
1976
|
+
|
|
1977
|
+
# Enables or disables time skipping for this workflow execution.
|
|
1978
|
+
sig { void }
|
|
1979
|
+
def clear_enabled
|
|
1980
|
+
end
|
|
1981
|
+
|
|
1982
|
+
# Optionally fast-forward the current workflow execution by this duration ahead of current workflow execution time.
|
|
1983
|
+
# After the fast-forward completes, time skipping is disabled, and this
|
|
1984
|
+
# action is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent. It can be re-enabled by
|
|
1985
|
+
# setting `enabled` to true or setting `fast_forward` again via UpdateWorkflowExecutionOptions.
|
|
1986
|
+
# The current workflow execution is a chain of runs (retries, cron, continue-as-new);
|
|
1987
|
+
# child workflows are separate executions, so this fast_forward won't affect them.
|
|
1988
|
+
#
|
|
1989
|
+
# For a given workflow execution, only one active fast-forward is allowed at a time.
|
|
1990
|
+
# If a new fast-forward is set via UpdateWorkflowExecutionOptions before the previous
|
|
1991
|
+
# one completes, the new one will override the previous one.
|
|
1992
|
+
# If the fast-forward duration exceeds the remaining execution timeout, time will only
|
|
1993
|
+
# be fast-forwarded up to the end of the execution.
|
|
1994
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
1995
|
+
def fast_forward
|
|
1996
|
+
end
|
|
1997
|
+
|
|
1998
|
+
# Optionally fast-forward the current workflow execution by this duration ahead of current workflow execution time.
|
|
1999
|
+
# After the fast-forward completes, time skipping is disabled, and this
|
|
2000
|
+
# action is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent. It can be re-enabled by
|
|
2001
|
+
# setting `enabled` to true or setting `fast_forward` again via UpdateWorkflowExecutionOptions.
|
|
2002
|
+
# The current workflow execution is a chain of runs (retries, cron, continue-as-new);
|
|
2003
|
+
# child workflows are separate executions, so this fast_forward won't affect them.
|
|
2004
|
+
#
|
|
2005
|
+
# For a given workflow execution, only one active fast-forward is allowed at a time.
|
|
2006
|
+
# If a new fast-forward is set via UpdateWorkflowExecutionOptions before the previous
|
|
2007
|
+
# one completes, the new one will override the previous one.
|
|
2008
|
+
# If the fast-forward duration exceeds the remaining execution timeout, time will only
|
|
2009
|
+
# be fast-forwarded up to the end of the execution.
|
|
2010
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
2011
|
+
def fast_forward=(value)
|
|
2012
|
+
end
|
|
2013
|
+
|
|
2014
|
+
# Optionally fast-forward the current workflow execution by this duration ahead of current workflow execution time.
|
|
2015
|
+
# After the fast-forward completes, time skipping is disabled, and this
|
|
2016
|
+
# action is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent. It can be re-enabled by
|
|
2017
|
+
# setting `enabled` to true or setting `fast_forward` again via UpdateWorkflowExecutionOptions.
|
|
2018
|
+
# The current workflow execution is a chain of runs (retries, cron, continue-as-new);
|
|
2019
|
+
# child workflows are separate executions, so this fast_forward won't affect them.
|
|
2020
|
+
#
|
|
2021
|
+
# For a given workflow execution, only one active fast-forward is allowed at a time.
|
|
2022
|
+
# If a new fast-forward is set via UpdateWorkflowExecutionOptions before the previous
|
|
2023
|
+
# one completes, the new one will override the previous one.
|
|
2024
|
+
# If the fast-forward duration exceeds the remaining execution timeout, time will only
|
|
2025
|
+
# be fast-forwarded up to the end of the execution.
|
|
2026
|
+
sig { void }
|
|
2027
|
+
def clear_fast_forward
|
|
2028
|
+
end
|
|
2029
|
+
|
|
2030
|
+
# By default, child workflows inherit the "enabled" flag when they are started.
|
|
2031
|
+
# This flag disables that inheritance.
|
|
2032
|
+
sig { returns(T::Boolean) }
|
|
2033
|
+
def disable_child_propagation
|
|
2034
|
+
end
|
|
2035
|
+
|
|
2036
|
+
# By default, child workflows inherit the "enabled" flag when they are started.
|
|
2037
|
+
# This flag disables that inheritance.
|
|
2038
|
+
sig { params(value: T::Boolean).void }
|
|
2039
|
+
def disable_child_propagation=(value)
|
|
2040
|
+
end
|
|
2041
|
+
|
|
2042
|
+
# By default, child workflows inherit the "enabled" flag when they are started.
|
|
2043
|
+
# This flag disables that inheritance.
|
|
2044
|
+
sig { void }
|
|
2045
|
+
def clear_disable_child_propagation
|
|
2046
|
+
end
|
|
2047
|
+
|
|
2048
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2049
|
+
def [](field)
|
|
2050
|
+
end
|
|
2051
|
+
|
|
2052
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2053
|
+
def []=(field, value)
|
|
2054
|
+
end
|
|
2055
|
+
|
|
2056
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2057
|
+
def to_h
|
|
2058
|
+
end
|
|
2059
|
+
|
|
2060
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::TimeSkippingConfig) }
|
|
2061
|
+
def self.decode(str)
|
|
2062
|
+
end
|
|
2063
|
+
|
|
2064
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingConfig).returns(String) }
|
|
2065
|
+
def self.encode(msg)
|
|
2066
|
+
end
|
|
2067
|
+
|
|
2068
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::TimeSkippingConfig) }
|
|
2069
|
+
def self.decode_json(str, **kw)
|
|
2070
|
+
end
|
|
2071
|
+
|
|
2072
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingConfig, kw: T.untyped).returns(String) }
|
|
2073
|
+
def self.encode_json(msg, **kw)
|
|
2074
|
+
end
|
|
2075
|
+
|
|
2076
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2077
|
+
def self.descriptor
|
|
2078
|
+
end
|
|
2079
|
+
end
|
|
2080
|
+
|
|
2081
|
+
# The time-skipping state that needs to be propagated from a parent workflow to a child workflow,
|
|
2082
|
+
# or through a chain of runs.
|
|
2083
|
+
class Temporalio::Api::Common::V1::TimeSkippingStatePropagation
|
|
2084
|
+
include ::Google::Protobuf::MessageExts
|
|
2085
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2086
|
+
|
|
2087
|
+
sig do
|
|
2088
|
+
params(
|
|
2089
|
+
initial_skipped_duration: T.nilable(Google::Protobuf::Duration),
|
|
2090
|
+
fast_forward_target_time: T.nilable(Google::Protobuf::Timestamp)
|
|
2091
|
+
).void
|
|
2092
|
+
end
|
|
2093
|
+
def initialize(
|
|
2094
|
+
initial_skipped_duration: nil,
|
|
2095
|
+
fast_forward_target_time: nil
|
|
2096
|
+
)
|
|
2097
|
+
end
|
|
2098
|
+
|
|
2099
|
+
# The time skipped by the previous execution that started this workflow.
|
|
2100
|
+
# It can happen in child workflows and a chain of runs (CaN, cron, retry).
|
|
2101
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
2102
|
+
def initial_skipped_duration
|
|
2103
|
+
end
|
|
2104
|
+
|
|
2105
|
+
# The time skipped by the previous execution that started this workflow.
|
|
2106
|
+
# It can happen in child workflows and a chain of runs (CaN, cron, retry).
|
|
2107
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
2108
|
+
def initial_skipped_duration=(value)
|
|
2109
|
+
end
|
|
2110
|
+
|
|
2111
|
+
# The time skipped by the previous execution that started this workflow.
|
|
2112
|
+
# It can happen in child workflows and a chain of runs (CaN, cron, retry).
|
|
2113
|
+
sig { void }
|
|
2114
|
+
def clear_initial_skipped_duration
|
|
2115
|
+
end
|
|
2116
|
+
|
|
2117
|
+
# If there is a fast-forward action set for the previous run in a chain of runs,
|
|
2118
|
+
# the target time should be propagated to the next run as well.
|
|
2119
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2120
|
+
def fast_forward_target_time
|
|
2121
|
+
end
|
|
2122
|
+
|
|
2123
|
+
# If there is a fast-forward action set for the previous run in a chain of runs,
|
|
2124
|
+
# the target time should be propagated to the next run as well.
|
|
2125
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2126
|
+
def fast_forward_target_time=(value)
|
|
2127
|
+
end
|
|
2128
|
+
|
|
2129
|
+
# If there is a fast-forward action set for the previous run in a chain of runs,
|
|
2130
|
+
# the target time should be propagated to the next run as well.
|
|
2131
|
+
sig { void }
|
|
2132
|
+
def clear_fast_forward_target_time
|
|
2133
|
+
end
|
|
2134
|
+
|
|
2135
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2136
|
+
def [](field)
|
|
2137
|
+
end
|
|
2138
|
+
|
|
2139
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2140
|
+
def []=(field, value)
|
|
2141
|
+
end
|
|
2142
|
+
|
|
2143
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2144
|
+
def to_h
|
|
2145
|
+
end
|
|
2146
|
+
|
|
2147
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::TimeSkippingStatePropagation) }
|
|
2148
|
+
def self.decode(str)
|
|
2149
|
+
end
|
|
2150
|
+
|
|
2151
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingStatePropagation).returns(String) }
|
|
2152
|
+
def self.encode(msg)
|
|
2153
|
+
end
|
|
2154
|
+
|
|
2155
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::TimeSkippingStatePropagation) }
|
|
2156
|
+
def self.decode_json(str, **kw)
|
|
2157
|
+
end
|
|
2158
|
+
|
|
2159
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingStatePropagation, kw: T.untyped).returns(String) }
|
|
2160
|
+
def self.encode_json(msg, **kw)
|
|
2161
|
+
end
|
|
2162
|
+
|
|
2163
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2164
|
+
def self.descriptor
|
|
2165
|
+
end
|
|
2166
|
+
end
|
|
2167
|
+
|
|
2168
|
+
# Describes an externally stored object referenced by this payload.
|
|
2169
|
+
class Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails
|
|
2170
|
+
include ::Google::Protobuf::MessageExts
|
|
2171
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2172
|
+
|
|
2173
|
+
sig do
|
|
2174
|
+
params(
|
|
2175
|
+
size_bytes: T.nilable(Integer)
|
|
2176
|
+
).void
|
|
2177
|
+
end
|
|
2178
|
+
def initialize(
|
|
2179
|
+
size_bytes: 0
|
|
2180
|
+
)
|
|
2181
|
+
end
|
|
2182
|
+
|
|
2183
|
+
# Size in bytes of the externally stored payload
|
|
2184
|
+
sig { returns(Integer) }
|
|
2185
|
+
def size_bytes
|
|
2186
|
+
end
|
|
2187
|
+
|
|
2188
|
+
# Size in bytes of the externally stored payload
|
|
2189
|
+
sig { params(value: Integer).void }
|
|
2190
|
+
def size_bytes=(value)
|
|
2191
|
+
end
|
|
2192
|
+
|
|
2193
|
+
# Size in bytes of the externally stored payload
|
|
2194
|
+
sig { void }
|
|
2195
|
+
def clear_size_bytes
|
|
2196
|
+
end
|
|
2197
|
+
|
|
2198
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2199
|
+
def [](field)
|
|
2200
|
+
end
|
|
2201
|
+
|
|
2202
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2203
|
+
def []=(field, value)
|
|
2204
|
+
end
|
|
2205
|
+
|
|
2206
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2207
|
+
def to_h
|
|
2208
|
+
end
|
|
2209
|
+
|
|
2210
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails) }
|
|
2211
|
+
def self.decode(str)
|
|
2212
|
+
end
|
|
2213
|
+
|
|
2214
|
+
sig { params(msg: Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails).returns(String) }
|
|
2215
|
+
def self.encode(msg)
|
|
2216
|
+
end
|
|
2217
|
+
|
|
2218
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails) }
|
|
2219
|
+
def self.decode_json(str, **kw)
|
|
2220
|
+
end
|
|
2221
|
+
|
|
2222
|
+
sig { params(msg: Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails, kw: T.untyped).returns(String) }
|
|
2223
|
+
def self.encode_json(msg, **kw)
|
|
2224
|
+
end
|
|
2225
|
+
|
|
2226
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2227
|
+
def self.descriptor
|
|
2228
|
+
end
|
|
2229
|
+
end
|
|
2230
|
+
|
|
2231
|
+
class Temporalio::Api::Common::V1::Callback::Nexus
|
|
2232
|
+
include ::Google::Protobuf::MessageExts
|
|
2233
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2234
|
+
|
|
2235
|
+
sig do
|
|
2236
|
+
params(
|
|
2237
|
+
url: T.nilable(String),
|
|
2238
|
+
header: T.nilable(T::Hash[String, String])
|
|
2239
|
+
).void
|
|
2240
|
+
end
|
|
2241
|
+
def initialize(
|
|
2242
|
+
url: "",
|
|
2243
|
+
header: ::Google::Protobuf::Map.new(:string, :string)
|
|
2244
|
+
)
|
|
2245
|
+
end
|
|
2246
|
+
|
|
2247
|
+
# Callback URL.
|
|
2248
|
+
sig { returns(String) }
|
|
2249
|
+
def url
|
|
2250
|
+
end
|
|
2251
|
+
|
|
2252
|
+
# Callback URL.
|
|
2253
|
+
sig { params(value: String).void }
|
|
2254
|
+
def url=(value)
|
|
2255
|
+
end
|
|
2256
|
+
|
|
2257
|
+
# Callback URL.
|
|
2258
|
+
sig { void }
|
|
2259
|
+
def clear_url
|
|
2260
|
+
end
|
|
2261
|
+
|
|
2262
|
+
# Header to attach to callback request.
|
|
2263
|
+
sig { returns(T::Hash[String, String]) }
|
|
2264
|
+
def header
|
|
2265
|
+
end
|
|
2266
|
+
|
|
2267
|
+
# Header to attach to callback request.
|
|
2268
|
+
sig { params(value: ::Google::Protobuf::Map).void }
|
|
2269
|
+
def header=(value)
|
|
2270
|
+
end
|
|
2271
|
+
|
|
2272
|
+
# Header to attach to callback request.
|
|
2273
|
+
sig { void }
|
|
2274
|
+
def clear_header
|
|
2275
|
+
end
|
|
2276
|
+
|
|
2277
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2278
|
+
def [](field)
|
|
2279
|
+
end
|
|
2280
|
+
|
|
2281
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2282
|
+
def []=(field, value)
|
|
2283
|
+
end
|
|
2284
|
+
|
|
2285
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2286
|
+
def to_h
|
|
2287
|
+
end
|
|
2288
|
+
|
|
2289
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Callback::Nexus) }
|
|
2290
|
+
def self.decode(str)
|
|
2291
|
+
end
|
|
2292
|
+
|
|
2293
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::Nexus).returns(String) }
|
|
2294
|
+
def self.encode(msg)
|
|
2295
|
+
end
|
|
2296
|
+
|
|
2297
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Callback::Nexus) }
|
|
2298
|
+
def self.decode_json(str, **kw)
|
|
2299
|
+
end
|
|
2300
|
+
|
|
2301
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::Nexus, kw: T.untyped).returns(String) }
|
|
2302
|
+
def self.encode_json(msg, **kw)
|
|
2303
|
+
end
|
|
2304
|
+
|
|
2305
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2306
|
+
def self.descriptor
|
|
2307
|
+
end
|
|
2308
|
+
end
|
|
2309
|
+
|
|
2310
|
+
# Callbacks to be delivered internally within the system.
|
|
2311
|
+
# This variant is not settable in the API and will be rejected by the service with an INVALID_ARGUMENT error.
|
|
2312
|
+
# The only reason that this is exposed is because callbacks are replicated across clusters via the
|
|
2313
|
+
# WorkflowExecutionStarted event, which is defined in the public API.
|
|
2314
|
+
class Temporalio::Api::Common::V1::Callback::Internal
|
|
2315
|
+
include ::Google::Protobuf::MessageExts
|
|
2316
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2317
|
+
|
|
2318
|
+
sig do
|
|
2319
|
+
params(
|
|
2320
|
+
data: T.nilable(String)
|
|
2321
|
+
).void
|
|
2322
|
+
end
|
|
2323
|
+
def initialize(
|
|
2324
|
+
data: ""
|
|
2325
|
+
)
|
|
2326
|
+
end
|
|
2327
|
+
|
|
2328
|
+
# Opaque internal data.
|
|
2329
|
+
sig { returns(String) }
|
|
2330
|
+
def data
|
|
2331
|
+
end
|
|
2332
|
+
|
|
2333
|
+
# Opaque internal data.
|
|
2334
|
+
sig { params(value: String).void }
|
|
2335
|
+
def data=(value)
|
|
2336
|
+
end
|
|
2337
|
+
|
|
2338
|
+
# Opaque internal data.
|
|
2339
|
+
sig { void }
|
|
2340
|
+
def clear_data
|
|
2341
|
+
end
|
|
2342
|
+
|
|
2343
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2344
|
+
def [](field)
|
|
2345
|
+
end
|
|
2346
|
+
|
|
2347
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2348
|
+
def []=(field, value)
|
|
2349
|
+
end
|
|
2350
|
+
|
|
2351
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2352
|
+
def to_h
|
|
2353
|
+
end
|
|
2354
|
+
|
|
2355
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Callback::Internal) }
|
|
2356
|
+
def self.decode(str)
|
|
2357
|
+
end
|
|
2358
|
+
|
|
2359
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::Internal).returns(String) }
|
|
2360
|
+
def self.encode(msg)
|
|
2361
|
+
end
|
|
2362
|
+
|
|
2363
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Callback::Internal) }
|
|
2364
|
+
def self.decode_json(str, **kw)
|
|
2365
|
+
end
|
|
2366
|
+
|
|
2367
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::Internal, kw: T.untyped).returns(String) }
|
|
2368
|
+
def self.encode_json(msg, **kw)
|
|
2369
|
+
end
|
|
2370
|
+
|
|
2371
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2372
|
+
def self.descriptor
|
|
2373
|
+
end
|
|
2374
|
+
end
|
|
2375
|
+
|
|
2376
|
+
class Temporalio::Api::Common::V1::Link::WorkflowEvent
|
|
2377
|
+
include ::Google::Protobuf::MessageExts
|
|
2378
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2379
|
+
|
|
2380
|
+
sig do
|
|
2381
|
+
params(
|
|
2382
|
+
namespace: T.nilable(String),
|
|
2383
|
+
workflow_id: T.nilable(String),
|
|
2384
|
+
run_id: T.nilable(String),
|
|
2385
|
+
event_ref: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference),
|
|
2386
|
+
request_id_ref: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference)
|
|
2387
|
+
).void
|
|
2388
|
+
end
|
|
2389
|
+
def initialize(
|
|
2390
|
+
namespace: "",
|
|
2391
|
+
workflow_id: "",
|
|
2392
|
+
run_id: "",
|
|
2393
|
+
event_ref: nil,
|
|
2394
|
+
request_id_ref: nil
|
|
2395
|
+
)
|
|
2396
|
+
end
|
|
2397
|
+
|
|
2398
|
+
sig { returns(String) }
|
|
2399
|
+
def namespace
|
|
2400
|
+
end
|
|
2401
|
+
|
|
2402
|
+
sig { params(value: String).void }
|
|
2403
|
+
def namespace=(value)
|
|
2404
|
+
end
|
|
2405
|
+
|
|
2406
|
+
sig { void }
|
|
2407
|
+
def clear_namespace
|
|
2408
|
+
end
|
|
2409
|
+
|
|
2410
|
+
sig { returns(String) }
|
|
2411
|
+
def workflow_id
|
|
2412
|
+
end
|
|
2413
|
+
|
|
2414
|
+
sig { params(value: String).void }
|
|
2415
|
+
def workflow_id=(value)
|
|
2416
|
+
end
|
|
2417
|
+
|
|
2418
|
+
sig { void }
|
|
2419
|
+
def clear_workflow_id
|
|
2420
|
+
end
|
|
2421
|
+
|
|
2422
|
+
sig { returns(String) }
|
|
2423
|
+
def run_id
|
|
2424
|
+
end
|
|
2425
|
+
|
|
2426
|
+
sig { params(value: String).void }
|
|
2427
|
+
def run_id=(value)
|
|
2428
|
+
end
|
|
2429
|
+
|
|
2430
|
+
sig { void }
|
|
2431
|
+
def clear_run_id
|
|
2432
|
+
end
|
|
2433
|
+
|
|
2434
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference)) }
|
|
2435
|
+
def event_ref
|
|
2436
|
+
end
|
|
2437
|
+
|
|
2438
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference)).void }
|
|
2439
|
+
def event_ref=(value)
|
|
2440
|
+
end
|
|
2441
|
+
|
|
2442
|
+
sig { void }
|
|
2443
|
+
def clear_event_ref
|
|
2444
|
+
end
|
|
2445
|
+
|
|
2446
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference)) }
|
|
2447
|
+
def request_id_ref
|
|
2448
|
+
end
|
|
2449
|
+
|
|
2450
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference)).void }
|
|
2451
|
+
def request_id_ref=(value)
|
|
2452
|
+
end
|
|
2453
|
+
|
|
2454
|
+
sig { void }
|
|
2455
|
+
def clear_request_id_ref
|
|
2456
|
+
end
|
|
2457
|
+
|
|
2458
|
+
sig { returns(T.nilable(Symbol)) }
|
|
2459
|
+
def reference
|
|
2460
|
+
end
|
|
2461
|
+
|
|
2462
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2463
|
+
def [](field)
|
|
2464
|
+
end
|
|
2465
|
+
|
|
2466
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2467
|
+
def []=(field, value)
|
|
2468
|
+
end
|
|
2469
|
+
|
|
2470
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2471
|
+
def to_h
|
|
2472
|
+
end
|
|
2473
|
+
|
|
2474
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent) }
|
|
2475
|
+
def self.decode(str)
|
|
2476
|
+
end
|
|
2477
|
+
|
|
2478
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent).returns(String) }
|
|
2479
|
+
def self.encode(msg)
|
|
2480
|
+
end
|
|
2481
|
+
|
|
2482
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent) }
|
|
2483
|
+
def self.decode_json(str, **kw)
|
|
2484
|
+
end
|
|
2485
|
+
|
|
2486
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent, kw: T.untyped).returns(String) }
|
|
2487
|
+
def self.encode_json(msg, **kw)
|
|
2488
|
+
end
|
|
2489
|
+
|
|
2490
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2491
|
+
def self.descriptor
|
|
2492
|
+
end
|
|
2493
|
+
end
|
|
2494
|
+
|
|
2495
|
+
# A link to a built-in batch job.
|
|
2496
|
+
# Batch jobs can be used to perform operations on a set of workflows (e.g. terminate, signal, cancel, etc).
|
|
2497
|
+
# This link can be put on workflow history events generated by actions taken by a batch job.
|
|
2498
|
+
class Temporalio::Api::Common::V1::Link::BatchJob
|
|
2499
|
+
include ::Google::Protobuf::MessageExts
|
|
2500
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2501
|
+
|
|
2502
|
+
sig do
|
|
2503
|
+
params(
|
|
2504
|
+
job_id: T.nilable(String)
|
|
2505
|
+
).void
|
|
2506
|
+
end
|
|
2507
|
+
def initialize(
|
|
2508
|
+
job_id: ""
|
|
2509
|
+
)
|
|
2510
|
+
end
|
|
2511
|
+
|
|
2512
|
+
sig { returns(String) }
|
|
2513
|
+
def job_id
|
|
2514
|
+
end
|
|
2515
|
+
|
|
2516
|
+
sig { params(value: String).void }
|
|
2517
|
+
def job_id=(value)
|
|
2518
|
+
end
|
|
2519
|
+
|
|
2520
|
+
sig { void }
|
|
2521
|
+
def clear_job_id
|
|
2522
|
+
end
|
|
2523
|
+
|
|
2524
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2525
|
+
def [](field)
|
|
2526
|
+
end
|
|
2527
|
+
|
|
2528
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2529
|
+
def []=(field, value)
|
|
2530
|
+
end
|
|
2531
|
+
|
|
2532
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2533
|
+
def to_h
|
|
2534
|
+
end
|
|
2535
|
+
|
|
2536
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::BatchJob) }
|
|
2537
|
+
def self.decode(str)
|
|
2538
|
+
end
|
|
2539
|
+
|
|
2540
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::BatchJob).returns(String) }
|
|
2541
|
+
def self.encode(msg)
|
|
2542
|
+
end
|
|
2543
|
+
|
|
2544
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::BatchJob) }
|
|
2545
|
+
def self.decode_json(str, **kw)
|
|
2546
|
+
end
|
|
2547
|
+
|
|
2548
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::BatchJob, kw: T.untyped).returns(String) }
|
|
2549
|
+
def self.encode_json(msg, **kw)
|
|
2550
|
+
end
|
|
2551
|
+
|
|
2552
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2553
|
+
def self.descriptor
|
|
2554
|
+
end
|
|
2555
|
+
end
|
|
2556
|
+
|
|
2557
|
+
# A link to an activity.
|
|
2558
|
+
class Temporalio::Api::Common::V1::Link::Activity
|
|
2559
|
+
include ::Google::Protobuf::MessageExts
|
|
2560
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2561
|
+
|
|
2562
|
+
sig do
|
|
2563
|
+
params(
|
|
2564
|
+
namespace: T.nilable(String),
|
|
2565
|
+
activity_id: T.nilable(String),
|
|
2566
|
+
run_id: T.nilable(String)
|
|
2567
|
+
).void
|
|
2568
|
+
end
|
|
2569
|
+
def initialize(
|
|
2570
|
+
namespace: "",
|
|
2571
|
+
activity_id: "",
|
|
2572
|
+
run_id: ""
|
|
2573
|
+
)
|
|
2574
|
+
end
|
|
2575
|
+
|
|
2576
|
+
sig { returns(String) }
|
|
2577
|
+
def namespace
|
|
2578
|
+
end
|
|
2579
|
+
|
|
2580
|
+
sig { params(value: String).void }
|
|
2581
|
+
def namespace=(value)
|
|
2582
|
+
end
|
|
2583
|
+
|
|
2584
|
+
sig { void }
|
|
2585
|
+
def clear_namespace
|
|
2586
|
+
end
|
|
2587
|
+
|
|
2588
|
+
sig { returns(String) }
|
|
2589
|
+
def activity_id
|
|
2590
|
+
end
|
|
2591
|
+
|
|
2592
|
+
sig { params(value: String).void }
|
|
2593
|
+
def activity_id=(value)
|
|
2594
|
+
end
|
|
2595
|
+
|
|
2596
|
+
sig { void }
|
|
2597
|
+
def clear_activity_id
|
|
2598
|
+
end
|
|
2599
|
+
|
|
2600
|
+
sig { returns(String) }
|
|
2601
|
+
def run_id
|
|
2602
|
+
end
|
|
2603
|
+
|
|
2604
|
+
sig { params(value: String).void }
|
|
2605
|
+
def run_id=(value)
|
|
2606
|
+
end
|
|
2607
|
+
|
|
2608
|
+
sig { void }
|
|
2609
|
+
def clear_run_id
|
|
2610
|
+
end
|
|
2611
|
+
|
|
2612
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2613
|
+
def [](field)
|
|
2614
|
+
end
|
|
2615
|
+
|
|
2616
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2617
|
+
def []=(field, value)
|
|
2618
|
+
end
|
|
2619
|
+
|
|
2620
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2621
|
+
def to_h
|
|
2622
|
+
end
|
|
2623
|
+
|
|
2624
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::Activity) }
|
|
2625
|
+
def self.decode(str)
|
|
2626
|
+
end
|
|
2627
|
+
|
|
2628
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Activity).returns(String) }
|
|
2629
|
+
def self.encode(msg)
|
|
2630
|
+
end
|
|
2631
|
+
|
|
2632
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::Activity) }
|
|
2633
|
+
def self.decode_json(str, **kw)
|
|
2634
|
+
end
|
|
2635
|
+
|
|
2636
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Activity, kw: T.untyped).returns(String) }
|
|
2637
|
+
def self.encode_json(msg, **kw)
|
|
2638
|
+
end
|
|
2639
|
+
|
|
2640
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2641
|
+
def self.descriptor
|
|
2642
|
+
end
|
|
2643
|
+
end
|
|
2644
|
+
|
|
2645
|
+
# A link to a standalone Nexus operation.
|
|
2646
|
+
class Temporalio::Api::Common::V1::Link::NexusOperation
|
|
2647
|
+
include ::Google::Protobuf::MessageExts
|
|
2648
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2649
|
+
|
|
2650
|
+
sig do
|
|
2651
|
+
params(
|
|
2652
|
+
namespace: T.nilable(String),
|
|
2653
|
+
operation_id: T.nilable(String),
|
|
2654
|
+
run_id: T.nilable(String)
|
|
2655
|
+
).void
|
|
2656
|
+
end
|
|
2657
|
+
def initialize(
|
|
2658
|
+
namespace: "",
|
|
2659
|
+
operation_id: "",
|
|
2660
|
+
run_id: ""
|
|
2661
|
+
)
|
|
2662
|
+
end
|
|
2663
|
+
|
|
2664
|
+
sig { returns(String) }
|
|
2665
|
+
def namespace
|
|
2666
|
+
end
|
|
2667
|
+
|
|
2668
|
+
sig { params(value: String).void }
|
|
2669
|
+
def namespace=(value)
|
|
2670
|
+
end
|
|
2671
|
+
|
|
2672
|
+
sig { void }
|
|
2673
|
+
def clear_namespace
|
|
2674
|
+
end
|
|
2675
|
+
|
|
2676
|
+
sig { returns(String) }
|
|
2677
|
+
def operation_id
|
|
2678
|
+
end
|
|
2679
|
+
|
|
2680
|
+
sig { params(value: String).void }
|
|
2681
|
+
def operation_id=(value)
|
|
2682
|
+
end
|
|
2683
|
+
|
|
2684
|
+
sig { void }
|
|
2685
|
+
def clear_operation_id
|
|
2686
|
+
end
|
|
2687
|
+
|
|
2688
|
+
sig { returns(String) }
|
|
2689
|
+
def run_id
|
|
2690
|
+
end
|
|
2691
|
+
|
|
2692
|
+
sig { params(value: String).void }
|
|
2693
|
+
def run_id=(value)
|
|
2694
|
+
end
|
|
2695
|
+
|
|
2696
|
+
sig { void }
|
|
2697
|
+
def clear_run_id
|
|
2698
|
+
end
|
|
2699
|
+
|
|
2700
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2701
|
+
def [](field)
|
|
2702
|
+
end
|
|
2703
|
+
|
|
2704
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2705
|
+
def []=(field, value)
|
|
2706
|
+
end
|
|
2707
|
+
|
|
2708
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2709
|
+
def to_h
|
|
2710
|
+
end
|
|
2711
|
+
|
|
2712
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::NexusOperation) }
|
|
2713
|
+
def self.decode(str)
|
|
2714
|
+
end
|
|
2715
|
+
|
|
2716
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::NexusOperation).returns(String) }
|
|
2717
|
+
def self.encode(msg)
|
|
2718
|
+
end
|
|
2719
|
+
|
|
2720
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::NexusOperation) }
|
|
2721
|
+
def self.decode_json(str, **kw)
|
|
2722
|
+
end
|
|
2723
|
+
|
|
2724
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::NexusOperation, kw: T.untyped).returns(String) }
|
|
2725
|
+
def self.encode_json(msg, **kw)
|
|
2726
|
+
end
|
|
2727
|
+
|
|
2728
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2729
|
+
def self.descriptor
|
|
2730
|
+
end
|
|
2731
|
+
end
|
|
2732
|
+
|
|
2733
|
+
# A link to a workflow execution. This is a more general version of WorkflowEvent that doesn't specify a
|
|
2734
|
+
# particular event within the workflow, useful when you want to link to a workflow but there is no particular event to link to,
|
|
2735
|
+
# such as a Query or a Rejected Update.
|
|
2736
|
+
class Temporalio::Api::Common::V1::Link::Workflow
|
|
2737
|
+
include ::Google::Protobuf::MessageExts
|
|
2738
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2739
|
+
|
|
2740
|
+
sig do
|
|
2741
|
+
params(
|
|
2742
|
+
namespace: T.nilable(String),
|
|
2743
|
+
workflow_id: T.nilable(String),
|
|
2744
|
+
run_id: T.nilable(String),
|
|
2745
|
+
reason: T.nilable(String)
|
|
2746
|
+
).void
|
|
2747
|
+
end
|
|
2748
|
+
def initialize(
|
|
2749
|
+
namespace: "",
|
|
2750
|
+
workflow_id: "",
|
|
2751
|
+
run_id: "",
|
|
2752
|
+
reason: ""
|
|
2753
|
+
)
|
|
2754
|
+
end
|
|
2755
|
+
|
|
2756
|
+
sig { returns(String) }
|
|
2757
|
+
def namespace
|
|
2758
|
+
end
|
|
2759
|
+
|
|
2760
|
+
sig { params(value: String).void }
|
|
2761
|
+
def namespace=(value)
|
|
2762
|
+
end
|
|
2763
|
+
|
|
2764
|
+
sig { void }
|
|
2765
|
+
def clear_namespace
|
|
2766
|
+
end
|
|
2767
|
+
|
|
2768
|
+
sig { returns(String) }
|
|
2769
|
+
def workflow_id
|
|
2770
|
+
end
|
|
2771
|
+
|
|
2772
|
+
sig { params(value: String).void }
|
|
2773
|
+
def workflow_id=(value)
|
|
2774
|
+
end
|
|
2775
|
+
|
|
2776
|
+
sig { void }
|
|
2777
|
+
def clear_workflow_id
|
|
2778
|
+
end
|
|
2779
|
+
|
|
2780
|
+
sig { returns(String) }
|
|
2781
|
+
def run_id
|
|
2782
|
+
end
|
|
2783
|
+
|
|
2784
|
+
sig { params(value: String).void }
|
|
2785
|
+
def run_id=(value)
|
|
2786
|
+
end
|
|
2787
|
+
|
|
2788
|
+
sig { void }
|
|
2789
|
+
def clear_run_id
|
|
2790
|
+
end
|
|
2791
|
+
|
|
2792
|
+
sig { returns(String) }
|
|
2793
|
+
def reason
|
|
2794
|
+
end
|
|
2795
|
+
|
|
2796
|
+
sig { params(value: String).void }
|
|
2797
|
+
def reason=(value)
|
|
2798
|
+
end
|
|
2799
|
+
|
|
2800
|
+
sig { void }
|
|
2801
|
+
def clear_reason
|
|
2802
|
+
end
|
|
2803
|
+
|
|
2804
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2805
|
+
def [](field)
|
|
2806
|
+
end
|
|
2807
|
+
|
|
2808
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2809
|
+
def []=(field, value)
|
|
2810
|
+
end
|
|
2811
|
+
|
|
2812
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2813
|
+
def to_h
|
|
2814
|
+
end
|
|
2815
|
+
|
|
2816
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::Workflow) }
|
|
2817
|
+
def self.decode(str)
|
|
2818
|
+
end
|
|
2819
|
+
|
|
2820
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Workflow).returns(String) }
|
|
2821
|
+
def self.encode(msg)
|
|
2822
|
+
end
|
|
2823
|
+
|
|
2824
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::Workflow) }
|
|
2825
|
+
def self.decode_json(str, **kw)
|
|
2826
|
+
end
|
|
2827
|
+
|
|
2828
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Workflow, kw: T.untyped).returns(String) }
|
|
2829
|
+
def self.encode_json(msg, **kw)
|
|
2830
|
+
end
|
|
2831
|
+
|
|
2832
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2833
|
+
def self.descriptor
|
|
2834
|
+
end
|
|
2835
|
+
end
|
|
2836
|
+
|
|
2837
|
+
# EventReference is a direct reference to a history event through the event ID.
|
|
2838
|
+
class Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference
|
|
2839
|
+
include ::Google::Protobuf::MessageExts
|
|
2840
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2841
|
+
|
|
2842
|
+
sig do
|
|
2843
|
+
params(
|
|
2844
|
+
event_id: T.nilable(Integer),
|
|
2845
|
+
event_type: T.nilable(T.any(Symbol, String, Integer))
|
|
2846
|
+
).void
|
|
2847
|
+
end
|
|
2848
|
+
def initialize(
|
|
2849
|
+
event_id: 0,
|
|
2850
|
+
event_type: :EVENT_TYPE_UNSPECIFIED
|
|
2851
|
+
)
|
|
2852
|
+
end
|
|
2853
|
+
|
|
2854
|
+
sig { returns(Integer) }
|
|
2855
|
+
def event_id
|
|
2856
|
+
end
|
|
2857
|
+
|
|
2858
|
+
sig { params(value: Integer).void }
|
|
2859
|
+
def event_id=(value)
|
|
2860
|
+
end
|
|
2861
|
+
|
|
2862
|
+
sig { void }
|
|
2863
|
+
def clear_event_id
|
|
2864
|
+
end
|
|
2865
|
+
|
|
2866
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
2867
|
+
def event_type
|
|
2868
|
+
end
|
|
2869
|
+
|
|
2870
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
2871
|
+
def event_type=(value)
|
|
2872
|
+
end
|
|
2873
|
+
|
|
2874
|
+
sig { void }
|
|
2875
|
+
def clear_event_type
|
|
2876
|
+
end
|
|
2877
|
+
|
|
2878
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2879
|
+
def [](field)
|
|
2880
|
+
end
|
|
2881
|
+
|
|
2882
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2883
|
+
def []=(field, value)
|
|
2884
|
+
end
|
|
2885
|
+
|
|
2886
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2887
|
+
def to_h
|
|
2888
|
+
end
|
|
2889
|
+
|
|
2890
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference) }
|
|
2891
|
+
def self.decode(str)
|
|
2892
|
+
end
|
|
2893
|
+
|
|
2894
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference).returns(String) }
|
|
2895
|
+
def self.encode(msg)
|
|
2896
|
+
end
|
|
2897
|
+
|
|
2898
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference) }
|
|
2899
|
+
def self.decode_json(str, **kw)
|
|
2900
|
+
end
|
|
2901
|
+
|
|
2902
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference, kw: T.untyped).returns(String) }
|
|
2903
|
+
def self.encode_json(msg, **kw)
|
|
2904
|
+
end
|
|
2905
|
+
|
|
2906
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2907
|
+
def self.descriptor
|
|
2908
|
+
end
|
|
2909
|
+
end
|
|
2910
|
+
|
|
2911
|
+
# RequestIdReference is a indirect reference to a history event through the request ID.
|
|
2912
|
+
class Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference
|
|
2913
|
+
include ::Google::Protobuf::MessageExts
|
|
2914
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2915
|
+
|
|
2916
|
+
sig do
|
|
2917
|
+
params(
|
|
2918
|
+
request_id: T.nilable(String),
|
|
2919
|
+
event_type: T.nilable(T.any(Symbol, String, Integer))
|
|
2920
|
+
).void
|
|
2921
|
+
end
|
|
2922
|
+
def initialize(
|
|
2923
|
+
request_id: "",
|
|
2924
|
+
event_type: :EVENT_TYPE_UNSPECIFIED
|
|
2925
|
+
)
|
|
2926
|
+
end
|
|
2927
|
+
|
|
2928
|
+
sig { returns(String) }
|
|
2929
|
+
def request_id
|
|
2930
|
+
end
|
|
2931
|
+
|
|
2932
|
+
sig { params(value: String).void }
|
|
2933
|
+
def request_id=(value)
|
|
2934
|
+
end
|
|
2935
|
+
|
|
2936
|
+
sig { void }
|
|
2937
|
+
def clear_request_id
|
|
2938
|
+
end
|
|
2939
|
+
|
|
2940
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
2941
|
+
def event_type
|
|
2942
|
+
end
|
|
2943
|
+
|
|
2944
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
2945
|
+
def event_type=(value)
|
|
2946
|
+
end
|
|
2947
|
+
|
|
2948
|
+
sig { void }
|
|
2949
|
+
def clear_event_type
|
|
2950
|
+
end
|
|
2951
|
+
|
|
2952
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2953
|
+
def [](field)
|
|
2954
|
+
end
|
|
2955
|
+
|
|
2956
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2957
|
+
def []=(field, value)
|
|
2958
|
+
end
|
|
2959
|
+
|
|
2960
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2961
|
+
def to_h
|
|
2962
|
+
end
|
|
2963
|
+
|
|
2964
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference) }
|
|
2965
|
+
def self.decode(str)
|
|
2966
|
+
end
|
|
2967
|
+
|
|
2968
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference).returns(String) }
|
|
2969
|
+
def self.encode(msg)
|
|
2970
|
+
end
|
|
2971
|
+
|
|
2972
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference) }
|
|
2973
|
+
def self.decode_json(str, **kw)
|
|
2974
|
+
end
|
|
2975
|
+
|
|
2976
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference, kw: T.untyped).returns(String) }
|
|
2977
|
+
def self.encode_json(msg, **kw)
|
|
2978
|
+
end
|
|
2979
|
+
|
|
2980
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2981
|
+
def self.descriptor
|
|
2982
|
+
end
|
|
2983
|
+
end
|