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