temporalio 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (492) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +1461 -621
  3. data/Cargo.toml +1 -1
  4. data/Gemfile +6 -5
  5. data/README.md +42 -1
  6. data/ext/Cargo.toml +9 -3
  7. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  8. data/lib/temporalio/api/cloud/billing/v1/message.rb +2 -1
  9. data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +17 -1
  10. data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
  11. data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
  12. data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
  13. data/lib/temporalio/api/cloud/namespace/v1/message.rb +5 -1
  14. data/lib/temporalio/api/command/v1/message.rb +2 -1
  15. data/lib/temporalio/api/common/v1/message.rb +5 -1
  16. data/lib/temporalio/api/deployment/v1/message.rb +3 -1
  17. data/lib/temporalio/api/history/v1/message.rb +3 -1
  18. data/lib/temporalio/api/namespace/v1/message.rb +1 -1
  19. data/lib/temporalio/api/nexus/v1/message.rb +1 -1
  20. data/lib/temporalio/api/nexusannotations/v1/options.rb +20 -0
  21. data/lib/temporalio/api/payload_visitor.rb +32 -0
  22. data/lib/temporalio/api/schedule/v1/message.rb +1 -1
  23. data/lib/temporalio/api/sdk/v1/event_group_marker.rb +26 -0
  24. data/lib/temporalio/api/update/v1/message.rb +1 -1
  25. data/lib/temporalio/api/workflow/v1/message.rb +3 -2
  26. data/lib/temporalio/api/workflowservice/v1/request_response.rb +11 -1
  27. data/lib/temporalio/api/workflowservice/v1/service.rb +3 -2
  28. data/lib/temporalio/client/connection/cloud_service.rb +120 -0
  29. data/lib/temporalio/client/connection/workflow_service.rb +75 -0
  30. data/lib/temporalio/client/connection.rb +37 -2
  31. data/lib/temporalio/client.rb +10 -5
  32. data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
  33. data/lib/temporalio/internal/bridge/client.rb +6 -1
  34. data/lib/temporalio/internal/bridge.rb +20 -0
  35. data/lib/temporalio/internal/google_protobuf.rb +11 -0
  36. data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
  37. data/lib/temporalio/internal/worker/workflow_instance/details.rb +3 -1
  38. data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +73 -2
  39. data/lib/temporalio/internal/worker/workflow_instance.rb +36 -6
  40. data/lib/temporalio/internal/worker/workflow_worker.rb +10 -2
  41. data/lib/temporalio/internal/workflow_task_failure_error.rb +9 -0
  42. data/lib/temporalio/version.rb +1 -1
  43. data/lib/temporalio/worker/activity_executor/fiber.rb +1 -1
  44. data/lib/temporalio/worker/activity_executor/thread_pool.rb +1 -1
  45. data/lib/temporalio/worker/illegal_workflow_call_validator.rb +3 -1
  46. data/lib/temporalio/worker/workflow_executor/thread_pool.rb +5 -1
  47. data/lib/temporalio/worker/workflow_replayer.rb +17 -4
  48. data/lib/temporalio/worker.rb +30 -5
  49. data/lib/temporalio/workflow/future.rb +5 -0
  50. data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
  51. data/lib/temporalio/workflow.rb +8 -0
  52. data/rbi/google/protobuf.rbi +25 -0
  53. data/rbi/temporalio/activity/cancellation_details.rbi +33 -0
  54. data/rbi/temporalio/activity/complete_async_error.rbi +3 -0
  55. data/rbi/temporalio/activity/context.rbi +42 -0
  56. data/rbi/temporalio/activity/definition.rbi +74 -0
  57. data/rbi/temporalio/activity/info.rbi +112 -0
  58. data/rbi/temporalio/activity.rbi +3 -0
  59. data/rbi/temporalio/api/activity/v1/message.rbi +1453 -0
  60. data/rbi/temporalio/api/batch/v1/message.rbi +1283 -0
  61. data/rbi/temporalio/api/callback/v1/message.rbi +188 -0
  62. data/rbi/temporalio/api/cloud/account/v1/message.rbi +650 -0
  63. data/rbi/temporalio/api/cloud/auditlog/v1/message.rbi +318 -0
  64. data/rbi/temporalio/api/cloud/billing/v1/message.rbi +480 -0
  65. data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +12454 -0
  66. data/rbi/temporalio/api/cloud/cloudservice/v1/service.rbi +3 -0
  67. data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +709 -0
  68. data/rbi/temporalio/api/cloud/cloudservice.rbi +5 -0
  69. data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +403 -0
  70. data/rbi/temporalio/api/cloud/identity/v1/message.rbi +3072 -0
  71. data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +3659 -0
  72. data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +595 -0
  73. data/rbi/temporalio/api/cloud/operation/v1/message.rbi +244 -0
  74. data/rbi/temporalio/api/cloud/region/v1/message.rbi +166 -0
  75. data/rbi/temporalio/api/cloud/resource/v1/message.rbi +29 -0
  76. data/rbi/temporalio/api/cloud/sink/v1/message.rbi +438 -0
  77. data/rbi/temporalio/api/cloud/usage/v1/message.rbi +409 -0
  78. data/rbi/temporalio/api/command/v1/message.rbi +2655 -0
  79. data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
  80. data/rbi/temporalio/api/common/v1/message.rbi +2983 -0
  81. data/rbi/temporalio/api/compute/v1/config.rbi +421 -0
  82. data/rbi/temporalio/api/compute/v1/provider.rbi +125 -0
  83. data/rbi/temporalio/api/compute/v1/scaler.rbi +102 -0
  84. data/rbi/temporalio/api/deployment/v1/message.rbi +2340 -0
  85. data/rbi/temporalio/api/enums/v1/activity.rbi +62 -0
  86. data/rbi/temporalio/api/enums/v1/batch_operation.rbi +47 -0
  87. data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
  88. data/rbi/temporalio/api/enums/v1/common.rbi +181 -0
  89. data/rbi/temporalio/api/enums/v1/deployment.rbi +80 -0
  90. data/rbi/temporalio/api/enums/v1/event_type.rbi +79 -0
  91. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +155 -0
  92. data/rbi/temporalio/api/enums/v1/namespace.rbi +58 -0
  93. data/rbi/temporalio/api/enums/v1/nexus.rbi +98 -0
  94. data/rbi/temporalio/api/enums/v1/query.rbi +40 -0
  95. data/rbi/temporalio/api/enums/v1/reset.rbi +60 -0
  96. data/rbi/temporalio/api/enums/v1/schedule.rbi +25 -0
  97. data/rbi/temporalio/api/enums/v1/task_queue.rbi +134 -0
  98. data/rbi/temporalio/api/enums/v1/update.rbi +39 -0
  99. data/rbi/temporalio/api/enums/v1/workflow.rbi +259 -0
  100. data/rbi/temporalio/api/errordetails/v1/message.rbi +1389 -0
  101. data/rbi/temporalio/api/export/v1/message.rbi +123 -0
  102. data/rbi/temporalio/api/failure/v1/message.rbi +1303 -0
  103. data/rbi/temporalio/api/filter/v1/message.rbi +267 -0
  104. data/rbi/temporalio/api/history/v1/message.rbi +10737 -0
  105. data/rbi/temporalio/api/namespace/v1/message.rbi +1044 -0
  106. data/rbi/temporalio/api/nexus/v1/message.rbi +2780 -0
  107. data/rbi/temporalio/api/nexusannotations/v1/options.rbi +161 -0
  108. data/rbi/temporalio/api/nexusservices/workerservice/v1/request_response.rbi +124 -0
  109. data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +1836 -0
  110. data/rbi/temporalio/api/operatorservice/v1/service.rbi +3 -0
  111. data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +143 -0
  112. data/rbi/temporalio/api/operatorservice.rbi +5 -0
  113. data/rbi/temporalio/api/payload_visitor.rbi +876 -0
  114. data/rbi/temporalio/api/protoc_gen_openapiv2/options/annotations.rbi +3 -0
  115. data/rbi/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbi +3482 -0
  116. data/rbi/temporalio/api/protocol/v1/message.rbi +139 -0
  117. data/rbi/temporalio/api/protometa/v1/annotations.rbi +97 -0
  118. data/rbi/temporalio/api/query/v1/message.rbi +288 -0
  119. data/rbi/temporalio/api/replication/v1/message.rbi +226 -0
  120. data/rbi/temporalio/api/rules/v1/message.rbi +492 -0
  121. data/rbi/temporalio/api/schedule/v1/message.rbi +2377 -0
  122. data/rbi/temporalio/api/sdk/v1/enhanced_stack_trace.rbi +478 -0
  123. data/rbi/temporalio/api/sdk/v1/event_group_marker.rbi +337 -0
  124. data/rbi/temporalio/api/sdk/v1/external_storage.rbi +85 -0
  125. data/rbi/temporalio/api/sdk/v1/task_complete_metadata.rbi +206 -0
  126. data/rbi/temporalio/api/sdk/v1/user_metadata.rbi +98 -0
  127. data/rbi/temporalio/api/sdk/v1/worker_config.rbi +255 -0
  128. data/rbi/temporalio/api/sdk/v1/workflow_metadata.rbi +297 -0
  129. data/rbi/temporalio/api/taskqueue/v1/message.rbi +2460 -0
  130. data/rbi/temporalio/api/testservice/v1/request_response.rbi +380 -0
  131. data/rbi/temporalio/api/testservice/v1/service.rbi +3 -0
  132. data/rbi/temporalio/api/testservice/v1/service_services.rbi +100 -0
  133. data/rbi/temporalio/api/update/v1/message.rbi +800 -0
  134. data/rbi/temporalio/api/version/v1/message.rbi +281 -0
  135. data/rbi/temporalio/api/worker/v1/message.rbi +1565 -0
  136. data/rbi/temporalio/api/workflow/v1/message.rbi +5011 -0
  137. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +30477 -0
  138. data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
  139. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1571 -0
  140. data/rbi/temporalio/api/workflowservice.rbi +5 -0
  141. data/rbi/temporalio/api.rbi +7 -0
  142. data/rbi/temporalio/cancellation.rbi +40 -0
  143. data/rbi/temporalio/client/activity_execution.rbi +134 -0
  144. data/rbi/temporalio/client/activity_execution_count.rbi +23 -0
  145. data/rbi/temporalio/client/activity_execution_status.rbi +11 -0
  146. data/rbi/temporalio/client/activity_handle.rbi +49 -0
  147. data/rbi/temporalio/client/activity_id_reference.rbi +24 -0
  148. data/rbi/temporalio/client/async_activity_handle.rbi +49 -0
  149. data/rbi/temporalio/client/connection/cloud_service.rbi +239 -0
  150. data/rbi/temporalio/client/connection/operator_service.rbi +47 -0
  151. data/rbi/temporalio/client/connection/service.rbi +19 -0
  152. data/rbi/temporalio/client/connection/test_service.rbi +29 -0
  153. data/rbi/temporalio/client/connection/workflow_service.rbi +377 -0
  154. data/rbi/temporalio/client/connection.rbi +284 -0
  155. data/rbi/temporalio/client/interceptor.rbi +1067 -0
  156. data/rbi/temporalio/client/pending_activity_state.rbi +9 -0
  157. data/rbi/temporalio/client/plugin.rbi +17 -0
  158. data/rbi/temporalio/client/schedule.rbi +677 -0
  159. data/rbi/temporalio/client/schedule_handle.rbi +40 -0
  160. data/rbi/temporalio/client/with_start_workflow_operation.rbi +126 -0
  161. data/rbi/temporalio/client/workflow_execution.rbi +62 -0
  162. data/rbi/temporalio/client/workflow_execution_count.rbi +23 -0
  163. data/rbi/temporalio/client/workflow_execution_status.rbi +11 -0
  164. data/rbi/temporalio/client/workflow_handle.rbi +148 -0
  165. data/rbi/temporalio/client/workflow_query_reject_condition.rbi +7 -0
  166. data/rbi/temporalio/client/workflow_update_handle.rbi +38 -0
  167. data/rbi/temporalio/client/workflow_update_wait_stage.rbi +7 -0
  168. data/rbi/temporalio/client.rbi +534 -0
  169. data/rbi/temporalio/common_enums.rbi +45 -0
  170. data/rbi/temporalio/contrib/open_telemetry.rbi +73 -0
  171. data/rbi/temporalio/converters/data_converter.rbi +44 -0
  172. data/rbi/temporalio/converters/failure_converter.rbi +20 -0
  173. data/rbi/temporalio/converters/payload_codec.rbi +11 -0
  174. data/rbi/temporalio/converters/payload_converter/binary_null.rbi +5 -0
  175. data/rbi/temporalio/converters/payload_converter/binary_plain.rbi +5 -0
  176. data/rbi/temporalio/converters/payload_converter/binary_protobuf.rbi +5 -0
  177. data/rbi/temporalio/converters/payload_converter/composite.rbi +20 -0
  178. data/rbi/temporalio/converters/payload_converter/encoding.rbi +14 -0
  179. data/rbi/temporalio/converters/payload_converter/json_plain.rbi +10 -0
  180. data/rbi/temporalio/converters/payload_converter/json_protobuf.rbi +5 -0
  181. data/rbi/temporalio/converters/payload_converter.rbi +28 -0
  182. data/rbi/temporalio/converters/raw_value.rbi +11 -0
  183. data/rbi/temporalio/converters.rbi +3 -0
  184. data/rbi/temporalio/env_config.rbi +156 -0
  185. data/rbi/temporalio/error/failure.rbi +3 -0
  186. data/rbi/temporalio/error.rbi +313 -0
  187. data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +547 -0
  188. data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +705 -0
  189. data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +332 -0
  190. data/rbi/temporalio/internal/bridge/api/common/common.rbi +191 -0
  191. data/rbi/temporalio/internal/bridge/api/core_interface.rbi +567 -0
  192. data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +255 -0
  193. data/rbi/temporalio/internal/bridge/api/nexus/nexus.rbi +527 -0
  194. data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +2808 -0
  195. data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +3309 -0
  196. data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +272 -0
  197. data/rbi/temporalio/internal/bridge/api.rbi +3 -0
  198. data/rbi/temporalio/internal/bridge/client.rbi +346 -0
  199. data/rbi/temporalio/internal/bridge/runtime.rbi +231 -0
  200. data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
  201. data/rbi/temporalio/internal/bridge/worker.rbi +250 -0
  202. data/rbi/temporalio/internal/bridge.rbi +47 -0
  203. data/rbi/temporalio/internal/client/implementation.rbi +53 -0
  204. data/rbi/temporalio/internal/google_protobuf.rbi +8 -0
  205. data/rbi/temporalio/internal/metric.rbi +55 -0
  206. data/rbi/temporalio/internal/proto_utils.rbi +148 -0
  207. data/rbi/temporalio/internal/worker/activity_worker.rbi +108 -0
  208. data/rbi/temporalio/internal/worker/multi_runner.rbi +175 -0
  209. data/rbi/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbi +20 -0
  210. data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +290 -0
  211. data/rbi/temporalio/internal/worker/workflow_instance/details.rbi +87 -0
  212. data/rbi/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbi +14 -0
  213. data/rbi/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbi +17 -0
  214. data/rbi/temporalio/internal/worker/workflow_instance/handler_execution.rbi +17 -0
  215. data/rbi/temporalio/internal/worker/workflow_instance/handler_hash.rbi +24 -0
  216. data/rbi/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbi +17 -0
  217. data/rbi/temporalio/internal/worker/workflow_instance/inbound_implementation.rbi +21 -0
  218. data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +47 -0
  219. data/rbi/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbi +19 -0
  220. data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +43 -0
  221. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbi +11 -0
  222. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbi +15 -0
  223. data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +36 -0
  224. data/rbi/temporalio/internal/worker/workflow_instance.rbi +231 -0
  225. data/rbi/temporalio/internal/worker/workflow_worker.rbi +199 -0
  226. data/rbi/temporalio/internal/workflow_task_failure_error.rbi +3 -0
  227. data/rbi/temporalio/internal.rbi +3 -0
  228. data/rbi/temporalio/metric.rbi +56 -0
  229. data/rbi/temporalio/priority.rbi +38 -0
  230. data/rbi/temporalio/retry_policy.rbi +40 -0
  231. data/rbi/temporalio/runtime/metric_buffer.rbi +45 -0
  232. data/rbi/temporalio/runtime.rbi +185 -0
  233. data/rbi/temporalio/scoped_logger.rbi +50 -0
  234. data/rbi/temporalio/search_attributes.rbi +94 -0
  235. data/rbi/temporalio/simple_plugin.rbi +41 -0
  236. data/rbi/temporalio/testing/activity_environment.rbi +43 -0
  237. data/rbi/temporalio/testing/workflow_environment.rbi +116 -0
  238. data/rbi/temporalio/testing.rbi +3 -0
  239. data/rbi/temporalio/version.rbi +5 -0
  240. data/rbi/temporalio/versioning_override.rbi +13 -0
  241. data/rbi/temporalio/worker/activity_executor/fiber.rbi +20 -0
  242. data/rbi/temporalio/worker/activity_executor/thread_pool.rbi +20 -0
  243. data/rbi/temporalio/worker/activity_executor.rbi +20 -0
  244. data/rbi/temporalio/worker/deployment_options.rbi +23 -0
  245. data/rbi/temporalio/worker/illegal_workflow_call_validator.rbi +33 -0
  246. data/rbi/temporalio/worker/interceptor.rbi +489 -0
  247. data/rbi/temporalio/worker/plugin.rbi +49 -0
  248. data/rbi/temporalio/worker/poller_behavior.rbi +29 -0
  249. data/rbi/temporalio/worker/thread_pool.rbi +38 -0
  250. data/rbi/temporalio/worker/tuner.rbi +221 -0
  251. data/rbi/temporalio/worker/workflow_executor/thread_pool.rbi +15 -0
  252. data/rbi/temporalio/worker/workflow_executor.rbi +8 -0
  253. data/rbi/temporalio/worker/workflow_replayer.rbi +152 -0
  254. data/rbi/temporalio/worker.rbi +258 -0
  255. data/rbi/temporalio/worker_deployment_version.rbi +29 -0
  256. data/rbi/temporalio/workflow/activity_cancellation_type.rbi +7 -0
  257. data/rbi/temporalio/workflow/child_workflow_cancellation_type.rbi +8 -0
  258. data/rbi/temporalio/workflow/child_workflow_handle.rbi +27 -0
  259. data/rbi/temporalio/workflow/definition.rbi +305 -0
  260. data/rbi/temporalio/workflow/external_workflow_handle.rbi +24 -0
  261. data/rbi/temporalio/workflow/future.rbi +62 -0
  262. data/rbi/temporalio/workflow/handler_unfinished_policy.rbi +6 -0
  263. data/rbi/temporalio/workflow/info.rbi +100 -0
  264. data/rbi/temporalio/workflow/nexus_client.rbi +65 -0
  265. data/rbi/temporalio/workflow/nexus_operation_cancellation_type.rbi +8 -0
  266. data/rbi/temporalio/workflow/nexus_operation_handle.rbi +14 -0
  267. data/rbi/temporalio/workflow/parent_close_policy.rbi +8 -0
  268. data/rbi/temporalio/workflow/update_info.rbi +14 -0
  269. data/rbi/temporalio/workflow.rbi +393 -0
  270. data/rbi/temporalio/workflow_history.rbi +21 -0
  271. data/rbi/temporalio.rbi +5 -0
  272. data/sig/common.rbs +1 -0
  273. data/sig/google/protobuf_compat.rbs +17 -0
  274. data/sig/open_telemetry.rbs +47 -0
  275. data/sig/temporalio/activity/cancellation_details.rbs +21 -0
  276. data/sig/temporalio/activity/complete_async_error.rbs +6 -0
  277. data/sig/temporalio/activity/context.rbs +26 -0
  278. data/sig/temporalio/activity/definition.rbs +60 -0
  279. data/sig/temporalio/activity/info.rbs +57 -0
  280. data/sig/temporalio/activity.rbs +4 -0
  281. data/sig/temporalio/api/activity/v1/message.rbs +708 -0
  282. data/sig/temporalio/api/batch/v1/message.rbs +594 -0
  283. data/sig/temporalio/api/callback/v1/message.rbs +112 -0
  284. data/sig/temporalio/api/cloud/account/v1/message.rbs +314 -0
  285. data/sig/temporalio/api/cloud/auditlog/v1/message.rbs +168 -0
  286. data/sig/temporalio/api/cloud/billing/v1/message.rbs +279 -0
  287. data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +4726 -0
  288. data/sig/temporalio/api/cloud/cloudservice/v1/service.rbs +25 -0
  289. data/sig/temporalio/api/cloud/cloudservice.rbs +8 -0
  290. data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +191 -0
  291. data/sig/temporalio/api/cloud/identity/v1/message.rbs +1372 -0
  292. data/sig/temporalio/api/cloud/namespace/v1/message.rbs +1571 -0
  293. data/sig/temporalio/api/cloud/nexus/v1/message.rbs +269 -0
  294. data/sig/temporalio/api/cloud/operation/v1/message.rbs +156 -0
  295. data/sig/temporalio/api/cloud/region/v1/message.rbs +109 -0
  296. data/sig/temporalio/api/cloud/resource/v1/message.rbs +61 -0
  297. data/sig/temporalio/api/cloud/sink/v1/message.rbs +207 -0
  298. data/sig/temporalio/api/cloud/usage/v1/message.rbs +230 -0
  299. data/sig/temporalio/api/command/v1/message.rbs +1211 -0
  300. data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
  301. data/sig/temporalio/api/common/v1/message.rbs +1238 -0
  302. data/sig/temporalio/api/compute/v1/config.rbs +176 -0
  303. data/sig/temporalio/api/compute/v1/provider.rbs +73 -0
  304. data/sig/temporalio/api/compute/v1/scaler.rbs +60 -0
  305. data/sig/temporalio/api/deployment/v1/message.rbs +1063 -0
  306. data/sig/temporalio/api/enums/v1/activity.rbs +134 -0
  307. data/sig/temporalio/api/enums/v1/batch_operation.rbs +80 -0
  308. data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
  309. data/sig/temporalio/api/enums/v1/common.rbs +271 -0
  310. data/sig/temporalio/api/enums/v1/deployment.rbs +177 -0
  311. data/sig/temporalio/api/enums/v1/event_type.rbs +263 -0
  312. data/sig/temporalio/api/enums/v1/failed_cause.rbs +281 -0
  313. data/sig/temporalio/api/enums/v1/namespace.rbs +87 -0
  314. data/sig/temporalio/api/enums/v1/nexus.rbs +172 -0
  315. data/sig/temporalio/api/enums/v1/query.rbs +69 -0
  316. data/sig/temporalio/api/enums/v1/reset.rbs +106 -0
  317. data/sig/temporalio/api/enums/v1/schedule.rbs +68 -0
  318. data/sig/temporalio/api/enums/v1/task_queue.rbs +238 -0
  319. data/sig/temporalio/api/enums/v1/update.rbs +87 -0
  320. data/sig/temporalio/api/enums/v1/workflow.rbs +435 -0
  321. data/sig/temporalio/api/errordetails/v1/message.rbs +532 -0
  322. data/sig/temporalio/api/export/v1/message.rbs +63 -0
  323. data/sig/temporalio/api/failure/v1/message.rbs +579 -0
  324. data/sig/temporalio/api/filter/v1/message.rbs +121 -0
  325. data/sig/temporalio/api/history/v1/message.rbs +4928 -0
  326. data/sig/temporalio/api/namespace/v1/message.rbs +465 -0
  327. data/sig/temporalio/api/nexus/v1/message.rbs +1268 -0
  328. data/sig/temporalio/api/nexusannotations/v1/options.rbs +76 -0
  329. data/sig/temporalio/api/nexusservices/workerservice/v1/request_response.rbs +65 -0
  330. data/sig/temporalio/api/operatorservice/v1/request_response.rbs +679 -0
  331. data/sig/temporalio/api/operatorservice/v1/service.rbs +23 -0
  332. data/sig/temporalio/api/operatorservice.rbs +6 -0
  333. data/sig/temporalio/api/payload_visitor.rbs +298 -0
  334. data/sig/temporalio/api/protoc_gen_openapiv2/options/annotations.rbs +23 -0
  335. data/sig/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbs +1691 -0
  336. data/sig/temporalio/api/protocol/v1/message.rbs +90 -0
  337. data/sig/temporalio/api/protometa/v1/annotations.rbs +62 -0
  338. data/sig/temporalio/api/query/v1/message.rbs +138 -0
  339. data/sig/temporalio/api/replication/v1/message.rbs +109 -0
  340. data/sig/temporalio/api/rules/v1/message.rbs +213 -0
  341. data/sig/temporalio/api/schedule/v1/message.rbs +1066 -0
  342. data/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs +210 -0
  343. data/sig/temporalio/api/sdk/v1/event_group_marker.rbs +154 -0
  344. data/sig/temporalio/api/sdk/v1/external_storage.rbs +54 -0
  345. data/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs +92 -0
  346. data/sig/temporalio/api/sdk/v1/user_metadata.rbs +58 -0
  347. data/sig/temporalio/api/sdk/v1/worker_config.rbs +122 -0
  348. data/sig/temporalio/api/sdk/v1/workflow_metadata.rbs +138 -0
  349. data/sig/temporalio/api/taskqueue/v1/message.rbs +1013 -0
  350. data/sig/temporalio/api/testservice/v1/request_response.rbs +125 -0
  351. data/sig/temporalio/api/testservice/v1/service.rbs +23 -0
  352. data/sig/temporalio/api/update/v1/message.rbs +349 -0
  353. data/sig/temporalio/api/version/v1/message.rbs +143 -0
  354. data/sig/temporalio/api/worker/v1/message.rbs +716 -0
  355. data/sig/temporalio/api/workflow/v1/message.rbs +2322 -0
  356. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +12735 -0
  357. data/sig/temporalio/api/workflowservice/v1/service.rbs +23 -0
  358. data/sig/temporalio/api/workflowservice.rbs +6 -0
  359. data/sig/temporalio/api.rbs +4 -0
  360. data/sig/temporalio/cancellation.rbs +20 -0
  361. data/sig/temporalio/client/activity_execution.rbs +50 -0
  362. data/sig/temporalio/client/activity_execution_count.rbs +17 -0
  363. data/sig/temporalio/client/activity_execution_status.rbs +15 -0
  364. data/sig/temporalio/client/activity_handle.rbs +26 -0
  365. data/sig/temporalio/client/activity_id_reference.rbs +16 -0
  366. data/sig/temporalio/client/async_activity_handle.rbs +41 -0
  367. data/sig/temporalio/client/connection/cloud_service.rbs +315 -0
  368. data/sig/temporalio/client/connection/operator_service.rbs +59 -0
  369. data/sig/temporalio/client/connection/service.rbs +17 -0
  370. data/sig/temporalio/client/connection/test_service.rbs +35 -0
  371. data/sig/temporalio/client/connection/workflow_service.rbs +499 -0
  372. data/sig/temporalio/client/connection.rbs +143 -0
  373. data/sig/temporalio/client/interceptor.rbs +622 -0
  374. data/sig/temporalio/client/pending_activity_state.rbs +14 -0
  375. data/sig/temporalio/client/plugin.rbs +14 -0
  376. data/sig/temporalio/client/schedule.rbs +337 -0
  377. data/sig/temporalio/client/schedule_handle.rbs +44 -0
  378. data/sig/temporalio/client/with_start_workflow_operation.rbs +82 -0
  379. data/sig/temporalio/client/workflow_execution.rbs +37 -0
  380. data/sig/temporalio/client/workflow_execution_count.rbs +17 -0
  381. data/sig/temporalio/client/workflow_execution_status.rbs +16 -0
  382. data/sig/temporalio/client/workflow_handle.rbs +95 -0
  383. data/sig/temporalio/client/workflow_query_reject_condition.rbs +12 -0
  384. data/sig/temporalio/client/workflow_update_handle.rbs +26 -0
  385. data/sig/temporalio/client/workflow_update_wait_stage.rbs +12 -0
  386. data/sig/temporalio/client.rbs +271 -0
  387. data/sig/temporalio/common_enums.rbs +60 -0
  388. data/sig/temporalio/contrib/open_telemetry.rbs +74 -0
  389. data/sig/temporalio/converters/data_converter.rbs +32 -0
  390. data/sig/temporalio/converters/failure_converter.rbs +12 -0
  391. data/sig/temporalio/converters/payload_codec.rbs +8 -0
  392. data/sig/temporalio/converters/payload_converter/binary_null.rbs +9 -0
  393. data/sig/temporalio/converters/payload_converter/binary_plain.rbs +9 -0
  394. data/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +9 -0
  395. data/sig/temporalio/converters/payload_converter/composite.rbs +16 -0
  396. data/sig/temporalio/converters/payload_converter/encoding.rbs +13 -0
  397. data/sig/temporalio/converters/payload_converter/json_plain.rbs +14 -0
  398. data/sig/temporalio/converters/payload_converter/json_protobuf.rbs +9 -0
  399. data/sig/temporalio/converters/payload_converter.rbs +24 -0
  400. data/sig/temporalio/converters/raw_value.rbs +9 -0
  401. data/sig/temporalio/converters.rbs +4 -0
  402. data/sig/temporalio/env_config.rbs +86 -0
  403. data/sig/temporalio/error/failure.rbs +170 -0
  404. data/sig/temporalio/error.rbs +88 -0
  405. data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +247 -0
  406. data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +372 -0
  407. data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +207 -0
  408. data/sig/temporalio/internal/bridge/api/common/common.rbs +123 -0
  409. data/sig/temporalio/internal/bridge/api/core_interface.rbs +231 -0
  410. data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +134 -0
  411. data/sig/temporalio/internal/bridge/api/nexus/nexus.rbs +285 -0
  412. data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +1304 -0
  413. data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +1526 -0
  414. data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +136 -0
  415. data/sig/temporalio/internal/bridge/api.rbs +8 -0
  416. data/sig/temporalio/internal/bridge/client.rbs +144 -0
  417. data/sig/temporalio/internal/bridge/metric.rbs +28 -0
  418. data/sig/temporalio/internal/bridge/runtime.rbs +97 -0
  419. data/sig/temporalio/internal/bridge/testing.rbs +91 -0
  420. data/sig/temporalio/internal/bridge/worker.rbs +199 -0
  421. data/sig/temporalio/internal/bridge.rbs +36 -0
  422. data/sig/temporalio/internal/client/implementation.rbs +33 -0
  423. data/sig/temporalio/internal/google_protobuf.rbs +7 -0
  424. data/sig/temporalio/internal/metric.rbs +35 -0
  425. data/sig/temporalio/internal/proto_utils.rbs +94 -0
  426. data/sig/temporalio/internal/worker/activity_worker.rbs +64 -0
  427. data/sig/temporalio/internal/worker/multi_runner.rbs +132 -0
  428. data/sig/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbs +22 -0
  429. data/sig/temporalio/internal/worker/workflow_instance/context.rbs +172 -0
  430. data/sig/temporalio/internal/worker/workflow_instance/details.rbs +43 -0
  431. data/sig/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbs +15 -0
  432. data/sig/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbs +16 -0
  433. data/sig/temporalio/internal/worker/workflow_instance/handler_execution.rbs +19 -0
  434. data/sig/temporalio/internal/worker/workflow_instance/handler_hash.rbs +14 -0
  435. data/sig/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbs +20 -0
  436. data/sig/temporalio/internal/worker/workflow_instance/inbound_implementation.rbs +19 -0
  437. data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +25 -0
  438. data/sig/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbs +19 -0
  439. data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +35 -0
  440. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbs +16 -0
  441. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbs +15 -0
  442. data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +52 -0
  443. data/sig/temporalio/internal/worker/workflow_instance.rbs +111 -0
  444. data/sig/temporalio/internal/worker/workflow_worker.rbs +99 -0
  445. data/sig/temporalio/internal/workflow_task_failure_error.rbs +6 -0
  446. data/sig/temporalio/internal.rbs +4 -0
  447. data/sig/temporalio/metric.rbs +55 -0
  448. data/sig/temporalio/priority.rbs +17 -0
  449. data/sig/temporalio/retry_policy.rbs +21 -0
  450. data/sig/temporalio/runtime/metric_buffer.rbs +49 -0
  451. data/sig/temporalio/runtime.rbs +118 -0
  452. data/sig/temporalio/scoped_logger.rbs +15 -0
  453. data/sig/temporalio/search_attributes.rbs +82 -0
  454. data/sig/temporalio/simple_plugin.rbs +65 -0
  455. data/sig/temporalio/testing/activity_environment.rbs +52 -0
  456. data/sig/temporalio/testing/workflow_environment.rbs +141 -0
  457. data/sig/temporalio/testing.rbs +4 -0
  458. data/sig/temporalio/version.rbs +3 -0
  459. data/sig/temporalio/versioning_override.rbs +17 -0
  460. data/sig/temporalio/worker/activity_executor/fiber.rbs +9 -0
  461. data/sig/temporalio/worker/activity_executor/thread_pool.rbs +11 -0
  462. data/sig/temporalio/worker/activity_executor.rbs +12 -0
  463. data/sig/temporalio/worker/deployment_options.rbs +17 -0
  464. data/sig/temporalio/worker/illegal_workflow_call_validator.rbs +25 -0
  465. data/sig/temporalio/worker/interceptor.rbs +373 -0
  466. data/sig/temporalio/worker/plugin.rbs +47 -0
  467. data/sig/temporalio/worker/poller_behavior.rbs +23 -0
  468. data/sig/temporalio/worker/thread_pool.rbs +44 -0
  469. data/sig/temporalio/worker/tuner.rbs +121 -0
  470. data/sig/temporalio/worker/workflow_executor/thread_pool.rbs +58 -0
  471. data/sig/temporalio/worker/workflow_executor.rbs +15 -0
  472. data/sig/temporalio/worker/workflow_replayer.rbs +105 -0
  473. data/sig/temporalio/worker.rbs +168 -0
  474. data/sig/temporalio/worker_deployment_version.rbs +17 -0
  475. data/sig/temporalio/workflow/activity_cancellation_type.rbs +11 -0
  476. data/sig/temporalio/workflow/child_workflow_cancellation_type.rbs +12 -0
  477. data/sig/temporalio/workflow/child_workflow_handle.rbs +18 -0
  478. data/sig/temporalio/workflow/definition.rbs +181 -0
  479. data/sig/temporalio/workflow/external_workflow_handle.rbs +17 -0
  480. data/sig/temporalio/workflow/future.rbs +24 -0
  481. data/sig/temporalio/workflow/handler_unfinished_policy.rbs +10 -0
  482. data/sig/temporalio/workflow/info.rbs +79 -0
  483. data/sig/temporalio/workflow/nexus_client.rbs +34 -0
  484. data/sig/temporalio/workflow/nexus_operation_cancellation_type.rbs +12 -0
  485. data/sig/temporalio/workflow/nexus_operation_handle.rbs +10 -0
  486. data/sig/temporalio/workflow/parent_close_policy.rbs +12 -0
  487. data/sig/temporalio/workflow/update_info.rbs +15 -0
  488. data/sig/temporalio/workflow.rbs +215 -0
  489. data/sig/temporalio/workflow_history.rbs +13 -0
  490. data/sig/temporalio.rbs +3 -0
  491. data/temporalio.gemspec +1 -1
  492. metadata +445 -2
@@ -0,0 +1,1238 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # This RBS interface is provided for convenience, on a best-effort basis.
3
+ # The library is the definitive source for the API contract; if the RBS file
4
+ # and the library's behavior differ, the library behavior is authoritative.
5
+ # We welcome fixes to change the RBS file to match.
6
+ # source: temporal/api/common/v1/message.proto
7
+
8
+ module Temporalio
9
+ module Api
10
+ module Common
11
+ module V1
12
+ class DataBlob < ::Google::Protobuf::AbstractMessage
13
+
14
+ attr_reader encoding_type(): ::Temporalio::Api::Enums::V1::EncodingType::names | ::Integer
15
+ attr_writer encoding_type(): ::Temporalio::Api::Enums::V1::EncodingType::names | ::Temporalio::Api::Enums::V1::EncodingType::strings | ::Integer | ::Float
16
+ attr_reader encoding_type_const(): ::Integer
17
+ def clear_encoding_type: () -> void
18
+
19
+ attr_accessor data(): ::String
20
+ def clear_data: () -> void
21
+
22
+ type init_map = {
23
+ encoding_type: (::Temporalio::Api::Enums::V1::EncodingType::names | ::Temporalio::Api::Enums::V1::EncodingType::strings | ::Integer | ::Float)?,
24
+ "encoding_type" => (::Temporalio::Api::Enums::V1::EncodingType::names | ::Temporalio::Api::Enums::V1::EncodingType::strings | ::Integer | ::Float)?,
25
+ data: ::String?,
26
+ "data" => ::String?,
27
+ }
28
+
29
+ def initialize: (?init_map initial_value) -> void
30
+
31
+ def []:
32
+ ("encoding_type" name) -> (::Temporalio::Api::Enums::V1::EncodingType::names | ::Integer)
33
+ | ("data" name) -> ::String
34
+
35
+ def []=:
36
+ ("encoding_type" name, (::Temporalio::Api::Enums::V1::EncodingType::names | ::Temporalio::Api::Enums::V1::EncodingType::strings | ::Integer | ::Float) value) -> void
37
+ | ("data" name, ::String value) -> void
38
+ end
39
+
40
+ # See `Payload`
41
+ class Payloads < ::Google::Protobuf::AbstractMessage
42
+
43
+ attr_accessor payloads(): ::Google::Protobuf::RepeatedField
44
+ def clear_payloads: () -> void
45
+
46
+ type init_map = {
47
+ payloads: ::Array[::Temporalio::Api::Common::V1::Payload]?,
48
+ "payloads" => ::Array[::Temporalio::Api::Common::V1::Payload]?,
49
+ }
50
+
51
+ def initialize: (?init_map initial_value) -> void
52
+
53
+ def []:
54
+ ("payloads" name) -> ::Google::Protobuf::RepeatedField
55
+
56
+ def []=:
57
+ ("payloads" name, ::Google::Protobuf::RepeatedField value) -> void
58
+ end
59
+
60
+ # Represents some binary (byte array) data (ex: activity input parameters or workflow result) with
61
+ # metadata which describes this binary data (format, encoding, encryption, etc). Serialization
62
+ # of the data may be user-defined.
63
+ class Payload < ::Google::Protobuf::AbstractMessage
64
+ # Describes an externally stored object referenced by this payload.
65
+ class ExternalPayloadDetails < ::Google::Protobuf::AbstractMessage
66
+
67
+ # Size in bytes of the externally stored payload
68
+ attr_reader size_bytes(): ::Integer
69
+ attr_writer size_bytes(): ::Integer | ::Float
70
+ def clear_size_bytes: () -> void
71
+
72
+ type init_map = {
73
+ size_bytes: (::Integer | ::Float)?,
74
+ "size_bytes" => (::Integer | ::Float)?,
75
+ }
76
+
77
+ def initialize: (?init_map initial_value) -> void
78
+
79
+ def []:
80
+ ("size_bytes" name) -> ::Integer
81
+
82
+ def []=:
83
+ ("size_bytes" name, (::Integer | ::Float) value) -> void
84
+ end
85
+
86
+ attr_accessor metadata(): ::Google::Protobuf::Map[::String, ::String]
87
+ def clear_metadata: () -> void
88
+
89
+ attr_accessor data(): ::String
90
+ def clear_data: () -> void
91
+
92
+ # Details about externally stored payloads associated with this payload.
93
+ attr_accessor external_payloads(): ::Google::Protobuf::RepeatedField
94
+ def clear_external_payloads: () -> void
95
+
96
+ type init_map = {
97
+ metadata: ::Hash[::String | ::Symbol, ::String]?,
98
+ "metadata" => ::Hash[::String | ::Symbol, ::String]?,
99
+ data: ::String?,
100
+ "data" => ::String?,
101
+ external_payloads: ::Array[::Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails]?,
102
+ "external_payloads" => ::Array[::Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails]?,
103
+ }
104
+
105
+ def initialize: (?init_map initial_value) -> void
106
+
107
+ def []:
108
+ ("metadata" name) -> (::Google::Protobuf::Map[::String, ::String])
109
+ | ("data" name) -> ::String
110
+ | ("external_payloads" name) -> ::Google::Protobuf::RepeatedField
111
+
112
+ def []=:
113
+ ("metadata" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void
114
+ | ("data" name, ::String value) -> void
115
+ | ("external_payloads" name, ::Google::Protobuf::RepeatedField value) -> void
116
+ end
117
+
118
+ # A user-defined set of *indexed* fields that are used/exposed when listing/searching workflows.
119
+ # The payload is not serialized in a user-defined way.
120
+ class SearchAttributes < ::Google::Protobuf::AbstractMessage
121
+
122
+ attr_accessor indexed_fields(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]
123
+ def clear_indexed_fields: () -> void
124
+
125
+ type init_map = {
126
+ indexed_fields: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
127
+ "indexed_fields" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
128
+ }
129
+
130
+ def initialize: (?init_map initial_value) -> void
131
+
132
+ def []:
133
+ ("indexed_fields" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload])
134
+
135
+ def []=:
136
+ ("indexed_fields" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void
137
+ end
138
+
139
+ # A user-defined set of *unindexed* fields that are exposed when listing/searching workflows
140
+ class Memo < ::Google::Protobuf::AbstractMessage
141
+
142
+ attr_accessor fields(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]
143
+ def clear_fields: () -> void
144
+
145
+ type init_map = {
146
+ fields: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
147
+ "fields" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
148
+ }
149
+
150
+ def initialize: (?init_map initial_value) -> void
151
+
152
+ def []:
153
+ ("fields" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload])
154
+
155
+ def []=:
156
+ ("fields" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void
157
+ end
158
+
159
+ # Contains metadata that can be attached to a variety of requests, like starting a workflow, and
160
+ # can be propagated between, for example, workflows and activities.
161
+ class Header < ::Google::Protobuf::AbstractMessage
162
+
163
+ attr_accessor fields(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]
164
+ def clear_fields: () -> void
165
+
166
+ type init_map = {
167
+ fields: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
168
+ "fields" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
169
+ }
170
+
171
+ def initialize: (?init_map initial_value) -> void
172
+
173
+ def []:
174
+ ("fields" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload])
175
+
176
+ def []=:
177
+ ("fields" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void
178
+ end
179
+
180
+ # Identifies a specific workflow within a namespace. Practically speaking, because run_id is a
181
+ # uuid, a workflow execution is globally unique. Note that many commands allow specifying an empty
182
+ # run id as a way of saying "target the latest run of the workflow".
183
+ class WorkflowExecution < ::Google::Protobuf::AbstractMessage
184
+
185
+ attr_reader workflow_id(): ::String
186
+ attr_writer workflow_id(): ::String | ::Symbol
187
+ def clear_workflow_id: () -> void
188
+
189
+ attr_reader run_id(): ::String
190
+ attr_writer run_id(): ::String | ::Symbol
191
+ def clear_run_id: () -> void
192
+
193
+ type init_map = {
194
+ workflow_id: (::String | ::Symbol)?,
195
+ "workflow_id" => (::String | ::Symbol)?,
196
+ run_id: (::String | ::Symbol)?,
197
+ "run_id" => (::String | ::Symbol)?,
198
+ }
199
+
200
+ def initialize: (?init_map initial_value) -> void
201
+
202
+ def []:
203
+ ("workflow_id" name) -> ::String
204
+ | ("run_id" name) -> ::String
205
+
206
+ def []=:
207
+ ("workflow_id" name, (::String | ::Symbol) value) -> void
208
+ | ("run_id" name, (::String | ::Symbol) value) -> void
209
+ end
210
+
211
+ # Represents the identifier used by a workflow author to define the workflow. Typically, the
212
+ # name of a function. This is sometimes referred to as the workflow's "name"
213
+ class WorkflowType < ::Google::Protobuf::AbstractMessage
214
+
215
+ attr_reader name(): ::String
216
+ attr_writer name(): ::String | ::Symbol
217
+ def clear_name: () -> void
218
+
219
+ type init_map = {
220
+ name: (::String | ::Symbol)?,
221
+ "name" => (::String | ::Symbol)?,
222
+ }
223
+
224
+ def initialize: (?init_map initial_value) -> void
225
+
226
+ def []:
227
+ ("name" name) -> ::String
228
+
229
+ def []=:
230
+ ("name" name, (::String | ::Symbol) value) -> void
231
+ end
232
+
233
+ # Represents the identifier used by a activity author to define the activity. Typically, the
234
+ # name of a function. This is sometimes referred to as the activity's "name"
235
+ class ActivityType < ::Google::Protobuf::AbstractMessage
236
+
237
+ attr_reader name(): ::String
238
+ attr_writer name(): ::String | ::Symbol
239
+ def clear_name: () -> void
240
+
241
+ type init_map = {
242
+ name: (::String | ::Symbol)?,
243
+ "name" => (::String | ::Symbol)?,
244
+ }
245
+
246
+ def initialize: (?init_map initial_value) -> void
247
+
248
+ def []:
249
+ ("name" name) -> ::String
250
+
251
+ def []=:
252
+ ("name" name, (::String | ::Symbol) value) -> void
253
+ end
254
+
255
+ # How retries ought to be handled, usable by both workflows and activities
256
+ class RetryPolicy < ::Google::Protobuf::AbstractMessage
257
+
258
+ # Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
259
+ attr_reader initial_interval(): ::Google::Protobuf::Duration?
260
+ attr_writer initial_interval(): (::Google::Protobuf::Duration | ::int)?
261
+ def has_initial_interval?: () -> bool
262
+ def clear_initial_interval: () -> void
263
+
264
+ # Coefficient used to calculate the next retry interval.
265
+ # The next retry interval is previous interval multiplied by the coefficient.
266
+ # Must be 1 or larger.
267
+ attr_reader backoff_coefficient(): ::Float
268
+ attr_writer backoff_coefficient(): ::Float | ::Integer
269
+ def clear_backoff_coefficient: () -> void
270
+
271
+ # Maximum interval between retries. Exponential backoff leads to interval increase.
272
+ # This value is the cap of the increase. Default is 100x of the initial interval.
273
+ attr_reader maximum_interval(): ::Google::Protobuf::Duration?
274
+ attr_writer maximum_interval(): (::Google::Protobuf::Duration | ::int)?
275
+ def has_maximum_interval?: () -> bool
276
+ def clear_maximum_interval: () -> void
277
+
278
+ # Maximum number of attempts. When exceeded the retries stop even if not expired yet.
279
+ # 1 disables retries. 0 means unlimited (up to the timeouts)
280
+ attr_reader maximum_attempts(): ::Integer
281
+ attr_writer maximum_attempts(): ::Integer | ::Float
282
+ def clear_maximum_attempts: () -> void
283
+
284
+ # Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
285
+ # this is not a substring match, the error *type* (not message) must match exactly.
286
+ attr_accessor non_retryable_error_types(): ::Google::Protobuf::RepeatedField
287
+ def clear_non_retryable_error_types: () -> void
288
+
289
+ type init_map = {
290
+ initial_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
291
+ "initial_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
292
+ backoff_coefficient: (::Float | ::Integer)?,
293
+ "backoff_coefficient" => (::Float | ::Integer)?,
294
+ maximum_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
295
+ "maximum_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
296
+ maximum_attempts: (::Integer | ::Float)?,
297
+ "maximum_attempts" => (::Integer | ::Float)?,
298
+ non_retryable_error_types: ::Array[::String | ::Symbol]?,
299
+ "non_retryable_error_types" => ::Array[::String | ::Symbol]?,
300
+ }
301
+
302
+ def initialize: (?init_map initial_value) -> void
303
+
304
+ def []:
305
+ ("initial_interval" name) -> ::Google::Protobuf::Duration?
306
+ | ("backoff_coefficient" name) -> ::Float
307
+ | ("maximum_interval" name) -> ::Google::Protobuf::Duration?
308
+ | ("maximum_attempts" name) -> ::Integer
309
+ | ("non_retryable_error_types" name) -> (::Google::Protobuf::RepeatedField)
310
+
311
+ def []=:
312
+ ("initial_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
313
+ | ("backoff_coefficient" name, (::Float | ::Integer) value) -> void
314
+ | ("maximum_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
315
+ | ("maximum_attempts" name, (::Integer | ::Float) value) -> void
316
+ | ("non_retryable_error_types" name, (::Google::Protobuf::RepeatedField) value) -> void
317
+ end
318
+
319
+ # Metadata relevant for metering purposes
320
+ class MeteringMetadata < ::Google::Protobuf::AbstractMessage
321
+
322
+ # Count of local activities which have begun an execution attempt during this workflow task,
323
+ # and whose first attempt occurred in some previous task. This is used for metering
324
+ # purposes, and does not affect workflow state.
325
+ # (-- api-linter: core::0141::forbidden-types=disabled
326
+ # aip.dev/not-precedent: Negative values make no sense to represent. --)
327
+ attr_reader nonfirst_local_activity_execution_attempts(): ::Integer
328
+ attr_writer nonfirst_local_activity_execution_attempts(): ::Integer | ::Float
329
+ def clear_nonfirst_local_activity_execution_attempts: () -> void
330
+
331
+ type init_map = {
332
+ nonfirst_local_activity_execution_attempts: (::Integer | ::Float)?,
333
+ "nonfirst_local_activity_execution_attempts" => (::Integer | ::Float)?,
334
+ }
335
+
336
+ def initialize: (?init_map initial_value) -> void
337
+
338
+ def []:
339
+ ("nonfirst_local_activity_execution_attempts" name) -> ::Integer
340
+
341
+ def []=:
342
+ ("nonfirst_local_activity_execution_attempts" name, (::Integer | ::Float) value) -> void
343
+ end
344
+
345
+ # Deprecated. This message is replaced with `Deployment` and `VersioningBehavior`.
346
+ # Identifies the version(s) of a worker that processed a task
347
+ class WorkerVersionStamp < ::Google::Protobuf::AbstractMessage
348
+
349
+ # An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
350
+ # message is included in requests which previously used that.
351
+ attr_reader build_id(): ::String
352
+ attr_writer build_id(): ::String | ::Symbol
353
+ def clear_build_id: () -> void
354
+
355
+ # If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
356
+ # marker for workflow reset points and the BuildIDs search attribute.
357
+ attr_accessor use_versioning(): bool
358
+ def clear_use_versioning: () -> void
359
+
360
+ type init_map = {
361
+ build_id: (::String | ::Symbol)?,
362
+ "build_id" => (::String | ::Symbol)?,
363
+ use_versioning: bool?,
364
+ "use_versioning" => bool?,
365
+ }
366
+
367
+ def initialize: (?init_map initial_value) -> void
368
+
369
+ def []:
370
+ ("build_id" name) -> ::String
371
+ | ("use_versioning" name) -> bool
372
+
373
+ def []=:
374
+ ("build_id" name, (::String | ::Symbol) value) -> void
375
+ | ("use_versioning" name, bool value) -> void
376
+ end
377
+
378
+ # Identifies the version that a worker is compatible with when polling or identifying itself,
379
+ # and whether or not this worker is opting into the build-id based versioning feature. This is
380
+ # used by matching to determine which workers ought to receive what tasks.
381
+ # Deprecated. Use WorkerDeploymentOptions instead.
382
+ class WorkerVersionCapabilities < ::Google::Protobuf::AbstractMessage
383
+
384
+ # An opaque whole-worker identifier
385
+ attr_reader build_id(): ::String
386
+ attr_writer build_id(): ::String | ::Symbol
387
+ def clear_build_id: () -> void
388
+
389
+ # If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
390
+ # tasks.
391
+ attr_accessor use_versioning(): bool
392
+ def clear_use_versioning: () -> void
393
+
394
+ # Must be sent if user has set a deployment series name (versioning-3).
395
+ attr_reader deployment_series_name(): ::String
396
+ attr_writer deployment_series_name(): ::String | ::Symbol
397
+ def clear_deployment_series_name: () -> void
398
+
399
+ type init_map = {
400
+ build_id: (::String | ::Symbol)?,
401
+ "build_id" => (::String | ::Symbol)?,
402
+ use_versioning: bool?,
403
+ "use_versioning" => bool?,
404
+ deployment_series_name: (::String | ::Symbol)?,
405
+ "deployment_series_name" => (::String | ::Symbol)?,
406
+ }
407
+
408
+ def initialize: (?init_map initial_value) -> void
409
+
410
+ def []:
411
+ ("build_id" name) -> ::String
412
+ | ("use_versioning" name) -> bool
413
+ | ("deployment_series_name" name) -> ::String
414
+
415
+ def []=:
416
+ ("build_id" name, (::String | ::Symbol) value) -> void
417
+ | ("use_versioning" name, bool value) -> void
418
+ | ("deployment_series_name" name, (::String | ::Symbol) value) -> void
419
+ end
420
+
421
+ # Describes where and how to reset a workflow, used for batch reset currently
422
+ # and may be used for single-workflow reset later.
423
+ class ResetOptions < ::Google::Protobuf::AbstractMessage
424
+
425
+ # Resets to the first workflow task completed or started event.
426
+ attr_accessor first_workflow_task(): ::Google::Protobuf::Empty?
427
+ def has_first_workflow_task?: () -> bool
428
+ def clear_first_workflow_task: () -> void
429
+
430
+ # Resets to the last workflow task completed or started event.
431
+ attr_accessor last_workflow_task(): ::Google::Protobuf::Empty?
432
+ def has_last_workflow_task?: () -> bool
433
+ def clear_last_workflow_task: () -> void
434
+
435
+ # The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
436
+ # `WORKFLOW_TASK_STARTED` event to reset to.
437
+ # Note that this option doesn't make sense when used as part of a batch request.
438
+ attr_reader workflow_task_id(): ::Integer
439
+ attr_writer workflow_task_id(): (::Integer | ::Float)?
440
+ def has_workflow_task_id?: () -> bool
441
+ def clear_workflow_task_id: () -> void
442
+
443
+ # Resets to the first workflow task processed by this build id.
444
+ # If the workflow was not processed by the build id, or the workflow task can't be
445
+ # determined, no reset will be performed.
446
+ # Note that by default, this reset is allowed to be to a prior run in a chain of
447
+ # continue-as-new.
448
+ attr_reader build_id(): ::String
449
+ attr_writer build_id(): (::String | ::Symbol)?
450
+ def has_build_id?: () -> bool
451
+ def clear_build_id: () -> void
452
+
453
+ # Deprecated. Use `options`.
454
+ # Default: RESET_REAPPLY_TYPE_SIGNAL
455
+ # @deprecated
456
+ attr_reader reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer
457
+ attr_writer reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float
458
+ attr_reader reset_reapply_type_const(): ::Integer
459
+ def clear_reset_reapply_type: () -> void
460
+
461
+ # If true, limit the reset to only within the current run. (Applies to build_id targets and
462
+ # possibly others in the future.)
463
+ attr_accessor current_run_only(): bool
464
+ def clear_current_run_only: () -> void
465
+
466
+ # Event types not to be reapplied
467
+ attr_accessor reset_reapply_exclude_types(): ::Google::Protobuf::RepeatedField
468
+ attr_reader reset_reapply_exclude_types_const(): ::Array[::Integer]
469
+ def clear_reset_reapply_exclude_types: () -> void
470
+
471
+ # Which workflow task to reset to.
472
+ attr_reader target(): (::Google::Protobuf::Empty | ::Integer | ::String)?
473
+ def has_target?: () -> bool
474
+ def clear_target: () -> void
475
+
476
+ type init_map = {
477
+ first_workflow_task: (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?,
478
+ "first_workflow_task" => (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?,
479
+ last_workflow_task: (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?,
480
+ "last_workflow_task" => (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?,
481
+ workflow_task_id: (::Integer | ::Float)?,
482
+ "workflow_task_id" => (::Integer | ::Float)?,
483
+ build_id: (::String | ::Symbol)?,
484
+ "build_id" => (::String | ::Symbol)?,
485
+ reset_reapply_type: (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?,
486
+ "reset_reapply_type" => (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?,
487
+ current_run_only: bool?,
488
+ "current_run_only" => bool?,
489
+ reset_reapply_exclude_types: ::Array[::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::names | ::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::strings | ::Integer | ::Float]?,
490
+ "reset_reapply_exclude_types" => ::Array[::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::names | ::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::strings | ::Integer | ::Float]?,
491
+ }
492
+
493
+ def initialize: (?init_map initial_value) -> void
494
+
495
+ def []:
496
+ ("first_workflow_task" name) -> ::Google::Protobuf::Empty?
497
+ | ("last_workflow_task" name) -> ::Google::Protobuf::Empty?
498
+ | ("workflow_task_id" name) -> ::Integer
499
+ | ("build_id" name) -> ::String
500
+ | ("reset_reapply_type" name) -> (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer)
501
+ | ("current_run_only" name) -> bool
502
+ | ("reset_reapply_exclude_types" name) -> (::Google::Protobuf::RepeatedField)
503
+
504
+ def []=:
505
+ ("first_workflow_task" name, ::Google::Protobuf::Empty? value) -> void
506
+ | ("last_workflow_task" name, ::Google::Protobuf::Empty? value) -> void
507
+ | ("workflow_task_id" name, ((::Integer | ::Float)?) value) -> void
508
+ | ("build_id" name, ((::String | ::Symbol)?) value) -> void
509
+ | ("reset_reapply_type" name, (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float) value) -> void
510
+ | ("current_run_only" name, bool value) -> void
511
+ | ("reset_reapply_exclude_types" name, (::Google::Protobuf::RepeatedField) value) -> void
512
+ end
513
+
514
+ # Callback to attach to various events in the system, e.g. workflow run completion.
515
+ class Callback < ::Google::Protobuf::AbstractMessage
516
+ class Nexus < ::Google::Protobuf::AbstractMessage
517
+
518
+ # Callback URL.
519
+ attr_reader url(): ::String
520
+ attr_writer url(): ::String | ::Symbol
521
+ def clear_url: () -> void
522
+
523
+ # Header to attach to callback request.
524
+ attr_accessor header(): ::Google::Protobuf::Map[::String, ::String]
525
+ def clear_header: () -> void
526
+
527
+ type init_map = {
528
+ url: (::String | ::Symbol)?,
529
+ "url" => (::String | ::Symbol)?,
530
+ header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
531
+ "header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
532
+ }
533
+
534
+ def initialize: (?init_map initial_value) -> void
535
+
536
+ def []:
537
+ ("url" name) -> ::String
538
+ | ("header" name) -> (::Google::Protobuf::Map[::String, ::String])
539
+
540
+ def []=:
541
+ ("url" name, (::String | ::Symbol) value) -> void
542
+ | ("header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void
543
+ end
544
+
545
+ # Callbacks to be delivered internally within the system.
546
+ # This variant is not settable in the API and will be rejected by the service with an INVALID_ARGUMENT error.
547
+ # The only reason that this is exposed is because callbacks are replicated across clusters via the
548
+ # WorkflowExecutionStarted event, which is defined in the public API.
549
+ class Internal < ::Google::Protobuf::AbstractMessage
550
+
551
+ # Opaque internal data.
552
+ attr_accessor data(): ::String
553
+ def clear_data: () -> void
554
+
555
+ type init_map = {
556
+ data: ::String?,
557
+ "data" => ::String?,
558
+ }
559
+
560
+ def initialize: (?init_map initial_value) -> void
561
+
562
+ def []:
563
+ ("data" name) -> ::String
564
+
565
+ def []=:
566
+ ("data" name, ::String value) -> void
567
+ end
568
+
569
+ attr_accessor nexus(): ::Temporalio::Api::Common::V1::Callback::Nexus?
570
+ def has_nexus?: () -> bool
571
+ def clear_nexus: () -> void
572
+
573
+ attr_accessor internal(): ::Temporalio::Api::Common::V1::Callback::Internal?
574
+ def has_internal?: () -> bool
575
+ def clear_internal: () -> void
576
+
577
+ # Links associated with the callback. It can be used to link to underlying resources of the
578
+ # callback.
579
+ attr_accessor links(): ::Google::Protobuf::RepeatedField
580
+ def clear_links: () -> void
581
+
582
+ attr_reader variant(): (::Temporalio::Api::Common::V1::Callback::Nexus | ::Temporalio::Api::Common::V1::Callback::Internal)?
583
+ def has_variant?: () -> bool
584
+ def clear_variant: () -> void
585
+
586
+ type init_map = {
587
+ nexus: (::Temporalio::Api::Common::V1::Callback::Nexus | ::Temporalio::Api::Common::V1::Callback::Nexus::init_map)?,
588
+ "nexus" => (::Temporalio::Api::Common::V1::Callback::Nexus | ::Temporalio::Api::Common::V1::Callback::Nexus::init_map)?,
589
+ internal: (::Temporalio::Api::Common::V1::Callback::Internal | ::Temporalio::Api::Common::V1::Callback::Internal::init_map)?,
590
+ "internal" => (::Temporalio::Api::Common::V1::Callback::Internal | ::Temporalio::Api::Common::V1::Callback::Internal::init_map)?,
591
+ links: ::Array[::Temporalio::Api::Common::V1::Link]?,
592
+ "links" => ::Array[::Temporalio::Api::Common::V1::Link]?,
593
+ }
594
+
595
+ def initialize: (?init_map initial_value) -> void
596
+
597
+ def []:
598
+ ("nexus" name) -> ::Temporalio::Api::Common::V1::Callback::Nexus?
599
+ | ("internal" name) -> ::Temporalio::Api::Common::V1::Callback::Internal?
600
+ | ("links" name) -> ::Google::Protobuf::RepeatedField
601
+
602
+ def []=:
603
+ ("nexus" name, ::Temporalio::Api::Common::V1::Callback::Nexus? value) -> void
604
+ | ("internal" name, ::Temporalio::Api::Common::V1::Callback::Internal? value) -> void
605
+ | ("links" name, ::Google::Protobuf::RepeatedField value) -> void
606
+ end
607
+
608
+ # Link can be associated with history events. It might contain information about an external entity
609
+ # related to the history event. For example, workflow A makes a Nexus call that starts workflow B:
610
+ # in this case, a history event in workflow A could contain a Link to the workflow started event in
611
+ # workflow B, and vice-versa.
612
+ class Link < ::Google::Protobuf::AbstractMessage
613
+ class WorkflowEvent < ::Google::Protobuf::AbstractMessage
614
+ # EventReference is a direct reference to a history event through the event ID.
615
+ class EventReference < ::Google::Protobuf::AbstractMessage
616
+
617
+ attr_reader event_id(): ::Integer
618
+ attr_writer event_id(): ::Integer | ::Float
619
+ def clear_event_id: () -> void
620
+
621
+ attr_reader event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Integer
622
+ attr_writer event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float
623
+ attr_reader event_type_const(): ::Integer
624
+ def clear_event_type: () -> void
625
+
626
+ type init_map = {
627
+ event_id: (::Integer | ::Float)?,
628
+ "event_id" => (::Integer | ::Float)?,
629
+ event_type: (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?,
630
+ "event_type" => (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?,
631
+ }
632
+
633
+ def initialize: (?init_map initial_value) -> void
634
+
635
+ def []:
636
+ ("event_id" name) -> ::Integer
637
+ | ("event_type" name) -> (::Temporalio::Api::Enums::V1::EventType::names | ::Integer)
638
+
639
+ def []=:
640
+ ("event_id" name, (::Integer | ::Float) value) -> void
641
+ | ("event_type" name, (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float) value) -> void
642
+ end
643
+
644
+ # RequestIdReference is a indirect reference to a history event through the request ID.
645
+ class RequestIdReference < ::Google::Protobuf::AbstractMessage
646
+
647
+ attr_reader request_id(): ::String
648
+ attr_writer request_id(): ::String | ::Symbol
649
+ def clear_request_id: () -> void
650
+
651
+ attr_reader event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Integer
652
+ attr_writer event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float
653
+ attr_reader event_type_const(): ::Integer
654
+ def clear_event_type: () -> void
655
+
656
+ type init_map = {
657
+ request_id: (::String | ::Symbol)?,
658
+ "request_id" => (::String | ::Symbol)?,
659
+ event_type: (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?,
660
+ "event_type" => (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?,
661
+ }
662
+
663
+ def initialize: (?init_map initial_value) -> void
664
+
665
+ def []:
666
+ ("request_id" name) -> ::String
667
+ | ("event_type" name) -> (::Temporalio::Api::Enums::V1::EventType::names | ::Integer)
668
+
669
+ def []=:
670
+ ("request_id" name, (::String | ::Symbol) value) -> void
671
+ | ("event_type" name, (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float) value) -> void
672
+ end
673
+
674
+ attr_reader namespace(): ::String
675
+ attr_writer namespace(): ::String | ::Symbol
676
+ def clear_namespace: () -> void
677
+
678
+ attr_reader workflow_id(): ::String
679
+ attr_writer workflow_id(): ::String | ::Symbol
680
+ def clear_workflow_id: () -> void
681
+
682
+ attr_reader run_id(): ::String
683
+ attr_writer run_id(): ::String | ::Symbol
684
+ def clear_run_id: () -> void
685
+
686
+ attr_accessor event_ref(): ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference?
687
+ def has_event_ref?: () -> bool
688
+ def clear_event_ref: () -> void
689
+
690
+ attr_accessor request_id_ref(): ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference?
691
+ def has_request_id_ref?: () -> bool
692
+ def clear_request_id_ref: () -> void
693
+
694
+ # Additional information about the workflow event.
695
+ # Eg: the caller workflow can send the history event details that made the Nexus call.
696
+ attr_reader reference(): (::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference)?
697
+ def has_reference?: () -> bool
698
+ def clear_reference: () -> void
699
+
700
+ type init_map = {
701
+ namespace: (::String | ::Symbol)?,
702
+ "namespace" => (::String | ::Symbol)?,
703
+ workflow_id: (::String | ::Symbol)?,
704
+ "workflow_id" => (::String | ::Symbol)?,
705
+ run_id: (::String | ::Symbol)?,
706
+ "run_id" => (::String | ::Symbol)?,
707
+ event_ref: (::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference::init_map)?,
708
+ "event_ref" => (::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference::init_map)?,
709
+ request_id_ref: (::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference::init_map)?,
710
+ "request_id_ref" => (::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference::init_map)?,
711
+ }
712
+
713
+ def initialize: (?init_map initial_value) -> void
714
+
715
+ def []:
716
+ ("namespace" name) -> ::String
717
+ | ("workflow_id" name) -> ::String
718
+ | ("run_id" name) -> ::String
719
+ | ("event_ref" name) -> ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference?
720
+ | ("request_id_ref" name) -> ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference?
721
+
722
+ def []=:
723
+ ("namespace" name, (::String | ::Symbol) value) -> void
724
+ | ("workflow_id" name, (::String | ::Symbol) value) -> void
725
+ | ("run_id" name, (::String | ::Symbol) value) -> void
726
+ | ("event_ref" name, ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference? value) -> void
727
+ | ("request_id_ref" name, ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference? value) -> void
728
+ end
729
+
730
+ # A link to a built-in batch job.
731
+ # Batch jobs can be used to perform operations on a set of workflows (e.g. terminate, signal, cancel, etc).
732
+ # This link can be put on workflow history events generated by actions taken by a batch job.
733
+ class BatchJob < ::Google::Protobuf::AbstractMessage
734
+
735
+ attr_reader job_id(): ::String
736
+ attr_writer job_id(): ::String | ::Symbol
737
+ def clear_job_id: () -> void
738
+
739
+ type init_map = {
740
+ job_id: (::String | ::Symbol)?,
741
+ "job_id" => (::String | ::Symbol)?,
742
+ }
743
+
744
+ def initialize: (?init_map initial_value) -> void
745
+
746
+ def []:
747
+ ("job_id" name) -> ::String
748
+
749
+ def []=:
750
+ ("job_id" name, (::String | ::Symbol) value) -> void
751
+ end
752
+
753
+ # A link to an activity.
754
+ class Activity < ::Google::Protobuf::AbstractMessage
755
+
756
+ attr_reader namespace(): ::String
757
+ attr_writer namespace(): ::String | ::Symbol
758
+ def clear_namespace: () -> void
759
+
760
+ attr_reader activity_id(): ::String
761
+ attr_writer activity_id(): ::String | ::Symbol
762
+ def clear_activity_id: () -> void
763
+
764
+ attr_reader run_id(): ::String
765
+ attr_writer run_id(): ::String | ::Symbol
766
+ def clear_run_id: () -> void
767
+
768
+ type init_map = {
769
+ namespace: (::String | ::Symbol)?,
770
+ "namespace" => (::String | ::Symbol)?,
771
+ activity_id: (::String | ::Symbol)?,
772
+ "activity_id" => (::String | ::Symbol)?,
773
+ run_id: (::String | ::Symbol)?,
774
+ "run_id" => (::String | ::Symbol)?,
775
+ }
776
+
777
+ def initialize: (?init_map initial_value) -> void
778
+
779
+ def []:
780
+ ("namespace" name) -> ::String
781
+ | ("activity_id" name) -> ::String
782
+ | ("run_id" name) -> ::String
783
+
784
+ def []=:
785
+ ("namespace" name, (::String | ::Symbol) value) -> void
786
+ | ("activity_id" name, (::String | ::Symbol) value) -> void
787
+ | ("run_id" name, (::String | ::Symbol) value) -> void
788
+ end
789
+
790
+ # A link to a standalone Nexus operation.
791
+ class NexusOperation < ::Google::Protobuf::AbstractMessage
792
+
793
+ attr_reader namespace(): ::String
794
+ attr_writer namespace(): ::String | ::Symbol
795
+ def clear_namespace: () -> void
796
+
797
+ attr_reader operation_id(): ::String
798
+ attr_writer operation_id(): ::String | ::Symbol
799
+ def clear_operation_id: () -> void
800
+
801
+ attr_reader run_id(): ::String
802
+ attr_writer run_id(): ::String | ::Symbol
803
+ def clear_run_id: () -> void
804
+
805
+ type init_map = {
806
+ namespace: (::String | ::Symbol)?,
807
+ "namespace" => (::String | ::Symbol)?,
808
+ operation_id: (::String | ::Symbol)?,
809
+ "operation_id" => (::String | ::Symbol)?,
810
+ run_id: (::String | ::Symbol)?,
811
+ "run_id" => (::String | ::Symbol)?,
812
+ }
813
+
814
+ def initialize: (?init_map initial_value) -> void
815
+
816
+ def []:
817
+ ("namespace" name) -> ::String
818
+ | ("operation_id" name) -> ::String
819
+ | ("run_id" name) -> ::String
820
+
821
+ def []=:
822
+ ("namespace" name, (::String | ::Symbol) value) -> void
823
+ | ("operation_id" name, (::String | ::Symbol) value) -> void
824
+ | ("run_id" name, (::String | ::Symbol) value) -> void
825
+ end
826
+
827
+ # A link to a workflow execution. This is a more general version of WorkflowEvent that doesn't specify a
828
+ # particular event within the workflow, useful when you want to link to a workflow but there is no particular event to link to,
829
+ # such as a Query or a Rejected Update.
830
+ class Workflow < ::Google::Protobuf::AbstractMessage
831
+
832
+ attr_reader namespace(): ::String
833
+ attr_writer namespace(): ::String | ::Symbol
834
+ def clear_namespace: () -> void
835
+
836
+ attr_reader workflow_id(): ::String
837
+ attr_writer workflow_id(): ::String | ::Symbol
838
+ def clear_workflow_id: () -> void
839
+
840
+ attr_reader run_id(): ::String
841
+ attr_writer run_id(): ::String | ::Symbol
842
+ def clear_run_id: () -> void
843
+
844
+ attr_reader reason(): ::String
845
+ attr_writer reason(): ::String | ::Symbol
846
+ def clear_reason: () -> void
847
+
848
+ type init_map = {
849
+ namespace: (::String | ::Symbol)?,
850
+ "namespace" => (::String | ::Symbol)?,
851
+ workflow_id: (::String | ::Symbol)?,
852
+ "workflow_id" => (::String | ::Symbol)?,
853
+ run_id: (::String | ::Symbol)?,
854
+ "run_id" => (::String | ::Symbol)?,
855
+ reason: (::String | ::Symbol)?,
856
+ "reason" => (::String | ::Symbol)?,
857
+ }
858
+
859
+ def initialize: (?init_map initial_value) -> void
860
+
861
+ def []:
862
+ ("namespace" name) -> ::String
863
+ | ("workflow_id" name) -> ::String
864
+ | ("run_id" name) -> ::String
865
+ | ("reason" name) -> ::String
866
+
867
+ def []=:
868
+ ("namespace" name, (::String | ::Symbol) value) -> void
869
+ | ("workflow_id" name, (::String | ::Symbol) value) -> void
870
+ | ("run_id" name, (::String | ::Symbol) value) -> void
871
+ | ("reason" name, (::String | ::Symbol) value) -> void
872
+ end
873
+
874
+ attr_accessor workflow_event(): ::Temporalio::Api::Common::V1::Link::WorkflowEvent?
875
+ def has_workflow_event?: () -> bool
876
+ def clear_workflow_event: () -> void
877
+
878
+ attr_accessor batch_job(): ::Temporalio::Api::Common::V1::Link::BatchJob?
879
+ def has_batch_job?: () -> bool
880
+ def clear_batch_job: () -> void
881
+
882
+ attr_accessor activity(): ::Temporalio::Api::Common::V1::Link::Activity?
883
+ def has_activity?: () -> bool
884
+ def clear_activity: () -> void
885
+
886
+ attr_accessor nexus_operation(): ::Temporalio::Api::Common::V1::Link::NexusOperation?
887
+ def has_nexus_operation?: () -> bool
888
+ def clear_nexus_operation: () -> void
889
+
890
+ attr_accessor workflow(): ::Temporalio::Api::Common::V1::Link::Workflow?
891
+ def has_workflow?: () -> bool
892
+ def clear_workflow: () -> void
893
+
894
+ attr_reader variant(): (::Temporalio::Api::Common::V1::Link::WorkflowEvent | ::Temporalio::Api::Common::V1::Link::BatchJob | ::Temporalio::Api::Common::V1::Link::Activity | ::Temporalio::Api::Common::V1::Link::NexusOperation | ::Temporalio::Api::Common::V1::Link::Workflow)?
895
+ def has_variant?: () -> bool
896
+ def clear_variant: () -> void
897
+
898
+ type init_map = {
899
+ workflow_event: (::Temporalio::Api::Common::V1::Link::WorkflowEvent | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::init_map)?,
900
+ "workflow_event" => (::Temporalio::Api::Common::V1::Link::WorkflowEvent | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::init_map)?,
901
+ batch_job: (::Temporalio::Api::Common::V1::Link::BatchJob | ::Temporalio::Api::Common::V1::Link::BatchJob::init_map)?,
902
+ "batch_job" => (::Temporalio::Api::Common::V1::Link::BatchJob | ::Temporalio::Api::Common::V1::Link::BatchJob::init_map)?,
903
+ activity: (::Temporalio::Api::Common::V1::Link::Activity | ::Temporalio::Api::Common::V1::Link::Activity::init_map)?,
904
+ "activity" => (::Temporalio::Api::Common::V1::Link::Activity | ::Temporalio::Api::Common::V1::Link::Activity::init_map)?,
905
+ nexus_operation: (::Temporalio::Api::Common::V1::Link::NexusOperation | ::Temporalio::Api::Common::V1::Link::NexusOperation::init_map)?,
906
+ "nexus_operation" => (::Temporalio::Api::Common::V1::Link::NexusOperation | ::Temporalio::Api::Common::V1::Link::NexusOperation::init_map)?,
907
+ workflow: (::Temporalio::Api::Common::V1::Link::Workflow | ::Temporalio::Api::Common::V1::Link::Workflow::init_map)?,
908
+ "workflow" => (::Temporalio::Api::Common::V1::Link::Workflow | ::Temporalio::Api::Common::V1::Link::Workflow::init_map)?,
909
+ }
910
+
911
+ def initialize: (?init_map initial_value) -> void
912
+
913
+ def []:
914
+ ("workflow_event" name) -> ::Temporalio::Api::Common::V1::Link::WorkflowEvent?
915
+ | ("batch_job" name) -> ::Temporalio::Api::Common::V1::Link::BatchJob?
916
+ | ("activity" name) -> ::Temporalio::Api::Common::V1::Link::Activity?
917
+ | ("nexus_operation" name) -> ::Temporalio::Api::Common::V1::Link::NexusOperation?
918
+ | ("workflow" name) -> ::Temporalio::Api::Common::V1::Link::Workflow?
919
+
920
+ def []=:
921
+ ("workflow_event" name, ::Temporalio::Api::Common::V1::Link::WorkflowEvent? value) -> void
922
+ | ("batch_job" name, ::Temporalio::Api::Common::V1::Link::BatchJob? value) -> void
923
+ | ("activity" name, ::Temporalio::Api::Common::V1::Link::Activity? value) -> void
924
+ | ("nexus_operation" name, ::Temporalio::Api::Common::V1::Link::NexusOperation? value) -> void
925
+ | ("workflow" name, ::Temporalio::Api::Common::V1::Link::Workflow? value) -> void
926
+ end
927
+
928
+ # Principal is an authenticated caller identity computed by the server from trusted
929
+ # authentication context.
930
+ class Principal < ::Google::Protobuf::AbstractMessage
931
+
932
+ # Low-cardinality category of the principal (e.g., "jwt", "users").
933
+ attr_reader type(): ::String
934
+ attr_writer type(): ::String | ::Symbol
935
+ def clear_type: () -> void
936
+
937
+ # Identifier within that category (e.g., sub JWT claim, email address).
938
+ attr_reader name(): ::String
939
+ attr_writer name(): ::String | ::Symbol
940
+ def clear_name: () -> void
941
+
942
+ type init_map = {
943
+ type: (::String | ::Symbol)?,
944
+ "type" => (::String | ::Symbol)?,
945
+ name: (::String | ::Symbol)?,
946
+ "name" => (::String | ::Symbol)?,
947
+ }
948
+
949
+ def initialize: (?init_map initial_value) -> void
950
+
951
+ def []:
952
+ ("type" name) -> ::String
953
+ | ("name" name) -> ::String
954
+
955
+ def []=:
956
+ ("type" name, (::String | ::Symbol) value) -> void
957
+ | ("name" name, (::String | ::Symbol) value) -> void
958
+ end
959
+
960
+ # Priority contains metadata that controls relative ordering of task processing
961
+ # when tasks are backed up in a queue. Initially, Priority will be used in
962
+ # matching (workflow and activity) task queues. Later it may be used in history
963
+ # task queues and in rate limiting decisions.
964
+ # Priority is attached to workflows and activities. By default, activities
965
+ # inherit Priority from the workflow that created them, but may override fields
966
+ # when an activity is started or modified.
967
+ # Despite being named "Priority", this message also contains fields that
968
+ # control "fairness" mechanisms.
969
+ # For all fields, the field not present or equal to zero/empty string means to
970
+ # inherit the value from the calling workflow, or if there is no calling
971
+ # workflow, then use the default value.
972
+ # For all fields other than fairness_key, the zero value isn't meaningful so
973
+ # there's no confusion between inherit/default and a meaningful value. For
974
+ # fairness_key, the empty string will be interpreted as "inherit". This means
975
+ # that if a workflow has a non-empty fairness key, you can't override the
976
+ # fairness key of its activity to the empty string.
977
+ # The overall semantics of Priority are:
978
+ # 1. First, consider "priority": higher priority (lower number) goes first.
979
+ # 2. Then, consider fairness: try to dispatch tasks for different fairness keys
980
+ # in proportion to their weight.
981
+ # Applications may use any subset of mechanisms that are useful to them and
982
+ # leave the other fields to use default values.
983
+ # Not all queues in the system may support the "full" semantics of all priority
984
+ # fields. (Currently only support in matching task queues is planned.)
985
+ class Priority < ::Google::Protobuf::AbstractMessage
986
+
987
+ # Priority key is a positive integer from 1 to n, where smaller integers
988
+ # correspond to higher priorities (tasks run sooner). In general, tasks in
989
+ # a queue should be processed in close to priority order, although small
990
+ # deviations are possible.
991
+ # The maximum priority value (minimum priority) is determined by server
992
+ # configuration, and defaults to 5.
993
+ # If priority is not present (or zero), then the effective priority will be
994
+ # the default priority, which is calculated by (min+max)/2. With the
995
+ # default max of 5, and min of 1, that comes out to 3.
996
+ attr_reader priority_key(): ::Integer
997
+ attr_writer priority_key(): ::Integer | ::Float
998
+ def clear_priority_key: () -> void
999
+
1000
+ # Fairness key is a short string that's used as a key for a fairness
1001
+ # balancing mechanism. It may correspond to a tenant id, or to a fixed
1002
+ # string like "high" or "low". The default is the empty string.
1003
+ # The fairness mechanism attempts to dispatch tasks for a given key in
1004
+ # proportion to its weight. For example, using a thousand distinct tenant
1005
+ # ids, each with a weight of 1.0 (the default) will result in each tenant
1006
+ # getting a roughly equal share of task dispatch throughput.
1007
+ # (Note: this does not imply equal share of worker capacity! Fairness
1008
+ # decisions are made based on queue statistics, not
1009
+ # current worker load.)
1010
+ # As another example, using keys "high" and "low" with weight 9.0 and 1.0
1011
+ # respectively will prefer dispatching "high" tasks over "low" tasks at a
1012
+ # 9:1 ratio, while allowing either key to use all worker capacity if the
1013
+ # other is not present.
1014
+ # All fairness mechanisms, including rate limits, are best-effort and
1015
+ # probabilistic. The results may not match what a "perfect" algorithm with
1016
+ # infinite resources would produce. The more unique keys are used, the less
1017
+ # accurate the results will be.
1018
+ # Fairness keys are limited to 64 bytes.
1019
+ attr_reader fairness_key(): ::String
1020
+ attr_writer fairness_key(): ::String | ::Symbol
1021
+ def clear_fairness_key: () -> void
1022
+
1023
+ # Fairness weight for a task can come from multiple sources for
1024
+ # flexibility. From highest to lowest precedence:
1025
+ # 1. Weights for a small set of keys can be overridden in task queue
1026
+ # configuration with an API.
1027
+ # 2. It can be attached to the workflow/activity in this field.
1028
+ # 3. The default weight of 1.0 will be used.
1029
+ # Weight values are clamped to the range [0.001, 1000].
1030
+ attr_reader fairness_weight(): ::Float
1031
+ attr_writer fairness_weight(): ::Float | ::Integer
1032
+ def clear_fairness_weight: () -> void
1033
+
1034
+ type init_map = {
1035
+ priority_key: (::Integer | ::Float)?,
1036
+ "priority_key" => (::Integer | ::Float)?,
1037
+ fairness_key: (::String | ::Symbol)?,
1038
+ "fairness_key" => (::String | ::Symbol)?,
1039
+ fairness_weight: (::Float | ::Integer)?,
1040
+ "fairness_weight" => (::Float | ::Integer)?,
1041
+ }
1042
+
1043
+ def initialize: (?init_map initial_value) -> void
1044
+
1045
+ def []:
1046
+ ("priority_key" name) -> ::Integer
1047
+ | ("fairness_key" name) -> ::String
1048
+ | ("fairness_weight" name) -> ::Float
1049
+
1050
+ def []=:
1051
+ ("priority_key" name, (::Integer | ::Float) value) -> void
1052
+ | ("fairness_key" name, (::String | ::Symbol) value) -> void
1053
+ | ("fairness_weight" name, (::Float | ::Integer) value) -> void
1054
+ end
1055
+
1056
+ # This is used to send commands to a specific worker or a group of workers.
1057
+ # Right now, it is used to send commands to a specific worker instance.
1058
+ # Will be extended to be able to send command to multiple workers.
1059
+ class WorkerSelector < ::Google::Protobuf::AbstractMessage
1060
+
1061
+ # Worker instance key to which the command should be sent.
1062
+ attr_reader worker_instance_key(): ::String
1063
+ attr_writer worker_instance_key(): (::String | ::Symbol)?
1064
+ def has_worker_instance_key?: () -> bool
1065
+ def clear_worker_instance_key: () -> void
1066
+
1067
+ # Options are:
1068
+ # - query (will be used as query to ListWorkers, same format as in ListWorkersRequest.query)
1069
+ # - task queue (just a shortcut. Same as query=' "TaskQueue"="my-task-queue" ')
1070
+ # - etc.
1071
+ # All but 'query' are shortcuts, can be replaced with a query, but it is not convenient.
1072
+ # string query = 5;
1073
+ # string task_queue = 6;
1074
+ # ...
1075
+ attr_reader selector(): ::String?
1076
+ def has_selector?: () -> bool
1077
+ def clear_selector: () -> void
1078
+
1079
+ type init_map = {
1080
+ worker_instance_key: (::String | ::Symbol)?,
1081
+ "worker_instance_key" => (::String | ::Symbol)?,
1082
+ }
1083
+
1084
+ def initialize: (?init_map initial_value) -> void
1085
+
1086
+ def []:
1087
+ ("worker_instance_key" name) -> ::String
1088
+
1089
+ def []=:
1090
+ ("worker_instance_key" name, ((::String | ::Symbol)?) value) -> void
1091
+ end
1092
+
1093
+ # When starting an execution with a conflict policy that uses an existing execution and there is already an existing
1094
+ # running execution, OnConflictOptions defines actions to be taken on the existing running execution.
1095
+ class OnConflictOptions < ::Google::Protobuf::AbstractMessage
1096
+
1097
+ # Attaches the request ID to the running execution.
1098
+ attr_accessor attach_request_id(): bool
1099
+ def clear_attach_request_id: () -> void
1100
+
1101
+ # Attaches the completion callbacks to the running execution.
1102
+ attr_accessor attach_completion_callbacks(): bool
1103
+ def clear_attach_completion_callbacks: () -> void
1104
+
1105
+ # Attaches the links to the running execution.
1106
+ attr_accessor attach_links(): bool
1107
+ def clear_attach_links: () -> void
1108
+
1109
+ type init_map = {
1110
+ attach_request_id: bool?,
1111
+ "attach_request_id" => bool?,
1112
+ attach_completion_callbacks: bool?,
1113
+ "attach_completion_callbacks" => bool?,
1114
+ attach_links: bool?,
1115
+ "attach_links" => bool?,
1116
+ }
1117
+
1118
+ def initialize: (?init_map initial_value) -> void
1119
+
1120
+ def []:
1121
+ ("attach_request_id" name) -> bool
1122
+ | ("attach_completion_callbacks" name) -> bool
1123
+ | ("attach_links" name) -> bool
1124
+
1125
+ def []=:
1126
+ ("attach_request_id" name, bool value) -> void
1127
+ | ("attach_completion_callbacks" name, bool value) -> void
1128
+ | ("attach_links" name, bool value) -> void
1129
+ end
1130
+
1131
+ # The configuration for time skipping of a workflow execution (a chain of runs including retries, cron, continue-as-new).
1132
+ # When time skipping is enabled, virtual time advances automatically whenever there is no in-flight work.
1133
+ # In-flight work includes activities, child workflows, Nexus operations, signal/cancel external workflow operations,
1134
+ # and possibly other features added in the future.
1135
+ # User timers are not classified as in-flight work and will be skipped over; the virtual clock may also skip to the
1136
+ # time point of the registered fast forward when there is no in-flight work.
1137
+ # When time is skipped, a WorkflowExecutionTimeSkippingTransitionedEvent will be
1138
+ # added to the workflow history to capture the state changes.
1139
+ # For child workflows, by default, if the parent execution is skipping time, the child execution will also skip time,
1140
+ # but a parent's fast_forward won't affect its child's execution. A flag is provided to disable propagation of the
1141
+ # "enabled" flag to child workflows; regardless of that flag, a child workflow inherits the virtual time from the
1142
+ # parent execution as its start time.
1143
+ class TimeSkippingConfig < ::Google::Protobuf::AbstractMessage
1144
+
1145
+ # Enables or disables time skipping for this workflow execution.
1146
+ attr_accessor enabled(): bool
1147
+ def clear_enabled: () -> void
1148
+
1149
+ # Optionally fast-forward the current workflow execution by this duration ahead of current workflow execution time.
1150
+ # After the fast-forward completes, time skipping is disabled, and this
1151
+ # action is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent. It can be re-enabled by
1152
+ # setting `enabled` to true or setting `fast_forward` again via UpdateWorkflowExecutionOptions.
1153
+ # The current workflow execution is a chain of runs (retries, cron, continue-as-new);
1154
+ # child workflows are separate executions, so this fast_forward won't affect them.
1155
+ # For a given workflow execution, only one active fast-forward is allowed at a time.
1156
+ # If a new fast-forward is set via UpdateWorkflowExecutionOptions before the previous
1157
+ # one completes, the new one will override the previous one.
1158
+ # If the fast-forward duration exceeds the remaining execution timeout, time will only
1159
+ # be fast-forwarded up to the end of the execution.
1160
+ attr_reader fast_forward(): ::Google::Protobuf::Duration?
1161
+ attr_writer fast_forward(): (::Google::Protobuf::Duration | ::int)?
1162
+ def has_fast_forward?: () -> bool
1163
+ def clear_fast_forward: () -> void
1164
+
1165
+ # By default, child workflows inherit the "enabled" flag when they are started.
1166
+ # This flag disables that inheritance.
1167
+ attr_accessor disable_child_propagation(): bool
1168
+ def clear_disable_child_propagation: () -> void
1169
+
1170
+ type init_map = {
1171
+ enabled: bool?,
1172
+ "enabled" => bool?,
1173
+ fast_forward: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1174
+ "fast_forward" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1175
+ disable_child_propagation: bool?,
1176
+ "disable_child_propagation" => bool?,
1177
+ }
1178
+
1179
+ def initialize: (?init_map initial_value) -> void
1180
+
1181
+ def []:
1182
+ ("enabled" name) -> bool
1183
+ | ("fast_forward" name) -> ::Google::Protobuf::Duration?
1184
+ | ("disable_child_propagation" name) -> bool
1185
+
1186
+ def []=:
1187
+ ("enabled" name, bool value) -> void
1188
+ | ("fast_forward" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1189
+ | ("disable_child_propagation" name, bool value) -> void
1190
+ end
1191
+
1192
+ # The time-skipping state that needs to be propagated from a parent workflow to a child workflow,
1193
+ # or through a chain of runs.
1194
+ class TimeSkippingStatePropagation < ::Google::Protobuf::AbstractMessage
1195
+
1196
+ # The time skipped by the previous execution that started this workflow.
1197
+ # It can happen in child workflows and a chain of runs (CaN, cron, retry).
1198
+ attr_reader initial_skipped_duration(): ::Google::Protobuf::Duration?
1199
+ attr_writer initial_skipped_duration(): (::Google::Protobuf::Duration | ::int)?
1200
+ def has_initial_skipped_duration?: () -> bool
1201
+ def clear_initial_skipped_duration: () -> void
1202
+
1203
+ # If there is a fast-forward action set for the previous run in a chain of runs,
1204
+ # the target time should be propagated to the next run as well.
1205
+ attr_reader fast_forward_target_time(): ::Google::Protobuf::Timestamp?
1206
+ attr_writer fast_forward_target_time(): (::Google::Protobuf::Timestamp | ::Time)?
1207
+ def has_fast_forward_target_time?: () -> bool
1208
+ def clear_fast_forward_target_time: () -> void
1209
+
1210
+ type init_map = {
1211
+ initial_skipped_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1212
+ "initial_skipped_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1213
+ fast_forward_target_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1214
+ "fast_forward_target_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1215
+ }
1216
+
1217
+ def initialize: (?init_map initial_value) -> void
1218
+
1219
+ def []:
1220
+ ("initial_skipped_duration" name) -> ::Google::Protobuf::Duration?
1221
+ | ("fast_forward_target_time" name) -> ::Google::Protobuf::Timestamp?
1222
+
1223
+ def []=:
1224
+ ("initial_skipped_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1225
+ | ("fast_forward_target_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1226
+ end
1227
+ end
1228
+ end
1229
+ end
1230
+ end
1231
+
1232
+ module Google
1233
+ module Protobuf
1234
+ class DescriptorPool
1235
+ def lookup: (::String name) -> ::Google::Protobuf::Descriptor
1236
+ end
1237
+ end
1238
+ end