temporalio 1.5.0 → 1.7.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 +1469 -659
- data/Cargo.toml +1 -1
- data/Gemfile +9 -5
- data/README.md +59 -3
- data/Rakefile +1 -1
- data/ext/Cargo.toml +9 -3
- data/lib/temporalio/api/activity/v1/message.rb +1 -1
- data/lib/temporalio/api/batch/v1/message.rb +4 -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 +3 -1
- data/lib/temporalio/api/common/v1/message.rb +9 -1
- data/lib/temporalio/api/deployment/v1/message.rb +3 -1
- data/lib/temporalio/api/enums/v1/activity.rb +1 -1
- data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
- data/lib/temporalio/api/enums/v1/common.rb +2 -1
- data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
- data/lib/temporalio/api/enums/v1/time_skipping.rb +21 -0
- data/lib/temporalio/api/errordetails/v1/message.rb +2 -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/taskqueue/v1/message.rb +2 -1
- data/lib/temporalio/api/update/v1/message.rb +1 -1
- data/lib/temporalio/api/worker/v1/message.rb +13 -1
- data/lib/temporalio/api/workflow/v1/message.rb +3 -2
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +14 -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 +90 -0
- data/lib/temporalio/client/connection.rb +68 -3
- data/lib/temporalio/client/schedule.rb +4 -5
- data/lib/temporalio/client/workflow_execution.rb +2 -2
- data/lib/temporalio/client/workflow_handle.rb +2 -1
- data/lib/temporalio/client.rb +14 -11
- data/lib/temporalio/converters/data_converter.rb +1 -0
- data/lib/temporalio/converters/failure_converter.rb +7 -4
- data/lib/temporalio/internal/bridge/api/common/common.rb +2 -1
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
- data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +1 -1
- data/lib/temporalio/internal/bridge/client.rb +8 -1
- data/lib/temporalio/internal/bridge/runtime.rb +4 -1
- data/lib/temporalio/internal/bridge/worker.rb +3 -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/illegal_call_tracer.rb +9 -0
- 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/runtime.rb +25 -7
- data/lib/temporalio/scoped_logger.rb +15 -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 +19 -4
- data/lib/temporalio/worker.rb +54 -9
- data/lib/temporalio/workflow/future.rb +5 -0
- data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
- data/lib/temporalio/workflow.rb +16 -9
- 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 +1539 -0
- data/rbi/temporalio/api/batch/v1/message.rbi +1510 -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 +2675 -0
- data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
- data/rbi/temporalio/api/common/v1/message.rbi +3457 -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 +63 -0
- data/rbi/temporalio/api/enums/v1/batch_operation.rbi +56 -0
- data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
- data/rbi/temporalio/api/enums/v1/common.rbi +199 -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 +159 -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/time_skipping.rbi +22 -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 +1446 -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 +10757 -0
- data/rbi/temporalio/api/namespace/v1/message.rbi +1135 -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 +2571 -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 +2305 -0
- data/rbi/temporalio/api/workflow/v1/message.rbi +5031 -0
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +31061 -0
- data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1579 -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 +380 -0
- data/rbi/temporalio/client/connection.rbi +286 -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 +25 -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 +306 -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 +312 -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 +251 -0
- data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
- data/rbi/temporalio/internal/bridge/worker.rbi +252 -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 +194 -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 +265 -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 +754 -0
- data/sig/temporalio/api/batch/v1/message.rbs +680 -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 +1221 -0
- data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
- data/sig/temporalio/api/common/v1/message.rbs +1439 -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 +138 -0
- data/sig/temporalio/api/enums/v1/batch_operation.rbs +110 -0
- data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
- data/sig/temporalio/api/enums/v1/common.rbs +294 -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 +293 -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/time_skipping.rbs +58 -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 +551 -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 +4938 -0
- data/sig/temporalio/api/namespace/v1/message.rbs +508 -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 +1057 -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 +1126 -0
- data/sig/temporalio/api/workflow/v1/message.rbs +2332 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +13006 -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 +503 -0
- data/sig/temporalio/client/connection.rbs +156 -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 +15 -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 +173 -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 +156 -0
- data/sig/temporalio/internal/bridge/api.rbs +8 -0
- data/sig/temporalio/internal/bridge/client.rbs +148 -0
- data/sig/temporalio/internal/bridge/metric.rbs +28 -0
- data/sig/temporalio/internal/bridge/runtime.rbs +103 -0
- data/sig/temporalio/internal/bridge/testing.rbs +91 -0
- data/sig/temporalio/internal/bridge/worker.rbs +203 -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 +129 -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 +174 -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 +448 -2
|
@@ -0,0 +1,3457 @@
|
|
|
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
|
+
# Identifies a specific execution within a namespace. This is used for standalone activities
|
|
490
|
+
# executions in batch jobs currently.
|
|
491
|
+
class Temporalio::Api::Common::V1::Execution
|
|
492
|
+
include ::Google::Protobuf::MessageExts
|
|
493
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
494
|
+
|
|
495
|
+
sig do
|
|
496
|
+
params(
|
|
497
|
+
type: T.nilable(T.any(Symbol, String, Integer)),
|
|
498
|
+
business_id: T.nilable(String),
|
|
499
|
+
run_id: T.nilable(String)
|
|
500
|
+
).void
|
|
501
|
+
end
|
|
502
|
+
def initialize(
|
|
503
|
+
type: :EXECUTION_TYPE_UNSPECIFIED,
|
|
504
|
+
business_id: "",
|
|
505
|
+
run_id: ""
|
|
506
|
+
)
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
510
|
+
def type
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
514
|
+
def type=(value)
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
sig { void }
|
|
518
|
+
def clear_type
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
sig { returns(String) }
|
|
522
|
+
def business_id
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
sig { params(value: String).void }
|
|
526
|
+
def business_id=(value)
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
sig { void }
|
|
530
|
+
def clear_business_id
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
sig { returns(String) }
|
|
534
|
+
def run_id
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
sig { params(value: String).void }
|
|
538
|
+
def run_id=(value)
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
sig { void }
|
|
542
|
+
def clear_run_id
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
sig { params(field: String).returns(T.untyped) }
|
|
546
|
+
def [](field)
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
sig { params(field: String, value: T.untyped).void }
|
|
550
|
+
def []=(field, value)
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
554
|
+
def to_h
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Execution) }
|
|
558
|
+
def self.decode(str)
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
sig { params(msg: Temporalio::Api::Common::V1::Execution).returns(String) }
|
|
562
|
+
def self.encode(msg)
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Execution) }
|
|
566
|
+
def self.decode_json(str, **kw)
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
sig { params(msg: Temporalio::Api::Common::V1::Execution, kw: T.untyped).returns(String) }
|
|
570
|
+
def self.encode_json(msg, **kw)
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
574
|
+
def self.descriptor
|
|
575
|
+
end
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
# Represents the identifier used by a workflow author to define the workflow. Typically, the
|
|
579
|
+
# name of a function. This is sometimes referred to as the workflow's "name"
|
|
580
|
+
class Temporalio::Api::Common::V1::WorkflowType
|
|
581
|
+
include ::Google::Protobuf::MessageExts
|
|
582
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
583
|
+
|
|
584
|
+
sig do
|
|
585
|
+
params(
|
|
586
|
+
name: T.nilable(String)
|
|
587
|
+
).void
|
|
588
|
+
end
|
|
589
|
+
def initialize(
|
|
590
|
+
name: ""
|
|
591
|
+
)
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
sig { returns(String) }
|
|
595
|
+
def name
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
sig { params(value: String).void }
|
|
599
|
+
def name=(value)
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
sig { void }
|
|
603
|
+
def clear_name
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
sig { params(field: String).returns(T.untyped) }
|
|
607
|
+
def [](field)
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
sig { params(field: String, value: T.untyped).void }
|
|
611
|
+
def []=(field, value)
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
615
|
+
def to_h
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::WorkflowType) }
|
|
619
|
+
def self.decode(str)
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkflowType).returns(String) }
|
|
623
|
+
def self.encode(msg)
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::WorkflowType) }
|
|
627
|
+
def self.decode_json(str, **kw)
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkflowType, kw: T.untyped).returns(String) }
|
|
631
|
+
def self.encode_json(msg, **kw)
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
635
|
+
def self.descriptor
|
|
636
|
+
end
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
# Represents the identifier used by a activity author to define the activity. Typically, the
|
|
640
|
+
# name of a function. This is sometimes referred to as the activity's "name"
|
|
641
|
+
class Temporalio::Api::Common::V1::ActivityType
|
|
642
|
+
include ::Google::Protobuf::MessageExts
|
|
643
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
644
|
+
|
|
645
|
+
sig do
|
|
646
|
+
params(
|
|
647
|
+
name: T.nilable(String)
|
|
648
|
+
).void
|
|
649
|
+
end
|
|
650
|
+
def initialize(
|
|
651
|
+
name: ""
|
|
652
|
+
)
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
sig { returns(String) }
|
|
656
|
+
def name
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
sig { params(value: String).void }
|
|
660
|
+
def name=(value)
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
sig { void }
|
|
664
|
+
def clear_name
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
sig { params(field: String).returns(T.untyped) }
|
|
668
|
+
def [](field)
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
sig { params(field: String, value: T.untyped).void }
|
|
672
|
+
def []=(field, value)
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
676
|
+
def to_h
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::ActivityType) }
|
|
680
|
+
def self.decode(str)
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
sig { params(msg: Temporalio::Api::Common::V1::ActivityType).returns(String) }
|
|
684
|
+
def self.encode(msg)
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::ActivityType) }
|
|
688
|
+
def self.decode_json(str, **kw)
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
sig { params(msg: Temporalio::Api::Common::V1::ActivityType, kw: T.untyped).returns(String) }
|
|
692
|
+
def self.encode_json(msg, **kw)
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
696
|
+
def self.descriptor
|
|
697
|
+
end
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
# How retries ought to be handled, usable by both workflows and activities
|
|
701
|
+
class Temporalio::Api::Common::V1::RetryPolicy
|
|
702
|
+
include ::Google::Protobuf::MessageExts
|
|
703
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
704
|
+
|
|
705
|
+
sig do
|
|
706
|
+
params(
|
|
707
|
+
initial_interval: T.nilable(Google::Protobuf::Duration),
|
|
708
|
+
backoff_coefficient: T.nilable(Float),
|
|
709
|
+
maximum_interval: T.nilable(Google::Protobuf::Duration),
|
|
710
|
+
maximum_attempts: T.nilable(Integer),
|
|
711
|
+
non_retryable_error_types: T.nilable(T::Array[String])
|
|
712
|
+
).void
|
|
713
|
+
end
|
|
714
|
+
def initialize(
|
|
715
|
+
initial_interval: nil,
|
|
716
|
+
backoff_coefficient: 0.0,
|
|
717
|
+
maximum_interval: nil,
|
|
718
|
+
maximum_attempts: 0,
|
|
719
|
+
non_retryable_error_types: []
|
|
720
|
+
)
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
# Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
|
|
724
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
725
|
+
def initial_interval
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
# Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
|
|
729
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
730
|
+
def initial_interval=(value)
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
# Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
|
|
734
|
+
sig { void }
|
|
735
|
+
def clear_initial_interval
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
# Coefficient used to calculate the next retry interval.
|
|
739
|
+
# The next retry interval is previous interval multiplied by the coefficient.
|
|
740
|
+
# Must be 1 or larger.
|
|
741
|
+
sig { returns(Float) }
|
|
742
|
+
def backoff_coefficient
|
|
743
|
+
end
|
|
744
|
+
|
|
745
|
+
# Coefficient used to calculate the next retry interval.
|
|
746
|
+
# The next retry interval is previous interval multiplied by the coefficient.
|
|
747
|
+
# Must be 1 or larger.
|
|
748
|
+
sig { params(value: Float).void }
|
|
749
|
+
def backoff_coefficient=(value)
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
# Coefficient used to calculate the next retry interval.
|
|
753
|
+
# The next retry interval is previous interval multiplied by the coefficient.
|
|
754
|
+
# Must be 1 or larger.
|
|
755
|
+
sig { void }
|
|
756
|
+
def clear_backoff_coefficient
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
# Maximum interval between retries. Exponential backoff leads to interval increase.
|
|
760
|
+
# This value is the cap of the increase. Default is 100x of the initial interval.
|
|
761
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
762
|
+
def maximum_interval
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
# Maximum interval between retries. Exponential backoff leads to interval increase.
|
|
766
|
+
# This value is the cap of the increase. Default is 100x of the initial interval.
|
|
767
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
768
|
+
def maximum_interval=(value)
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# Maximum interval between retries. Exponential backoff leads to interval increase.
|
|
772
|
+
# This value is the cap of the increase. Default is 100x of the initial interval.
|
|
773
|
+
sig { void }
|
|
774
|
+
def clear_maximum_interval
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
# Maximum number of attempts. When exceeded the retries stop even if not expired yet.
|
|
778
|
+
# 1 disables retries. 0 means unlimited (up to the timeouts)
|
|
779
|
+
sig { returns(Integer) }
|
|
780
|
+
def maximum_attempts
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# Maximum number of attempts. When exceeded the retries stop even if not expired yet.
|
|
784
|
+
# 1 disables retries. 0 means unlimited (up to the timeouts)
|
|
785
|
+
sig { params(value: Integer).void }
|
|
786
|
+
def maximum_attempts=(value)
|
|
787
|
+
end
|
|
788
|
+
|
|
789
|
+
# Maximum number of attempts. When exceeded the retries stop even if not expired yet.
|
|
790
|
+
# 1 disables retries. 0 means unlimited (up to the timeouts)
|
|
791
|
+
sig { void }
|
|
792
|
+
def clear_maximum_attempts
|
|
793
|
+
end
|
|
794
|
+
|
|
795
|
+
# Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
|
|
796
|
+
# this is not a substring match, the error *type* (not message) must match exactly.
|
|
797
|
+
sig { returns(T::Array[String]) }
|
|
798
|
+
def non_retryable_error_types
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
# Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
|
|
802
|
+
# this is not a substring match, the error *type* (not message) must match exactly.
|
|
803
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
804
|
+
def non_retryable_error_types=(value)
|
|
805
|
+
end
|
|
806
|
+
|
|
807
|
+
# Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
|
|
808
|
+
# this is not a substring match, the error *type* (not message) must match exactly.
|
|
809
|
+
sig { void }
|
|
810
|
+
def clear_non_retryable_error_types
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
sig { params(field: String).returns(T.untyped) }
|
|
814
|
+
def [](field)
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
sig { params(field: String, value: T.untyped).void }
|
|
818
|
+
def []=(field, value)
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
822
|
+
def to_h
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::RetryPolicy) }
|
|
826
|
+
def self.decode(str)
|
|
827
|
+
end
|
|
828
|
+
|
|
829
|
+
sig { params(msg: Temporalio::Api::Common::V1::RetryPolicy).returns(String) }
|
|
830
|
+
def self.encode(msg)
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::RetryPolicy) }
|
|
834
|
+
def self.decode_json(str, **kw)
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
sig { params(msg: Temporalio::Api::Common::V1::RetryPolicy, kw: T.untyped).returns(String) }
|
|
838
|
+
def self.encode_json(msg, **kw)
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
842
|
+
def self.descriptor
|
|
843
|
+
end
|
|
844
|
+
end
|
|
845
|
+
|
|
846
|
+
# Metadata relevant for metering purposes
|
|
847
|
+
class Temporalio::Api::Common::V1::MeteringMetadata
|
|
848
|
+
include ::Google::Protobuf::MessageExts
|
|
849
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
850
|
+
|
|
851
|
+
sig do
|
|
852
|
+
params(
|
|
853
|
+
nonfirst_local_activity_execution_attempts: T.nilable(Integer)
|
|
854
|
+
).void
|
|
855
|
+
end
|
|
856
|
+
def initialize(
|
|
857
|
+
nonfirst_local_activity_execution_attempts: 0
|
|
858
|
+
)
|
|
859
|
+
end
|
|
860
|
+
|
|
861
|
+
# Count of local activities which have begun an execution attempt during this workflow task,
|
|
862
|
+
# and whose first attempt occurred in some previous task. This is used for metering
|
|
863
|
+
# purposes, and does not affect workflow state.
|
|
864
|
+
#
|
|
865
|
+
# (-- api-linter: core::0141::forbidden-types=disabled
|
|
866
|
+
# aip.dev/not-precedent: Negative values make no sense to represent. --)
|
|
867
|
+
sig { returns(Integer) }
|
|
868
|
+
def nonfirst_local_activity_execution_attempts
|
|
869
|
+
end
|
|
870
|
+
|
|
871
|
+
# Count of local activities which have begun an execution attempt during this workflow task,
|
|
872
|
+
# and whose first attempt occurred in some previous task. This is used for metering
|
|
873
|
+
# purposes, and does not affect workflow state.
|
|
874
|
+
#
|
|
875
|
+
# (-- api-linter: core::0141::forbidden-types=disabled
|
|
876
|
+
# aip.dev/not-precedent: Negative values make no sense to represent. --)
|
|
877
|
+
sig { params(value: Integer).void }
|
|
878
|
+
def nonfirst_local_activity_execution_attempts=(value)
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
# Count of local activities which have begun an execution attempt during this workflow task,
|
|
882
|
+
# and whose first attempt occurred in some previous task. This is used for metering
|
|
883
|
+
# purposes, and does not affect workflow state.
|
|
884
|
+
#
|
|
885
|
+
# (-- api-linter: core::0141::forbidden-types=disabled
|
|
886
|
+
# aip.dev/not-precedent: Negative values make no sense to represent. --)
|
|
887
|
+
sig { void }
|
|
888
|
+
def clear_nonfirst_local_activity_execution_attempts
|
|
889
|
+
end
|
|
890
|
+
|
|
891
|
+
sig { params(field: String).returns(T.untyped) }
|
|
892
|
+
def [](field)
|
|
893
|
+
end
|
|
894
|
+
|
|
895
|
+
sig { params(field: String, value: T.untyped).void }
|
|
896
|
+
def []=(field, value)
|
|
897
|
+
end
|
|
898
|
+
|
|
899
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
900
|
+
def to_h
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::MeteringMetadata) }
|
|
904
|
+
def self.decode(str)
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
sig { params(msg: Temporalio::Api::Common::V1::MeteringMetadata).returns(String) }
|
|
908
|
+
def self.encode(msg)
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::MeteringMetadata) }
|
|
912
|
+
def self.decode_json(str, **kw)
|
|
913
|
+
end
|
|
914
|
+
|
|
915
|
+
sig { params(msg: Temporalio::Api::Common::V1::MeteringMetadata, kw: T.untyped).returns(String) }
|
|
916
|
+
def self.encode_json(msg, **kw)
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
920
|
+
def self.descriptor
|
|
921
|
+
end
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
# Deprecated. This message is replaced with `Deployment` and `VersioningBehavior`.
|
|
925
|
+
# Identifies the version(s) of a worker that processed a task
|
|
926
|
+
class Temporalio::Api::Common::V1::WorkerVersionStamp
|
|
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
|
+
).void
|
|
935
|
+
end
|
|
936
|
+
def initialize(
|
|
937
|
+
build_id: "",
|
|
938
|
+
use_versioning: false
|
|
939
|
+
)
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
# An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
|
|
943
|
+
# message is included in requests which previously used that.
|
|
944
|
+
sig { returns(String) }
|
|
945
|
+
def build_id
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
# An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
|
|
949
|
+
# message is included in requests which previously used that.
|
|
950
|
+
sig { params(value: String).void }
|
|
951
|
+
def build_id=(value)
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
# An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
|
|
955
|
+
# message is included in requests which previously used that.
|
|
956
|
+
sig { void }
|
|
957
|
+
def clear_build_id
|
|
958
|
+
end
|
|
959
|
+
|
|
960
|
+
# If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
|
|
961
|
+
# marker for workflow reset points and the BuildIDs search attribute.
|
|
962
|
+
sig { returns(T::Boolean) }
|
|
963
|
+
def use_versioning
|
|
964
|
+
end
|
|
965
|
+
|
|
966
|
+
# If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
|
|
967
|
+
# marker for workflow reset points and the BuildIDs search attribute.
|
|
968
|
+
sig { params(value: T::Boolean).void }
|
|
969
|
+
def use_versioning=(value)
|
|
970
|
+
end
|
|
971
|
+
|
|
972
|
+
# If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
|
|
973
|
+
# marker for workflow reset points and the BuildIDs search attribute.
|
|
974
|
+
sig { void }
|
|
975
|
+
def clear_use_versioning
|
|
976
|
+
end
|
|
977
|
+
|
|
978
|
+
sig { params(field: String).returns(T.untyped) }
|
|
979
|
+
def [](field)
|
|
980
|
+
end
|
|
981
|
+
|
|
982
|
+
sig { params(field: String, value: T.untyped).void }
|
|
983
|
+
def []=(field, value)
|
|
984
|
+
end
|
|
985
|
+
|
|
986
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
987
|
+
def to_h
|
|
988
|
+
end
|
|
989
|
+
|
|
990
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::WorkerVersionStamp) }
|
|
991
|
+
def self.decode(str)
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerVersionStamp).returns(String) }
|
|
995
|
+
def self.encode(msg)
|
|
996
|
+
end
|
|
997
|
+
|
|
998
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::WorkerVersionStamp) }
|
|
999
|
+
def self.decode_json(str, **kw)
|
|
1000
|
+
end
|
|
1001
|
+
|
|
1002
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerVersionStamp, kw: T.untyped).returns(String) }
|
|
1003
|
+
def self.encode_json(msg, **kw)
|
|
1004
|
+
end
|
|
1005
|
+
|
|
1006
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1007
|
+
def self.descriptor
|
|
1008
|
+
end
|
|
1009
|
+
end
|
|
1010
|
+
|
|
1011
|
+
# Identifies the version that a worker is compatible with when polling or identifying itself,
|
|
1012
|
+
# and whether or not this worker is opting into the build-id based versioning feature. This is
|
|
1013
|
+
# used by matching to determine which workers ought to receive what tasks.
|
|
1014
|
+
# Deprecated. Use WorkerDeploymentOptions instead.
|
|
1015
|
+
class Temporalio::Api::Common::V1::WorkerVersionCapabilities
|
|
1016
|
+
include ::Google::Protobuf::MessageExts
|
|
1017
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1018
|
+
|
|
1019
|
+
sig do
|
|
1020
|
+
params(
|
|
1021
|
+
build_id: T.nilable(String),
|
|
1022
|
+
use_versioning: T.nilable(T::Boolean),
|
|
1023
|
+
deployment_series_name: T.nilable(String)
|
|
1024
|
+
).void
|
|
1025
|
+
end
|
|
1026
|
+
def initialize(
|
|
1027
|
+
build_id: "",
|
|
1028
|
+
use_versioning: false,
|
|
1029
|
+
deployment_series_name: ""
|
|
1030
|
+
)
|
|
1031
|
+
end
|
|
1032
|
+
|
|
1033
|
+
# An opaque whole-worker identifier
|
|
1034
|
+
sig { returns(String) }
|
|
1035
|
+
def build_id
|
|
1036
|
+
end
|
|
1037
|
+
|
|
1038
|
+
# An opaque whole-worker identifier
|
|
1039
|
+
sig { params(value: String).void }
|
|
1040
|
+
def build_id=(value)
|
|
1041
|
+
end
|
|
1042
|
+
|
|
1043
|
+
# An opaque whole-worker identifier
|
|
1044
|
+
sig { void }
|
|
1045
|
+
def clear_build_id
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1048
|
+
# If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
|
|
1049
|
+
# tasks.
|
|
1050
|
+
sig { returns(T::Boolean) }
|
|
1051
|
+
def use_versioning
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
# If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
|
|
1055
|
+
# tasks.
|
|
1056
|
+
sig { params(value: T::Boolean).void }
|
|
1057
|
+
def use_versioning=(value)
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
# If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
|
|
1061
|
+
# tasks.
|
|
1062
|
+
sig { void }
|
|
1063
|
+
def clear_use_versioning
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
# Must be sent if user has set a deployment series name (versioning-3).
|
|
1067
|
+
sig { returns(String) }
|
|
1068
|
+
def deployment_series_name
|
|
1069
|
+
end
|
|
1070
|
+
|
|
1071
|
+
# Must be sent if user has set a deployment series name (versioning-3).
|
|
1072
|
+
sig { params(value: String).void }
|
|
1073
|
+
def deployment_series_name=(value)
|
|
1074
|
+
end
|
|
1075
|
+
|
|
1076
|
+
# Must be sent if user has set a deployment series name (versioning-3).
|
|
1077
|
+
sig { void }
|
|
1078
|
+
def clear_deployment_series_name
|
|
1079
|
+
end
|
|
1080
|
+
|
|
1081
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1082
|
+
def [](field)
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1086
|
+
def []=(field, value)
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1090
|
+
def to_h
|
|
1091
|
+
end
|
|
1092
|
+
|
|
1093
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::WorkerVersionCapabilities) }
|
|
1094
|
+
def self.decode(str)
|
|
1095
|
+
end
|
|
1096
|
+
|
|
1097
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerVersionCapabilities).returns(String) }
|
|
1098
|
+
def self.encode(msg)
|
|
1099
|
+
end
|
|
1100
|
+
|
|
1101
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::WorkerVersionCapabilities) }
|
|
1102
|
+
def self.decode_json(str, **kw)
|
|
1103
|
+
end
|
|
1104
|
+
|
|
1105
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerVersionCapabilities, kw: T.untyped).returns(String) }
|
|
1106
|
+
def self.encode_json(msg, **kw)
|
|
1107
|
+
end
|
|
1108
|
+
|
|
1109
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1110
|
+
def self.descriptor
|
|
1111
|
+
end
|
|
1112
|
+
end
|
|
1113
|
+
|
|
1114
|
+
# Describes where and how to reset a workflow, used for batch reset currently
|
|
1115
|
+
# and may be used for single-workflow reset later.
|
|
1116
|
+
class Temporalio::Api::Common::V1::ResetOptions
|
|
1117
|
+
include ::Google::Protobuf::MessageExts
|
|
1118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1119
|
+
|
|
1120
|
+
sig do
|
|
1121
|
+
params(
|
|
1122
|
+
first_workflow_task: T.nilable(Google::Protobuf::Empty),
|
|
1123
|
+
last_workflow_task: T.nilable(Google::Protobuf::Empty),
|
|
1124
|
+
workflow_task_id: T.nilable(Integer),
|
|
1125
|
+
build_id: T.nilable(String),
|
|
1126
|
+
reset_reapply_type: T.nilable(T.any(Symbol, String, Integer)),
|
|
1127
|
+
current_run_only: T.nilable(T::Boolean),
|
|
1128
|
+
reset_reapply_exclude_types: T.nilable(T::Array[T.any(Symbol, String, Integer)])
|
|
1129
|
+
).void
|
|
1130
|
+
end
|
|
1131
|
+
def initialize(
|
|
1132
|
+
first_workflow_task: nil,
|
|
1133
|
+
last_workflow_task: nil,
|
|
1134
|
+
workflow_task_id: 0,
|
|
1135
|
+
build_id: "",
|
|
1136
|
+
reset_reapply_type: :RESET_REAPPLY_TYPE_UNSPECIFIED,
|
|
1137
|
+
current_run_only: false,
|
|
1138
|
+
reset_reapply_exclude_types: []
|
|
1139
|
+
)
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
# Resets to the first workflow task completed or started event.
|
|
1143
|
+
sig { returns(T.nilable(Google::Protobuf::Empty)) }
|
|
1144
|
+
def first_workflow_task
|
|
1145
|
+
end
|
|
1146
|
+
|
|
1147
|
+
# Resets to the first workflow task completed or started event.
|
|
1148
|
+
sig { params(value: T.nilable(Google::Protobuf::Empty)).void }
|
|
1149
|
+
def first_workflow_task=(value)
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
# Resets to the first workflow task completed or started event.
|
|
1153
|
+
sig { void }
|
|
1154
|
+
def clear_first_workflow_task
|
|
1155
|
+
end
|
|
1156
|
+
|
|
1157
|
+
# Resets to the last workflow task completed or started event.
|
|
1158
|
+
sig { returns(T.nilable(Google::Protobuf::Empty)) }
|
|
1159
|
+
def last_workflow_task
|
|
1160
|
+
end
|
|
1161
|
+
|
|
1162
|
+
# Resets to the last workflow task completed or started event.
|
|
1163
|
+
sig { params(value: T.nilable(Google::Protobuf::Empty)).void }
|
|
1164
|
+
def last_workflow_task=(value)
|
|
1165
|
+
end
|
|
1166
|
+
|
|
1167
|
+
# Resets to the last workflow task completed or started event.
|
|
1168
|
+
sig { void }
|
|
1169
|
+
def clear_last_workflow_task
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
# The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
|
|
1173
|
+
# `WORKFLOW_TASK_STARTED` event to reset to.
|
|
1174
|
+
# Note that this option doesn't make sense when used as part of a batch request.
|
|
1175
|
+
sig { returns(Integer) }
|
|
1176
|
+
def workflow_task_id
|
|
1177
|
+
end
|
|
1178
|
+
|
|
1179
|
+
# The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
|
|
1180
|
+
# `WORKFLOW_TASK_STARTED` event to reset to.
|
|
1181
|
+
# Note that this option doesn't make sense when used as part of a batch request.
|
|
1182
|
+
sig { params(value: Integer).void }
|
|
1183
|
+
def workflow_task_id=(value)
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
# The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
|
|
1187
|
+
# `WORKFLOW_TASK_STARTED` event to reset to.
|
|
1188
|
+
# Note that this option doesn't make sense when used as part of a batch request.
|
|
1189
|
+
sig { void }
|
|
1190
|
+
def clear_workflow_task_id
|
|
1191
|
+
end
|
|
1192
|
+
|
|
1193
|
+
# Resets to the first workflow task processed by this build id.
|
|
1194
|
+
# If the workflow was not processed by the build id, or the workflow task can't be
|
|
1195
|
+
# determined, no reset will be performed.
|
|
1196
|
+
# Note that by default, this reset is allowed to be to a prior run in a chain of
|
|
1197
|
+
# continue-as-new.
|
|
1198
|
+
sig { returns(String) }
|
|
1199
|
+
def build_id
|
|
1200
|
+
end
|
|
1201
|
+
|
|
1202
|
+
# Resets to the first workflow task processed by this build id.
|
|
1203
|
+
# If the workflow was not processed by the build id, or the workflow task can't be
|
|
1204
|
+
# determined, no reset will be performed.
|
|
1205
|
+
# Note that by default, this reset is allowed to be to a prior run in a chain of
|
|
1206
|
+
# continue-as-new.
|
|
1207
|
+
sig { params(value: String).void }
|
|
1208
|
+
def build_id=(value)
|
|
1209
|
+
end
|
|
1210
|
+
|
|
1211
|
+
# Resets to the first workflow task processed by this build id.
|
|
1212
|
+
# If the workflow was not processed by the build id, or the workflow task can't be
|
|
1213
|
+
# determined, no reset will be performed.
|
|
1214
|
+
# Note that by default, this reset is allowed to be to a prior run in a chain of
|
|
1215
|
+
# continue-as-new.
|
|
1216
|
+
sig { void }
|
|
1217
|
+
def clear_build_id
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
# Deprecated. Use `options`.
|
|
1221
|
+
# Default: RESET_REAPPLY_TYPE_SIGNAL
|
|
1222
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
1223
|
+
def reset_reapply_type
|
|
1224
|
+
end
|
|
1225
|
+
|
|
1226
|
+
# Deprecated. Use `options`.
|
|
1227
|
+
# Default: RESET_REAPPLY_TYPE_SIGNAL
|
|
1228
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
1229
|
+
def reset_reapply_type=(value)
|
|
1230
|
+
end
|
|
1231
|
+
|
|
1232
|
+
# Deprecated. Use `options`.
|
|
1233
|
+
# Default: RESET_REAPPLY_TYPE_SIGNAL
|
|
1234
|
+
sig { void }
|
|
1235
|
+
def clear_reset_reapply_type
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
# If true, limit the reset to only within the current run. (Applies to build_id targets and
|
|
1239
|
+
# possibly others in the future.)
|
|
1240
|
+
sig { returns(T::Boolean) }
|
|
1241
|
+
def current_run_only
|
|
1242
|
+
end
|
|
1243
|
+
|
|
1244
|
+
# If true, limit the reset to only within the current run. (Applies to build_id targets and
|
|
1245
|
+
# possibly others in the future.)
|
|
1246
|
+
sig { params(value: T::Boolean).void }
|
|
1247
|
+
def current_run_only=(value)
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1250
|
+
# If true, limit the reset to only within the current run. (Applies to build_id targets and
|
|
1251
|
+
# possibly others in the future.)
|
|
1252
|
+
sig { void }
|
|
1253
|
+
def clear_current_run_only
|
|
1254
|
+
end
|
|
1255
|
+
|
|
1256
|
+
# Event types not to be reapplied
|
|
1257
|
+
sig { returns(T::Array[T.any(Symbol, Integer)]) }
|
|
1258
|
+
def reset_reapply_exclude_types
|
|
1259
|
+
end
|
|
1260
|
+
|
|
1261
|
+
# Event types not to be reapplied
|
|
1262
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
1263
|
+
def reset_reapply_exclude_types=(value)
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1266
|
+
# Event types not to be reapplied
|
|
1267
|
+
sig { void }
|
|
1268
|
+
def clear_reset_reapply_exclude_types
|
|
1269
|
+
end
|
|
1270
|
+
|
|
1271
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1272
|
+
def target
|
|
1273
|
+
end
|
|
1274
|
+
|
|
1275
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1276
|
+
def [](field)
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1279
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1280
|
+
def []=(field, value)
|
|
1281
|
+
end
|
|
1282
|
+
|
|
1283
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1284
|
+
def to_h
|
|
1285
|
+
end
|
|
1286
|
+
|
|
1287
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::ResetOptions) }
|
|
1288
|
+
def self.decode(str)
|
|
1289
|
+
end
|
|
1290
|
+
|
|
1291
|
+
sig { params(msg: Temporalio::Api::Common::V1::ResetOptions).returns(String) }
|
|
1292
|
+
def self.encode(msg)
|
|
1293
|
+
end
|
|
1294
|
+
|
|
1295
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::ResetOptions) }
|
|
1296
|
+
def self.decode_json(str, **kw)
|
|
1297
|
+
end
|
|
1298
|
+
|
|
1299
|
+
sig { params(msg: Temporalio::Api::Common::V1::ResetOptions, kw: T.untyped).returns(String) }
|
|
1300
|
+
def self.encode_json(msg, **kw)
|
|
1301
|
+
end
|
|
1302
|
+
|
|
1303
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1304
|
+
def self.descriptor
|
|
1305
|
+
end
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
# Callback to attach to various events in the system, e.g. workflow run completion.
|
|
1309
|
+
class Temporalio::Api::Common::V1::Callback
|
|
1310
|
+
include ::Google::Protobuf::MessageExts
|
|
1311
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1312
|
+
|
|
1313
|
+
sig do
|
|
1314
|
+
params(
|
|
1315
|
+
nexus: T.nilable(Temporalio::Api::Common::V1::Callback::Nexus),
|
|
1316
|
+
internal: T.nilable(Temporalio::Api::Common::V1::Callback::Internal),
|
|
1317
|
+
links: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)])
|
|
1318
|
+
).void
|
|
1319
|
+
end
|
|
1320
|
+
def initialize(
|
|
1321
|
+
nexus: nil,
|
|
1322
|
+
internal: nil,
|
|
1323
|
+
links: []
|
|
1324
|
+
)
|
|
1325
|
+
end
|
|
1326
|
+
|
|
1327
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Callback::Nexus)) }
|
|
1328
|
+
def nexus
|
|
1329
|
+
end
|
|
1330
|
+
|
|
1331
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Callback::Nexus)).void }
|
|
1332
|
+
def nexus=(value)
|
|
1333
|
+
end
|
|
1334
|
+
|
|
1335
|
+
sig { void }
|
|
1336
|
+
def clear_nexus
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1339
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Callback::Internal)) }
|
|
1340
|
+
def internal
|
|
1341
|
+
end
|
|
1342
|
+
|
|
1343
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Callback::Internal)).void }
|
|
1344
|
+
def internal=(value)
|
|
1345
|
+
end
|
|
1346
|
+
|
|
1347
|
+
sig { void }
|
|
1348
|
+
def clear_internal
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1351
|
+
# Links associated with the callback. It can be used to link to underlying resources of the
|
|
1352
|
+
# callback.
|
|
1353
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]) }
|
|
1354
|
+
def links
|
|
1355
|
+
end
|
|
1356
|
+
|
|
1357
|
+
# Links associated with the callback. It can be used to link to underlying resources of the
|
|
1358
|
+
# callback.
|
|
1359
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
1360
|
+
def links=(value)
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1363
|
+
# Links associated with the callback. It can be used to link to underlying resources of the
|
|
1364
|
+
# callback.
|
|
1365
|
+
sig { void }
|
|
1366
|
+
def clear_links
|
|
1367
|
+
end
|
|
1368
|
+
|
|
1369
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1370
|
+
def variant
|
|
1371
|
+
end
|
|
1372
|
+
|
|
1373
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1374
|
+
def [](field)
|
|
1375
|
+
end
|
|
1376
|
+
|
|
1377
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1378
|
+
def []=(field, value)
|
|
1379
|
+
end
|
|
1380
|
+
|
|
1381
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1382
|
+
def to_h
|
|
1383
|
+
end
|
|
1384
|
+
|
|
1385
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Callback) }
|
|
1386
|
+
def self.decode(str)
|
|
1387
|
+
end
|
|
1388
|
+
|
|
1389
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback).returns(String) }
|
|
1390
|
+
def self.encode(msg)
|
|
1391
|
+
end
|
|
1392
|
+
|
|
1393
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Callback) }
|
|
1394
|
+
def self.decode_json(str, **kw)
|
|
1395
|
+
end
|
|
1396
|
+
|
|
1397
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback, kw: T.untyped).returns(String) }
|
|
1398
|
+
def self.encode_json(msg, **kw)
|
|
1399
|
+
end
|
|
1400
|
+
|
|
1401
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1402
|
+
def self.descriptor
|
|
1403
|
+
end
|
|
1404
|
+
end
|
|
1405
|
+
|
|
1406
|
+
# Link can be associated with history events. It might contain information about an external entity
|
|
1407
|
+
# related to the history event. For example, workflow A makes a Nexus call that starts workflow B:
|
|
1408
|
+
# in this case, a history event in workflow A could contain a Link to the workflow started event in
|
|
1409
|
+
# workflow B, and vice-versa.
|
|
1410
|
+
class Temporalio::Api::Common::V1::Link
|
|
1411
|
+
include ::Google::Protobuf::MessageExts
|
|
1412
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1413
|
+
|
|
1414
|
+
sig do
|
|
1415
|
+
params(
|
|
1416
|
+
workflow_event: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent),
|
|
1417
|
+
batch_job: T.nilable(Temporalio::Api::Common::V1::Link::BatchJob),
|
|
1418
|
+
activity: T.nilable(Temporalio::Api::Common::V1::Link::Activity),
|
|
1419
|
+
nexus_operation: T.nilable(Temporalio::Api::Common::V1::Link::NexusOperation),
|
|
1420
|
+
workflow: T.nilable(Temporalio::Api::Common::V1::Link::Workflow)
|
|
1421
|
+
).void
|
|
1422
|
+
end
|
|
1423
|
+
def initialize(
|
|
1424
|
+
workflow_event: nil,
|
|
1425
|
+
batch_job: nil,
|
|
1426
|
+
activity: nil,
|
|
1427
|
+
nexus_operation: nil,
|
|
1428
|
+
workflow: nil
|
|
1429
|
+
)
|
|
1430
|
+
end
|
|
1431
|
+
|
|
1432
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent)) }
|
|
1433
|
+
def workflow_event
|
|
1434
|
+
end
|
|
1435
|
+
|
|
1436
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent)).void }
|
|
1437
|
+
def workflow_event=(value)
|
|
1438
|
+
end
|
|
1439
|
+
|
|
1440
|
+
sig { void }
|
|
1441
|
+
def clear_workflow_event
|
|
1442
|
+
end
|
|
1443
|
+
|
|
1444
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::BatchJob)) }
|
|
1445
|
+
def batch_job
|
|
1446
|
+
end
|
|
1447
|
+
|
|
1448
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::BatchJob)).void }
|
|
1449
|
+
def batch_job=(value)
|
|
1450
|
+
end
|
|
1451
|
+
|
|
1452
|
+
sig { void }
|
|
1453
|
+
def clear_batch_job
|
|
1454
|
+
end
|
|
1455
|
+
|
|
1456
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::Activity)) }
|
|
1457
|
+
def activity
|
|
1458
|
+
end
|
|
1459
|
+
|
|
1460
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::Activity)).void }
|
|
1461
|
+
def activity=(value)
|
|
1462
|
+
end
|
|
1463
|
+
|
|
1464
|
+
sig { void }
|
|
1465
|
+
def clear_activity
|
|
1466
|
+
end
|
|
1467
|
+
|
|
1468
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::NexusOperation)) }
|
|
1469
|
+
def nexus_operation
|
|
1470
|
+
end
|
|
1471
|
+
|
|
1472
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::NexusOperation)).void }
|
|
1473
|
+
def nexus_operation=(value)
|
|
1474
|
+
end
|
|
1475
|
+
|
|
1476
|
+
sig { void }
|
|
1477
|
+
def clear_nexus_operation
|
|
1478
|
+
end
|
|
1479
|
+
|
|
1480
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::Workflow)) }
|
|
1481
|
+
def workflow
|
|
1482
|
+
end
|
|
1483
|
+
|
|
1484
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::Workflow)).void }
|
|
1485
|
+
def workflow=(value)
|
|
1486
|
+
end
|
|
1487
|
+
|
|
1488
|
+
sig { void }
|
|
1489
|
+
def clear_workflow
|
|
1490
|
+
end
|
|
1491
|
+
|
|
1492
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1493
|
+
def variant
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1496
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1497
|
+
def [](field)
|
|
1498
|
+
end
|
|
1499
|
+
|
|
1500
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1501
|
+
def []=(field, value)
|
|
1502
|
+
end
|
|
1503
|
+
|
|
1504
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1505
|
+
def to_h
|
|
1506
|
+
end
|
|
1507
|
+
|
|
1508
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link) }
|
|
1509
|
+
def self.decode(str)
|
|
1510
|
+
end
|
|
1511
|
+
|
|
1512
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link).returns(String) }
|
|
1513
|
+
def self.encode(msg)
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link) }
|
|
1517
|
+
def self.decode_json(str, **kw)
|
|
1518
|
+
end
|
|
1519
|
+
|
|
1520
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link, kw: T.untyped).returns(String) }
|
|
1521
|
+
def self.encode_json(msg, **kw)
|
|
1522
|
+
end
|
|
1523
|
+
|
|
1524
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1525
|
+
def self.descriptor
|
|
1526
|
+
end
|
|
1527
|
+
end
|
|
1528
|
+
|
|
1529
|
+
# Principal is an authenticated caller identity computed by the server from trusted
|
|
1530
|
+
# authentication context.
|
|
1531
|
+
class Temporalio::Api::Common::V1::Principal
|
|
1532
|
+
include ::Google::Protobuf::MessageExts
|
|
1533
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1534
|
+
|
|
1535
|
+
sig do
|
|
1536
|
+
params(
|
|
1537
|
+
type: T.nilable(String),
|
|
1538
|
+
name: T.nilable(String)
|
|
1539
|
+
).void
|
|
1540
|
+
end
|
|
1541
|
+
def initialize(
|
|
1542
|
+
type: "",
|
|
1543
|
+
name: ""
|
|
1544
|
+
)
|
|
1545
|
+
end
|
|
1546
|
+
|
|
1547
|
+
# Low-cardinality category of the principal (e.g., "jwt", "users").
|
|
1548
|
+
sig { returns(String) }
|
|
1549
|
+
def type
|
|
1550
|
+
end
|
|
1551
|
+
|
|
1552
|
+
# Low-cardinality category of the principal (e.g., "jwt", "users").
|
|
1553
|
+
sig { params(value: String).void }
|
|
1554
|
+
def type=(value)
|
|
1555
|
+
end
|
|
1556
|
+
|
|
1557
|
+
# Low-cardinality category of the principal (e.g., "jwt", "users").
|
|
1558
|
+
sig { void }
|
|
1559
|
+
def clear_type
|
|
1560
|
+
end
|
|
1561
|
+
|
|
1562
|
+
# Identifier within that category (e.g., sub JWT claim, email address).
|
|
1563
|
+
sig { returns(String) }
|
|
1564
|
+
def name
|
|
1565
|
+
end
|
|
1566
|
+
|
|
1567
|
+
# Identifier within that category (e.g., sub JWT claim, email address).
|
|
1568
|
+
sig { params(value: String).void }
|
|
1569
|
+
def name=(value)
|
|
1570
|
+
end
|
|
1571
|
+
|
|
1572
|
+
# Identifier within that category (e.g., sub JWT claim, email address).
|
|
1573
|
+
sig { void }
|
|
1574
|
+
def clear_name
|
|
1575
|
+
end
|
|
1576
|
+
|
|
1577
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1578
|
+
def [](field)
|
|
1579
|
+
end
|
|
1580
|
+
|
|
1581
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1582
|
+
def []=(field, value)
|
|
1583
|
+
end
|
|
1584
|
+
|
|
1585
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1586
|
+
def to_h
|
|
1587
|
+
end
|
|
1588
|
+
|
|
1589
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Principal) }
|
|
1590
|
+
def self.decode(str)
|
|
1591
|
+
end
|
|
1592
|
+
|
|
1593
|
+
sig { params(msg: Temporalio::Api::Common::V1::Principal).returns(String) }
|
|
1594
|
+
def self.encode(msg)
|
|
1595
|
+
end
|
|
1596
|
+
|
|
1597
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Principal) }
|
|
1598
|
+
def self.decode_json(str, **kw)
|
|
1599
|
+
end
|
|
1600
|
+
|
|
1601
|
+
sig { params(msg: Temporalio::Api::Common::V1::Principal, kw: T.untyped).returns(String) }
|
|
1602
|
+
def self.encode_json(msg, **kw)
|
|
1603
|
+
end
|
|
1604
|
+
|
|
1605
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1606
|
+
def self.descriptor
|
|
1607
|
+
end
|
|
1608
|
+
end
|
|
1609
|
+
|
|
1610
|
+
# Priority contains metadata that controls relative ordering of task processing
|
|
1611
|
+
# when tasks are backed up in a queue. Initially, Priority will be used in
|
|
1612
|
+
# matching (workflow and activity) task queues. Later it may be used in history
|
|
1613
|
+
# task queues and in rate limiting decisions.
|
|
1614
|
+
#
|
|
1615
|
+
# Priority is attached to workflows and activities. By default, activities
|
|
1616
|
+
# inherit Priority from the workflow that created them, but may override fields
|
|
1617
|
+
# when an activity is started or modified.
|
|
1618
|
+
#
|
|
1619
|
+
# Despite being named "Priority", this message also contains fields that
|
|
1620
|
+
# control "fairness" mechanisms.
|
|
1621
|
+
#
|
|
1622
|
+
# For all fields, the field not present or equal to zero/empty string means to
|
|
1623
|
+
# inherit the value from the calling workflow, or if there is no calling
|
|
1624
|
+
# workflow, then use the default value.
|
|
1625
|
+
#
|
|
1626
|
+
# For all fields other than fairness_key, the zero value isn't meaningful so
|
|
1627
|
+
# there's no confusion between inherit/default and a meaningful value. For
|
|
1628
|
+
# fairness_key, the empty string will be interpreted as "inherit". This means
|
|
1629
|
+
# that if a workflow has a non-empty fairness key, you can't override the
|
|
1630
|
+
# fairness key of its activity to the empty string.
|
|
1631
|
+
#
|
|
1632
|
+
# The overall semantics of Priority are:
|
|
1633
|
+
# 1. First, consider "priority": higher priority (lower number) goes first.
|
|
1634
|
+
# 2. Then, consider fairness: try to dispatch tasks for different fairness keys
|
|
1635
|
+
# in proportion to their weight.
|
|
1636
|
+
#
|
|
1637
|
+
# Applications may use any subset of mechanisms that are useful to them and
|
|
1638
|
+
# leave the other fields to use default values.
|
|
1639
|
+
#
|
|
1640
|
+
# Not all queues in the system may support the "full" semantics of all priority
|
|
1641
|
+
# fields. (Currently only support in matching task queues is planned.)
|
|
1642
|
+
class Temporalio::Api::Common::V1::Priority
|
|
1643
|
+
include ::Google::Protobuf::MessageExts
|
|
1644
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1645
|
+
|
|
1646
|
+
sig do
|
|
1647
|
+
params(
|
|
1648
|
+
priority_key: T.nilable(Integer),
|
|
1649
|
+
fairness_key: T.nilable(String),
|
|
1650
|
+
fairness_weight: T.nilable(Float)
|
|
1651
|
+
).void
|
|
1652
|
+
end
|
|
1653
|
+
def initialize(
|
|
1654
|
+
priority_key: 0,
|
|
1655
|
+
fairness_key: "",
|
|
1656
|
+
fairness_weight: 0.0
|
|
1657
|
+
)
|
|
1658
|
+
end
|
|
1659
|
+
|
|
1660
|
+
# Priority key is a positive integer from 1 to n, where smaller integers
|
|
1661
|
+
# correspond to higher priorities (tasks run sooner). In general, tasks in
|
|
1662
|
+
# a queue should be processed in close to priority order, although small
|
|
1663
|
+
# deviations are possible.
|
|
1664
|
+
#
|
|
1665
|
+
# The maximum priority value (minimum priority) is determined by server
|
|
1666
|
+
# configuration, and defaults to 5.
|
|
1667
|
+
#
|
|
1668
|
+
# If priority is not present (or zero), then the effective priority will be
|
|
1669
|
+
# the default priority, which is calculated by (min+max)/2. With the
|
|
1670
|
+
# default max of 5, and min of 1, that comes out to 3.
|
|
1671
|
+
sig { returns(Integer) }
|
|
1672
|
+
def priority_key
|
|
1673
|
+
end
|
|
1674
|
+
|
|
1675
|
+
# Priority key is a positive integer from 1 to n, where smaller integers
|
|
1676
|
+
# correspond to higher priorities (tasks run sooner). In general, tasks in
|
|
1677
|
+
# a queue should be processed in close to priority order, although small
|
|
1678
|
+
# deviations are possible.
|
|
1679
|
+
#
|
|
1680
|
+
# The maximum priority value (minimum priority) is determined by server
|
|
1681
|
+
# configuration, and defaults to 5.
|
|
1682
|
+
#
|
|
1683
|
+
# If priority is not present (or zero), then the effective priority will be
|
|
1684
|
+
# the default priority, which is calculated by (min+max)/2. With the
|
|
1685
|
+
# default max of 5, and min of 1, that comes out to 3.
|
|
1686
|
+
sig { params(value: Integer).void }
|
|
1687
|
+
def priority_key=(value)
|
|
1688
|
+
end
|
|
1689
|
+
|
|
1690
|
+
# Priority key is a positive integer from 1 to n, where smaller integers
|
|
1691
|
+
# correspond to higher priorities (tasks run sooner). In general, tasks in
|
|
1692
|
+
# a queue should be processed in close to priority order, although small
|
|
1693
|
+
# deviations are possible.
|
|
1694
|
+
#
|
|
1695
|
+
# The maximum priority value (minimum priority) is determined by server
|
|
1696
|
+
# configuration, and defaults to 5.
|
|
1697
|
+
#
|
|
1698
|
+
# If priority is not present (or zero), then the effective priority will be
|
|
1699
|
+
# the default priority, which is calculated by (min+max)/2. With the
|
|
1700
|
+
# default max of 5, and min of 1, that comes out to 3.
|
|
1701
|
+
sig { void }
|
|
1702
|
+
def clear_priority_key
|
|
1703
|
+
end
|
|
1704
|
+
|
|
1705
|
+
# Fairness key is a short string that's used as a key for a fairness
|
|
1706
|
+
# balancing mechanism. It may correspond to a tenant id, or to a fixed
|
|
1707
|
+
# string like "high" or "low". The default is the empty string.
|
|
1708
|
+
#
|
|
1709
|
+
# The fairness mechanism attempts to dispatch tasks for a given key in
|
|
1710
|
+
# proportion to its weight. For example, using a thousand distinct tenant
|
|
1711
|
+
# ids, each with a weight of 1.0 (the default) will result in each tenant
|
|
1712
|
+
# getting a roughly equal share of task dispatch throughput.
|
|
1713
|
+
#
|
|
1714
|
+
# (Note: this does not imply equal share of worker capacity! Fairness
|
|
1715
|
+
# decisions are made based on queue statistics, not
|
|
1716
|
+
# current worker load.)
|
|
1717
|
+
#
|
|
1718
|
+
# As another example, using keys "high" and "low" with weight 9.0 and 1.0
|
|
1719
|
+
# respectively will prefer dispatching "high" tasks over "low" tasks at a
|
|
1720
|
+
# 9:1 ratio, while allowing either key to use all worker capacity if the
|
|
1721
|
+
# other is not present.
|
|
1722
|
+
#
|
|
1723
|
+
# All fairness mechanisms, including rate limits, are best-effort and
|
|
1724
|
+
# probabilistic. The results may not match what a "perfect" algorithm with
|
|
1725
|
+
# infinite resources would produce. The more unique keys are used, the less
|
|
1726
|
+
# accurate the results will be.
|
|
1727
|
+
#
|
|
1728
|
+
# Fairness keys are limited to 64 bytes.
|
|
1729
|
+
sig { returns(String) }
|
|
1730
|
+
def fairness_key
|
|
1731
|
+
end
|
|
1732
|
+
|
|
1733
|
+
# Fairness key is a short string that's used as a key for a fairness
|
|
1734
|
+
# balancing mechanism. It may correspond to a tenant id, or to a fixed
|
|
1735
|
+
# string like "high" or "low". The default is the empty string.
|
|
1736
|
+
#
|
|
1737
|
+
# The fairness mechanism attempts to dispatch tasks for a given key in
|
|
1738
|
+
# proportion to its weight. For example, using a thousand distinct tenant
|
|
1739
|
+
# ids, each with a weight of 1.0 (the default) will result in each tenant
|
|
1740
|
+
# getting a roughly equal share of task dispatch throughput.
|
|
1741
|
+
#
|
|
1742
|
+
# (Note: this does not imply equal share of worker capacity! Fairness
|
|
1743
|
+
# decisions are made based on queue statistics, not
|
|
1744
|
+
# current worker load.)
|
|
1745
|
+
#
|
|
1746
|
+
# As another example, using keys "high" and "low" with weight 9.0 and 1.0
|
|
1747
|
+
# respectively will prefer dispatching "high" tasks over "low" tasks at a
|
|
1748
|
+
# 9:1 ratio, while allowing either key to use all worker capacity if the
|
|
1749
|
+
# other is not present.
|
|
1750
|
+
#
|
|
1751
|
+
# All fairness mechanisms, including rate limits, are best-effort and
|
|
1752
|
+
# probabilistic. The results may not match what a "perfect" algorithm with
|
|
1753
|
+
# infinite resources would produce. The more unique keys are used, the less
|
|
1754
|
+
# accurate the results will be.
|
|
1755
|
+
#
|
|
1756
|
+
# Fairness keys are limited to 64 bytes.
|
|
1757
|
+
sig { params(value: String).void }
|
|
1758
|
+
def fairness_key=(value)
|
|
1759
|
+
end
|
|
1760
|
+
|
|
1761
|
+
# Fairness key is a short string that's used as a key for a fairness
|
|
1762
|
+
# balancing mechanism. It may correspond to a tenant id, or to a fixed
|
|
1763
|
+
# string like "high" or "low". The default is the empty string.
|
|
1764
|
+
#
|
|
1765
|
+
# The fairness mechanism attempts to dispatch tasks for a given key in
|
|
1766
|
+
# proportion to its weight. For example, using a thousand distinct tenant
|
|
1767
|
+
# ids, each with a weight of 1.0 (the default) will result in each tenant
|
|
1768
|
+
# getting a roughly equal share of task dispatch throughput.
|
|
1769
|
+
#
|
|
1770
|
+
# (Note: this does not imply equal share of worker capacity! Fairness
|
|
1771
|
+
# decisions are made based on queue statistics, not
|
|
1772
|
+
# current worker load.)
|
|
1773
|
+
#
|
|
1774
|
+
# As another example, using keys "high" and "low" with weight 9.0 and 1.0
|
|
1775
|
+
# respectively will prefer dispatching "high" tasks over "low" tasks at a
|
|
1776
|
+
# 9:1 ratio, while allowing either key to use all worker capacity if the
|
|
1777
|
+
# other is not present.
|
|
1778
|
+
#
|
|
1779
|
+
# All fairness mechanisms, including rate limits, are best-effort and
|
|
1780
|
+
# probabilistic. The results may not match what a "perfect" algorithm with
|
|
1781
|
+
# infinite resources would produce. The more unique keys are used, the less
|
|
1782
|
+
# accurate the results will be.
|
|
1783
|
+
#
|
|
1784
|
+
# Fairness keys are limited to 64 bytes.
|
|
1785
|
+
sig { void }
|
|
1786
|
+
def clear_fairness_key
|
|
1787
|
+
end
|
|
1788
|
+
|
|
1789
|
+
# Fairness weight for a task can come from multiple sources for
|
|
1790
|
+
# flexibility. From highest to lowest precedence:
|
|
1791
|
+
# 1. Weights for a small set of keys can be overridden in task queue
|
|
1792
|
+
# configuration with an API.
|
|
1793
|
+
# 2. It can be attached to the workflow/activity in this field.
|
|
1794
|
+
# 3. The default weight of 1.0 will be used.
|
|
1795
|
+
#
|
|
1796
|
+
# Weight values are clamped to the range [0.001, 1000].
|
|
1797
|
+
sig { returns(Float) }
|
|
1798
|
+
def fairness_weight
|
|
1799
|
+
end
|
|
1800
|
+
|
|
1801
|
+
# Fairness weight for a task can come from multiple sources for
|
|
1802
|
+
# flexibility. From highest to lowest precedence:
|
|
1803
|
+
# 1. Weights for a small set of keys can be overridden in task queue
|
|
1804
|
+
# configuration with an API.
|
|
1805
|
+
# 2. It can be attached to the workflow/activity in this field.
|
|
1806
|
+
# 3. The default weight of 1.0 will be used.
|
|
1807
|
+
#
|
|
1808
|
+
# Weight values are clamped to the range [0.001, 1000].
|
|
1809
|
+
sig { params(value: Float).void }
|
|
1810
|
+
def fairness_weight=(value)
|
|
1811
|
+
end
|
|
1812
|
+
|
|
1813
|
+
# Fairness weight for a task can come from multiple sources for
|
|
1814
|
+
# flexibility. From highest to lowest precedence:
|
|
1815
|
+
# 1. Weights for a small set of keys can be overridden in task queue
|
|
1816
|
+
# configuration with an API.
|
|
1817
|
+
# 2. It can be attached to the workflow/activity in this field.
|
|
1818
|
+
# 3. The default weight of 1.0 will be used.
|
|
1819
|
+
#
|
|
1820
|
+
# Weight values are clamped to the range [0.001, 1000].
|
|
1821
|
+
sig { void }
|
|
1822
|
+
def clear_fairness_weight
|
|
1823
|
+
end
|
|
1824
|
+
|
|
1825
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1826
|
+
def [](field)
|
|
1827
|
+
end
|
|
1828
|
+
|
|
1829
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1830
|
+
def []=(field, value)
|
|
1831
|
+
end
|
|
1832
|
+
|
|
1833
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1834
|
+
def to_h
|
|
1835
|
+
end
|
|
1836
|
+
|
|
1837
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Priority) }
|
|
1838
|
+
def self.decode(str)
|
|
1839
|
+
end
|
|
1840
|
+
|
|
1841
|
+
sig { params(msg: Temporalio::Api::Common::V1::Priority).returns(String) }
|
|
1842
|
+
def self.encode(msg)
|
|
1843
|
+
end
|
|
1844
|
+
|
|
1845
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Priority) }
|
|
1846
|
+
def self.decode_json(str, **kw)
|
|
1847
|
+
end
|
|
1848
|
+
|
|
1849
|
+
sig { params(msg: Temporalio::Api::Common::V1::Priority, kw: T.untyped).returns(String) }
|
|
1850
|
+
def self.encode_json(msg, **kw)
|
|
1851
|
+
end
|
|
1852
|
+
|
|
1853
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1854
|
+
def self.descriptor
|
|
1855
|
+
end
|
|
1856
|
+
end
|
|
1857
|
+
|
|
1858
|
+
# This is used to send commands to a specific worker or a group of workers.
|
|
1859
|
+
# Right now, it is used to send commands to a specific worker instance.
|
|
1860
|
+
# Will be extended to be able to send command to multiple workers.
|
|
1861
|
+
class Temporalio::Api::Common::V1::WorkerSelector
|
|
1862
|
+
include ::Google::Protobuf::MessageExts
|
|
1863
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1864
|
+
|
|
1865
|
+
sig do
|
|
1866
|
+
params(
|
|
1867
|
+
worker_instance_key: T.nilable(String)
|
|
1868
|
+
).void
|
|
1869
|
+
end
|
|
1870
|
+
def initialize(
|
|
1871
|
+
worker_instance_key: ""
|
|
1872
|
+
)
|
|
1873
|
+
end
|
|
1874
|
+
|
|
1875
|
+
# Worker instance key to which the command should be sent.
|
|
1876
|
+
sig { returns(String) }
|
|
1877
|
+
def worker_instance_key
|
|
1878
|
+
end
|
|
1879
|
+
|
|
1880
|
+
# Worker instance key to which the command should be sent.
|
|
1881
|
+
sig { params(value: String).void }
|
|
1882
|
+
def worker_instance_key=(value)
|
|
1883
|
+
end
|
|
1884
|
+
|
|
1885
|
+
# Worker instance key to which the command should be sent.
|
|
1886
|
+
sig { void }
|
|
1887
|
+
def clear_worker_instance_key
|
|
1888
|
+
end
|
|
1889
|
+
|
|
1890
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1891
|
+
def selector
|
|
1892
|
+
end
|
|
1893
|
+
|
|
1894
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1895
|
+
def [](field)
|
|
1896
|
+
end
|
|
1897
|
+
|
|
1898
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1899
|
+
def []=(field, value)
|
|
1900
|
+
end
|
|
1901
|
+
|
|
1902
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1903
|
+
def to_h
|
|
1904
|
+
end
|
|
1905
|
+
|
|
1906
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::WorkerSelector) }
|
|
1907
|
+
def self.decode(str)
|
|
1908
|
+
end
|
|
1909
|
+
|
|
1910
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerSelector).returns(String) }
|
|
1911
|
+
def self.encode(msg)
|
|
1912
|
+
end
|
|
1913
|
+
|
|
1914
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::WorkerSelector) }
|
|
1915
|
+
def self.decode_json(str, **kw)
|
|
1916
|
+
end
|
|
1917
|
+
|
|
1918
|
+
sig { params(msg: Temporalio::Api::Common::V1::WorkerSelector, kw: T.untyped).returns(String) }
|
|
1919
|
+
def self.encode_json(msg, **kw)
|
|
1920
|
+
end
|
|
1921
|
+
|
|
1922
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1923
|
+
def self.descriptor
|
|
1924
|
+
end
|
|
1925
|
+
end
|
|
1926
|
+
|
|
1927
|
+
# When starting an execution with a conflict policy that uses an existing execution and there is already an existing
|
|
1928
|
+
# running execution, OnConflictOptions defines actions to be taken on the existing running execution.
|
|
1929
|
+
class Temporalio::Api::Common::V1::OnConflictOptions
|
|
1930
|
+
include ::Google::Protobuf::MessageExts
|
|
1931
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1932
|
+
|
|
1933
|
+
sig do
|
|
1934
|
+
params(
|
|
1935
|
+
attach_request_id: T.nilable(T::Boolean),
|
|
1936
|
+
attach_completion_callbacks: T.nilable(T::Boolean),
|
|
1937
|
+
attach_links: T.nilable(T::Boolean)
|
|
1938
|
+
).void
|
|
1939
|
+
end
|
|
1940
|
+
def initialize(
|
|
1941
|
+
attach_request_id: false,
|
|
1942
|
+
attach_completion_callbacks: false,
|
|
1943
|
+
attach_links: false
|
|
1944
|
+
)
|
|
1945
|
+
end
|
|
1946
|
+
|
|
1947
|
+
# Attaches the request ID to the running execution.
|
|
1948
|
+
sig { returns(T::Boolean) }
|
|
1949
|
+
def attach_request_id
|
|
1950
|
+
end
|
|
1951
|
+
|
|
1952
|
+
# Attaches the request ID to the running execution.
|
|
1953
|
+
sig { params(value: T::Boolean).void }
|
|
1954
|
+
def attach_request_id=(value)
|
|
1955
|
+
end
|
|
1956
|
+
|
|
1957
|
+
# Attaches the request ID to the running execution.
|
|
1958
|
+
sig { void }
|
|
1959
|
+
def clear_attach_request_id
|
|
1960
|
+
end
|
|
1961
|
+
|
|
1962
|
+
# Attaches the completion callbacks to the running execution.
|
|
1963
|
+
sig { returns(T::Boolean) }
|
|
1964
|
+
def attach_completion_callbacks
|
|
1965
|
+
end
|
|
1966
|
+
|
|
1967
|
+
# Attaches the completion callbacks to the running execution.
|
|
1968
|
+
sig { params(value: T::Boolean).void }
|
|
1969
|
+
def attach_completion_callbacks=(value)
|
|
1970
|
+
end
|
|
1971
|
+
|
|
1972
|
+
# Attaches the completion callbacks to the running execution.
|
|
1973
|
+
sig { void }
|
|
1974
|
+
def clear_attach_completion_callbacks
|
|
1975
|
+
end
|
|
1976
|
+
|
|
1977
|
+
# Attaches the links to the running execution.
|
|
1978
|
+
sig { returns(T::Boolean) }
|
|
1979
|
+
def attach_links
|
|
1980
|
+
end
|
|
1981
|
+
|
|
1982
|
+
# Attaches the links to the running execution.
|
|
1983
|
+
sig { params(value: T::Boolean).void }
|
|
1984
|
+
def attach_links=(value)
|
|
1985
|
+
end
|
|
1986
|
+
|
|
1987
|
+
# Attaches the links to the running execution.
|
|
1988
|
+
sig { void }
|
|
1989
|
+
def clear_attach_links
|
|
1990
|
+
end
|
|
1991
|
+
|
|
1992
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1993
|
+
def [](field)
|
|
1994
|
+
end
|
|
1995
|
+
|
|
1996
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1997
|
+
def []=(field, value)
|
|
1998
|
+
end
|
|
1999
|
+
|
|
2000
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2001
|
+
def to_h
|
|
2002
|
+
end
|
|
2003
|
+
|
|
2004
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::OnConflictOptions) }
|
|
2005
|
+
def self.decode(str)
|
|
2006
|
+
end
|
|
2007
|
+
|
|
2008
|
+
sig { params(msg: Temporalio::Api::Common::V1::OnConflictOptions).returns(String) }
|
|
2009
|
+
def self.encode(msg)
|
|
2010
|
+
end
|
|
2011
|
+
|
|
2012
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::OnConflictOptions) }
|
|
2013
|
+
def self.decode_json(str, **kw)
|
|
2014
|
+
end
|
|
2015
|
+
|
|
2016
|
+
sig { params(msg: Temporalio::Api::Common::V1::OnConflictOptions, kw: T.untyped).returns(String) }
|
|
2017
|
+
def self.encode_json(msg, **kw)
|
|
2018
|
+
end
|
|
2019
|
+
|
|
2020
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2021
|
+
def self.descriptor
|
|
2022
|
+
end
|
|
2023
|
+
end
|
|
2024
|
+
|
|
2025
|
+
# The configuration for time skipping of an execution.
|
|
2026
|
+
# When time skipping is enabled, virtual time advances automatically whenever there is no in-flight work.
|
|
2027
|
+
# Options like fast_forward, disable_propagation, and max_session_skip_count are provided for granular
|
|
2028
|
+
# control of the execution's time skipping behavior. See each field's comment for a detailed explanation.
|
|
2029
|
+
#
|
|
2030
|
+
# An example of workflows with time skipping:
|
|
2031
|
+
# For workflows, an execution is a chain of runs including retries, cron, and continue-as-new.
|
|
2032
|
+
# In-flight work includes activities, child workflows, Nexus operations, signal/cancel external workflow operations, etc.
|
|
2033
|
+
# User timers are not classified as in-flight work and will be skipped over; the virtual clock may also skip to the
|
|
2034
|
+
# time point of the registered fast-forward when there is no in-flight work.
|
|
2035
|
+
# Whenever time is skipped, the skip count is incremented by one; max_session_skip_count bounds the number of skips allowed within a single time-skipping session.
|
|
2036
|
+
# For child workflows, by default, if the parent execution is skipping time, the child execution will also skip time,
|
|
2037
|
+
# but a parent's fast_forward won't affect its child's execution. A flag is provided to disable propagation of the
|
|
2038
|
+
# "enabled" flag to child workflows; regardless of that flag, a child workflow inherits the virtual time from the
|
|
2039
|
+
# parent execution as its start time.
|
|
2040
|
+
class Temporalio::Api::Common::V1::TimeSkippingConfig
|
|
2041
|
+
include ::Google::Protobuf::MessageExts
|
|
2042
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2043
|
+
|
|
2044
|
+
sig do
|
|
2045
|
+
params(
|
|
2046
|
+
enabled: T.nilable(T::Boolean),
|
|
2047
|
+
fast_forward_config: T.nilable(Temporalio::Api::Common::V1::FastForwardConfig),
|
|
2048
|
+
disable_propagation: T.nilable(T::Boolean),
|
|
2049
|
+
max_session_skip_count: T.nilable(Integer)
|
|
2050
|
+
).void
|
|
2051
|
+
end
|
|
2052
|
+
def initialize(
|
|
2053
|
+
enabled: false,
|
|
2054
|
+
fast_forward_config: nil,
|
|
2055
|
+
disable_propagation: false,
|
|
2056
|
+
max_session_skip_count: 0
|
|
2057
|
+
)
|
|
2058
|
+
end
|
|
2059
|
+
|
|
2060
|
+
# Enables or disables time skipping for this workflow execution.
|
|
2061
|
+
sig { returns(T::Boolean) }
|
|
2062
|
+
def enabled
|
|
2063
|
+
end
|
|
2064
|
+
|
|
2065
|
+
# Enables or disables time skipping for this workflow execution.
|
|
2066
|
+
sig { params(value: T::Boolean).void }
|
|
2067
|
+
def enabled=(value)
|
|
2068
|
+
end
|
|
2069
|
+
|
|
2070
|
+
# Enables or disables time skipping for this workflow execution.
|
|
2071
|
+
sig { void }
|
|
2072
|
+
def clear_enabled
|
|
2073
|
+
end
|
|
2074
|
+
|
|
2075
|
+
# An optional opt-in to control time-skipping behavior through fast-forward; see its definition for details.
|
|
2076
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::FastForwardConfig)) }
|
|
2077
|
+
def fast_forward_config
|
|
2078
|
+
end
|
|
2079
|
+
|
|
2080
|
+
# An optional opt-in to control time-skipping behavior through fast-forward; see its definition for details.
|
|
2081
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::FastForwardConfig)).void }
|
|
2082
|
+
def fast_forward_config=(value)
|
|
2083
|
+
end
|
|
2084
|
+
|
|
2085
|
+
# An optional opt-in to control time-skipping behavior through fast-forward; see its definition for details.
|
|
2086
|
+
sig { void }
|
|
2087
|
+
def clear_fast_forward_config
|
|
2088
|
+
end
|
|
2089
|
+
|
|
2090
|
+
# By default, executions started by another execution (e.g. a child workflow of a parent workflow or
|
|
2091
|
+
# a schedule with the time-skipping policy enabled) inherit the "enabled" flag and skip time when possible.
|
|
2092
|
+
# This flag disables that inheritance.
|
|
2093
|
+
sig { returns(T::Boolean) }
|
|
2094
|
+
def disable_propagation
|
|
2095
|
+
end
|
|
2096
|
+
|
|
2097
|
+
# By default, executions started by another execution (e.g. a child workflow of a parent workflow or
|
|
2098
|
+
# a schedule with the time-skipping policy enabled) inherit the "enabled" flag and skip time when possible.
|
|
2099
|
+
# This flag disables that inheritance.
|
|
2100
|
+
sig { params(value: T::Boolean).void }
|
|
2101
|
+
def disable_propagation=(value)
|
|
2102
|
+
end
|
|
2103
|
+
|
|
2104
|
+
# By default, executions started by another execution (e.g. a child workflow of a parent workflow or
|
|
2105
|
+
# a schedule with the time-skipping policy enabled) inherit the "enabled" flag and skip time when possible.
|
|
2106
|
+
# This flag disables that inheritance.
|
|
2107
|
+
sig { void }
|
|
2108
|
+
def clear_disable_propagation
|
|
2109
|
+
end
|
|
2110
|
+
|
|
2111
|
+
# The maximum number of skips allowed every time this field is updated. It protects the execution from
|
|
2112
|
+
# situations like unlimited retries when backoff is skipped.
|
|
2113
|
+
#
|
|
2114
|
+
# Every time the execution skips time, the skip count is incremented by one, and when it reaches
|
|
2115
|
+
# max_session_skip_count, time skipping stops. Whenever this config field is updated, the accumulated
|
|
2116
|
+
# skip count is cleared, marking the start of a new session.
|
|
2117
|
+
# For an execution with a chain of runs (retry, cron, continue-as-new), the count is accumulated
|
|
2118
|
+
# across all runs within the same session.
|
|
2119
|
+
#
|
|
2120
|
+
# If this field is not set, the server applies a large default value (e.g. 100). The default can
|
|
2121
|
+
# be changed through dynamic config, and is overridden by this field when set.
|
|
2122
|
+
sig { returns(Integer) }
|
|
2123
|
+
def max_session_skip_count
|
|
2124
|
+
end
|
|
2125
|
+
|
|
2126
|
+
# The maximum number of skips allowed every time this field is updated. It protects the execution from
|
|
2127
|
+
# situations like unlimited retries when backoff is skipped.
|
|
2128
|
+
#
|
|
2129
|
+
# Every time the execution skips time, the skip count is incremented by one, and when it reaches
|
|
2130
|
+
# max_session_skip_count, time skipping stops. Whenever this config field is updated, the accumulated
|
|
2131
|
+
# skip count is cleared, marking the start of a new session.
|
|
2132
|
+
# For an execution with a chain of runs (retry, cron, continue-as-new), the count is accumulated
|
|
2133
|
+
# across all runs within the same session.
|
|
2134
|
+
#
|
|
2135
|
+
# If this field is not set, the server applies a large default value (e.g. 100). The default can
|
|
2136
|
+
# be changed through dynamic config, and is overridden by this field when set.
|
|
2137
|
+
sig { params(value: Integer).void }
|
|
2138
|
+
def max_session_skip_count=(value)
|
|
2139
|
+
end
|
|
2140
|
+
|
|
2141
|
+
# The maximum number of skips allowed every time this field is updated. It protects the execution from
|
|
2142
|
+
# situations like unlimited retries when backoff is skipped.
|
|
2143
|
+
#
|
|
2144
|
+
# Every time the execution skips time, the skip count is incremented by one, and when it reaches
|
|
2145
|
+
# max_session_skip_count, time skipping stops. Whenever this config field is updated, the accumulated
|
|
2146
|
+
# skip count is cleared, marking the start of a new session.
|
|
2147
|
+
# For an execution with a chain of runs (retry, cron, continue-as-new), the count is accumulated
|
|
2148
|
+
# across all runs within the same session.
|
|
2149
|
+
#
|
|
2150
|
+
# If this field is not set, the server applies a large default value (e.g. 100). The default can
|
|
2151
|
+
# be changed through dynamic config, and is overridden by this field when set.
|
|
2152
|
+
sig { void }
|
|
2153
|
+
def clear_max_session_skip_count
|
|
2154
|
+
end
|
|
2155
|
+
|
|
2156
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2157
|
+
def [](field)
|
|
2158
|
+
end
|
|
2159
|
+
|
|
2160
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2161
|
+
def []=(field, value)
|
|
2162
|
+
end
|
|
2163
|
+
|
|
2164
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2165
|
+
def to_h
|
|
2166
|
+
end
|
|
2167
|
+
|
|
2168
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::TimeSkippingConfig) }
|
|
2169
|
+
def self.decode(str)
|
|
2170
|
+
end
|
|
2171
|
+
|
|
2172
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingConfig).returns(String) }
|
|
2173
|
+
def self.encode(msg)
|
|
2174
|
+
end
|
|
2175
|
+
|
|
2176
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::TimeSkippingConfig) }
|
|
2177
|
+
def self.decode_json(str, **kw)
|
|
2178
|
+
end
|
|
2179
|
+
|
|
2180
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingConfig, kw: T.untyped).returns(String) }
|
|
2181
|
+
def self.encode_json(msg, **kw)
|
|
2182
|
+
end
|
|
2183
|
+
|
|
2184
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2185
|
+
def self.descriptor
|
|
2186
|
+
end
|
|
2187
|
+
end
|
|
2188
|
+
|
|
2189
|
+
class Temporalio::Api::Common::V1::FastForwardConfig
|
|
2190
|
+
include ::Google::Protobuf::MessageExts
|
|
2191
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2192
|
+
|
|
2193
|
+
sig do
|
|
2194
|
+
params(
|
|
2195
|
+
id: T.nilable(String),
|
|
2196
|
+
duration: T.nilable(Google::Protobuf::Duration)
|
|
2197
|
+
).void
|
|
2198
|
+
end
|
|
2199
|
+
def initialize(
|
|
2200
|
+
id: "",
|
|
2201
|
+
duration: nil
|
|
2202
|
+
)
|
|
2203
|
+
end
|
|
2204
|
+
|
|
2205
|
+
# A client-supplied ID, required field, set alongside `duration`. It is used to poll for
|
|
2206
|
+
# fast-forward completion via PollWorkflowExecutionTimeSkipping.
|
|
2207
|
+
# The server performs no idempotency check on this ID; the client is responsible for managing it.
|
|
2208
|
+
sig { returns(String) }
|
|
2209
|
+
def id
|
|
2210
|
+
end
|
|
2211
|
+
|
|
2212
|
+
# A client-supplied ID, required field, set alongside `duration`. It is used to poll for
|
|
2213
|
+
# fast-forward completion via PollWorkflowExecutionTimeSkipping.
|
|
2214
|
+
# The server performs no idempotency check on this ID; the client is responsible for managing it.
|
|
2215
|
+
sig { params(value: String).void }
|
|
2216
|
+
def id=(value)
|
|
2217
|
+
end
|
|
2218
|
+
|
|
2219
|
+
# A client-supplied ID, required field, set alongside `duration`. It is used to poll for
|
|
2220
|
+
# fast-forward completion via PollWorkflowExecutionTimeSkipping.
|
|
2221
|
+
# The server performs no idempotency check on this ID; the client is responsible for managing it.
|
|
2222
|
+
sig { void }
|
|
2223
|
+
def clear_id
|
|
2224
|
+
end
|
|
2225
|
+
|
|
2226
|
+
# Fast-forward the current execution by this duration ahead of the current execution time; required field.
|
|
2227
|
+
# The duration yields a target time (current execution time + duration), surfaced as `target_time` in
|
|
2228
|
+
# TimeSkippingFastForwardInfo. Once virtual time reaches that target, the fast-forward completes, time
|
|
2229
|
+
# skipping is disabled, and no further time is skipped. Time skipping can be resumed either
|
|
2230
|
+
# by updating the TimeSkippingConfig with a new FastForwardConfig, or by clearing the FastForwardConfig
|
|
2231
|
+
# to skip through to the end of the execution.
|
|
2232
|
+
#
|
|
2233
|
+
# If this duration exceeds the remaining execution timeout, time will not pass beyond the end
|
|
2234
|
+
# of the execution, and the fast-forward won't have a chance to complete.
|
|
2235
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
2236
|
+
def duration
|
|
2237
|
+
end
|
|
2238
|
+
|
|
2239
|
+
# Fast-forward the current execution by this duration ahead of the current execution time; required field.
|
|
2240
|
+
# The duration yields a target time (current execution time + duration), surfaced as `target_time` in
|
|
2241
|
+
# TimeSkippingFastForwardInfo. Once virtual time reaches that target, the fast-forward completes, time
|
|
2242
|
+
# skipping is disabled, and no further time is skipped. Time skipping can be resumed either
|
|
2243
|
+
# by updating the TimeSkippingConfig with a new FastForwardConfig, or by clearing the FastForwardConfig
|
|
2244
|
+
# to skip through to the end of the execution.
|
|
2245
|
+
#
|
|
2246
|
+
# If this duration exceeds the remaining execution timeout, time will not pass beyond the end
|
|
2247
|
+
# of the execution, and the fast-forward won't have a chance to complete.
|
|
2248
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
2249
|
+
def duration=(value)
|
|
2250
|
+
end
|
|
2251
|
+
|
|
2252
|
+
# Fast-forward the current execution by this duration ahead of the current execution time; required field.
|
|
2253
|
+
# The duration yields a target time (current execution time + duration), surfaced as `target_time` in
|
|
2254
|
+
# TimeSkippingFastForwardInfo. Once virtual time reaches that target, the fast-forward completes, time
|
|
2255
|
+
# skipping is disabled, and no further time is skipped. Time skipping can be resumed either
|
|
2256
|
+
# by updating the TimeSkippingConfig with a new FastForwardConfig, or by clearing the FastForwardConfig
|
|
2257
|
+
# to skip through to the end of the execution.
|
|
2258
|
+
#
|
|
2259
|
+
# If this duration exceeds the remaining execution timeout, time will not pass beyond the end
|
|
2260
|
+
# of the execution, and the fast-forward won't have a chance to complete.
|
|
2261
|
+
sig { void }
|
|
2262
|
+
def clear_duration
|
|
2263
|
+
end
|
|
2264
|
+
|
|
2265
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2266
|
+
def [](field)
|
|
2267
|
+
end
|
|
2268
|
+
|
|
2269
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2270
|
+
def []=(field, value)
|
|
2271
|
+
end
|
|
2272
|
+
|
|
2273
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2274
|
+
def to_h
|
|
2275
|
+
end
|
|
2276
|
+
|
|
2277
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::FastForwardConfig) }
|
|
2278
|
+
def self.decode(str)
|
|
2279
|
+
end
|
|
2280
|
+
|
|
2281
|
+
sig { params(msg: Temporalio::Api::Common::V1::FastForwardConfig).returns(String) }
|
|
2282
|
+
def self.encode(msg)
|
|
2283
|
+
end
|
|
2284
|
+
|
|
2285
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::FastForwardConfig) }
|
|
2286
|
+
def self.decode_json(str, **kw)
|
|
2287
|
+
end
|
|
2288
|
+
|
|
2289
|
+
sig { params(msg: Temporalio::Api::Common::V1::FastForwardConfig, kw: T.untyped).returns(String) }
|
|
2290
|
+
def self.encode_json(msg, **kw)
|
|
2291
|
+
end
|
|
2292
|
+
|
|
2293
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2294
|
+
def self.descriptor
|
|
2295
|
+
end
|
|
2296
|
+
end
|
|
2297
|
+
|
|
2298
|
+
# The time-skipping state that needs to be propagated from one execution to another, or through a chain of runs
|
|
2299
|
+
# within the same execution.
|
|
2300
|
+
class Temporalio::Api::Common::V1::TimeSkippingStatePropagation
|
|
2301
|
+
include ::Google::Protobuf::MessageExts
|
|
2302
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2303
|
+
|
|
2304
|
+
sig do
|
|
2305
|
+
params(
|
|
2306
|
+
initial_skipped_duration: T.nilable(Google::Protobuf::Duration),
|
|
2307
|
+
fast_forward_target_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2308
|
+
initial_skip_count: T.nilable(Integer)
|
|
2309
|
+
).void
|
|
2310
|
+
end
|
|
2311
|
+
def initialize(
|
|
2312
|
+
initial_skipped_duration: nil,
|
|
2313
|
+
fast_forward_target_time: nil,
|
|
2314
|
+
initial_skip_count: 0
|
|
2315
|
+
)
|
|
2316
|
+
end
|
|
2317
|
+
|
|
2318
|
+
# The time skipped by the previous run. It is propagated both to executions started by the
|
|
2319
|
+
# current execution and through a chain of runs (CaN, cron, retry).
|
|
2320
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
2321
|
+
def initial_skipped_duration
|
|
2322
|
+
end
|
|
2323
|
+
|
|
2324
|
+
# The time skipped by the previous run. It is propagated both to executions started by the
|
|
2325
|
+
# current execution and through a chain of runs (CaN, cron, retry).
|
|
2326
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
2327
|
+
def initial_skipped_duration=(value)
|
|
2328
|
+
end
|
|
2329
|
+
|
|
2330
|
+
# The time skipped by the previous run. It is propagated both to executions started by the
|
|
2331
|
+
# current execution and through a chain of runs (CaN, cron, retry).
|
|
2332
|
+
sig { void }
|
|
2333
|
+
def clear_initial_skipped_duration
|
|
2334
|
+
end
|
|
2335
|
+
|
|
2336
|
+
# The fast-forward target time. It only propagates across a chain of runs within the same execution.
|
|
2337
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2338
|
+
def fast_forward_target_time
|
|
2339
|
+
end
|
|
2340
|
+
|
|
2341
|
+
# The fast-forward target time. It only propagates across a chain of runs within the same execution.
|
|
2342
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2343
|
+
def fast_forward_target_time=(value)
|
|
2344
|
+
end
|
|
2345
|
+
|
|
2346
|
+
# The fast-forward target time. It only propagates across a chain of runs within the same execution.
|
|
2347
|
+
sig { void }
|
|
2348
|
+
def clear_fast_forward_target_time
|
|
2349
|
+
end
|
|
2350
|
+
|
|
2351
|
+
# The initial skip count. It only propagates across a chain of runs within the same execution.
|
|
2352
|
+
sig { returns(Integer) }
|
|
2353
|
+
def initial_skip_count
|
|
2354
|
+
end
|
|
2355
|
+
|
|
2356
|
+
# The initial skip count. It only propagates across a chain of runs within the same execution.
|
|
2357
|
+
sig { params(value: Integer).void }
|
|
2358
|
+
def initial_skip_count=(value)
|
|
2359
|
+
end
|
|
2360
|
+
|
|
2361
|
+
# The initial skip count. It only propagates across a chain of runs within the same execution.
|
|
2362
|
+
sig { void }
|
|
2363
|
+
def clear_initial_skip_count
|
|
2364
|
+
end
|
|
2365
|
+
|
|
2366
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2367
|
+
def [](field)
|
|
2368
|
+
end
|
|
2369
|
+
|
|
2370
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2371
|
+
def []=(field, value)
|
|
2372
|
+
end
|
|
2373
|
+
|
|
2374
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2375
|
+
def to_h
|
|
2376
|
+
end
|
|
2377
|
+
|
|
2378
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::TimeSkippingStatePropagation) }
|
|
2379
|
+
def self.decode(str)
|
|
2380
|
+
end
|
|
2381
|
+
|
|
2382
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingStatePropagation).returns(String) }
|
|
2383
|
+
def self.encode(msg)
|
|
2384
|
+
end
|
|
2385
|
+
|
|
2386
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::TimeSkippingStatePropagation) }
|
|
2387
|
+
def self.decode_json(str, **kw)
|
|
2388
|
+
end
|
|
2389
|
+
|
|
2390
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingStatePropagation, kw: T.untyped).returns(String) }
|
|
2391
|
+
def self.encode_json(msg, **kw)
|
|
2392
|
+
end
|
|
2393
|
+
|
|
2394
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2395
|
+
def self.descriptor
|
|
2396
|
+
end
|
|
2397
|
+
end
|
|
2398
|
+
|
|
2399
|
+
# Describes the current time-skipping state of a workflow execution.
|
|
2400
|
+
class Temporalio::Api::Common::V1::TimeSkippingInfo
|
|
2401
|
+
include ::Google::Protobuf::MessageExts
|
|
2402
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2403
|
+
|
|
2404
|
+
sig do
|
|
2405
|
+
params(
|
|
2406
|
+
current_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2407
|
+
effective_config: T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig),
|
|
2408
|
+
fast_forward_info: T.nilable(Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo),
|
|
2409
|
+
current_session_skip_count: T.nilable(Integer)
|
|
2410
|
+
).void
|
|
2411
|
+
end
|
|
2412
|
+
def initialize(
|
|
2413
|
+
current_time: nil,
|
|
2414
|
+
effective_config: nil,
|
|
2415
|
+
fast_forward_info: nil,
|
|
2416
|
+
current_session_skip_count: 0
|
|
2417
|
+
)
|
|
2418
|
+
end
|
|
2419
|
+
|
|
2420
|
+
# Current virtual time of the execution. If the execution hasn't skipped
|
|
2421
|
+
# any time yet, it will be the same as wall clock time.
|
|
2422
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2423
|
+
def current_time
|
|
2424
|
+
end
|
|
2425
|
+
|
|
2426
|
+
# Current virtual time of the execution. If the execution hasn't skipped
|
|
2427
|
+
# any time yet, it will be the same as wall clock time.
|
|
2428
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2429
|
+
def current_time=(value)
|
|
2430
|
+
end
|
|
2431
|
+
|
|
2432
|
+
# Current virtual time of the execution. If the execution hasn't skipped
|
|
2433
|
+
# any time yet, it will be the same as wall clock time.
|
|
2434
|
+
sig { void }
|
|
2435
|
+
def clear_current_time
|
|
2436
|
+
end
|
|
2437
|
+
|
|
2438
|
+
# The current effective time-skipping config, which can differ from the config the user last set:
|
|
2439
|
+
# internally-defaulted fields are populated, and `enabled` reflects whether the execution is still
|
|
2440
|
+
# skipping time — e.g. it is set to false once `max_session_skip_count` is reached, the fast-forward
|
|
2441
|
+
# completes, or a client call disables time skipping.
|
|
2442
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)) }
|
|
2443
|
+
def effective_config
|
|
2444
|
+
end
|
|
2445
|
+
|
|
2446
|
+
# The current effective time-skipping config, which can differ from the config the user last set:
|
|
2447
|
+
# internally-defaulted fields are populated, and `enabled` reflects whether the execution is still
|
|
2448
|
+
# skipping time — e.g. it is set to false once `max_session_skip_count` is reached, the fast-forward
|
|
2449
|
+
# completes, or a client call disables time skipping.
|
|
2450
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)).void }
|
|
2451
|
+
def effective_config=(value)
|
|
2452
|
+
end
|
|
2453
|
+
|
|
2454
|
+
# The current effective time-skipping config, which can differ from the config the user last set:
|
|
2455
|
+
# internally-defaulted fields are populated, and `enabled` reflects whether the execution is still
|
|
2456
|
+
# skipping time — e.g. it is set to false once `max_session_skip_count` is reached, the fast-forward
|
|
2457
|
+
# completes, or a client call disables time skipping.
|
|
2458
|
+
sig { void }
|
|
2459
|
+
def clear_effective_config
|
|
2460
|
+
end
|
|
2461
|
+
|
|
2462
|
+
# The execution's current fast-forward, if any. Unset if time skipping is enabled without a fast-forward.
|
|
2463
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo)) }
|
|
2464
|
+
def fast_forward_info
|
|
2465
|
+
end
|
|
2466
|
+
|
|
2467
|
+
# The execution's current fast-forward, if any. Unset if time skipping is enabled without a fast-forward.
|
|
2468
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo)).void }
|
|
2469
|
+
def fast_forward_info=(value)
|
|
2470
|
+
end
|
|
2471
|
+
|
|
2472
|
+
# The execution's current fast-forward, if any. Unset if time skipping is enabled without a fast-forward.
|
|
2473
|
+
sig { void }
|
|
2474
|
+
def clear_fast_forward_info
|
|
2475
|
+
end
|
|
2476
|
+
|
|
2477
|
+
# The number of skips accumulated in the current session, bounded by `max_session_skip_count`.
|
|
2478
|
+
# A new session begins — and this resets to 0 — each time `max_session_skip_count` is updated.
|
|
2479
|
+
sig { returns(Integer) }
|
|
2480
|
+
def current_session_skip_count
|
|
2481
|
+
end
|
|
2482
|
+
|
|
2483
|
+
# The number of skips accumulated in the current session, bounded by `max_session_skip_count`.
|
|
2484
|
+
# A new session begins — and this resets to 0 — each time `max_session_skip_count` is updated.
|
|
2485
|
+
sig { params(value: Integer).void }
|
|
2486
|
+
def current_session_skip_count=(value)
|
|
2487
|
+
end
|
|
2488
|
+
|
|
2489
|
+
# The number of skips accumulated in the current session, bounded by `max_session_skip_count`.
|
|
2490
|
+
# A new session begins — and this resets to 0 — each time `max_session_skip_count` is updated.
|
|
2491
|
+
sig { void }
|
|
2492
|
+
def clear_current_session_skip_count
|
|
2493
|
+
end
|
|
2494
|
+
|
|
2495
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2496
|
+
def [](field)
|
|
2497
|
+
end
|
|
2498
|
+
|
|
2499
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2500
|
+
def []=(field, value)
|
|
2501
|
+
end
|
|
2502
|
+
|
|
2503
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2504
|
+
def to_h
|
|
2505
|
+
end
|
|
2506
|
+
|
|
2507
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::TimeSkippingInfo) }
|
|
2508
|
+
def self.decode(str)
|
|
2509
|
+
end
|
|
2510
|
+
|
|
2511
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingInfo).returns(String) }
|
|
2512
|
+
def self.encode(msg)
|
|
2513
|
+
end
|
|
2514
|
+
|
|
2515
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::TimeSkippingInfo) }
|
|
2516
|
+
def self.decode_json(str, **kw)
|
|
2517
|
+
end
|
|
2518
|
+
|
|
2519
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingInfo, kw: T.untyped).returns(String) }
|
|
2520
|
+
def self.encode_json(msg, **kw)
|
|
2521
|
+
end
|
|
2522
|
+
|
|
2523
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2524
|
+
def self.descriptor
|
|
2525
|
+
end
|
|
2526
|
+
end
|
|
2527
|
+
|
|
2528
|
+
# TimeSkippingFastForwardInfo describes the current time-skipping fast-forward on an execution.
|
|
2529
|
+
class Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo
|
|
2530
|
+
include ::Google::Protobuf::MessageExts
|
|
2531
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2532
|
+
|
|
2533
|
+
sig do
|
|
2534
|
+
params(
|
|
2535
|
+
fast_forward_duration: T.nilable(Google::Protobuf::Duration),
|
|
2536
|
+
fast_forward_id: T.nilable(String),
|
|
2537
|
+
target_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2538
|
+
has_completed: T.nilable(T::Boolean)
|
|
2539
|
+
).void
|
|
2540
|
+
end
|
|
2541
|
+
def initialize(
|
|
2542
|
+
fast_forward_duration: nil,
|
|
2543
|
+
fast_forward_id: "",
|
|
2544
|
+
target_time: nil,
|
|
2545
|
+
has_completed: false
|
|
2546
|
+
)
|
|
2547
|
+
end
|
|
2548
|
+
|
|
2549
|
+
# The client-supplied `fast_forward` duration.
|
|
2550
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
2551
|
+
def fast_forward_duration
|
|
2552
|
+
end
|
|
2553
|
+
|
|
2554
|
+
# The client-supplied `fast_forward` duration.
|
|
2555
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
2556
|
+
def fast_forward_duration=(value)
|
|
2557
|
+
end
|
|
2558
|
+
|
|
2559
|
+
# The client-supplied `fast_forward` duration.
|
|
2560
|
+
sig { void }
|
|
2561
|
+
def clear_fast_forward_duration
|
|
2562
|
+
end
|
|
2563
|
+
|
|
2564
|
+
# The client-supplied ID set alongside `fast_forward` duration.
|
|
2565
|
+
sig { returns(String) }
|
|
2566
|
+
def fast_forward_id
|
|
2567
|
+
end
|
|
2568
|
+
|
|
2569
|
+
# The client-supplied ID set alongside `fast_forward` duration.
|
|
2570
|
+
sig { params(value: String).void }
|
|
2571
|
+
def fast_forward_id=(value)
|
|
2572
|
+
end
|
|
2573
|
+
|
|
2574
|
+
# The client-supplied ID set alongside `fast_forward` duration.
|
|
2575
|
+
sig { void }
|
|
2576
|
+
def clear_fast_forward_id
|
|
2577
|
+
end
|
|
2578
|
+
|
|
2579
|
+
# The target virtual time at which the fast-forward completes.
|
|
2580
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2581
|
+
def target_time
|
|
2582
|
+
end
|
|
2583
|
+
|
|
2584
|
+
# The target virtual time at which the fast-forward completes.
|
|
2585
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2586
|
+
def target_time=(value)
|
|
2587
|
+
end
|
|
2588
|
+
|
|
2589
|
+
# The target virtual time at which the fast-forward completes.
|
|
2590
|
+
sig { void }
|
|
2591
|
+
def clear_target_time
|
|
2592
|
+
end
|
|
2593
|
+
|
|
2594
|
+
# True once `target_time` has been reached.
|
|
2595
|
+
sig { returns(T::Boolean) }
|
|
2596
|
+
def has_completed
|
|
2597
|
+
end
|
|
2598
|
+
|
|
2599
|
+
# True once `target_time` has been reached.
|
|
2600
|
+
sig { params(value: T::Boolean).void }
|
|
2601
|
+
def has_completed=(value)
|
|
2602
|
+
end
|
|
2603
|
+
|
|
2604
|
+
# True once `target_time` has been reached.
|
|
2605
|
+
sig { void }
|
|
2606
|
+
def clear_has_completed
|
|
2607
|
+
end
|
|
2608
|
+
|
|
2609
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2610
|
+
def [](field)
|
|
2611
|
+
end
|
|
2612
|
+
|
|
2613
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2614
|
+
def []=(field, value)
|
|
2615
|
+
end
|
|
2616
|
+
|
|
2617
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2618
|
+
def to_h
|
|
2619
|
+
end
|
|
2620
|
+
|
|
2621
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo) }
|
|
2622
|
+
def self.decode(str)
|
|
2623
|
+
end
|
|
2624
|
+
|
|
2625
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo).returns(String) }
|
|
2626
|
+
def self.encode(msg)
|
|
2627
|
+
end
|
|
2628
|
+
|
|
2629
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo) }
|
|
2630
|
+
def self.decode_json(str, **kw)
|
|
2631
|
+
end
|
|
2632
|
+
|
|
2633
|
+
sig { params(msg: Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo, kw: T.untyped).returns(String) }
|
|
2634
|
+
def self.encode_json(msg, **kw)
|
|
2635
|
+
end
|
|
2636
|
+
|
|
2637
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2638
|
+
def self.descriptor
|
|
2639
|
+
end
|
|
2640
|
+
end
|
|
2641
|
+
|
|
2642
|
+
# Describes an externally stored object referenced by this payload.
|
|
2643
|
+
class Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails
|
|
2644
|
+
include ::Google::Protobuf::MessageExts
|
|
2645
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2646
|
+
|
|
2647
|
+
sig do
|
|
2648
|
+
params(
|
|
2649
|
+
size_bytes: T.nilable(Integer)
|
|
2650
|
+
).void
|
|
2651
|
+
end
|
|
2652
|
+
def initialize(
|
|
2653
|
+
size_bytes: 0
|
|
2654
|
+
)
|
|
2655
|
+
end
|
|
2656
|
+
|
|
2657
|
+
# Size in bytes of the externally stored payload
|
|
2658
|
+
sig { returns(Integer) }
|
|
2659
|
+
def size_bytes
|
|
2660
|
+
end
|
|
2661
|
+
|
|
2662
|
+
# Size in bytes of the externally stored payload
|
|
2663
|
+
sig { params(value: Integer).void }
|
|
2664
|
+
def size_bytes=(value)
|
|
2665
|
+
end
|
|
2666
|
+
|
|
2667
|
+
# Size in bytes of the externally stored payload
|
|
2668
|
+
sig { void }
|
|
2669
|
+
def clear_size_bytes
|
|
2670
|
+
end
|
|
2671
|
+
|
|
2672
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2673
|
+
def [](field)
|
|
2674
|
+
end
|
|
2675
|
+
|
|
2676
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2677
|
+
def []=(field, value)
|
|
2678
|
+
end
|
|
2679
|
+
|
|
2680
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2681
|
+
def to_h
|
|
2682
|
+
end
|
|
2683
|
+
|
|
2684
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails) }
|
|
2685
|
+
def self.decode(str)
|
|
2686
|
+
end
|
|
2687
|
+
|
|
2688
|
+
sig { params(msg: Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails).returns(String) }
|
|
2689
|
+
def self.encode(msg)
|
|
2690
|
+
end
|
|
2691
|
+
|
|
2692
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails) }
|
|
2693
|
+
def self.decode_json(str, **kw)
|
|
2694
|
+
end
|
|
2695
|
+
|
|
2696
|
+
sig { params(msg: Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails, kw: T.untyped).returns(String) }
|
|
2697
|
+
def self.encode_json(msg, **kw)
|
|
2698
|
+
end
|
|
2699
|
+
|
|
2700
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2701
|
+
def self.descriptor
|
|
2702
|
+
end
|
|
2703
|
+
end
|
|
2704
|
+
|
|
2705
|
+
class Temporalio::Api::Common::V1::Callback::Nexus
|
|
2706
|
+
include ::Google::Protobuf::MessageExts
|
|
2707
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2708
|
+
|
|
2709
|
+
sig do
|
|
2710
|
+
params(
|
|
2711
|
+
url: T.nilable(String),
|
|
2712
|
+
header: T.nilable(T::Hash[String, String])
|
|
2713
|
+
).void
|
|
2714
|
+
end
|
|
2715
|
+
def initialize(
|
|
2716
|
+
url: "",
|
|
2717
|
+
header: ::Google::Protobuf::Map.new(:string, :string)
|
|
2718
|
+
)
|
|
2719
|
+
end
|
|
2720
|
+
|
|
2721
|
+
# Callback URL.
|
|
2722
|
+
sig { returns(String) }
|
|
2723
|
+
def url
|
|
2724
|
+
end
|
|
2725
|
+
|
|
2726
|
+
# Callback URL.
|
|
2727
|
+
sig { params(value: String).void }
|
|
2728
|
+
def url=(value)
|
|
2729
|
+
end
|
|
2730
|
+
|
|
2731
|
+
# Callback URL.
|
|
2732
|
+
sig { void }
|
|
2733
|
+
def clear_url
|
|
2734
|
+
end
|
|
2735
|
+
|
|
2736
|
+
# Header to attach to callback request.
|
|
2737
|
+
sig { returns(T::Hash[String, String]) }
|
|
2738
|
+
def header
|
|
2739
|
+
end
|
|
2740
|
+
|
|
2741
|
+
# Header to attach to callback request.
|
|
2742
|
+
sig { params(value: ::Google::Protobuf::Map).void }
|
|
2743
|
+
def header=(value)
|
|
2744
|
+
end
|
|
2745
|
+
|
|
2746
|
+
# Header to attach to callback request.
|
|
2747
|
+
sig { void }
|
|
2748
|
+
def clear_header
|
|
2749
|
+
end
|
|
2750
|
+
|
|
2751
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2752
|
+
def [](field)
|
|
2753
|
+
end
|
|
2754
|
+
|
|
2755
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2756
|
+
def []=(field, value)
|
|
2757
|
+
end
|
|
2758
|
+
|
|
2759
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2760
|
+
def to_h
|
|
2761
|
+
end
|
|
2762
|
+
|
|
2763
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Callback::Nexus) }
|
|
2764
|
+
def self.decode(str)
|
|
2765
|
+
end
|
|
2766
|
+
|
|
2767
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::Nexus).returns(String) }
|
|
2768
|
+
def self.encode(msg)
|
|
2769
|
+
end
|
|
2770
|
+
|
|
2771
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Callback::Nexus) }
|
|
2772
|
+
def self.decode_json(str, **kw)
|
|
2773
|
+
end
|
|
2774
|
+
|
|
2775
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::Nexus, kw: T.untyped).returns(String) }
|
|
2776
|
+
def self.encode_json(msg, **kw)
|
|
2777
|
+
end
|
|
2778
|
+
|
|
2779
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2780
|
+
def self.descriptor
|
|
2781
|
+
end
|
|
2782
|
+
end
|
|
2783
|
+
|
|
2784
|
+
# Callbacks to be delivered internally within the system.
|
|
2785
|
+
# This variant is not settable in the API and will be rejected by the service with an INVALID_ARGUMENT error.
|
|
2786
|
+
# The only reason that this is exposed is because callbacks are replicated across clusters via the
|
|
2787
|
+
# WorkflowExecutionStarted event, which is defined in the public API.
|
|
2788
|
+
class Temporalio::Api::Common::V1::Callback::Internal
|
|
2789
|
+
include ::Google::Protobuf::MessageExts
|
|
2790
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2791
|
+
|
|
2792
|
+
sig do
|
|
2793
|
+
params(
|
|
2794
|
+
data: T.nilable(String)
|
|
2795
|
+
).void
|
|
2796
|
+
end
|
|
2797
|
+
def initialize(
|
|
2798
|
+
data: ""
|
|
2799
|
+
)
|
|
2800
|
+
end
|
|
2801
|
+
|
|
2802
|
+
# Opaque internal data.
|
|
2803
|
+
sig { returns(String) }
|
|
2804
|
+
def data
|
|
2805
|
+
end
|
|
2806
|
+
|
|
2807
|
+
# Opaque internal data.
|
|
2808
|
+
sig { params(value: String).void }
|
|
2809
|
+
def data=(value)
|
|
2810
|
+
end
|
|
2811
|
+
|
|
2812
|
+
# Opaque internal data.
|
|
2813
|
+
sig { void }
|
|
2814
|
+
def clear_data
|
|
2815
|
+
end
|
|
2816
|
+
|
|
2817
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2818
|
+
def [](field)
|
|
2819
|
+
end
|
|
2820
|
+
|
|
2821
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2822
|
+
def []=(field, value)
|
|
2823
|
+
end
|
|
2824
|
+
|
|
2825
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2826
|
+
def to_h
|
|
2827
|
+
end
|
|
2828
|
+
|
|
2829
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Callback::Internal) }
|
|
2830
|
+
def self.decode(str)
|
|
2831
|
+
end
|
|
2832
|
+
|
|
2833
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::Internal).returns(String) }
|
|
2834
|
+
def self.encode(msg)
|
|
2835
|
+
end
|
|
2836
|
+
|
|
2837
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Callback::Internal) }
|
|
2838
|
+
def self.decode_json(str, **kw)
|
|
2839
|
+
end
|
|
2840
|
+
|
|
2841
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::Internal, kw: T.untyped).returns(String) }
|
|
2842
|
+
def self.encode_json(msg, **kw)
|
|
2843
|
+
end
|
|
2844
|
+
|
|
2845
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2846
|
+
def self.descriptor
|
|
2847
|
+
end
|
|
2848
|
+
end
|
|
2849
|
+
|
|
2850
|
+
class Temporalio::Api::Common::V1::Link::WorkflowEvent
|
|
2851
|
+
include ::Google::Protobuf::MessageExts
|
|
2852
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2853
|
+
|
|
2854
|
+
sig do
|
|
2855
|
+
params(
|
|
2856
|
+
namespace: T.nilable(String),
|
|
2857
|
+
workflow_id: T.nilable(String),
|
|
2858
|
+
run_id: T.nilable(String),
|
|
2859
|
+
event_ref: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference),
|
|
2860
|
+
request_id_ref: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference)
|
|
2861
|
+
).void
|
|
2862
|
+
end
|
|
2863
|
+
def initialize(
|
|
2864
|
+
namespace: "",
|
|
2865
|
+
workflow_id: "",
|
|
2866
|
+
run_id: "",
|
|
2867
|
+
event_ref: nil,
|
|
2868
|
+
request_id_ref: nil
|
|
2869
|
+
)
|
|
2870
|
+
end
|
|
2871
|
+
|
|
2872
|
+
sig { returns(String) }
|
|
2873
|
+
def namespace
|
|
2874
|
+
end
|
|
2875
|
+
|
|
2876
|
+
sig { params(value: String).void }
|
|
2877
|
+
def namespace=(value)
|
|
2878
|
+
end
|
|
2879
|
+
|
|
2880
|
+
sig { void }
|
|
2881
|
+
def clear_namespace
|
|
2882
|
+
end
|
|
2883
|
+
|
|
2884
|
+
sig { returns(String) }
|
|
2885
|
+
def workflow_id
|
|
2886
|
+
end
|
|
2887
|
+
|
|
2888
|
+
sig { params(value: String).void }
|
|
2889
|
+
def workflow_id=(value)
|
|
2890
|
+
end
|
|
2891
|
+
|
|
2892
|
+
sig { void }
|
|
2893
|
+
def clear_workflow_id
|
|
2894
|
+
end
|
|
2895
|
+
|
|
2896
|
+
sig { returns(String) }
|
|
2897
|
+
def run_id
|
|
2898
|
+
end
|
|
2899
|
+
|
|
2900
|
+
sig { params(value: String).void }
|
|
2901
|
+
def run_id=(value)
|
|
2902
|
+
end
|
|
2903
|
+
|
|
2904
|
+
sig { void }
|
|
2905
|
+
def clear_run_id
|
|
2906
|
+
end
|
|
2907
|
+
|
|
2908
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference)) }
|
|
2909
|
+
def event_ref
|
|
2910
|
+
end
|
|
2911
|
+
|
|
2912
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference)).void }
|
|
2913
|
+
def event_ref=(value)
|
|
2914
|
+
end
|
|
2915
|
+
|
|
2916
|
+
sig { void }
|
|
2917
|
+
def clear_event_ref
|
|
2918
|
+
end
|
|
2919
|
+
|
|
2920
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference)) }
|
|
2921
|
+
def request_id_ref
|
|
2922
|
+
end
|
|
2923
|
+
|
|
2924
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference)).void }
|
|
2925
|
+
def request_id_ref=(value)
|
|
2926
|
+
end
|
|
2927
|
+
|
|
2928
|
+
sig { void }
|
|
2929
|
+
def clear_request_id_ref
|
|
2930
|
+
end
|
|
2931
|
+
|
|
2932
|
+
sig { returns(T.nilable(Symbol)) }
|
|
2933
|
+
def reference
|
|
2934
|
+
end
|
|
2935
|
+
|
|
2936
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2937
|
+
def [](field)
|
|
2938
|
+
end
|
|
2939
|
+
|
|
2940
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2941
|
+
def []=(field, value)
|
|
2942
|
+
end
|
|
2943
|
+
|
|
2944
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2945
|
+
def to_h
|
|
2946
|
+
end
|
|
2947
|
+
|
|
2948
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent) }
|
|
2949
|
+
def self.decode(str)
|
|
2950
|
+
end
|
|
2951
|
+
|
|
2952
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent).returns(String) }
|
|
2953
|
+
def self.encode(msg)
|
|
2954
|
+
end
|
|
2955
|
+
|
|
2956
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent) }
|
|
2957
|
+
def self.decode_json(str, **kw)
|
|
2958
|
+
end
|
|
2959
|
+
|
|
2960
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent, kw: T.untyped).returns(String) }
|
|
2961
|
+
def self.encode_json(msg, **kw)
|
|
2962
|
+
end
|
|
2963
|
+
|
|
2964
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2965
|
+
def self.descriptor
|
|
2966
|
+
end
|
|
2967
|
+
end
|
|
2968
|
+
|
|
2969
|
+
# A link to a built-in batch job.
|
|
2970
|
+
# Batch jobs can be used to perform operations on a set of workflows (e.g. terminate, signal, cancel, etc).
|
|
2971
|
+
# This link can be put on workflow history events generated by actions taken by a batch job.
|
|
2972
|
+
class Temporalio::Api::Common::V1::Link::BatchJob
|
|
2973
|
+
include ::Google::Protobuf::MessageExts
|
|
2974
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2975
|
+
|
|
2976
|
+
sig do
|
|
2977
|
+
params(
|
|
2978
|
+
job_id: T.nilable(String)
|
|
2979
|
+
).void
|
|
2980
|
+
end
|
|
2981
|
+
def initialize(
|
|
2982
|
+
job_id: ""
|
|
2983
|
+
)
|
|
2984
|
+
end
|
|
2985
|
+
|
|
2986
|
+
sig { returns(String) }
|
|
2987
|
+
def job_id
|
|
2988
|
+
end
|
|
2989
|
+
|
|
2990
|
+
sig { params(value: String).void }
|
|
2991
|
+
def job_id=(value)
|
|
2992
|
+
end
|
|
2993
|
+
|
|
2994
|
+
sig { void }
|
|
2995
|
+
def clear_job_id
|
|
2996
|
+
end
|
|
2997
|
+
|
|
2998
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2999
|
+
def [](field)
|
|
3000
|
+
end
|
|
3001
|
+
|
|
3002
|
+
sig { params(field: String, value: T.untyped).void }
|
|
3003
|
+
def []=(field, value)
|
|
3004
|
+
end
|
|
3005
|
+
|
|
3006
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
3007
|
+
def to_h
|
|
3008
|
+
end
|
|
3009
|
+
|
|
3010
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::BatchJob) }
|
|
3011
|
+
def self.decode(str)
|
|
3012
|
+
end
|
|
3013
|
+
|
|
3014
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::BatchJob).returns(String) }
|
|
3015
|
+
def self.encode(msg)
|
|
3016
|
+
end
|
|
3017
|
+
|
|
3018
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::BatchJob) }
|
|
3019
|
+
def self.decode_json(str, **kw)
|
|
3020
|
+
end
|
|
3021
|
+
|
|
3022
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::BatchJob, kw: T.untyped).returns(String) }
|
|
3023
|
+
def self.encode_json(msg, **kw)
|
|
3024
|
+
end
|
|
3025
|
+
|
|
3026
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
3027
|
+
def self.descriptor
|
|
3028
|
+
end
|
|
3029
|
+
end
|
|
3030
|
+
|
|
3031
|
+
# A link to an activity.
|
|
3032
|
+
class Temporalio::Api::Common::V1::Link::Activity
|
|
3033
|
+
include ::Google::Protobuf::MessageExts
|
|
3034
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
3035
|
+
|
|
3036
|
+
sig do
|
|
3037
|
+
params(
|
|
3038
|
+
namespace: T.nilable(String),
|
|
3039
|
+
activity_id: T.nilable(String),
|
|
3040
|
+
run_id: T.nilable(String)
|
|
3041
|
+
).void
|
|
3042
|
+
end
|
|
3043
|
+
def initialize(
|
|
3044
|
+
namespace: "",
|
|
3045
|
+
activity_id: "",
|
|
3046
|
+
run_id: ""
|
|
3047
|
+
)
|
|
3048
|
+
end
|
|
3049
|
+
|
|
3050
|
+
sig { returns(String) }
|
|
3051
|
+
def namespace
|
|
3052
|
+
end
|
|
3053
|
+
|
|
3054
|
+
sig { params(value: String).void }
|
|
3055
|
+
def namespace=(value)
|
|
3056
|
+
end
|
|
3057
|
+
|
|
3058
|
+
sig { void }
|
|
3059
|
+
def clear_namespace
|
|
3060
|
+
end
|
|
3061
|
+
|
|
3062
|
+
sig { returns(String) }
|
|
3063
|
+
def activity_id
|
|
3064
|
+
end
|
|
3065
|
+
|
|
3066
|
+
sig { params(value: String).void }
|
|
3067
|
+
def activity_id=(value)
|
|
3068
|
+
end
|
|
3069
|
+
|
|
3070
|
+
sig { void }
|
|
3071
|
+
def clear_activity_id
|
|
3072
|
+
end
|
|
3073
|
+
|
|
3074
|
+
sig { returns(String) }
|
|
3075
|
+
def run_id
|
|
3076
|
+
end
|
|
3077
|
+
|
|
3078
|
+
sig { params(value: String).void }
|
|
3079
|
+
def run_id=(value)
|
|
3080
|
+
end
|
|
3081
|
+
|
|
3082
|
+
sig { void }
|
|
3083
|
+
def clear_run_id
|
|
3084
|
+
end
|
|
3085
|
+
|
|
3086
|
+
sig { params(field: String).returns(T.untyped) }
|
|
3087
|
+
def [](field)
|
|
3088
|
+
end
|
|
3089
|
+
|
|
3090
|
+
sig { params(field: String, value: T.untyped).void }
|
|
3091
|
+
def []=(field, value)
|
|
3092
|
+
end
|
|
3093
|
+
|
|
3094
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
3095
|
+
def to_h
|
|
3096
|
+
end
|
|
3097
|
+
|
|
3098
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::Activity) }
|
|
3099
|
+
def self.decode(str)
|
|
3100
|
+
end
|
|
3101
|
+
|
|
3102
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Activity).returns(String) }
|
|
3103
|
+
def self.encode(msg)
|
|
3104
|
+
end
|
|
3105
|
+
|
|
3106
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::Activity) }
|
|
3107
|
+
def self.decode_json(str, **kw)
|
|
3108
|
+
end
|
|
3109
|
+
|
|
3110
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Activity, kw: T.untyped).returns(String) }
|
|
3111
|
+
def self.encode_json(msg, **kw)
|
|
3112
|
+
end
|
|
3113
|
+
|
|
3114
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
3115
|
+
def self.descriptor
|
|
3116
|
+
end
|
|
3117
|
+
end
|
|
3118
|
+
|
|
3119
|
+
# A link to a standalone Nexus operation.
|
|
3120
|
+
class Temporalio::Api::Common::V1::Link::NexusOperation
|
|
3121
|
+
include ::Google::Protobuf::MessageExts
|
|
3122
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
3123
|
+
|
|
3124
|
+
sig do
|
|
3125
|
+
params(
|
|
3126
|
+
namespace: T.nilable(String),
|
|
3127
|
+
operation_id: T.nilable(String),
|
|
3128
|
+
run_id: T.nilable(String)
|
|
3129
|
+
).void
|
|
3130
|
+
end
|
|
3131
|
+
def initialize(
|
|
3132
|
+
namespace: "",
|
|
3133
|
+
operation_id: "",
|
|
3134
|
+
run_id: ""
|
|
3135
|
+
)
|
|
3136
|
+
end
|
|
3137
|
+
|
|
3138
|
+
sig { returns(String) }
|
|
3139
|
+
def namespace
|
|
3140
|
+
end
|
|
3141
|
+
|
|
3142
|
+
sig { params(value: String).void }
|
|
3143
|
+
def namespace=(value)
|
|
3144
|
+
end
|
|
3145
|
+
|
|
3146
|
+
sig { void }
|
|
3147
|
+
def clear_namespace
|
|
3148
|
+
end
|
|
3149
|
+
|
|
3150
|
+
sig { returns(String) }
|
|
3151
|
+
def operation_id
|
|
3152
|
+
end
|
|
3153
|
+
|
|
3154
|
+
sig { params(value: String).void }
|
|
3155
|
+
def operation_id=(value)
|
|
3156
|
+
end
|
|
3157
|
+
|
|
3158
|
+
sig { void }
|
|
3159
|
+
def clear_operation_id
|
|
3160
|
+
end
|
|
3161
|
+
|
|
3162
|
+
sig { returns(String) }
|
|
3163
|
+
def run_id
|
|
3164
|
+
end
|
|
3165
|
+
|
|
3166
|
+
sig { params(value: String).void }
|
|
3167
|
+
def run_id=(value)
|
|
3168
|
+
end
|
|
3169
|
+
|
|
3170
|
+
sig { void }
|
|
3171
|
+
def clear_run_id
|
|
3172
|
+
end
|
|
3173
|
+
|
|
3174
|
+
sig { params(field: String).returns(T.untyped) }
|
|
3175
|
+
def [](field)
|
|
3176
|
+
end
|
|
3177
|
+
|
|
3178
|
+
sig { params(field: String, value: T.untyped).void }
|
|
3179
|
+
def []=(field, value)
|
|
3180
|
+
end
|
|
3181
|
+
|
|
3182
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
3183
|
+
def to_h
|
|
3184
|
+
end
|
|
3185
|
+
|
|
3186
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::NexusOperation) }
|
|
3187
|
+
def self.decode(str)
|
|
3188
|
+
end
|
|
3189
|
+
|
|
3190
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::NexusOperation).returns(String) }
|
|
3191
|
+
def self.encode(msg)
|
|
3192
|
+
end
|
|
3193
|
+
|
|
3194
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::NexusOperation) }
|
|
3195
|
+
def self.decode_json(str, **kw)
|
|
3196
|
+
end
|
|
3197
|
+
|
|
3198
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::NexusOperation, kw: T.untyped).returns(String) }
|
|
3199
|
+
def self.encode_json(msg, **kw)
|
|
3200
|
+
end
|
|
3201
|
+
|
|
3202
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
3203
|
+
def self.descriptor
|
|
3204
|
+
end
|
|
3205
|
+
end
|
|
3206
|
+
|
|
3207
|
+
# A link to a workflow execution. This is a more general version of WorkflowEvent that doesn't specify a
|
|
3208
|
+
# particular event within the workflow, useful when you want to link to a workflow but there is no particular event to link to,
|
|
3209
|
+
# such as a Query or a Rejected Update.
|
|
3210
|
+
class Temporalio::Api::Common::V1::Link::Workflow
|
|
3211
|
+
include ::Google::Protobuf::MessageExts
|
|
3212
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
3213
|
+
|
|
3214
|
+
sig do
|
|
3215
|
+
params(
|
|
3216
|
+
namespace: T.nilable(String),
|
|
3217
|
+
workflow_id: T.nilable(String),
|
|
3218
|
+
run_id: T.nilable(String),
|
|
3219
|
+
reason: T.nilable(String)
|
|
3220
|
+
).void
|
|
3221
|
+
end
|
|
3222
|
+
def initialize(
|
|
3223
|
+
namespace: "",
|
|
3224
|
+
workflow_id: "",
|
|
3225
|
+
run_id: "",
|
|
3226
|
+
reason: ""
|
|
3227
|
+
)
|
|
3228
|
+
end
|
|
3229
|
+
|
|
3230
|
+
sig { returns(String) }
|
|
3231
|
+
def namespace
|
|
3232
|
+
end
|
|
3233
|
+
|
|
3234
|
+
sig { params(value: String).void }
|
|
3235
|
+
def namespace=(value)
|
|
3236
|
+
end
|
|
3237
|
+
|
|
3238
|
+
sig { void }
|
|
3239
|
+
def clear_namespace
|
|
3240
|
+
end
|
|
3241
|
+
|
|
3242
|
+
sig { returns(String) }
|
|
3243
|
+
def workflow_id
|
|
3244
|
+
end
|
|
3245
|
+
|
|
3246
|
+
sig { params(value: String).void }
|
|
3247
|
+
def workflow_id=(value)
|
|
3248
|
+
end
|
|
3249
|
+
|
|
3250
|
+
sig { void }
|
|
3251
|
+
def clear_workflow_id
|
|
3252
|
+
end
|
|
3253
|
+
|
|
3254
|
+
sig { returns(String) }
|
|
3255
|
+
def run_id
|
|
3256
|
+
end
|
|
3257
|
+
|
|
3258
|
+
sig { params(value: String).void }
|
|
3259
|
+
def run_id=(value)
|
|
3260
|
+
end
|
|
3261
|
+
|
|
3262
|
+
sig { void }
|
|
3263
|
+
def clear_run_id
|
|
3264
|
+
end
|
|
3265
|
+
|
|
3266
|
+
sig { returns(String) }
|
|
3267
|
+
def reason
|
|
3268
|
+
end
|
|
3269
|
+
|
|
3270
|
+
sig { params(value: String).void }
|
|
3271
|
+
def reason=(value)
|
|
3272
|
+
end
|
|
3273
|
+
|
|
3274
|
+
sig { void }
|
|
3275
|
+
def clear_reason
|
|
3276
|
+
end
|
|
3277
|
+
|
|
3278
|
+
sig { params(field: String).returns(T.untyped) }
|
|
3279
|
+
def [](field)
|
|
3280
|
+
end
|
|
3281
|
+
|
|
3282
|
+
sig { params(field: String, value: T.untyped).void }
|
|
3283
|
+
def []=(field, value)
|
|
3284
|
+
end
|
|
3285
|
+
|
|
3286
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
3287
|
+
def to_h
|
|
3288
|
+
end
|
|
3289
|
+
|
|
3290
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::Workflow) }
|
|
3291
|
+
def self.decode(str)
|
|
3292
|
+
end
|
|
3293
|
+
|
|
3294
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Workflow).returns(String) }
|
|
3295
|
+
def self.encode(msg)
|
|
3296
|
+
end
|
|
3297
|
+
|
|
3298
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::Workflow) }
|
|
3299
|
+
def self.decode_json(str, **kw)
|
|
3300
|
+
end
|
|
3301
|
+
|
|
3302
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Workflow, kw: T.untyped).returns(String) }
|
|
3303
|
+
def self.encode_json(msg, **kw)
|
|
3304
|
+
end
|
|
3305
|
+
|
|
3306
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
3307
|
+
def self.descriptor
|
|
3308
|
+
end
|
|
3309
|
+
end
|
|
3310
|
+
|
|
3311
|
+
# EventReference is a direct reference to a history event through the event ID.
|
|
3312
|
+
class Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference
|
|
3313
|
+
include ::Google::Protobuf::MessageExts
|
|
3314
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
3315
|
+
|
|
3316
|
+
sig do
|
|
3317
|
+
params(
|
|
3318
|
+
event_id: T.nilable(Integer),
|
|
3319
|
+
event_type: T.nilable(T.any(Symbol, String, Integer))
|
|
3320
|
+
).void
|
|
3321
|
+
end
|
|
3322
|
+
def initialize(
|
|
3323
|
+
event_id: 0,
|
|
3324
|
+
event_type: :EVENT_TYPE_UNSPECIFIED
|
|
3325
|
+
)
|
|
3326
|
+
end
|
|
3327
|
+
|
|
3328
|
+
sig { returns(Integer) }
|
|
3329
|
+
def event_id
|
|
3330
|
+
end
|
|
3331
|
+
|
|
3332
|
+
sig { params(value: Integer).void }
|
|
3333
|
+
def event_id=(value)
|
|
3334
|
+
end
|
|
3335
|
+
|
|
3336
|
+
sig { void }
|
|
3337
|
+
def clear_event_id
|
|
3338
|
+
end
|
|
3339
|
+
|
|
3340
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
3341
|
+
def event_type
|
|
3342
|
+
end
|
|
3343
|
+
|
|
3344
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
3345
|
+
def event_type=(value)
|
|
3346
|
+
end
|
|
3347
|
+
|
|
3348
|
+
sig { void }
|
|
3349
|
+
def clear_event_type
|
|
3350
|
+
end
|
|
3351
|
+
|
|
3352
|
+
sig { params(field: String).returns(T.untyped) }
|
|
3353
|
+
def [](field)
|
|
3354
|
+
end
|
|
3355
|
+
|
|
3356
|
+
sig { params(field: String, value: T.untyped).void }
|
|
3357
|
+
def []=(field, value)
|
|
3358
|
+
end
|
|
3359
|
+
|
|
3360
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
3361
|
+
def to_h
|
|
3362
|
+
end
|
|
3363
|
+
|
|
3364
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference) }
|
|
3365
|
+
def self.decode(str)
|
|
3366
|
+
end
|
|
3367
|
+
|
|
3368
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference).returns(String) }
|
|
3369
|
+
def self.encode(msg)
|
|
3370
|
+
end
|
|
3371
|
+
|
|
3372
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference) }
|
|
3373
|
+
def self.decode_json(str, **kw)
|
|
3374
|
+
end
|
|
3375
|
+
|
|
3376
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference, kw: T.untyped).returns(String) }
|
|
3377
|
+
def self.encode_json(msg, **kw)
|
|
3378
|
+
end
|
|
3379
|
+
|
|
3380
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
3381
|
+
def self.descriptor
|
|
3382
|
+
end
|
|
3383
|
+
end
|
|
3384
|
+
|
|
3385
|
+
# RequestIdReference is a indirect reference to a history event through the request ID.
|
|
3386
|
+
class Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference
|
|
3387
|
+
include ::Google::Protobuf::MessageExts
|
|
3388
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
3389
|
+
|
|
3390
|
+
sig do
|
|
3391
|
+
params(
|
|
3392
|
+
request_id: T.nilable(String),
|
|
3393
|
+
event_type: T.nilable(T.any(Symbol, String, Integer))
|
|
3394
|
+
).void
|
|
3395
|
+
end
|
|
3396
|
+
def initialize(
|
|
3397
|
+
request_id: "",
|
|
3398
|
+
event_type: :EVENT_TYPE_UNSPECIFIED
|
|
3399
|
+
)
|
|
3400
|
+
end
|
|
3401
|
+
|
|
3402
|
+
sig { returns(String) }
|
|
3403
|
+
def request_id
|
|
3404
|
+
end
|
|
3405
|
+
|
|
3406
|
+
sig { params(value: String).void }
|
|
3407
|
+
def request_id=(value)
|
|
3408
|
+
end
|
|
3409
|
+
|
|
3410
|
+
sig { void }
|
|
3411
|
+
def clear_request_id
|
|
3412
|
+
end
|
|
3413
|
+
|
|
3414
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
3415
|
+
def event_type
|
|
3416
|
+
end
|
|
3417
|
+
|
|
3418
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
3419
|
+
def event_type=(value)
|
|
3420
|
+
end
|
|
3421
|
+
|
|
3422
|
+
sig { void }
|
|
3423
|
+
def clear_event_type
|
|
3424
|
+
end
|
|
3425
|
+
|
|
3426
|
+
sig { params(field: String).returns(T.untyped) }
|
|
3427
|
+
def [](field)
|
|
3428
|
+
end
|
|
3429
|
+
|
|
3430
|
+
sig { params(field: String, value: T.untyped).void }
|
|
3431
|
+
def []=(field, value)
|
|
3432
|
+
end
|
|
3433
|
+
|
|
3434
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
3435
|
+
def to_h
|
|
3436
|
+
end
|
|
3437
|
+
|
|
3438
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference) }
|
|
3439
|
+
def self.decode(str)
|
|
3440
|
+
end
|
|
3441
|
+
|
|
3442
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference).returns(String) }
|
|
3443
|
+
def self.encode(msg)
|
|
3444
|
+
end
|
|
3445
|
+
|
|
3446
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference) }
|
|
3447
|
+
def self.decode_json(str, **kw)
|
|
3448
|
+
end
|
|
3449
|
+
|
|
3450
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference, kw: T.untyped).returns(String) }
|
|
3451
|
+
def self.encode_json(msg, **kw)
|
|
3452
|
+
end
|
|
3453
|
+
|
|
3454
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
3455
|
+
def self.descriptor
|
|
3456
|
+
end
|
|
3457
|
+
end
|