temporalio 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (492) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +1461 -621
  3. data/Cargo.toml +1 -1
  4. data/Gemfile +6 -5
  5. data/README.md +42 -1
  6. data/ext/Cargo.toml +9 -3
  7. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  8. data/lib/temporalio/api/cloud/billing/v1/message.rb +2 -1
  9. data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +17 -1
  10. data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
  11. data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
  12. data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
  13. data/lib/temporalio/api/cloud/namespace/v1/message.rb +5 -1
  14. data/lib/temporalio/api/command/v1/message.rb +2 -1
  15. data/lib/temporalio/api/common/v1/message.rb +5 -1
  16. data/lib/temporalio/api/deployment/v1/message.rb +3 -1
  17. data/lib/temporalio/api/history/v1/message.rb +3 -1
  18. data/lib/temporalio/api/namespace/v1/message.rb +1 -1
  19. data/lib/temporalio/api/nexus/v1/message.rb +1 -1
  20. data/lib/temporalio/api/nexusannotations/v1/options.rb +20 -0
  21. data/lib/temporalio/api/payload_visitor.rb +32 -0
  22. data/lib/temporalio/api/schedule/v1/message.rb +1 -1
  23. data/lib/temporalio/api/sdk/v1/event_group_marker.rb +26 -0
  24. data/lib/temporalio/api/update/v1/message.rb +1 -1
  25. data/lib/temporalio/api/workflow/v1/message.rb +3 -2
  26. data/lib/temporalio/api/workflowservice/v1/request_response.rb +11 -1
  27. data/lib/temporalio/api/workflowservice/v1/service.rb +3 -2
  28. data/lib/temporalio/client/connection/cloud_service.rb +120 -0
  29. data/lib/temporalio/client/connection/workflow_service.rb +75 -0
  30. data/lib/temporalio/client/connection.rb +37 -2
  31. data/lib/temporalio/client.rb +10 -5
  32. data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
  33. data/lib/temporalio/internal/bridge/client.rb +6 -1
  34. data/lib/temporalio/internal/bridge.rb +20 -0
  35. data/lib/temporalio/internal/google_protobuf.rb +11 -0
  36. data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
  37. data/lib/temporalio/internal/worker/workflow_instance/details.rb +3 -1
  38. data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +73 -2
  39. data/lib/temporalio/internal/worker/workflow_instance.rb +36 -6
  40. data/lib/temporalio/internal/worker/workflow_worker.rb +10 -2
  41. data/lib/temporalio/internal/workflow_task_failure_error.rb +9 -0
  42. data/lib/temporalio/version.rb +1 -1
  43. data/lib/temporalio/worker/activity_executor/fiber.rb +1 -1
  44. data/lib/temporalio/worker/activity_executor/thread_pool.rb +1 -1
  45. data/lib/temporalio/worker/illegal_workflow_call_validator.rb +3 -1
  46. data/lib/temporalio/worker/workflow_executor/thread_pool.rb +5 -1
  47. data/lib/temporalio/worker/workflow_replayer.rb +17 -4
  48. data/lib/temporalio/worker.rb +30 -5
  49. data/lib/temporalio/workflow/future.rb +5 -0
  50. data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
  51. data/lib/temporalio/workflow.rb +8 -0
  52. data/rbi/google/protobuf.rbi +25 -0
  53. data/rbi/temporalio/activity/cancellation_details.rbi +33 -0
  54. data/rbi/temporalio/activity/complete_async_error.rbi +3 -0
  55. data/rbi/temporalio/activity/context.rbi +42 -0
  56. data/rbi/temporalio/activity/definition.rbi +74 -0
  57. data/rbi/temporalio/activity/info.rbi +112 -0
  58. data/rbi/temporalio/activity.rbi +3 -0
  59. data/rbi/temporalio/api/activity/v1/message.rbi +1453 -0
  60. data/rbi/temporalio/api/batch/v1/message.rbi +1283 -0
  61. data/rbi/temporalio/api/callback/v1/message.rbi +188 -0
  62. data/rbi/temporalio/api/cloud/account/v1/message.rbi +650 -0
  63. data/rbi/temporalio/api/cloud/auditlog/v1/message.rbi +318 -0
  64. data/rbi/temporalio/api/cloud/billing/v1/message.rbi +480 -0
  65. data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +12454 -0
  66. data/rbi/temporalio/api/cloud/cloudservice/v1/service.rbi +3 -0
  67. data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +709 -0
  68. data/rbi/temporalio/api/cloud/cloudservice.rbi +5 -0
  69. data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +403 -0
  70. data/rbi/temporalio/api/cloud/identity/v1/message.rbi +3072 -0
  71. data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +3659 -0
  72. data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +595 -0
  73. data/rbi/temporalio/api/cloud/operation/v1/message.rbi +244 -0
  74. data/rbi/temporalio/api/cloud/region/v1/message.rbi +166 -0
  75. data/rbi/temporalio/api/cloud/resource/v1/message.rbi +29 -0
  76. data/rbi/temporalio/api/cloud/sink/v1/message.rbi +438 -0
  77. data/rbi/temporalio/api/cloud/usage/v1/message.rbi +409 -0
  78. data/rbi/temporalio/api/command/v1/message.rbi +2655 -0
  79. data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
  80. data/rbi/temporalio/api/common/v1/message.rbi +2983 -0
  81. data/rbi/temporalio/api/compute/v1/config.rbi +421 -0
  82. data/rbi/temporalio/api/compute/v1/provider.rbi +125 -0
  83. data/rbi/temporalio/api/compute/v1/scaler.rbi +102 -0
  84. data/rbi/temporalio/api/deployment/v1/message.rbi +2340 -0
  85. data/rbi/temporalio/api/enums/v1/activity.rbi +62 -0
  86. data/rbi/temporalio/api/enums/v1/batch_operation.rbi +47 -0
  87. data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
  88. data/rbi/temporalio/api/enums/v1/common.rbi +181 -0
  89. data/rbi/temporalio/api/enums/v1/deployment.rbi +80 -0
  90. data/rbi/temporalio/api/enums/v1/event_type.rbi +79 -0
  91. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +155 -0
  92. data/rbi/temporalio/api/enums/v1/namespace.rbi +58 -0
  93. data/rbi/temporalio/api/enums/v1/nexus.rbi +98 -0
  94. data/rbi/temporalio/api/enums/v1/query.rbi +40 -0
  95. data/rbi/temporalio/api/enums/v1/reset.rbi +60 -0
  96. data/rbi/temporalio/api/enums/v1/schedule.rbi +25 -0
  97. data/rbi/temporalio/api/enums/v1/task_queue.rbi +134 -0
  98. data/rbi/temporalio/api/enums/v1/update.rbi +39 -0
  99. data/rbi/temporalio/api/enums/v1/workflow.rbi +259 -0
  100. data/rbi/temporalio/api/errordetails/v1/message.rbi +1389 -0
  101. data/rbi/temporalio/api/export/v1/message.rbi +123 -0
  102. data/rbi/temporalio/api/failure/v1/message.rbi +1303 -0
  103. data/rbi/temporalio/api/filter/v1/message.rbi +267 -0
  104. data/rbi/temporalio/api/history/v1/message.rbi +10737 -0
  105. data/rbi/temporalio/api/namespace/v1/message.rbi +1044 -0
  106. data/rbi/temporalio/api/nexus/v1/message.rbi +2780 -0
  107. data/rbi/temporalio/api/nexusannotations/v1/options.rbi +161 -0
  108. data/rbi/temporalio/api/nexusservices/workerservice/v1/request_response.rbi +124 -0
  109. data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +1836 -0
  110. data/rbi/temporalio/api/operatorservice/v1/service.rbi +3 -0
  111. data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +143 -0
  112. data/rbi/temporalio/api/operatorservice.rbi +5 -0
  113. data/rbi/temporalio/api/payload_visitor.rbi +876 -0
  114. data/rbi/temporalio/api/protoc_gen_openapiv2/options/annotations.rbi +3 -0
  115. data/rbi/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbi +3482 -0
  116. data/rbi/temporalio/api/protocol/v1/message.rbi +139 -0
  117. data/rbi/temporalio/api/protometa/v1/annotations.rbi +97 -0
  118. data/rbi/temporalio/api/query/v1/message.rbi +288 -0
  119. data/rbi/temporalio/api/replication/v1/message.rbi +226 -0
  120. data/rbi/temporalio/api/rules/v1/message.rbi +492 -0
  121. data/rbi/temporalio/api/schedule/v1/message.rbi +2377 -0
  122. data/rbi/temporalio/api/sdk/v1/enhanced_stack_trace.rbi +478 -0
  123. data/rbi/temporalio/api/sdk/v1/event_group_marker.rbi +337 -0
  124. data/rbi/temporalio/api/sdk/v1/external_storage.rbi +85 -0
  125. data/rbi/temporalio/api/sdk/v1/task_complete_metadata.rbi +206 -0
  126. data/rbi/temporalio/api/sdk/v1/user_metadata.rbi +98 -0
  127. data/rbi/temporalio/api/sdk/v1/worker_config.rbi +255 -0
  128. data/rbi/temporalio/api/sdk/v1/workflow_metadata.rbi +297 -0
  129. data/rbi/temporalio/api/taskqueue/v1/message.rbi +2460 -0
  130. data/rbi/temporalio/api/testservice/v1/request_response.rbi +380 -0
  131. data/rbi/temporalio/api/testservice/v1/service.rbi +3 -0
  132. data/rbi/temporalio/api/testservice/v1/service_services.rbi +100 -0
  133. data/rbi/temporalio/api/update/v1/message.rbi +800 -0
  134. data/rbi/temporalio/api/version/v1/message.rbi +281 -0
  135. data/rbi/temporalio/api/worker/v1/message.rbi +1565 -0
  136. data/rbi/temporalio/api/workflow/v1/message.rbi +5011 -0
  137. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +30477 -0
  138. data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
  139. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1571 -0
  140. data/rbi/temporalio/api/workflowservice.rbi +5 -0
  141. data/rbi/temporalio/api.rbi +7 -0
  142. data/rbi/temporalio/cancellation.rbi +40 -0
  143. data/rbi/temporalio/client/activity_execution.rbi +134 -0
  144. data/rbi/temporalio/client/activity_execution_count.rbi +23 -0
  145. data/rbi/temporalio/client/activity_execution_status.rbi +11 -0
  146. data/rbi/temporalio/client/activity_handle.rbi +49 -0
  147. data/rbi/temporalio/client/activity_id_reference.rbi +24 -0
  148. data/rbi/temporalio/client/async_activity_handle.rbi +49 -0
  149. data/rbi/temporalio/client/connection/cloud_service.rbi +239 -0
  150. data/rbi/temporalio/client/connection/operator_service.rbi +47 -0
  151. data/rbi/temporalio/client/connection/service.rbi +19 -0
  152. data/rbi/temporalio/client/connection/test_service.rbi +29 -0
  153. data/rbi/temporalio/client/connection/workflow_service.rbi +377 -0
  154. data/rbi/temporalio/client/connection.rbi +284 -0
  155. data/rbi/temporalio/client/interceptor.rbi +1067 -0
  156. data/rbi/temporalio/client/pending_activity_state.rbi +9 -0
  157. data/rbi/temporalio/client/plugin.rbi +17 -0
  158. data/rbi/temporalio/client/schedule.rbi +677 -0
  159. data/rbi/temporalio/client/schedule_handle.rbi +40 -0
  160. data/rbi/temporalio/client/with_start_workflow_operation.rbi +126 -0
  161. data/rbi/temporalio/client/workflow_execution.rbi +62 -0
  162. data/rbi/temporalio/client/workflow_execution_count.rbi +23 -0
  163. data/rbi/temporalio/client/workflow_execution_status.rbi +11 -0
  164. data/rbi/temporalio/client/workflow_handle.rbi +148 -0
  165. data/rbi/temporalio/client/workflow_query_reject_condition.rbi +7 -0
  166. data/rbi/temporalio/client/workflow_update_handle.rbi +38 -0
  167. data/rbi/temporalio/client/workflow_update_wait_stage.rbi +7 -0
  168. data/rbi/temporalio/client.rbi +534 -0
  169. data/rbi/temporalio/common_enums.rbi +45 -0
  170. data/rbi/temporalio/contrib/open_telemetry.rbi +73 -0
  171. data/rbi/temporalio/converters/data_converter.rbi +44 -0
  172. data/rbi/temporalio/converters/failure_converter.rbi +20 -0
  173. data/rbi/temporalio/converters/payload_codec.rbi +11 -0
  174. data/rbi/temporalio/converters/payload_converter/binary_null.rbi +5 -0
  175. data/rbi/temporalio/converters/payload_converter/binary_plain.rbi +5 -0
  176. data/rbi/temporalio/converters/payload_converter/binary_protobuf.rbi +5 -0
  177. data/rbi/temporalio/converters/payload_converter/composite.rbi +20 -0
  178. data/rbi/temporalio/converters/payload_converter/encoding.rbi +14 -0
  179. data/rbi/temporalio/converters/payload_converter/json_plain.rbi +10 -0
  180. data/rbi/temporalio/converters/payload_converter/json_protobuf.rbi +5 -0
  181. data/rbi/temporalio/converters/payload_converter.rbi +28 -0
  182. data/rbi/temporalio/converters/raw_value.rbi +11 -0
  183. data/rbi/temporalio/converters.rbi +3 -0
  184. data/rbi/temporalio/env_config.rbi +156 -0
  185. data/rbi/temporalio/error/failure.rbi +3 -0
  186. data/rbi/temporalio/error.rbi +313 -0
  187. data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +547 -0
  188. data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +705 -0
  189. data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +332 -0
  190. data/rbi/temporalio/internal/bridge/api/common/common.rbi +191 -0
  191. data/rbi/temporalio/internal/bridge/api/core_interface.rbi +567 -0
  192. data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +255 -0
  193. data/rbi/temporalio/internal/bridge/api/nexus/nexus.rbi +527 -0
  194. data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +2808 -0
  195. data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +3309 -0
  196. data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +272 -0
  197. data/rbi/temporalio/internal/bridge/api.rbi +3 -0
  198. data/rbi/temporalio/internal/bridge/client.rbi +346 -0
  199. data/rbi/temporalio/internal/bridge/runtime.rbi +231 -0
  200. data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
  201. data/rbi/temporalio/internal/bridge/worker.rbi +250 -0
  202. data/rbi/temporalio/internal/bridge.rbi +47 -0
  203. data/rbi/temporalio/internal/client/implementation.rbi +53 -0
  204. data/rbi/temporalio/internal/google_protobuf.rbi +8 -0
  205. data/rbi/temporalio/internal/metric.rbi +55 -0
  206. data/rbi/temporalio/internal/proto_utils.rbi +148 -0
  207. data/rbi/temporalio/internal/worker/activity_worker.rbi +108 -0
  208. data/rbi/temporalio/internal/worker/multi_runner.rbi +175 -0
  209. data/rbi/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbi +20 -0
  210. data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +290 -0
  211. data/rbi/temporalio/internal/worker/workflow_instance/details.rbi +87 -0
  212. data/rbi/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbi +14 -0
  213. data/rbi/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbi +17 -0
  214. data/rbi/temporalio/internal/worker/workflow_instance/handler_execution.rbi +17 -0
  215. data/rbi/temporalio/internal/worker/workflow_instance/handler_hash.rbi +24 -0
  216. data/rbi/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbi +17 -0
  217. data/rbi/temporalio/internal/worker/workflow_instance/inbound_implementation.rbi +21 -0
  218. data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +47 -0
  219. data/rbi/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbi +19 -0
  220. data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +43 -0
  221. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbi +11 -0
  222. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbi +15 -0
  223. data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +36 -0
  224. data/rbi/temporalio/internal/worker/workflow_instance.rbi +231 -0
  225. data/rbi/temporalio/internal/worker/workflow_worker.rbi +199 -0
  226. data/rbi/temporalio/internal/workflow_task_failure_error.rbi +3 -0
  227. data/rbi/temporalio/internal.rbi +3 -0
  228. data/rbi/temporalio/metric.rbi +56 -0
  229. data/rbi/temporalio/priority.rbi +38 -0
  230. data/rbi/temporalio/retry_policy.rbi +40 -0
  231. data/rbi/temporalio/runtime/metric_buffer.rbi +45 -0
  232. data/rbi/temporalio/runtime.rbi +185 -0
  233. data/rbi/temporalio/scoped_logger.rbi +50 -0
  234. data/rbi/temporalio/search_attributes.rbi +94 -0
  235. data/rbi/temporalio/simple_plugin.rbi +41 -0
  236. data/rbi/temporalio/testing/activity_environment.rbi +43 -0
  237. data/rbi/temporalio/testing/workflow_environment.rbi +116 -0
  238. data/rbi/temporalio/testing.rbi +3 -0
  239. data/rbi/temporalio/version.rbi +5 -0
  240. data/rbi/temporalio/versioning_override.rbi +13 -0
  241. data/rbi/temporalio/worker/activity_executor/fiber.rbi +20 -0
  242. data/rbi/temporalio/worker/activity_executor/thread_pool.rbi +20 -0
  243. data/rbi/temporalio/worker/activity_executor.rbi +20 -0
  244. data/rbi/temporalio/worker/deployment_options.rbi +23 -0
  245. data/rbi/temporalio/worker/illegal_workflow_call_validator.rbi +33 -0
  246. data/rbi/temporalio/worker/interceptor.rbi +489 -0
  247. data/rbi/temporalio/worker/plugin.rbi +49 -0
  248. data/rbi/temporalio/worker/poller_behavior.rbi +29 -0
  249. data/rbi/temporalio/worker/thread_pool.rbi +38 -0
  250. data/rbi/temporalio/worker/tuner.rbi +221 -0
  251. data/rbi/temporalio/worker/workflow_executor/thread_pool.rbi +15 -0
  252. data/rbi/temporalio/worker/workflow_executor.rbi +8 -0
  253. data/rbi/temporalio/worker/workflow_replayer.rbi +152 -0
  254. data/rbi/temporalio/worker.rbi +258 -0
  255. data/rbi/temporalio/worker_deployment_version.rbi +29 -0
  256. data/rbi/temporalio/workflow/activity_cancellation_type.rbi +7 -0
  257. data/rbi/temporalio/workflow/child_workflow_cancellation_type.rbi +8 -0
  258. data/rbi/temporalio/workflow/child_workflow_handle.rbi +27 -0
  259. data/rbi/temporalio/workflow/definition.rbi +305 -0
  260. data/rbi/temporalio/workflow/external_workflow_handle.rbi +24 -0
  261. data/rbi/temporalio/workflow/future.rbi +62 -0
  262. data/rbi/temporalio/workflow/handler_unfinished_policy.rbi +6 -0
  263. data/rbi/temporalio/workflow/info.rbi +100 -0
  264. data/rbi/temporalio/workflow/nexus_client.rbi +65 -0
  265. data/rbi/temporalio/workflow/nexus_operation_cancellation_type.rbi +8 -0
  266. data/rbi/temporalio/workflow/nexus_operation_handle.rbi +14 -0
  267. data/rbi/temporalio/workflow/parent_close_policy.rbi +8 -0
  268. data/rbi/temporalio/workflow/update_info.rbi +14 -0
  269. data/rbi/temporalio/workflow.rbi +393 -0
  270. data/rbi/temporalio/workflow_history.rbi +21 -0
  271. data/rbi/temporalio.rbi +5 -0
  272. data/sig/common.rbs +1 -0
  273. data/sig/google/protobuf_compat.rbs +17 -0
  274. data/sig/open_telemetry.rbs +47 -0
  275. data/sig/temporalio/activity/cancellation_details.rbs +21 -0
  276. data/sig/temporalio/activity/complete_async_error.rbs +6 -0
  277. data/sig/temporalio/activity/context.rbs +26 -0
  278. data/sig/temporalio/activity/definition.rbs +60 -0
  279. data/sig/temporalio/activity/info.rbs +57 -0
  280. data/sig/temporalio/activity.rbs +4 -0
  281. data/sig/temporalio/api/activity/v1/message.rbs +708 -0
  282. data/sig/temporalio/api/batch/v1/message.rbs +594 -0
  283. data/sig/temporalio/api/callback/v1/message.rbs +112 -0
  284. data/sig/temporalio/api/cloud/account/v1/message.rbs +314 -0
  285. data/sig/temporalio/api/cloud/auditlog/v1/message.rbs +168 -0
  286. data/sig/temporalio/api/cloud/billing/v1/message.rbs +279 -0
  287. data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +4726 -0
  288. data/sig/temporalio/api/cloud/cloudservice/v1/service.rbs +25 -0
  289. data/sig/temporalio/api/cloud/cloudservice.rbs +8 -0
  290. data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +191 -0
  291. data/sig/temporalio/api/cloud/identity/v1/message.rbs +1372 -0
  292. data/sig/temporalio/api/cloud/namespace/v1/message.rbs +1571 -0
  293. data/sig/temporalio/api/cloud/nexus/v1/message.rbs +269 -0
  294. data/sig/temporalio/api/cloud/operation/v1/message.rbs +156 -0
  295. data/sig/temporalio/api/cloud/region/v1/message.rbs +109 -0
  296. data/sig/temporalio/api/cloud/resource/v1/message.rbs +61 -0
  297. data/sig/temporalio/api/cloud/sink/v1/message.rbs +207 -0
  298. data/sig/temporalio/api/cloud/usage/v1/message.rbs +230 -0
  299. data/sig/temporalio/api/command/v1/message.rbs +1211 -0
  300. data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
  301. data/sig/temporalio/api/common/v1/message.rbs +1238 -0
  302. data/sig/temporalio/api/compute/v1/config.rbs +176 -0
  303. data/sig/temporalio/api/compute/v1/provider.rbs +73 -0
  304. data/sig/temporalio/api/compute/v1/scaler.rbs +60 -0
  305. data/sig/temporalio/api/deployment/v1/message.rbs +1063 -0
  306. data/sig/temporalio/api/enums/v1/activity.rbs +134 -0
  307. data/sig/temporalio/api/enums/v1/batch_operation.rbs +80 -0
  308. data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
  309. data/sig/temporalio/api/enums/v1/common.rbs +271 -0
  310. data/sig/temporalio/api/enums/v1/deployment.rbs +177 -0
  311. data/sig/temporalio/api/enums/v1/event_type.rbs +263 -0
  312. data/sig/temporalio/api/enums/v1/failed_cause.rbs +281 -0
  313. data/sig/temporalio/api/enums/v1/namespace.rbs +87 -0
  314. data/sig/temporalio/api/enums/v1/nexus.rbs +172 -0
  315. data/sig/temporalio/api/enums/v1/query.rbs +69 -0
  316. data/sig/temporalio/api/enums/v1/reset.rbs +106 -0
  317. data/sig/temporalio/api/enums/v1/schedule.rbs +68 -0
  318. data/sig/temporalio/api/enums/v1/task_queue.rbs +238 -0
  319. data/sig/temporalio/api/enums/v1/update.rbs +87 -0
  320. data/sig/temporalio/api/enums/v1/workflow.rbs +435 -0
  321. data/sig/temporalio/api/errordetails/v1/message.rbs +532 -0
  322. data/sig/temporalio/api/export/v1/message.rbs +63 -0
  323. data/sig/temporalio/api/failure/v1/message.rbs +579 -0
  324. data/sig/temporalio/api/filter/v1/message.rbs +121 -0
  325. data/sig/temporalio/api/history/v1/message.rbs +4928 -0
  326. data/sig/temporalio/api/namespace/v1/message.rbs +465 -0
  327. data/sig/temporalio/api/nexus/v1/message.rbs +1268 -0
  328. data/sig/temporalio/api/nexusannotations/v1/options.rbs +76 -0
  329. data/sig/temporalio/api/nexusservices/workerservice/v1/request_response.rbs +65 -0
  330. data/sig/temporalio/api/operatorservice/v1/request_response.rbs +679 -0
  331. data/sig/temporalio/api/operatorservice/v1/service.rbs +23 -0
  332. data/sig/temporalio/api/operatorservice.rbs +6 -0
  333. data/sig/temporalio/api/payload_visitor.rbs +298 -0
  334. data/sig/temporalio/api/protoc_gen_openapiv2/options/annotations.rbs +23 -0
  335. data/sig/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbs +1691 -0
  336. data/sig/temporalio/api/protocol/v1/message.rbs +90 -0
  337. data/sig/temporalio/api/protometa/v1/annotations.rbs +62 -0
  338. data/sig/temporalio/api/query/v1/message.rbs +138 -0
  339. data/sig/temporalio/api/replication/v1/message.rbs +109 -0
  340. data/sig/temporalio/api/rules/v1/message.rbs +213 -0
  341. data/sig/temporalio/api/schedule/v1/message.rbs +1066 -0
  342. data/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs +210 -0
  343. data/sig/temporalio/api/sdk/v1/event_group_marker.rbs +154 -0
  344. data/sig/temporalio/api/sdk/v1/external_storage.rbs +54 -0
  345. data/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs +92 -0
  346. data/sig/temporalio/api/sdk/v1/user_metadata.rbs +58 -0
  347. data/sig/temporalio/api/sdk/v1/worker_config.rbs +122 -0
  348. data/sig/temporalio/api/sdk/v1/workflow_metadata.rbs +138 -0
  349. data/sig/temporalio/api/taskqueue/v1/message.rbs +1013 -0
  350. data/sig/temporalio/api/testservice/v1/request_response.rbs +125 -0
  351. data/sig/temporalio/api/testservice/v1/service.rbs +23 -0
  352. data/sig/temporalio/api/update/v1/message.rbs +349 -0
  353. data/sig/temporalio/api/version/v1/message.rbs +143 -0
  354. data/sig/temporalio/api/worker/v1/message.rbs +716 -0
  355. data/sig/temporalio/api/workflow/v1/message.rbs +2322 -0
  356. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +12735 -0
  357. data/sig/temporalio/api/workflowservice/v1/service.rbs +23 -0
  358. data/sig/temporalio/api/workflowservice.rbs +6 -0
  359. data/sig/temporalio/api.rbs +4 -0
  360. data/sig/temporalio/cancellation.rbs +20 -0
  361. data/sig/temporalio/client/activity_execution.rbs +50 -0
  362. data/sig/temporalio/client/activity_execution_count.rbs +17 -0
  363. data/sig/temporalio/client/activity_execution_status.rbs +15 -0
  364. data/sig/temporalio/client/activity_handle.rbs +26 -0
  365. data/sig/temporalio/client/activity_id_reference.rbs +16 -0
  366. data/sig/temporalio/client/async_activity_handle.rbs +41 -0
  367. data/sig/temporalio/client/connection/cloud_service.rbs +315 -0
  368. data/sig/temporalio/client/connection/operator_service.rbs +59 -0
  369. data/sig/temporalio/client/connection/service.rbs +17 -0
  370. data/sig/temporalio/client/connection/test_service.rbs +35 -0
  371. data/sig/temporalio/client/connection/workflow_service.rbs +499 -0
  372. data/sig/temporalio/client/connection.rbs +143 -0
  373. data/sig/temporalio/client/interceptor.rbs +622 -0
  374. data/sig/temporalio/client/pending_activity_state.rbs +14 -0
  375. data/sig/temporalio/client/plugin.rbs +14 -0
  376. data/sig/temporalio/client/schedule.rbs +337 -0
  377. data/sig/temporalio/client/schedule_handle.rbs +44 -0
  378. data/sig/temporalio/client/with_start_workflow_operation.rbs +82 -0
  379. data/sig/temporalio/client/workflow_execution.rbs +37 -0
  380. data/sig/temporalio/client/workflow_execution_count.rbs +17 -0
  381. data/sig/temporalio/client/workflow_execution_status.rbs +16 -0
  382. data/sig/temporalio/client/workflow_handle.rbs +95 -0
  383. data/sig/temporalio/client/workflow_query_reject_condition.rbs +12 -0
  384. data/sig/temporalio/client/workflow_update_handle.rbs +26 -0
  385. data/sig/temporalio/client/workflow_update_wait_stage.rbs +12 -0
  386. data/sig/temporalio/client.rbs +271 -0
  387. data/sig/temporalio/common_enums.rbs +60 -0
  388. data/sig/temporalio/contrib/open_telemetry.rbs +74 -0
  389. data/sig/temporalio/converters/data_converter.rbs +32 -0
  390. data/sig/temporalio/converters/failure_converter.rbs +12 -0
  391. data/sig/temporalio/converters/payload_codec.rbs +8 -0
  392. data/sig/temporalio/converters/payload_converter/binary_null.rbs +9 -0
  393. data/sig/temporalio/converters/payload_converter/binary_plain.rbs +9 -0
  394. data/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +9 -0
  395. data/sig/temporalio/converters/payload_converter/composite.rbs +16 -0
  396. data/sig/temporalio/converters/payload_converter/encoding.rbs +13 -0
  397. data/sig/temporalio/converters/payload_converter/json_plain.rbs +14 -0
  398. data/sig/temporalio/converters/payload_converter/json_protobuf.rbs +9 -0
  399. data/sig/temporalio/converters/payload_converter.rbs +24 -0
  400. data/sig/temporalio/converters/raw_value.rbs +9 -0
  401. data/sig/temporalio/converters.rbs +4 -0
  402. data/sig/temporalio/env_config.rbs +86 -0
  403. data/sig/temporalio/error/failure.rbs +170 -0
  404. data/sig/temporalio/error.rbs +88 -0
  405. data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +247 -0
  406. data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +372 -0
  407. data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +207 -0
  408. data/sig/temporalio/internal/bridge/api/common/common.rbs +123 -0
  409. data/sig/temporalio/internal/bridge/api/core_interface.rbs +231 -0
  410. data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +134 -0
  411. data/sig/temporalio/internal/bridge/api/nexus/nexus.rbs +285 -0
  412. data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +1304 -0
  413. data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +1526 -0
  414. data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +136 -0
  415. data/sig/temporalio/internal/bridge/api.rbs +8 -0
  416. data/sig/temporalio/internal/bridge/client.rbs +144 -0
  417. data/sig/temporalio/internal/bridge/metric.rbs +28 -0
  418. data/sig/temporalio/internal/bridge/runtime.rbs +97 -0
  419. data/sig/temporalio/internal/bridge/testing.rbs +91 -0
  420. data/sig/temporalio/internal/bridge/worker.rbs +199 -0
  421. data/sig/temporalio/internal/bridge.rbs +36 -0
  422. data/sig/temporalio/internal/client/implementation.rbs +33 -0
  423. data/sig/temporalio/internal/google_protobuf.rbs +7 -0
  424. data/sig/temporalio/internal/metric.rbs +35 -0
  425. data/sig/temporalio/internal/proto_utils.rbs +94 -0
  426. data/sig/temporalio/internal/worker/activity_worker.rbs +64 -0
  427. data/sig/temporalio/internal/worker/multi_runner.rbs +132 -0
  428. data/sig/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbs +22 -0
  429. data/sig/temporalio/internal/worker/workflow_instance/context.rbs +172 -0
  430. data/sig/temporalio/internal/worker/workflow_instance/details.rbs +43 -0
  431. data/sig/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbs +15 -0
  432. data/sig/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbs +16 -0
  433. data/sig/temporalio/internal/worker/workflow_instance/handler_execution.rbs +19 -0
  434. data/sig/temporalio/internal/worker/workflow_instance/handler_hash.rbs +14 -0
  435. data/sig/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbs +20 -0
  436. data/sig/temporalio/internal/worker/workflow_instance/inbound_implementation.rbs +19 -0
  437. data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +25 -0
  438. data/sig/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbs +19 -0
  439. data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +35 -0
  440. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbs +16 -0
  441. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbs +15 -0
  442. data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +52 -0
  443. data/sig/temporalio/internal/worker/workflow_instance.rbs +111 -0
  444. data/sig/temporalio/internal/worker/workflow_worker.rbs +99 -0
  445. data/sig/temporalio/internal/workflow_task_failure_error.rbs +6 -0
  446. data/sig/temporalio/internal.rbs +4 -0
  447. data/sig/temporalio/metric.rbs +55 -0
  448. data/sig/temporalio/priority.rbs +17 -0
  449. data/sig/temporalio/retry_policy.rbs +21 -0
  450. data/sig/temporalio/runtime/metric_buffer.rbs +49 -0
  451. data/sig/temporalio/runtime.rbs +118 -0
  452. data/sig/temporalio/scoped_logger.rbs +15 -0
  453. data/sig/temporalio/search_attributes.rbs +82 -0
  454. data/sig/temporalio/simple_plugin.rbs +65 -0
  455. data/sig/temporalio/testing/activity_environment.rbs +52 -0
  456. data/sig/temporalio/testing/workflow_environment.rbs +141 -0
  457. data/sig/temporalio/testing.rbs +4 -0
  458. data/sig/temporalio/version.rbs +3 -0
  459. data/sig/temporalio/versioning_override.rbs +17 -0
  460. data/sig/temporalio/worker/activity_executor/fiber.rbs +9 -0
  461. data/sig/temporalio/worker/activity_executor/thread_pool.rbs +11 -0
  462. data/sig/temporalio/worker/activity_executor.rbs +12 -0
  463. data/sig/temporalio/worker/deployment_options.rbs +17 -0
  464. data/sig/temporalio/worker/illegal_workflow_call_validator.rbs +25 -0
  465. data/sig/temporalio/worker/interceptor.rbs +373 -0
  466. data/sig/temporalio/worker/plugin.rbs +47 -0
  467. data/sig/temporalio/worker/poller_behavior.rbs +23 -0
  468. data/sig/temporalio/worker/thread_pool.rbs +44 -0
  469. data/sig/temporalio/worker/tuner.rbs +121 -0
  470. data/sig/temporalio/worker/workflow_executor/thread_pool.rbs +58 -0
  471. data/sig/temporalio/worker/workflow_executor.rbs +15 -0
  472. data/sig/temporalio/worker/workflow_replayer.rbs +105 -0
  473. data/sig/temporalio/worker.rbs +168 -0
  474. data/sig/temporalio/worker_deployment_version.rbs +17 -0
  475. data/sig/temporalio/workflow/activity_cancellation_type.rbs +11 -0
  476. data/sig/temporalio/workflow/child_workflow_cancellation_type.rbs +12 -0
  477. data/sig/temporalio/workflow/child_workflow_handle.rbs +18 -0
  478. data/sig/temporalio/workflow/definition.rbs +181 -0
  479. data/sig/temporalio/workflow/external_workflow_handle.rbs +17 -0
  480. data/sig/temporalio/workflow/future.rbs +24 -0
  481. data/sig/temporalio/workflow/handler_unfinished_policy.rbs +10 -0
  482. data/sig/temporalio/workflow/info.rbs +79 -0
  483. data/sig/temporalio/workflow/nexus_client.rbs +34 -0
  484. data/sig/temporalio/workflow/nexus_operation_cancellation_type.rbs +12 -0
  485. data/sig/temporalio/workflow/nexus_operation_handle.rbs +10 -0
  486. data/sig/temporalio/workflow/parent_close_policy.rbs +12 -0
  487. data/sig/temporalio/workflow/update_info.rbs +15 -0
  488. data/sig/temporalio/workflow.rbs +215 -0
  489. data/sig/temporalio/workflow_history.rbs +13 -0
  490. data/sig/temporalio.rbs +3 -0
  491. data/temporalio.gemspec +1 -1
  492. metadata +445 -2
@@ -0,0 +1,2322 @@
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/workflow/v1/message.proto
7
+
8
+ module Temporalio
9
+ module Api
10
+ module Workflow
11
+ module V1
12
+ # Hold basic information about a workflow execution.
13
+ # This structure is a part of visibility, and thus contain a limited subset of information.
14
+ class WorkflowExecutionInfo < ::Google::Protobuf::AbstractMessage
15
+
16
+ attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution?
17
+ def has_execution?: () -> bool
18
+ def clear_execution: () -> void
19
+
20
+ attr_accessor type(): ::Temporalio::Api::Common::V1::WorkflowType?
21
+ def has_type?: () -> bool
22
+ def clear_type: () -> void
23
+
24
+ attr_reader start_time(): ::Google::Protobuf::Timestamp?
25
+ attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
26
+ def has_start_time?: () -> bool
27
+ def clear_start_time: () -> void
28
+
29
+ attr_reader close_time(): ::Google::Protobuf::Timestamp?
30
+ attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)?
31
+ def has_close_time?: () -> bool
32
+ def clear_close_time: () -> void
33
+
34
+ attr_reader status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer
35
+ attr_writer status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float
36
+ attr_reader status_const(): ::Integer
37
+ def clear_status: () -> void
38
+
39
+ attr_reader history_length(): ::Integer
40
+ attr_writer history_length(): ::Integer | ::Float
41
+ def clear_history_length: () -> void
42
+
43
+ attr_reader parent_namespace_id(): ::String
44
+ attr_writer parent_namespace_id(): ::String | ::Symbol
45
+ def clear_parent_namespace_id: () -> void
46
+
47
+ attr_accessor parent_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution?
48
+ def has_parent_execution?: () -> bool
49
+ def clear_parent_execution: () -> void
50
+
51
+ attr_reader execution_time(): ::Google::Protobuf::Timestamp?
52
+ attr_writer execution_time(): (::Google::Protobuf::Timestamp | ::Time)?
53
+ def has_execution_time?: () -> bool
54
+ def clear_execution_time: () -> void
55
+
56
+ attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo?
57
+ def has_memo?: () -> bool
58
+ def clear_memo: () -> void
59
+
60
+ attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes?
61
+ def has_search_attributes?: () -> bool
62
+ def clear_search_attributes: () -> void
63
+
64
+ attr_accessor auto_reset_points(): ::Temporalio::Api::Workflow::V1::ResetPoints?
65
+ def has_auto_reset_points?: () -> bool
66
+ def clear_auto_reset_points: () -> void
67
+
68
+ attr_reader task_queue(): ::String
69
+ attr_writer task_queue(): ::String | ::Symbol
70
+ def clear_task_queue: () -> void
71
+
72
+ attr_reader state_transition_count(): ::Integer
73
+ attr_writer state_transition_count(): ::Integer | ::Float
74
+ def clear_state_transition_count: () -> void
75
+
76
+ attr_reader history_size_bytes(): ::Integer
77
+ attr_writer history_size_bytes(): ::Integer | ::Float
78
+ def clear_history_size_bytes: () -> void
79
+
80
+ # If set, the most recent worker version stamp that appeared in a workflow task completion
81
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
82
+ # @deprecated
83
+ attr_accessor most_recent_worker_version_stamp(): ::Temporalio::Api::Common::V1::WorkerVersionStamp?
84
+ def has_most_recent_worker_version_stamp?: () -> bool
85
+ def clear_most_recent_worker_version_stamp: () -> void
86
+
87
+ # Workflow execution duration is defined as difference between close time and execution time.
88
+ # This field is only populated if the workflow is closed.
89
+ attr_reader execution_duration(): ::Google::Protobuf::Duration?
90
+ attr_writer execution_duration(): (::Google::Protobuf::Duration | ::int)?
91
+ def has_execution_duration?: () -> bool
92
+ def clear_execution_duration: () -> void
93
+
94
+ # Contains information about the root workflow execution.
95
+ # The root workflow execution is defined as follows:
96
+ # 1. A workflow without parent workflow is its own root workflow.
97
+ # 2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
98
+ # Note: workflows continued as new or reseted may or may not have parents, check examples below.
99
+ # Examples:
100
+ # Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
101
+ # - The root workflow of all three workflows is W1.
102
+ # Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
103
+ # - The root workflow of all three workflows is W1.
104
+ # Scenario 3: Workflow W1 continued as new W2.
105
+ # - The root workflow of W1 is W1 and the root workflow of W2 is W2.
106
+ # Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
107
+ # - The root workflow of all three workflows is W1.
108
+ # Scenario 5: Workflow W1 is reseted, creating W2.
109
+ # - The root workflow of W1 is W1 and the root workflow of W2 is W2.
110
+ attr_accessor root_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution?
111
+ def has_root_execution?: () -> bool
112
+ def clear_root_execution: () -> void
113
+
114
+ # The currently assigned build ID for this execution. Presence of this value means worker versioning is used
115
+ # for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules
116
+ # when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled
117
+ # again, the assigned build ID may change according to the latest versioning rules.
118
+ # Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to
119
+ # this execution.
120
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
121
+ # @deprecated
122
+ attr_reader assigned_build_id(): ::String
123
+ attr_writer assigned_build_id(): ::String | ::Symbol
124
+ def clear_assigned_build_id: () -> void
125
+
126
+ # Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
127
+ # of using the assignment rules.
128
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
129
+ # @deprecated
130
+ attr_reader inherited_build_id(): ::String
131
+ attr_writer inherited_build_id(): ::String | ::Symbol
132
+ def clear_inherited_build_id: () -> void
133
+
134
+ # The first run ID in the execution chain.
135
+ # Executions created via the following operations are considered to be in the same chain
136
+ # - ContinueAsNew
137
+ # - Workflow Retry
138
+ # - Workflow Reset
139
+ # - Cron Schedule
140
+ attr_reader first_run_id(): ::String
141
+ attr_writer first_run_id(): ::String | ::Symbol
142
+ def clear_first_run_id: () -> void
143
+
144
+ # Absent value means the workflow execution is not versioned. When present, the execution might
145
+ # be versioned or unversioned, depending on `versioning_info.behavior` and `versioning_info.versioning_override`.
146
+ # Experimental. Versioning info is experimental and might change in the future.
147
+ attr_accessor versioning_info(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo?
148
+ def has_versioning_info?: () -> bool
149
+ def clear_versioning_info: () -> void
150
+
151
+ # The name of Worker Deployment that completed the most recent workflow task.
152
+ attr_reader worker_deployment_name(): ::String
153
+ attr_writer worker_deployment_name(): ::String | ::Symbol
154
+ def clear_worker_deployment_name: () -> void
155
+
156
+ # Priority metadata
157
+ attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority?
158
+ def has_priority?: () -> bool
159
+ def clear_priority: () -> void
160
+
161
+ # Total size in bytes of all external payloads referenced in workflow history.
162
+ attr_reader external_payload_size_bytes(): ::Integer
163
+ attr_writer external_payload_size_bytes(): ::Integer | ::Float
164
+ def clear_external_payload_size_bytes: () -> void
165
+
166
+ # Count of external payloads referenced in workflow history.
167
+ attr_reader external_payload_count(): ::Integer
168
+ attr_writer external_payload_count(): ::Integer | ::Float
169
+ def clear_external_payload_count: () -> void
170
+
171
+ type init_map = {
172
+ execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
173
+ "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
174
+ type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?,
175
+ "type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?,
176
+ start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
177
+ "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
178
+ close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
179
+ "close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
180
+ status: (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?,
181
+ "status" => (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?,
182
+ history_length: (::Integer | ::Float)?,
183
+ "history_length" => (::Integer | ::Float)?,
184
+ parent_namespace_id: (::String | ::Symbol)?,
185
+ "parent_namespace_id" => (::String | ::Symbol)?,
186
+ parent_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
187
+ "parent_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
188
+ execution_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
189
+ "execution_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
190
+ memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?,
191
+ "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?,
192
+ search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
193
+ "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
194
+ auto_reset_points: (::Temporalio::Api::Workflow::V1::ResetPoints | ::Temporalio::Api::Workflow::V1::ResetPoints::init_map)?,
195
+ "auto_reset_points" => (::Temporalio::Api::Workflow::V1::ResetPoints | ::Temporalio::Api::Workflow::V1::ResetPoints::init_map)?,
196
+ task_queue: (::String | ::Symbol)?,
197
+ "task_queue" => (::String | ::Symbol)?,
198
+ state_transition_count: (::Integer | ::Float)?,
199
+ "state_transition_count" => (::Integer | ::Float)?,
200
+ history_size_bytes: (::Integer | ::Float)?,
201
+ "history_size_bytes" => (::Integer | ::Float)?,
202
+ most_recent_worker_version_stamp: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?,
203
+ "most_recent_worker_version_stamp" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?,
204
+ execution_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
205
+ "execution_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
206
+ root_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
207
+ "root_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
208
+ assigned_build_id: (::String | ::Symbol)?,
209
+ "assigned_build_id" => (::String | ::Symbol)?,
210
+ inherited_build_id: (::String | ::Symbol)?,
211
+ "inherited_build_id" => (::String | ::Symbol)?,
212
+ first_run_id: (::String | ::Symbol)?,
213
+ "first_run_id" => (::String | ::Symbol)?,
214
+ versioning_info: (::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo::init_map)?,
215
+ "versioning_info" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo::init_map)?,
216
+ worker_deployment_name: (::String | ::Symbol)?,
217
+ "worker_deployment_name" => (::String | ::Symbol)?,
218
+ priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
219
+ "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
220
+ external_payload_size_bytes: (::Integer | ::Float)?,
221
+ "external_payload_size_bytes" => (::Integer | ::Float)?,
222
+ external_payload_count: (::Integer | ::Float)?,
223
+ "external_payload_count" => (::Integer | ::Float)?,
224
+ }
225
+
226
+ def initialize: (?init_map initial_value) -> void
227
+
228
+ def []:
229
+ ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution?
230
+ | ("type" name) -> ::Temporalio::Api::Common::V1::WorkflowType?
231
+ | ("start_time" name) -> ::Google::Protobuf::Timestamp?
232
+ | ("close_time" name) -> ::Google::Protobuf::Timestamp?
233
+ | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer)
234
+ | ("history_length" name) -> ::Integer
235
+ | ("parent_namespace_id" name) -> ::String
236
+ | ("parent_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution?
237
+ | ("execution_time" name) -> ::Google::Protobuf::Timestamp?
238
+ | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo?
239
+ | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes?
240
+ | ("auto_reset_points" name) -> ::Temporalio::Api::Workflow::V1::ResetPoints?
241
+ | ("task_queue" name) -> ::String
242
+ | ("state_transition_count" name) -> ::Integer
243
+ | ("history_size_bytes" name) -> ::Integer
244
+ | ("most_recent_worker_version_stamp" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp?
245
+ | ("execution_duration" name) -> ::Google::Protobuf::Duration?
246
+ | ("root_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution?
247
+ | ("assigned_build_id" name) -> ::String
248
+ | ("inherited_build_id" name) -> ::String
249
+ | ("first_run_id" name) -> ::String
250
+ | ("versioning_info" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo?
251
+ | ("worker_deployment_name" name) -> ::String
252
+ | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
253
+ | ("external_payload_size_bytes" name) -> ::Integer
254
+ | ("external_payload_count" name) -> ::Integer
255
+
256
+ def []=:
257
+ ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void
258
+ | ("type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void
259
+ | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
260
+ | ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
261
+ | ("status" name, (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float) value) -> void
262
+ | ("history_length" name, (::Integer | ::Float) value) -> void
263
+ | ("parent_namespace_id" name, (::String | ::Symbol) value) -> void
264
+ | ("parent_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void
265
+ | ("execution_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
266
+ | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void
267
+ | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void
268
+ | ("auto_reset_points" name, ::Temporalio::Api::Workflow::V1::ResetPoints? value) -> void
269
+ | ("task_queue" name, (::String | ::Symbol) value) -> void
270
+ | ("state_transition_count" name, (::Integer | ::Float) value) -> void
271
+ | ("history_size_bytes" name, (::Integer | ::Float) value) -> void
272
+ | ("most_recent_worker_version_stamp" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void
273
+ | ("execution_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
274
+ | ("root_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void
275
+ | ("assigned_build_id" name, (::String | ::Symbol) value) -> void
276
+ | ("inherited_build_id" name, (::String | ::Symbol) value) -> void
277
+ | ("first_run_id" name, (::String | ::Symbol) value) -> void
278
+ | ("versioning_info" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo? value) -> void
279
+ | ("worker_deployment_name" name, (::String | ::Symbol) value) -> void
280
+ | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
281
+ | ("external_payload_size_bytes" name, (::Integer | ::Float) value) -> void
282
+ | ("external_payload_count" name, (::Integer | ::Float) value) -> void
283
+ end
284
+
285
+ # Holds all the extra information about workflow execution that is not part of Visibility.
286
+ class WorkflowExecutionExtendedInfo < ::Google::Protobuf::AbstractMessage
287
+
288
+ # Workflow execution expiration time is defined as workflow start time plus expiration timeout.
289
+ # Workflow start time may change after workflow reset.
290
+ attr_reader execution_expiration_time(): ::Google::Protobuf::Timestamp?
291
+ attr_writer execution_expiration_time(): (::Google::Protobuf::Timestamp | ::Time)?
292
+ def has_execution_expiration_time?: () -> bool
293
+ def clear_execution_expiration_time: () -> void
294
+
295
+ # Workflow run expiration time is defined as current workflow run start time plus workflow run timeout.
296
+ attr_reader run_expiration_time(): ::Google::Protobuf::Timestamp?
297
+ attr_writer run_expiration_time(): (::Google::Protobuf::Timestamp | ::Time)?
298
+ def has_run_expiration_time?: () -> bool
299
+ def clear_run_expiration_time: () -> void
300
+
301
+ # indicates if the workflow received a cancel request
302
+ attr_accessor cancel_requested(): bool
303
+ def clear_cancel_requested: () -> void
304
+
305
+ # Last workflow reset time. Nil if the workflow was never reset.
306
+ attr_reader last_reset_time(): ::Google::Protobuf::Timestamp?
307
+ attr_writer last_reset_time(): (::Google::Protobuf::Timestamp | ::Time)?
308
+ def has_last_reset_time?: () -> bool
309
+ def clear_last_reset_time: () -> void
310
+
311
+ # Original workflow start time.
312
+ attr_reader original_start_time(): ::Google::Protobuf::Timestamp?
313
+ attr_writer original_start_time(): (::Google::Protobuf::Timestamp | ::Time)?
314
+ def has_original_start_time?: () -> bool
315
+ def clear_original_start_time: () -> void
316
+
317
+ # Reset Run ID points to the new run when this execution is reset. If the execution is reset multiple times, it points to the latest run.
318
+ attr_reader reset_run_id(): ::String
319
+ attr_writer reset_run_id(): ::String | ::Symbol
320
+ def clear_reset_run_id: () -> void
321
+
322
+ # Request ID information (eg: history event information associated with the request ID).
323
+ # Note: It only contains request IDs from StartWorkflowExecution requests, including indirect
324
+ # calls (eg: if SignalWithStartWorkflowExecution starts a new workflow, then the request ID is
325
+ # used in the StartWorkflowExecution request).
326
+ attr_accessor request_id_infos(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Workflow::V1::RequestIdInfo]
327
+ def clear_request_id_infos: () -> void
328
+
329
+ # Information about the workflow execution pause operation.
330
+ attr_accessor pause_info(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo?
331
+ def has_pause_info?: () -> bool
332
+ def clear_pause_info: () -> void
333
+
334
+ type init_map = {
335
+ execution_expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
336
+ "execution_expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
337
+ run_expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
338
+ "run_expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
339
+ cancel_requested: bool?,
340
+ "cancel_requested" => bool?,
341
+ last_reset_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
342
+ "last_reset_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
343
+ original_start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
344
+ "original_start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
345
+ reset_run_id: (::String | ::Symbol)?,
346
+ "reset_run_id" => (::String | ::Symbol)?,
347
+ request_id_infos: ::Hash[::String | ::Symbol, ::Temporalio::Api::Workflow::V1::RequestIdInfo]?,
348
+ "request_id_infos" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Workflow::V1::RequestIdInfo]?,
349
+ pause_info: (::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo::init_map)?,
350
+ "pause_info" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo::init_map)?,
351
+ }
352
+
353
+ def initialize: (?init_map initial_value) -> void
354
+
355
+ def []:
356
+ ("execution_expiration_time" name) -> ::Google::Protobuf::Timestamp?
357
+ | ("run_expiration_time" name) -> ::Google::Protobuf::Timestamp?
358
+ | ("cancel_requested" name) -> bool
359
+ | ("last_reset_time" name) -> ::Google::Protobuf::Timestamp?
360
+ | ("original_start_time" name) -> ::Google::Protobuf::Timestamp?
361
+ | ("reset_run_id" name) -> ::String
362
+ | ("request_id_infos" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Workflow::V1::RequestIdInfo])
363
+ | ("pause_info" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo?
364
+
365
+ def []=:
366
+ ("execution_expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
367
+ | ("run_expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
368
+ | ("cancel_requested" name, bool value) -> void
369
+ | ("last_reset_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
370
+ | ("original_start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
371
+ | ("reset_run_id" name, (::String | ::Symbol) value) -> void
372
+ | ("request_id_infos" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Workflow::V1::RequestIdInfo]) value) -> void
373
+ | ("pause_info" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo? value) -> void
374
+ end
375
+
376
+ # Holds all the information about worker versioning for a particular workflow execution.
377
+ # Experimental. Versioning info is experimental and might change in the future.
378
+ class WorkflowExecutionVersioningInfo < ::Google::Protobuf::AbstractMessage
379
+
380
+ # Versioning behavior determines how the server should treat this execution when workers are
381
+ # upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means
382
+ # unversioned. See the comments in `VersioningBehavior` enum for more info about different
383
+ # behaviors.
384
+ # Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning
385
+ # Behavior and Version (except when the new execution runs on a task queue not belonging to the
386
+ # same deployment version as the parent/previous run's task queue). The first workflow task will
387
+ # be dispatched according to the inherited behavior (or to the current version of the task-queue's
388
+ # deployment in the case of AutoUpgrade.) After completion of their first workflow task the
389
+ # Deployment Version and Behavior of the execution will update according to configuration on the worker.
390
+ #
391
+ # Note that `behavior` is overridden by `versioning_override` if the latter is present.
392
+ attr_reader behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer
393
+ attr_writer behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float
394
+ attr_reader behavior_const(): ::Integer
395
+ def clear_behavior: () -> void
396
+
397
+ # The worker deployment that completed the last workflow task of this workflow execution. Must
398
+ # be present if `behavior` is set. Absent value means no workflow task is completed, or the
399
+ # last workflow task was completed by an unversioned worker. Unversioned workers may still send
400
+ # a deployment value which will be stored here, so the right way to check if an execution is
401
+ # versioned if an execution is versioned or not is via the `behavior` field.
402
+ # Note that `deployment` is overridden by `versioning_override` if the latter is present.
403
+ # Deprecated. Use `deployment_version`.
404
+ # @deprecated
405
+ attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment?
406
+ def has_deployment?: () -> bool
407
+ def clear_deployment: () -> void
408
+
409
+ # Deprecated. Use `deployment_version`.
410
+ # @deprecated
411
+ attr_reader version(): ::String
412
+ attr_writer version(): ::String | ::Symbol
413
+ def clear_version: () -> void
414
+
415
+ # The Worker Deployment Version that completed the last workflow task of this workflow execution.
416
+ # An absent value means no workflow task is completed, or the workflow is unversioned.
417
+ # If present, and `behavior` is UNSPECIFIED, the last task of this workflow execution was completed
418
+ # by a worker that is not using versioning but _is_ passing Deployment Name and Build ID.
419
+ # Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning
420
+ # Behavior and Version (except when the new execution runs on a task queue not belonging to the
421
+ # same deployment version as the parent/previous run's task queue). The first workflow task will
422
+ # be dispatched according to the inherited behavior (or to the current version of the task-queue's
423
+ # deployment in the case of AutoUpgrade.) After completion of their first workflow task the
424
+ # Deployment Version and Behavior of the execution will update according to configuration on the worker.
425
+ # Note that if `versioning_override.behavior` is PINNED then `versioning_override.pinned_version`
426
+ # will override this value.
427
+ attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
428
+ def has_deployment_version?: () -> bool
429
+ def clear_deployment_version: () -> void
430
+
431
+ # Present if user has set an execution-specific versioning override. This override takes
432
+ # precedence over SDK-sent `behavior` (and `version` when override is PINNED). An
433
+ # override can be set when starting a new execution, as well as afterwards by calling the
434
+ # `UpdateWorkflowExecutionOptions` API.
435
+ # Pinned overrides are automatically inherited by child workflows, continue-as-new workflows,
436
+ # workflow retries, and cron workflows.
437
+ attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride?
438
+ def has_versioning_override?: () -> bool
439
+ def clear_versioning_override: () -> void
440
+
441
+ # When present, indicates the workflow is transitioning to a different deployment. Can
442
+ # indicate one of the following transitions: unversioned -> versioned, versioned -> versioned
443
+ # on a different deployment, or versioned -> unversioned.
444
+ # Not applicable to workflows with PINNED behavior.
445
+ # When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically
446
+ # start a transition to the task queue's current deployment if the task queue's current
447
+ # deployment is different from the workflow's deployment.
448
+ # If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those
449
+ # tasks will be redirected to the task queue's current deployment. As soon as a poller from
450
+ # that deployment is available to receive the task, the workflow will automatically start a
451
+ # transition to that deployment and continue execution there.
452
+ # A deployment transition can only exist while there is a pending or started workflow task.
453
+ # Once the pending workflow task completes on the transition's target deployment, the
454
+ # transition completes and the workflow's `deployment` and `behavior` fields are updated per
455
+ # the worker's task completion response.
456
+ # Pending activities will not start new attempts during a transition. Once the transition is
457
+ # completed, pending activities will start their next attempt on the new deployment.
458
+ # Deprecated. Use version_transition.
459
+ # @deprecated
460
+ attr_accessor deployment_transition(): ::Temporalio::Api::Workflow::V1::DeploymentTransition?
461
+ def has_deployment_transition?: () -> bool
462
+ def clear_deployment_transition: () -> void
463
+
464
+ # When present, indicates the workflow is transitioning to a different deployment version
465
+ # (which may belong to the same deployment name or another). Can indicate one of the following
466
+ # transitions: unversioned -> versioned, versioned -> versioned
467
+ # on a different deployment version, or versioned -> unversioned.
468
+ # Not applicable to workflows with PINNED behavior.
469
+ # When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically
470
+ # start a transition to the task queue's current version if the task queue's current version is
471
+ # different from the workflow's current deployment version.
472
+ # If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those
473
+ # tasks will be redirected to the task queue's current version. As soon as a poller from
474
+ # that deployment version is available to receive the task, the workflow will automatically
475
+ # start a transition to that version and continue execution there.
476
+ # A version transition can only exist while there is a pending or started workflow task.
477
+ # Once the pending workflow task completes on the transition's target version, the
478
+ # transition completes and the workflow's `behavior`, and `deployment_version` fields are updated per the
479
+ # worker's task completion response.
480
+ # Pending activities will not start new attempts during a transition. Once the transition is
481
+ # completed, pending activities will start their next attempt on the new version.
482
+ attr_accessor version_transition(): ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition?
483
+ def has_version_transition?: () -> bool
484
+ def clear_version_transition: () -> void
485
+
486
+ # Monotonic counter reflecting the latest routing decision for this workflow execution.
487
+ # Used for staleness detection between history and matching when dispatching tasks to workers.
488
+ # Incremented when a workflow execution routes to a new deployment version, which happens
489
+ # when a worker of the new deployment version completes a workflow task.
490
+ # Note: Pinned tasks and sticky tasks send a value of 0 for this field since these tasks do not
491
+ # face the problem of inconsistent dispatching that arises from eventual consistency between
492
+ # task queues and their partitions.
493
+ attr_reader revision_number(): ::Integer
494
+ attr_writer revision_number(): ::Integer | ::Float
495
+ def clear_revision_number: () -> void
496
+
497
+ # Experimental.
498
+ # If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
499
+ # specified in that command.
500
+ # Only used for the initial task of this run and the initial task of any retries of this run.
501
+ # Not passed to children or to future continue-as-new.
502
+ # Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
503
+ # a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
504
+ # with ContinueAsNew history commands generated during that time, know that an UNSPECIFIED value here is equivalent
505
+ # to ContinueAsNewVersioningBehaviorAutoUpgrade if the behavior of the workflow is AutoUpgrade.
506
+ attr_reader continue_as_new_initial_versioning_behavior(): ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Integer
507
+ attr_writer continue_as_new_initial_versioning_behavior(): ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float
508
+ attr_reader continue_as_new_initial_versioning_behavior_const(): ::Integer
509
+ def clear_continue_as_new_initial_versioning_behavior: () -> void
510
+
511
+ type init_map = {
512
+ behavior: (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?,
513
+ "behavior" => (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?,
514
+ deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?,
515
+ "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?,
516
+ version: (::String | ::Symbol)?,
517
+ "version" => (::String | ::Symbol)?,
518
+ deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
519
+ "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
520
+ versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
521
+ "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
522
+ deployment_transition: (::Temporalio::Api::Workflow::V1::DeploymentTransition | ::Temporalio::Api::Workflow::V1::DeploymentTransition::init_map)?,
523
+ "deployment_transition" => (::Temporalio::Api::Workflow::V1::DeploymentTransition | ::Temporalio::Api::Workflow::V1::DeploymentTransition::init_map)?,
524
+ version_transition: (::Temporalio::Api::Workflow::V1::DeploymentVersionTransition | ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition::init_map)?,
525
+ "version_transition" => (::Temporalio::Api::Workflow::V1::DeploymentVersionTransition | ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition::init_map)?,
526
+ revision_number: (::Integer | ::Float)?,
527
+ "revision_number" => (::Integer | ::Float)?,
528
+ continue_as_new_initial_versioning_behavior: (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float)?,
529
+ "continue_as_new_initial_versioning_behavior" => (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float)?,
530
+ }
531
+
532
+ def initialize: (?init_map initial_value) -> void
533
+
534
+ def []:
535
+ ("behavior" name) -> (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer)
536
+ | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment?
537
+ | ("version" name) -> ::String
538
+ | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
539
+ | ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride?
540
+ | ("deployment_transition" name) -> ::Temporalio::Api::Workflow::V1::DeploymentTransition?
541
+ | ("version_transition" name) -> ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition?
542
+ | ("revision_number" name) -> ::Integer
543
+ | ("continue_as_new_initial_versioning_behavior" name) -> (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Integer)
544
+
545
+ def []=:
546
+ ("behavior" name, (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float) value) -> void
547
+ | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void
548
+ | ("version" name, (::String | ::Symbol) value) -> void
549
+ | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
550
+ | ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void
551
+ | ("deployment_transition" name, ::Temporalio::Api::Workflow::V1::DeploymentTransition? value) -> void
552
+ | ("version_transition" name, ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition? value) -> void
553
+ | ("revision_number" name, (::Integer | ::Float) value) -> void
554
+ | ("continue_as_new_initial_versioning_behavior" name, (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float) value) -> void
555
+ end
556
+
557
+ # Holds information about ongoing transition of a workflow execution from one deployment to another.
558
+ # Deprecated. Use DeploymentVersionTransition.
559
+ class DeploymentTransition < ::Google::Protobuf::AbstractMessage
560
+
561
+ # The target deployment of the transition. Null means a so-far-versioned workflow is
562
+ # transitioning to unversioned workers.
563
+ attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment?
564
+ def has_deployment?: () -> bool
565
+ def clear_deployment: () -> void
566
+
567
+ type init_map = {
568
+ deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?,
569
+ "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?,
570
+ }
571
+
572
+ def initialize: (?init_map initial_value) -> void
573
+
574
+ def []:
575
+ ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment?
576
+
577
+ def []=:
578
+ ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void
579
+ end
580
+
581
+ # Holds information about ongoing transition of a workflow execution from one worker
582
+ # deployment version to another.
583
+ # Experimental. Might change in the future.
584
+ class DeploymentVersionTransition < ::Google::Protobuf::AbstractMessage
585
+
586
+ # Deprecated. Use `deployment_version`.
587
+ # @deprecated
588
+ attr_reader version(): ::String
589
+ attr_writer version(): ::String | ::Symbol
590
+ def clear_version: () -> void
591
+
592
+ # The target Version of the transition.
593
+ # If nil, a so-far-versioned workflow is transitioning to unversioned workers.
594
+ attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
595
+ def has_deployment_version?: () -> bool
596
+ def clear_deployment_version: () -> void
597
+
598
+ type init_map = {
599
+ version: (::String | ::Symbol)?,
600
+ "version" => (::String | ::Symbol)?,
601
+ deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
602
+ "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
603
+ }
604
+
605
+ def initialize: (?init_map initial_value) -> void
606
+
607
+ def []:
608
+ ("version" name) -> ::String
609
+ | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
610
+
611
+ def []=:
612
+ ("version" name, (::String | ::Symbol) value) -> void
613
+ | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
614
+ end
615
+
616
+ class WorkflowExecutionConfig < ::Google::Protobuf::AbstractMessage
617
+
618
+ attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue?
619
+ def has_task_queue?: () -> bool
620
+ def clear_task_queue: () -> void
621
+
622
+ attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration?
623
+ attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)?
624
+ def has_workflow_execution_timeout?: () -> bool
625
+ def clear_workflow_execution_timeout: () -> void
626
+
627
+ attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration?
628
+ attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)?
629
+ def has_workflow_run_timeout?: () -> bool
630
+ def clear_workflow_run_timeout: () -> void
631
+
632
+ attr_reader default_workflow_task_timeout(): ::Google::Protobuf::Duration?
633
+ attr_writer default_workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)?
634
+ def has_default_workflow_task_timeout?: () -> bool
635
+ def clear_default_workflow_task_timeout: () -> void
636
+
637
+ # User metadata provided on start workflow.
638
+ attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata?
639
+ def has_user_metadata?: () -> bool
640
+ def clear_user_metadata: () -> void
641
+
642
+ type init_map = {
643
+ task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
644
+ "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
645
+ workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
646
+ "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
647
+ workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
648
+ "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
649
+ default_workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
650
+ "default_workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
651
+ user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?,
652
+ "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?,
653
+ }
654
+
655
+ def initialize: (?init_map initial_value) -> void
656
+
657
+ def []:
658
+ ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue?
659
+ | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration?
660
+ | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration?
661
+ | ("default_workflow_task_timeout" name) -> ::Google::Protobuf::Duration?
662
+ | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata?
663
+
664
+ def []=:
665
+ ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void
666
+ | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
667
+ | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
668
+ | ("default_workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
669
+ | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void
670
+ end
671
+
672
+ class PendingActivityInfo < ::Google::Protobuf::AbstractMessage
673
+ class PauseInfo < ::Google::Protobuf::AbstractMessage
674
+ class Manual < ::Google::Protobuf::AbstractMessage
675
+
676
+ # The identity of the actor that paused the activity.
677
+ attr_reader identity(): ::String
678
+ attr_writer identity(): ::String | ::Symbol
679
+ def clear_identity: () -> void
680
+
681
+ # Reason for pausing the activity.
682
+ attr_reader reason(): ::String
683
+ attr_writer reason(): ::String | ::Symbol
684
+ def clear_reason: () -> void
685
+
686
+ type init_map = {
687
+ identity: (::String | ::Symbol)?,
688
+ "identity" => (::String | ::Symbol)?,
689
+ reason: (::String | ::Symbol)?,
690
+ "reason" => (::String | ::Symbol)?,
691
+ }
692
+
693
+ def initialize: (?init_map initial_value) -> void
694
+
695
+ def []:
696
+ ("identity" name) -> ::String
697
+ | ("reason" name) -> ::String
698
+
699
+ def []=:
700
+ ("identity" name, (::String | ::Symbol) value) -> void
701
+ | ("reason" name, (::String | ::Symbol) value) -> void
702
+ end
703
+
704
+ class Rule < ::Google::Protobuf::AbstractMessage
705
+
706
+ # The rule that paused the activity.
707
+ attr_reader rule_id(): ::String
708
+ attr_writer rule_id(): ::String | ::Symbol
709
+ def clear_rule_id: () -> void
710
+
711
+ # The identity of the actor that created the rule.
712
+ attr_reader identity(): ::String
713
+ attr_writer identity(): ::String | ::Symbol
714
+ def clear_identity: () -> void
715
+
716
+ # Reason why rule was created. Populated from rule description.
717
+ attr_reader reason(): ::String
718
+ attr_writer reason(): ::String | ::Symbol
719
+ def clear_reason: () -> void
720
+
721
+ type init_map = {
722
+ rule_id: (::String | ::Symbol)?,
723
+ "rule_id" => (::String | ::Symbol)?,
724
+ identity: (::String | ::Symbol)?,
725
+ "identity" => (::String | ::Symbol)?,
726
+ reason: (::String | ::Symbol)?,
727
+ "reason" => (::String | ::Symbol)?,
728
+ }
729
+
730
+ def initialize: (?init_map initial_value) -> void
731
+
732
+ def []:
733
+ ("rule_id" name) -> ::String
734
+ | ("identity" name) -> ::String
735
+ | ("reason" name) -> ::String
736
+
737
+ def []=:
738
+ ("rule_id" name, (::String | ::Symbol) value) -> void
739
+ | ("identity" name, (::String | ::Symbol) value) -> void
740
+ | ("reason" name, (::String | ::Symbol) value) -> void
741
+ end
742
+
743
+ # The time when the activity was paused.
744
+ attr_reader pause_time(): ::Google::Protobuf::Timestamp?
745
+ attr_writer pause_time(): (::Google::Protobuf::Timestamp | ::Time)?
746
+ def has_pause_time?: () -> bool
747
+ def clear_pause_time: () -> void
748
+
749
+ # activity was paused by the manual intervention
750
+ attr_accessor manual(): ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual?
751
+ def has_manual?: () -> bool
752
+ def clear_manual: () -> void
753
+
754
+ # activity was paused by the rule
755
+ attr_accessor rule(): ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule?
756
+ def has_rule?: () -> bool
757
+ def clear_rule: () -> void
758
+
759
+ attr_reader paused_by(): (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule)?
760
+ def has_paused_by?: () -> bool
761
+ def clear_paused_by: () -> void
762
+
763
+ type init_map = {
764
+ pause_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
765
+ "pause_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
766
+ manual: (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual::init_map)?,
767
+ "manual" => (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual::init_map)?,
768
+ rule: (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule::init_map)?,
769
+ "rule" => (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule::init_map)?,
770
+ }
771
+
772
+ def initialize: (?init_map initial_value) -> void
773
+
774
+ def []:
775
+ ("pause_time" name) -> ::Google::Protobuf::Timestamp?
776
+ | ("manual" name) -> ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual?
777
+ | ("rule" name) -> ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule?
778
+
779
+ def []=:
780
+ ("pause_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
781
+ | ("manual" name, ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual? value) -> void
782
+ | ("rule" name, ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule? value) -> void
783
+ end
784
+
785
+ attr_reader activity_id(): ::String
786
+ attr_writer activity_id(): ::String | ::Symbol
787
+ def clear_activity_id: () -> void
788
+
789
+ attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType?
790
+ def has_activity_type?: () -> bool
791
+ def clear_activity_type: () -> void
792
+
793
+ attr_reader state(): ::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Integer
794
+ attr_writer state(): ::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float
795
+ attr_reader state_const(): ::Integer
796
+ def clear_state: () -> void
797
+
798
+ attr_accessor heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads?
799
+ def has_heartbeat_details?: () -> bool
800
+ def clear_heartbeat_details: () -> void
801
+
802
+ attr_reader last_heartbeat_time(): ::Google::Protobuf::Timestamp?
803
+ attr_writer last_heartbeat_time(): (::Google::Protobuf::Timestamp | ::Time)?
804
+ def has_last_heartbeat_time?: () -> bool
805
+ def clear_last_heartbeat_time: () -> void
806
+
807
+ attr_reader last_started_time(): ::Google::Protobuf::Timestamp?
808
+ attr_writer last_started_time(): (::Google::Protobuf::Timestamp | ::Time)?
809
+ def has_last_started_time?: () -> bool
810
+ def clear_last_started_time: () -> void
811
+
812
+ attr_reader attempt(): ::Integer
813
+ attr_writer attempt(): ::Integer | ::Float
814
+ def clear_attempt: () -> void
815
+
816
+ attr_reader maximum_attempts(): ::Integer
817
+ attr_writer maximum_attempts(): ::Integer | ::Float
818
+ def clear_maximum_attempts: () -> void
819
+
820
+ attr_reader scheduled_time(): ::Google::Protobuf::Timestamp?
821
+ attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)?
822
+ def has_scheduled_time?: () -> bool
823
+ def clear_scheduled_time: () -> void
824
+
825
+ attr_reader expiration_time(): ::Google::Protobuf::Timestamp?
826
+ attr_writer expiration_time(): (::Google::Protobuf::Timestamp | ::Time)?
827
+ def has_expiration_time?: () -> bool
828
+ def clear_expiration_time: () -> void
829
+
830
+ attr_accessor last_failure(): ::Temporalio::Api::Failure::V1::Failure?
831
+ def has_last_failure?: () -> bool
832
+ def clear_last_failure: () -> void
833
+
834
+ attr_reader last_worker_identity(): ::String
835
+ attr_writer last_worker_identity(): ::String | ::Symbol
836
+ def clear_last_worker_identity: () -> void
837
+
838
+ # Deprecated. When present, it means this activity is assigned to the build ID of its workflow.
839
+ # @deprecated
840
+ attr_accessor use_workflow_build_id(): ::Google::Protobuf::Empty?
841
+ def has_use_workflow_build_id?: () -> bool
842
+ def clear_use_workflow_build_id: () -> void
843
+
844
+ # Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow.
845
+ # The activity will use the build id in this field instead.
846
+ # If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
847
+ # rules.
848
+ # @deprecated
849
+ attr_reader last_independently_assigned_build_id(): ::String
850
+ attr_writer last_independently_assigned_build_id(): (::String | ::Symbol)?
851
+ def has_last_independently_assigned_build_id?: () -> bool
852
+ def clear_last_independently_assigned_build_id: () -> void
853
+
854
+ # Deprecated. The version stamp of the worker to whom this activity was most recently dispatched
855
+ # This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
856
+ # @deprecated
857
+ attr_accessor last_worker_version_stamp(): ::Temporalio::Api::Common::V1::WorkerVersionStamp?
858
+ def has_last_worker_version_stamp?: () -> bool
859
+ def clear_last_worker_version_stamp: () -> void
860
+
861
+ # The time activity will wait until the next retry.
862
+ # If activity is currently running it will be next retry interval if activity failed.
863
+ # If activity is currently waiting it will be current retry interval.
864
+ # If there will be no retry it will be null.
865
+ attr_reader current_retry_interval(): ::Google::Protobuf::Duration?
866
+ attr_writer current_retry_interval(): (::Google::Protobuf::Duration | ::int)?
867
+ def has_current_retry_interval?: () -> bool
868
+ def clear_current_retry_interval: () -> void
869
+
870
+ # The time when the last activity attempt was completed. If activity has not been completed yet then it will be null.
871
+ attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp?
872
+ attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)?
873
+ def has_last_attempt_complete_time?: () -> bool
874
+ def clear_last_attempt_complete_time: () -> void
875
+
876
+ # Next time when activity will be scheduled.
877
+ # If activity is currently scheduled or started it will be null.
878
+ attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp?
879
+ attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)?
880
+ def has_next_attempt_schedule_time?: () -> bool
881
+ def clear_next_attempt_schedule_time: () -> void
882
+
883
+ # Indicates if activity is paused.
884
+ attr_accessor paused(): bool
885
+ def clear_paused: () -> void
886
+
887
+ # The deployment this activity was dispatched to most recently. Present only if the activity
888
+ # was dispatched to a versioned worker.
889
+ # Deprecated. Use `last_deployment_version`.
890
+ # @deprecated
891
+ attr_accessor last_deployment(): ::Temporalio::Api::Deployment::V1::Deployment?
892
+ def has_last_deployment?: () -> bool
893
+ def clear_last_deployment: () -> void
894
+
895
+ # The Worker Deployment Version this activity was dispatched to most recently.
896
+ # Deprecated. Use `last_deployment_version`.
897
+ # @deprecated
898
+ attr_reader last_worker_deployment_version(): ::String
899
+ attr_writer last_worker_deployment_version(): ::String | ::Symbol
900
+ def clear_last_worker_deployment_version: () -> void
901
+
902
+ # The Worker Deployment Version this activity was dispatched to most recently.
903
+ # If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
904
+ attr_accessor last_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
905
+ def has_last_deployment_version?: () -> bool
906
+ def clear_last_deployment_version: () -> void
907
+
908
+ # Priority metadata. If this message is not present, or any fields are not
909
+ # present, they inherit the values from the workflow.
910
+ attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority?
911
+ def has_priority?: () -> bool
912
+ def clear_priority: () -> void
913
+
914
+ attr_accessor pause_info(): ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo?
915
+ def has_pause_info?: () -> bool
916
+ def clear_pause_info: () -> void
917
+
918
+ # Current activity options. May be different from the one used to start the activity.
919
+ attr_accessor activity_options(): ::Temporalio::Api::Activity::V1::ActivityOptions?
920
+ def has_activity_options?: () -> bool
921
+ def clear_activity_options: () -> void
922
+
923
+ # Absence of `assigned_build_id` generally means this task is on an "unversioned" task queue.
924
+ # In rare cases, it can also mean that the task queue is versioned but we failed to write activity's
925
+ # independently-assigned build ID to the database. This case heals automatically once the task is dispatched.
926
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
927
+ attr_reader assigned_build_id(): (::Google::Protobuf::Empty | ::String)?
928
+ def has_assigned_build_id?: () -> bool
929
+ def clear_assigned_build_id: () -> void
930
+
931
+ type init_map = {
932
+ activity_id: (::String | ::Symbol)?,
933
+ "activity_id" => (::String | ::Symbol)?,
934
+ activity_type: (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?,
935
+ "activity_type" => (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?,
936
+ state: (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float)?,
937
+ "state" => (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float)?,
938
+ heartbeat_details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
939
+ "heartbeat_details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
940
+ last_heartbeat_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
941
+ "last_heartbeat_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
942
+ last_started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
943
+ "last_started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
944
+ attempt: (::Integer | ::Float)?,
945
+ "attempt" => (::Integer | ::Float)?,
946
+ maximum_attempts: (::Integer | ::Float)?,
947
+ "maximum_attempts" => (::Integer | ::Float)?,
948
+ scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
949
+ "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
950
+ expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
951
+ "expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
952
+ last_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
953
+ "last_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
954
+ last_worker_identity: (::String | ::Symbol)?,
955
+ "last_worker_identity" => (::String | ::Symbol)?,
956
+ use_workflow_build_id: (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?,
957
+ "use_workflow_build_id" => (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?,
958
+ last_independently_assigned_build_id: (::String | ::Symbol)?,
959
+ "last_independently_assigned_build_id" => (::String | ::Symbol)?,
960
+ last_worker_version_stamp: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?,
961
+ "last_worker_version_stamp" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?,
962
+ current_retry_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
963
+ "current_retry_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
964
+ last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
965
+ "last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
966
+ next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
967
+ "next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
968
+ paused: bool?,
969
+ "paused" => bool?,
970
+ last_deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?,
971
+ "last_deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?,
972
+ last_worker_deployment_version: (::String | ::Symbol)?,
973
+ "last_worker_deployment_version" => (::String | ::Symbol)?,
974
+ last_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
975
+ "last_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
976
+ priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
977
+ "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
978
+ pause_info: (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::init_map)?,
979
+ "pause_info" => (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::init_map)?,
980
+ activity_options: (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?,
981
+ "activity_options" => (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?,
982
+ }
983
+
984
+ def initialize: (?init_map initial_value) -> void
985
+
986
+ def []:
987
+ ("activity_id" name) -> ::String
988
+ | ("activity_type" name) -> ::Temporalio::Api::Common::V1::ActivityType?
989
+ | ("state" name) -> (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Integer)
990
+ | ("heartbeat_details" name) -> ::Temporalio::Api::Common::V1::Payloads?
991
+ | ("last_heartbeat_time" name) -> ::Google::Protobuf::Timestamp?
992
+ | ("last_started_time" name) -> ::Google::Protobuf::Timestamp?
993
+ | ("attempt" name) -> ::Integer
994
+ | ("maximum_attempts" name) -> ::Integer
995
+ | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp?
996
+ | ("expiration_time" name) -> ::Google::Protobuf::Timestamp?
997
+ | ("last_failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
998
+ | ("last_worker_identity" name) -> ::String
999
+ | ("use_workflow_build_id" name) -> ::Google::Protobuf::Empty?
1000
+ | ("last_independently_assigned_build_id" name) -> ::String
1001
+ | ("last_worker_version_stamp" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp?
1002
+ | ("current_retry_interval" name) -> ::Google::Protobuf::Duration?
1003
+ | ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp?
1004
+ | ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp?
1005
+ | ("paused" name) -> bool
1006
+ | ("last_deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment?
1007
+ | ("last_worker_deployment_version" name) -> ::String
1008
+ | ("last_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
1009
+ | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
1010
+ | ("pause_info" name) -> ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo?
1011
+ | ("activity_options" name) -> ::Temporalio::Api::Activity::V1::ActivityOptions?
1012
+
1013
+ def []=:
1014
+ ("activity_id" name, (::String | ::Symbol) value) -> void
1015
+ | ("activity_type" name, ::Temporalio::Api::Common::V1::ActivityType? value) -> void
1016
+ | ("state" name, (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float) value) -> void
1017
+ | ("heartbeat_details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void
1018
+ | ("last_heartbeat_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1019
+ | ("last_started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1020
+ | ("attempt" name, (::Integer | ::Float) value) -> void
1021
+ | ("maximum_attempts" name, (::Integer | ::Float) value) -> void
1022
+ | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1023
+ | ("expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1024
+ | ("last_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
1025
+ | ("last_worker_identity" name, (::String | ::Symbol) value) -> void
1026
+ | ("use_workflow_build_id" name, ::Google::Protobuf::Empty? value) -> void
1027
+ | ("last_independently_assigned_build_id" name, ((::String | ::Symbol)?) value) -> void
1028
+ | ("last_worker_version_stamp" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void
1029
+ | ("current_retry_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1030
+ | ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1031
+ | ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1032
+ | ("paused" name, bool value) -> void
1033
+ | ("last_deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void
1034
+ | ("last_worker_deployment_version" name, (::String | ::Symbol) value) -> void
1035
+ | ("last_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
1036
+ | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
1037
+ | ("pause_info" name, ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo? value) -> void
1038
+ | ("activity_options" name, ::Temporalio::Api::Activity::V1::ActivityOptions? value) -> void
1039
+ end
1040
+
1041
+ class PendingChildExecutionInfo < ::Google::Protobuf::AbstractMessage
1042
+
1043
+ attr_reader workflow_id(): ::String
1044
+ attr_writer workflow_id(): ::String | ::Symbol
1045
+ def clear_workflow_id: () -> void
1046
+
1047
+ attr_reader run_id(): ::String
1048
+ attr_writer run_id(): ::String | ::Symbol
1049
+ def clear_run_id: () -> void
1050
+
1051
+ attr_reader workflow_type_name(): ::String
1052
+ attr_writer workflow_type_name(): ::String | ::Symbol
1053
+ def clear_workflow_type_name: () -> void
1054
+
1055
+ attr_reader initiated_id(): ::Integer
1056
+ attr_writer initiated_id(): ::Integer | ::Float
1057
+ def clear_initiated_id: () -> void
1058
+
1059
+ # Default: PARENT_CLOSE_POLICY_TERMINATE.
1060
+ attr_reader parent_close_policy(): ::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Integer
1061
+ attr_writer parent_close_policy(): ::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float
1062
+ attr_reader parent_close_policy_const(): ::Integer
1063
+ def clear_parent_close_policy: () -> void
1064
+
1065
+ type init_map = {
1066
+ workflow_id: (::String | ::Symbol)?,
1067
+ "workflow_id" => (::String | ::Symbol)?,
1068
+ run_id: (::String | ::Symbol)?,
1069
+ "run_id" => (::String | ::Symbol)?,
1070
+ workflow_type_name: (::String | ::Symbol)?,
1071
+ "workflow_type_name" => (::String | ::Symbol)?,
1072
+ initiated_id: (::Integer | ::Float)?,
1073
+ "initiated_id" => (::Integer | ::Float)?,
1074
+ parent_close_policy: (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float)?,
1075
+ "parent_close_policy" => (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float)?,
1076
+ }
1077
+
1078
+ def initialize: (?init_map initial_value) -> void
1079
+
1080
+ def []:
1081
+ ("workflow_id" name) -> ::String
1082
+ | ("run_id" name) -> ::String
1083
+ | ("workflow_type_name" name) -> ::String
1084
+ | ("initiated_id" name) -> ::Integer
1085
+ | ("parent_close_policy" name) -> (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Integer)
1086
+
1087
+ def []=:
1088
+ ("workflow_id" name, (::String | ::Symbol) value) -> void
1089
+ | ("run_id" name, (::String | ::Symbol) value) -> void
1090
+ | ("workflow_type_name" name, (::String | ::Symbol) value) -> void
1091
+ | ("initiated_id" name, (::Integer | ::Float) value) -> void
1092
+ | ("parent_close_policy" name, (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float) value) -> void
1093
+ end
1094
+
1095
+ class PendingWorkflowTaskInfo < ::Google::Protobuf::AbstractMessage
1096
+
1097
+ attr_reader state(): ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Integer
1098
+ attr_writer state(): ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::strings | ::Integer | ::Float
1099
+ attr_reader state_const(): ::Integer
1100
+ def clear_state: () -> void
1101
+
1102
+ attr_reader scheduled_time(): ::Google::Protobuf::Timestamp?
1103
+ attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)?
1104
+ def has_scheduled_time?: () -> bool
1105
+ def clear_scheduled_time: () -> void
1106
+
1107
+ # original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.
1108
+ # Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command
1109
+ # In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds
1110
+ # some threshold, the workflow task will be forced timeout.
1111
+ attr_reader original_scheduled_time(): ::Google::Protobuf::Timestamp?
1112
+ attr_writer original_scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)?
1113
+ def has_original_scheduled_time?: () -> bool
1114
+ def clear_original_scheduled_time: () -> void
1115
+
1116
+ attr_reader started_time(): ::Google::Protobuf::Timestamp?
1117
+ attr_writer started_time(): (::Google::Protobuf::Timestamp | ::Time)?
1118
+ def has_started_time?: () -> bool
1119
+ def clear_started_time: () -> void
1120
+
1121
+ attr_reader attempt(): ::Integer
1122
+ attr_writer attempt(): ::Integer | ::Float
1123
+ def clear_attempt: () -> void
1124
+
1125
+ type init_map = {
1126
+ state: (::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::strings | ::Integer | ::Float)?,
1127
+ "state" => (::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::strings | ::Integer | ::Float)?,
1128
+ scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1129
+ "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1130
+ original_scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1131
+ "original_scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1132
+ started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1133
+ "started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1134
+ attempt: (::Integer | ::Float)?,
1135
+ "attempt" => (::Integer | ::Float)?,
1136
+ }
1137
+
1138
+ def initialize: (?init_map initial_value) -> void
1139
+
1140
+ def []:
1141
+ ("state" name) -> (::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Integer)
1142
+ | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp?
1143
+ | ("original_scheduled_time" name) -> ::Google::Protobuf::Timestamp?
1144
+ | ("started_time" name) -> ::Google::Protobuf::Timestamp?
1145
+ | ("attempt" name) -> ::Integer
1146
+
1147
+ def []=:
1148
+ ("state" name, (::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::strings | ::Integer | ::Float) value) -> void
1149
+ | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1150
+ | ("original_scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1151
+ | ("started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1152
+ | ("attempt" name, (::Integer | ::Float) value) -> void
1153
+ end
1154
+
1155
+ class ResetPoints < ::Google::Protobuf::AbstractMessage
1156
+
1157
+ attr_accessor points(): ::Google::Protobuf::RepeatedField
1158
+ def clear_points: () -> void
1159
+
1160
+ type init_map = {
1161
+ points: ::Array[::Temporalio::Api::Workflow::V1::ResetPointInfo]?,
1162
+ "points" => ::Array[::Temporalio::Api::Workflow::V1::ResetPointInfo]?,
1163
+ }
1164
+
1165
+ def initialize: (?init_map initial_value) -> void
1166
+
1167
+ def []:
1168
+ ("points" name) -> ::Google::Protobuf::RepeatedField
1169
+
1170
+ def []=:
1171
+ ("points" name, ::Google::Protobuf::RepeatedField value) -> void
1172
+ end
1173
+
1174
+ # ResetPointInfo records the workflow event id that is the first one processed by a given
1175
+ # build id or binary checksum. A new reset point will be created if either build id or binary
1176
+ # checksum changes (although in general only one or the other will be used at a time).
1177
+ class ResetPointInfo < ::Google::Protobuf::AbstractMessage
1178
+
1179
+ # Worker build id.
1180
+ attr_reader build_id(): ::String
1181
+ attr_writer build_id(): ::String | ::Symbol
1182
+ def clear_build_id: () -> void
1183
+
1184
+ # Deprecated. A worker binary version identifier.
1185
+ # @deprecated
1186
+ attr_reader binary_checksum(): ::String
1187
+ attr_writer binary_checksum(): ::String | ::Symbol
1188
+ def clear_binary_checksum: () -> void
1189
+
1190
+ # The first run ID in the execution chain that was touched by this worker build.
1191
+ attr_reader run_id(): ::String
1192
+ attr_writer run_id(): ::String | ::Symbol
1193
+ def clear_run_id: () -> void
1194
+
1195
+ # Event ID of the first WorkflowTaskCompleted event processed by this worker build.
1196
+ attr_reader first_workflow_task_completed_id(): ::Integer
1197
+ attr_writer first_workflow_task_completed_id(): ::Integer | ::Float
1198
+ def clear_first_workflow_task_completed_id: () -> void
1199
+
1200
+ attr_reader create_time(): ::Google::Protobuf::Timestamp?
1201
+ attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)?
1202
+ def has_create_time?: () -> bool
1203
+ def clear_create_time: () -> void
1204
+
1205
+ # (-- api-linter: core::0214::resource-expiry=disabled
1206
+ # aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --)
1207
+ # The time that the run is deleted due to retention.
1208
+ attr_reader expire_time(): ::Google::Protobuf::Timestamp?
1209
+ attr_writer expire_time(): (::Google::Protobuf::Timestamp | ::Time)?
1210
+ def has_expire_time?: () -> bool
1211
+ def clear_expire_time: () -> void
1212
+
1213
+ # false if the reset point has pending childWFs/reqCancels/signalExternals.
1214
+ attr_accessor resettable(): bool
1215
+ def clear_resettable: () -> void
1216
+
1217
+ type init_map = {
1218
+ build_id: (::String | ::Symbol)?,
1219
+ "build_id" => (::String | ::Symbol)?,
1220
+ binary_checksum: (::String | ::Symbol)?,
1221
+ "binary_checksum" => (::String | ::Symbol)?,
1222
+ run_id: (::String | ::Symbol)?,
1223
+ "run_id" => (::String | ::Symbol)?,
1224
+ first_workflow_task_completed_id: (::Integer | ::Float)?,
1225
+ "first_workflow_task_completed_id" => (::Integer | ::Float)?,
1226
+ create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1227
+ "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1228
+ expire_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1229
+ "expire_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1230
+ resettable: bool?,
1231
+ "resettable" => bool?,
1232
+ }
1233
+
1234
+ def initialize: (?init_map initial_value) -> void
1235
+
1236
+ def []:
1237
+ ("build_id" name) -> ::String
1238
+ | ("binary_checksum" name) -> ::String
1239
+ | ("run_id" name) -> ::String
1240
+ | ("first_workflow_task_completed_id" name) -> ::Integer
1241
+ | ("create_time" name) -> ::Google::Protobuf::Timestamp?
1242
+ | ("expire_time" name) -> ::Google::Protobuf::Timestamp?
1243
+ | ("resettable" name) -> bool
1244
+
1245
+ def []=:
1246
+ ("build_id" name, (::String | ::Symbol) value) -> void
1247
+ | ("binary_checksum" name, (::String | ::Symbol) value) -> void
1248
+ | ("run_id" name, (::String | ::Symbol) value) -> void
1249
+ | ("first_workflow_task_completed_id" name, (::Integer | ::Float) value) -> void
1250
+ | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1251
+ | ("expire_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1252
+ | ("resettable" name, bool value) -> void
1253
+ end
1254
+
1255
+ # NewWorkflowExecutionInfo is a shared message that encapsulates all the
1256
+ # required arguments to starting a workflow in different contexts.
1257
+ class NewWorkflowExecutionInfo < ::Google::Protobuf::AbstractMessage
1258
+
1259
+ attr_reader workflow_id(): ::String
1260
+ attr_writer workflow_id(): ::String | ::Symbol
1261
+ def clear_workflow_id: () -> void
1262
+
1263
+ attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType?
1264
+ def has_workflow_type?: () -> bool
1265
+ def clear_workflow_type: () -> void
1266
+
1267
+ attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue?
1268
+ def has_task_queue?: () -> bool
1269
+ def clear_task_queue: () -> void
1270
+
1271
+ # Serialized arguments to the workflow.
1272
+ attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads?
1273
+ def has_input?: () -> bool
1274
+ def clear_input: () -> void
1275
+
1276
+ # Total workflow execution timeout including retries and continue as new.
1277
+ attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration?
1278
+ attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)?
1279
+ def has_workflow_execution_timeout?: () -> bool
1280
+ def clear_workflow_execution_timeout: () -> void
1281
+
1282
+ # Timeout of a single workflow run.
1283
+ attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration?
1284
+ attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)?
1285
+ def has_workflow_run_timeout?: () -> bool
1286
+ def clear_workflow_run_timeout: () -> void
1287
+
1288
+ # Timeout of a single workflow task.
1289
+ attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration?
1290
+ attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)?
1291
+ def has_workflow_task_timeout?: () -> bool
1292
+ def clear_workflow_task_timeout: () -> void
1293
+
1294
+ # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
1295
+ attr_reader workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer
1296
+ attr_writer workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float
1297
+ attr_reader workflow_id_reuse_policy_const(): ::Integer
1298
+ def clear_workflow_id_reuse_policy: () -> void
1299
+
1300
+ # The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
1301
+ attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy?
1302
+ def has_retry_policy?: () -> bool
1303
+ def clear_retry_policy: () -> void
1304
+
1305
+ # See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
1306
+ attr_reader cron_schedule(): ::String
1307
+ attr_writer cron_schedule(): ::String | ::Symbol
1308
+ def clear_cron_schedule: () -> void
1309
+
1310
+ attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo?
1311
+ def has_memo?: () -> bool
1312
+ def clear_memo: () -> void
1313
+
1314
+ attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes?
1315
+ def has_search_attributes?: () -> bool
1316
+ def clear_search_attributes: () -> void
1317
+
1318
+ attr_accessor header(): ::Temporalio::Api::Common::V1::Header?
1319
+ def has_header?: () -> bool
1320
+ def clear_header: () -> void
1321
+
1322
+ # Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig
1323
+ # for use by user interfaces to display the fixed as-of-start summary and details of the
1324
+ # workflow.
1325
+ attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata?
1326
+ def has_user_metadata?: () -> bool
1327
+ def clear_user_metadata: () -> void
1328
+
1329
+ # If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
1330
+ # To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
1331
+ attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride?
1332
+ def has_versioning_override?: () -> bool
1333
+ def clear_versioning_override: () -> void
1334
+
1335
+ # Priority metadata
1336
+ attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority?
1337
+ def has_priority?: () -> bool
1338
+ def clear_priority: () -> void
1339
+
1340
+ type init_map = {
1341
+ workflow_id: (::String | ::Symbol)?,
1342
+ "workflow_id" => (::String | ::Symbol)?,
1343
+ workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?,
1344
+ "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?,
1345
+ task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
1346
+ "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
1347
+ input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
1348
+ "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
1349
+ workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1350
+ "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1351
+ workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1352
+ "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1353
+ workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1354
+ "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1355
+ workflow_id_reuse_policy: (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?,
1356
+ "workflow_id_reuse_policy" => (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?,
1357
+ retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?,
1358
+ "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?,
1359
+ cron_schedule: (::String | ::Symbol)?,
1360
+ "cron_schedule" => (::String | ::Symbol)?,
1361
+ memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?,
1362
+ "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?,
1363
+ search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
1364
+ "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
1365
+ header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?,
1366
+ "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?,
1367
+ user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?,
1368
+ "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?,
1369
+ versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
1370
+ "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
1371
+ priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
1372
+ "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
1373
+ }
1374
+
1375
+ def initialize: (?init_map initial_value) -> void
1376
+
1377
+ def []:
1378
+ ("workflow_id" name) -> ::String
1379
+ | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType?
1380
+ | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue?
1381
+ | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads?
1382
+ | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration?
1383
+ | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration?
1384
+ | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration?
1385
+ | ("workflow_id_reuse_policy" name) -> (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer)
1386
+ | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy?
1387
+ | ("cron_schedule" name) -> ::String
1388
+ | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo?
1389
+ | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes?
1390
+ | ("header" name) -> ::Temporalio::Api::Common::V1::Header?
1391
+ | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata?
1392
+ | ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride?
1393
+ | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
1394
+
1395
+ def []=:
1396
+ ("workflow_id" name, (::String | ::Symbol) value) -> void
1397
+ | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void
1398
+ | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void
1399
+ | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void
1400
+ | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1401
+ | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1402
+ | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1403
+ | ("workflow_id_reuse_policy" name, (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float) value) -> void
1404
+ | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void
1405
+ | ("cron_schedule" name, (::String | ::Symbol) value) -> void
1406
+ | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void
1407
+ | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void
1408
+ | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void
1409
+ | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void
1410
+ | ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void
1411
+ | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
1412
+ end
1413
+
1414
+ # CallbackInfo contains the state of an attached workflow callback.
1415
+ class CallbackInfo < ::Google::Protobuf::AbstractMessage
1416
+ # Trigger for when the workflow is closed.
1417
+ class WorkflowClosed < ::Google::Protobuf::AbstractMessage
1418
+
1419
+ type init_map = {
1420
+ }
1421
+
1422
+ def initialize: (?init_map initial_value) -> void
1423
+ end
1424
+
1425
+ # Trigger for when a workflow update is completed.
1426
+ class UpdateWorkflowExecutionCompleted < ::Google::Protobuf::AbstractMessage
1427
+
1428
+ attr_reader update_id(): ::String
1429
+ attr_writer update_id(): ::String | ::Symbol
1430
+ def clear_update_id: () -> void
1431
+
1432
+ type init_map = {
1433
+ update_id: (::String | ::Symbol)?,
1434
+ "update_id" => (::String | ::Symbol)?,
1435
+ }
1436
+
1437
+ def initialize: (?init_map initial_value) -> void
1438
+
1439
+ def []:
1440
+ ("update_id" name) -> ::String
1441
+
1442
+ def []=:
1443
+ ("update_id" name, (::String | ::Symbol) value) -> void
1444
+ end
1445
+
1446
+ class Trigger < ::Google::Protobuf::AbstractMessage
1447
+
1448
+ attr_accessor workflow_closed(): ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed?
1449
+ def has_workflow_closed?: () -> bool
1450
+ def clear_workflow_closed: () -> void
1451
+
1452
+ attr_accessor update_workflow_execution_completed(): ::Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted?
1453
+ def has_update_workflow_execution_completed?: () -> bool
1454
+ def clear_update_workflow_execution_completed: () -> void
1455
+
1456
+ attr_reader variant(): (::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed | ::Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted)?
1457
+ def has_variant?: () -> bool
1458
+ def clear_variant: () -> void
1459
+
1460
+ type init_map = {
1461
+ workflow_closed: (::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed | ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed::init_map)?,
1462
+ "workflow_closed" => (::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed | ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed::init_map)?,
1463
+ update_workflow_execution_completed: (::Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted | ::Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted::init_map)?,
1464
+ "update_workflow_execution_completed" => (::Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted | ::Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted::init_map)?,
1465
+ }
1466
+
1467
+ def initialize: (?init_map initial_value) -> void
1468
+
1469
+ def []:
1470
+ ("workflow_closed" name) -> ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed?
1471
+ | ("update_workflow_execution_completed" name) -> ::Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted?
1472
+
1473
+ def []=:
1474
+ ("workflow_closed" name, ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed? value) -> void
1475
+ | ("update_workflow_execution_completed" name, ::Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted? value) -> void
1476
+ end
1477
+
1478
+ # Information on how this callback should be invoked (e.g. its URL and type).
1479
+ attr_accessor callback(): ::Temporalio::Api::Common::V1::Callback?
1480
+ def has_callback?: () -> bool
1481
+ def clear_callback: () -> void
1482
+
1483
+ # Trigger for this callback.
1484
+ attr_accessor trigger(): ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger?
1485
+ def has_trigger?: () -> bool
1486
+ def clear_trigger: () -> void
1487
+
1488
+ # The time when the callback was registered.
1489
+ attr_reader registration_time(): ::Google::Protobuf::Timestamp?
1490
+ attr_writer registration_time(): (::Google::Protobuf::Timestamp | ::Time)?
1491
+ def has_registration_time?: () -> bool
1492
+ def clear_registration_time: () -> void
1493
+
1494
+ attr_reader state(): ::Temporalio::Api::Enums::V1::CallbackState::names | ::Integer
1495
+ attr_writer state(): ::Temporalio::Api::Enums::V1::CallbackState::names | ::Temporalio::Api::Enums::V1::CallbackState::strings | ::Integer | ::Float
1496
+ attr_reader state_const(): ::Integer
1497
+ def clear_state: () -> void
1498
+
1499
+ # The number of attempts made to deliver the callback.
1500
+ # This number represents a minimum bound since the attempt is incremented after the callback request completes.
1501
+ attr_reader attempt(): ::Integer
1502
+ attr_writer attempt(): ::Integer | ::Float
1503
+ def clear_attempt: () -> void
1504
+
1505
+ # The time when the last attempt completed.
1506
+ attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp?
1507
+ attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)?
1508
+ def has_last_attempt_complete_time?: () -> bool
1509
+ def clear_last_attempt_complete_time: () -> void
1510
+
1511
+ # The last attempt's failure, if any.
1512
+ attr_accessor last_attempt_failure(): ::Temporalio::Api::Failure::V1::Failure?
1513
+ def has_last_attempt_failure?: () -> bool
1514
+ def clear_last_attempt_failure: () -> void
1515
+
1516
+ # The time when the next attempt is scheduled.
1517
+ attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp?
1518
+ attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)?
1519
+ def has_next_attempt_schedule_time?: () -> bool
1520
+ def clear_next_attempt_schedule_time: () -> void
1521
+
1522
+ # If the state is BLOCKED, blocked reason provides additional information.
1523
+ attr_reader blocked_reason(): ::String
1524
+ attr_writer blocked_reason(): ::String | ::Symbol
1525
+ def clear_blocked_reason: () -> void
1526
+
1527
+ type init_map = {
1528
+ callback: (::Temporalio::Api::Common::V1::Callback | ::Temporalio::Api::Common::V1::Callback::init_map)?,
1529
+ "callback" => (::Temporalio::Api::Common::V1::Callback | ::Temporalio::Api::Common::V1::Callback::init_map)?,
1530
+ trigger: (::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger | ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger::init_map)?,
1531
+ "trigger" => (::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger | ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger::init_map)?,
1532
+ registration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1533
+ "registration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1534
+ state: (::Temporalio::Api::Enums::V1::CallbackState::names | ::Temporalio::Api::Enums::V1::CallbackState::strings | ::Integer | ::Float)?,
1535
+ "state" => (::Temporalio::Api::Enums::V1::CallbackState::names | ::Temporalio::Api::Enums::V1::CallbackState::strings | ::Integer | ::Float)?,
1536
+ attempt: (::Integer | ::Float)?,
1537
+ "attempt" => (::Integer | ::Float)?,
1538
+ last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1539
+ "last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1540
+ last_attempt_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
1541
+ "last_attempt_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
1542
+ next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1543
+ "next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1544
+ blocked_reason: (::String | ::Symbol)?,
1545
+ "blocked_reason" => (::String | ::Symbol)?,
1546
+ }
1547
+
1548
+ def initialize: (?init_map initial_value) -> void
1549
+
1550
+ def []:
1551
+ ("callback" name) -> ::Temporalio::Api::Common::V1::Callback?
1552
+ | ("trigger" name) -> ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger?
1553
+ | ("registration_time" name) -> ::Google::Protobuf::Timestamp?
1554
+ | ("state" name) -> (::Temporalio::Api::Enums::V1::CallbackState::names | ::Integer)
1555
+ | ("attempt" name) -> ::Integer
1556
+ | ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp?
1557
+ | ("last_attempt_failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
1558
+ | ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp?
1559
+ | ("blocked_reason" name) -> ::String
1560
+
1561
+ def []=:
1562
+ ("callback" name, ::Temporalio::Api::Common::V1::Callback? value) -> void
1563
+ | ("trigger" name, ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger? value) -> void
1564
+ | ("registration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1565
+ | ("state" name, (::Temporalio::Api::Enums::V1::CallbackState::names | ::Temporalio::Api::Enums::V1::CallbackState::strings | ::Integer | ::Float) value) -> void
1566
+ | ("attempt" name, (::Integer | ::Float) value) -> void
1567
+ | ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1568
+ | ("last_attempt_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
1569
+ | ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1570
+ | ("blocked_reason" name, (::String | ::Symbol) value) -> void
1571
+ end
1572
+
1573
+ # PendingNexusOperationInfo contains the state of a pending Nexus operation.
1574
+ class PendingNexusOperationInfo < ::Google::Protobuf::AbstractMessage
1575
+
1576
+ # Endpoint name.
1577
+ # Resolved to a URL via the cluster's endpoint registry.
1578
+ attr_reader endpoint(): ::String
1579
+ attr_writer endpoint(): ::String | ::Symbol
1580
+ def clear_endpoint: () -> void
1581
+
1582
+ # Service name.
1583
+ attr_reader service(): ::String
1584
+ attr_writer service(): ::String | ::Symbol
1585
+ def clear_service: () -> void
1586
+
1587
+ # Operation name.
1588
+ attr_reader operation(): ::String
1589
+ attr_writer operation(): ::String | ::Symbol
1590
+ def clear_operation: () -> void
1591
+
1592
+ # Operation ID. Only set for asynchronous operations after a successful StartOperation call.
1593
+ # Deprecated. Renamed to operation_token.
1594
+ # @deprecated
1595
+ attr_reader operation_id(): ::String
1596
+ attr_writer operation_id(): ::String | ::Symbol
1597
+ def clear_operation_id: () -> void
1598
+
1599
+ # Schedule-to-close timeout for this operation.
1600
+ # This is the only timeout settable by a workflow.
1601
+ # (-- api-linter: core::0140::prepositions=disabled
1602
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1603
+ attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration?
1604
+ attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)?
1605
+ def has_schedule_to_close_timeout?: () -> bool
1606
+ def clear_schedule_to_close_timeout: () -> void
1607
+
1608
+ # The time when the operation was scheduled.
1609
+ attr_reader scheduled_time(): ::Google::Protobuf::Timestamp?
1610
+ attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)?
1611
+ def has_scheduled_time?: () -> bool
1612
+ def clear_scheduled_time: () -> void
1613
+
1614
+ attr_reader state(): ::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Integer
1615
+ attr_writer state(): ::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float
1616
+ attr_reader state_const(): ::Integer
1617
+ def clear_state: () -> void
1618
+
1619
+ # The number of attempts made to deliver the start operation request.
1620
+ # This number is approximate, it is incremented when a task is added to the history queue.
1621
+ # In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task
1622
+ # was never executed.
1623
+ attr_reader attempt(): ::Integer
1624
+ attr_writer attempt(): ::Integer | ::Float
1625
+ def clear_attempt: () -> void
1626
+
1627
+ # The time when the last attempt completed.
1628
+ attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp?
1629
+ attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)?
1630
+ def has_last_attempt_complete_time?: () -> bool
1631
+ def clear_last_attempt_complete_time: () -> void
1632
+
1633
+ # The last attempt's failure, if any.
1634
+ attr_accessor last_attempt_failure(): ::Temporalio::Api::Failure::V1::Failure?
1635
+ def has_last_attempt_failure?: () -> bool
1636
+ def clear_last_attempt_failure: () -> void
1637
+
1638
+ # The time when the next attempt is scheduled.
1639
+ attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp?
1640
+ attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)?
1641
+ def has_next_attempt_schedule_time?: () -> bool
1642
+ def clear_next_attempt_schedule_time: () -> void
1643
+
1644
+ attr_accessor cancellation_info(): ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo?
1645
+ def has_cancellation_info?: () -> bool
1646
+ def clear_cancellation_info: () -> void
1647
+
1648
+ # The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the
1649
+ # DescribeWorkflowExecution response with workflow history.
1650
+ attr_reader scheduled_event_id(): ::Integer
1651
+ attr_writer scheduled_event_id(): ::Integer | ::Float
1652
+ def clear_scheduled_event_id: () -> void
1653
+
1654
+ # If the state is BLOCKED, blocked reason provides additional information.
1655
+ attr_reader blocked_reason(): ::String
1656
+ attr_writer blocked_reason(): ::String | ::Symbol
1657
+ def clear_blocked_reason: () -> void
1658
+
1659
+ # Operation token. Only set for asynchronous operations after a successful StartOperation call.
1660
+ attr_reader operation_token(): ::String
1661
+ attr_writer operation_token(): ::String | ::Symbol
1662
+ def clear_operation_token: () -> void
1663
+
1664
+ # Schedule-to-start timeout for this operation.
1665
+ # (-- api-linter: core::0140::prepositions=disabled
1666
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1667
+ attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration?
1668
+ attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)?
1669
+ def has_schedule_to_start_timeout?: () -> bool
1670
+ def clear_schedule_to_start_timeout: () -> void
1671
+
1672
+ # Start-to-close timeout for this operation.
1673
+ # (-- api-linter: core::0140::prepositions=disabled
1674
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1675
+ attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration?
1676
+ attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)?
1677
+ def has_start_to_close_timeout?: () -> bool
1678
+ def clear_start_to_close_timeout: () -> void
1679
+
1680
+ type init_map = {
1681
+ endpoint: (::String | ::Symbol)?,
1682
+ "endpoint" => (::String | ::Symbol)?,
1683
+ service: (::String | ::Symbol)?,
1684
+ "service" => (::String | ::Symbol)?,
1685
+ operation: (::String | ::Symbol)?,
1686
+ "operation" => (::String | ::Symbol)?,
1687
+ operation_id: (::String | ::Symbol)?,
1688
+ "operation_id" => (::String | ::Symbol)?,
1689
+ schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1690
+ "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1691
+ scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1692
+ "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1693
+ state: (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float)?,
1694
+ "state" => (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float)?,
1695
+ attempt: (::Integer | ::Float)?,
1696
+ "attempt" => (::Integer | ::Float)?,
1697
+ last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1698
+ "last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1699
+ last_attempt_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
1700
+ "last_attempt_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
1701
+ next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1702
+ "next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1703
+ cancellation_info: (::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo | ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo::init_map)?,
1704
+ "cancellation_info" => (::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo | ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo::init_map)?,
1705
+ scheduled_event_id: (::Integer | ::Float)?,
1706
+ "scheduled_event_id" => (::Integer | ::Float)?,
1707
+ blocked_reason: (::String | ::Symbol)?,
1708
+ "blocked_reason" => (::String | ::Symbol)?,
1709
+ operation_token: (::String | ::Symbol)?,
1710
+ "operation_token" => (::String | ::Symbol)?,
1711
+ schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1712
+ "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1713
+ start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1714
+ "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1715
+ }
1716
+
1717
+ def initialize: (?init_map initial_value) -> void
1718
+
1719
+ def []:
1720
+ ("endpoint" name) -> ::String
1721
+ | ("service" name) -> ::String
1722
+ | ("operation" name) -> ::String
1723
+ | ("operation_id" name) -> ::String
1724
+ | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration?
1725
+ | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp?
1726
+ | ("state" name) -> (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Integer)
1727
+ | ("attempt" name) -> ::Integer
1728
+ | ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp?
1729
+ | ("last_attempt_failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
1730
+ | ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp?
1731
+ | ("cancellation_info" name) -> ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo?
1732
+ | ("scheduled_event_id" name) -> ::Integer
1733
+ | ("blocked_reason" name) -> ::String
1734
+ | ("operation_token" name) -> ::String
1735
+ | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration?
1736
+ | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration?
1737
+
1738
+ def []=:
1739
+ ("endpoint" name, (::String | ::Symbol) value) -> void
1740
+ | ("service" name, (::String | ::Symbol) value) -> void
1741
+ | ("operation" name, (::String | ::Symbol) value) -> void
1742
+ | ("operation_id" name, (::String | ::Symbol) value) -> void
1743
+ | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1744
+ | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1745
+ | ("state" name, (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float) value) -> void
1746
+ | ("attempt" name, (::Integer | ::Float) value) -> void
1747
+ | ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1748
+ | ("last_attempt_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
1749
+ | ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1750
+ | ("cancellation_info" name, ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo? value) -> void
1751
+ | ("scheduled_event_id" name, (::Integer | ::Float) value) -> void
1752
+ | ("blocked_reason" name, (::String | ::Symbol) value) -> void
1753
+ | ("operation_token" name, (::String | ::Symbol) value) -> void
1754
+ | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1755
+ | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1756
+ end
1757
+
1758
+ # NexusOperationCancellationInfo contains the state of a nexus operation cancellation.
1759
+ class NexusOperationCancellationInfo < ::Google::Protobuf::AbstractMessage
1760
+
1761
+ # The time when cancellation was requested.
1762
+ attr_reader requested_time(): ::Google::Protobuf::Timestamp?
1763
+ attr_writer requested_time(): (::Google::Protobuf::Timestamp | ::Time)?
1764
+ def has_requested_time?: () -> bool
1765
+ def clear_requested_time: () -> void
1766
+
1767
+ attr_reader state(): ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Integer
1768
+ attr_writer state(): ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float
1769
+ attr_reader state_const(): ::Integer
1770
+ def clear_state: () -> void
1771
+
1772
+ # The number of attempts made to deliver the cancel operation request.
1773
+ # This number represents a minimum bound since the attempt is incremented after the request completes.
1774
+ attr_reader attempt(): ::Integer
1775
+ attr_writer attempt(): ::Integer | ::Float
1776
+ def clear_attempt: () -> void
1777
+
1778
+ # The time when the last attempt completed.
1779
+ attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp?
1780
+ attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)?
1781
+ def has_last_attempt_complete_time?: () -> bool
1782
+ def clear_last_attempt_complete_time: () -> void
1783
+
1784
+ # The last attempt's failure, if any.
1785
+ attr_accessor last_attempt_failure(): ::Temporalio::Api::Failure::V1::Failure?
1786
+ def has_last_attempt_failure?: () -> bool
1787
+ def clear_last_attempt_failure: () -> void
1788
+
1789
+ # The time when the next attempt is scheduled.
1790
+ attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp?
1791
+ attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)?
1792
+ def has_next_attempt_schedule_time?: () -> bool
1793
+ def clear_next_attempt_schedule_time: () -> void
1794
+
1795
+ # If the state is BLOCKED, blocked reason provides additional information.
1796
+ attr_reader blocked_reason(): ::String
1797
+ attr_writer blocked_reason(): ::String | ::Symbol
1798
+ def clear_blocked_reason: () -> void
1799
+
1800
+ type init_map = {
1801
+ requested_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1802
+ "requested_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1803
+ state: (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float)?,
1804
+ "state" => (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float)?,
1805
+ attempt: (::Integer | ::Float)?,
1806
+ "attempt" => (::Integer | ::Float)?,
1807
+ last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1808
+ "last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1809
+ last_attempt_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
1810
+ "last_attempt_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
1811
+ next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1812
+ "next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
1813
+ blocked_reason: (::String | ::Symbol)?,
1814
+ "blocked_reason" => (::String | ::Symbol)?,
1815
+ }
1816
+
1817
+ def initialize: (?init_map initial_value) -> void
1818
+
1819
+ def []:
1820
+ ("requested_time" name) -> ::Google::Protobuf::Timestamp?
1821
+ | ("state" name) -> (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Integer)
1822
+ | ("attempt" name) -> ::Integer
1823
+ | ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp?
1824
+ | ("last_attempt_failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
1825
+ | ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp?
1826
+ | ("blocked_reason" name) -> ::String
1827
+
1828
+ def []=:
1829
+ ("requested_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1830
+ | ("state" name, (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float) value) -> void
1831
+ | ("attempt" name, (::Integer | ::Float) value) -> void
1832
+ | ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1833
+ | ("last_attempt_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
1834
+ | ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
1835
+ | ("blocked_reason" name, (::String | ::Symbol) value) -> void
1836
+ end
1837
+
1838
+ class WorkflowExecutionOptions < ::Google::Protobuf::AbstractMessage
1839
+
1840
+ # If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
1841
+ attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride?
1842
+ def has_versioning_override?: () -> bool
1843
+ def clear_versioning_override: () -> void
1844
+
1845
+ # If set, overrides the workflow's priority sent by the SDK.
1846
+ attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority?
1847
+ def has_priority?: () -> bool
1848
+ def clear_priority: () -> void
1849
+
1850
+ # The time-skipping configuration for this workflow execution.
1851
+ # When `fast_forward` is set, time will be fast-forwarded to a future point relative
1852
+ # to the current workflow timestamp. Each call takes effect, even if
1853
+ # `fast_forward` is set to the same duration, since the target time is recalculated
1854
+ # from the current timestamp on every call.
1855
+ # This field must be updated as a whole; updating individual sub-fields is not supported.
1856
+ # When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`,
1857
+ # `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
1858
+ attr_accessor time_skipping_config(): ::Temporalio::Api::Common::V1::TimeSkippingConfig?
1859
+ def has_time_skipping_config?: () -> bool
1860
+ def clear_time_skipping_config: () -> void
1861
+
1862
+ type init_map = {
1863
+ versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
1864
+ "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
1865
+ priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
1866
+ "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
1867
+ time_skipping_config: (::Temporalio::Api::Common::V1::TimeSkippingConfig | ::Temporalio::Api::Common::V1::TimeSkippingConfig::init_map)?,
1868
+ "time_skipping_config" => (::Temporalio::Api::Common::V1::TimeSkippingConfig | ::Temporalio::Api::Common::V1::TimeSkippingConfig::init_map)?,
1869
+ }
1870
+
1871
+ def initialize: (?init_map initial_value) -> void
1872
+
1873
+ def []:
1874
+ ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride?
1875
+ | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
1876
+ | ("time_skipping_config" name) -> ::Temporalio::Api::Common::V1::TimeSkippingConfig?
1877
+
1878
+ def []=:
1879
+ ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void
1880
+ | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
1881
+ | ("time_skipping_config" name, ::Temporalio::Api::Common::V1::TimeSkippingConfig? value) -> void
1882
+ end
1883
+
1884
+ # Used to override the versioning behavior (and pinned deployment version, if applicable) of a
1885
+ # specific workflow execution. If set, this override takes precedence over worker-sent values.
1886
+ # See `WorkflowExecutionInfo.VersioningInfo` for more information.
1887
+ # To remove the override, call `UpdateWorkflowExecutionOptions` with a null
1888
+ # `VersioningOverride`, and use the `update_mask` to indicate that it should be mutated.
1889
+ # Pinned behavior overrides are automatically inherited by child workflows, workflow retries, continue-as-new
1890
+ # workflows, and cron workflows.
1891
+ class VersioningOverride < ::Google::Protobuf::AbstractMessage
1892
+ class PinnedOverride < ::Google::Protobuf::AbstractMessage
1893
+
1894
+ # Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED.
1895
+ # See `PinnedOverrideBehavior` for details.
1896
+ attr_reader behavior(): ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Integer
1897
+ attr_writer behavior(): ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::strings | ::Integer | ::Float
1898
+ attr_reader behavior_const(): ::Integer
1899
+ def clear_behavior: () -> void
1900
+
1901
+ # Specifies the Worker Deployment Version to pin this workflow to.
1902
+ # Required if the target workflow is not already pinned to a version.
1903
+ # If omitted and the target workflow is already pinned, the effective
1904
+ # pinned version will be the existing pinned version.
1905
+ # If omitted and the target workflow is not pinned, the override request
1906
+ # will be rejected with a PreconditionFailed error.
1907
+ attr_accessor version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
1908
+ def has_version?: () -> bool
1909
+ def clear_version: () -> void
1910
+
1911
+ type init_map = {
1912
+ behavior: (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::strings | ::Integer | ::Float)?,
1913
+ "behavior" => (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::strings | ::Integer | ::Float)?,
1914
+ version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
1915
+ "version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
1916
+ }
1917
+
1918
+ def initialize: (?init_map initial_value) -> void
1919
+
1920
+ def []:
1921
+ ("behavior" name) -> (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Integer)
1922
+ | ("version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
1923
+
1924
+ def []=:
1925
+ ("behavior" name, (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::strings | ::Integer | ::Float) value) -> void
1926
+ | ("version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
1927
+ end
1928
+
1929
+ # Routes Workflow Tasks for this execution to `target_deployment_version`
1930
+ # until a Workflow Task completes on that version, then clears the override.
1931
+ # This does not force the workflow's normal Versioning Behavior to become
1932
+ # Pinned. After the Workflow Task completes on `target_deployment_version`,
1933
+ # the workflow execution's normal Versioning Behavior and Deployment Version
1934
+ # are taken from the worker's completion response.
1935
+ # Example: if an execution is one-time moved from version X to version Y, and
1936
+ # version Z later becomes current:
1937
+ # - if worker Y reports Pinned, the execution stays on Y;
1938
+ # - if worker Y reports AutoUpgrade, the execution routes to Z on a future
1939
+ # Workflow Task;
1940
+ # - if worker Y reports Pinned and the workflow uses upgrade-on-continue-as-new,
1941
+ # the current run stays on Y and the execution can route to Z after
1942
+ # continue-as-new.
1943
+ # If no Workflow Task completes on `target_deployment_version`, this override
1944
+ # remains pending.
1945
+ class OneTimeOverride < ::Google::Protobuf::AbstractMessage
1946
+
1947
+ # Required. Worker Deployment Version to receive the one-time Workflow Task.
1948
+ attr_accessor target_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
1949
+ def has_target_deployment_version?: () -> bool
1950
+ def clear_target_deployment_version: () -> void
1951
+
1952
+ type init_map = {
1953
+ target_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
1954
+ "target_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
1955
+ }
1956
+
1957
+ def initialize: (?init_map initial_value) -> void
1958
+
1959
+ def []:
1960
+ ("target_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
1961
+
1962
+ def []=:
1963
+ ("target_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
1964
+ end
1965
+
1966
+ module PinnedOverrideBehavior
1967
+
1968
+ # Unspecified.
1969
+ PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED: 0
1970
+
1971
+ # Override workflow behavior to be Pinned.
1972
+ PINNED_OVERRIDE_BEHAVIOR_PINNED: 1
1973
+
1974
+ def self.lookup: (::Integer number) -> ::Symbol
1975
+
1976
+
1977
+ def self.resolve: (::Symbol name) -> ::Integer
1978
+
1979
+
1980
+ type names = :PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED | :PINNED_OVERRIDE_BEHAVIOR_PINNED
1981
+
1982
+ type strings = "PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED" | "PINNED_OVERRIDE_BEHAVIOR_PINNED"
1983
+
1984
+ type numbers = 0 | 1
1985
+ end
1986
+
1987
+ # Override the workflow to have Pinned behavior. This is a sticky override:
1988
+ # Workflow Tasks continue to route according to this override until it is
1989
+ # explicitly removed.
1990
+ attr_accessor pinned(): ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride?
1991
+ def has_pinned?: () -> bool
1992
+ def clear_pinned: () -> void
1993
+
1994
+ # Override the workflow to have AutoUpgrade behavior.
1995
+ attr_reader auto_upgrade(): bool
1996
+ attr_writer auto_upgrade(): bool?
1997
+ def has_auto_upgrade?: () -> bool
1998
+ def clear_auto_upgrade: () -> void
1999
+
2000
+ # Override Workflow Task routing to a specific Worker Deployment Version until
2001
+ # one Workflow Task completes there. After completion, the workflow execution's
2002
+ # Versioning Behavior and Deployment Version come from the worker's completion
2003
+ # response.
2004
+ # (-- api-linter: core::0142::time-field-type=disabled
2005
+ # aip.dev/not-precedent: one_time describes one-time routing semantics, not a timestamp or duration. --)
2006
+ attr_accessor one_time(): ::Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride?
2007
+ def has_one_time?: () -> bool
2008
+ def clear_one_time: () -> void
2009
+
2010
+ # Required.
2011
+ # Deprecated. Use `override`.
2012
+ # @deprecated
2013
+ attr_reader behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer
2014
+ attr_writer behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float
2015
+ attr_reader behavior_const(): ::Integer
2016
+ def clear_behavior: () -> void
2017
+
2018
+ # Required if behavior is `PINNED`. Must be null if behavior is `AUTO_UPGRADE`.
2019
+ # Identifies the worker deployment to pin the workflow to.
2020
+ # Deprecated. Use `override.pinned.version`.
2021
+ # @deprecated
2022
+ attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment?
2023
+ def has_deployment?: () -> bool
2024
+ def clear_deployment: () -> void
2025
+
2026
+ # Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`.
2027
+ # Identifies the worker deployment version to pin the workflow to, in the format
2028
+ # "<deployment_name>.<build_id>".
2029
+ # Deprecated. Use `override.pinned.version`.
2030
+ # @deprecated
2031
+ attr_reader pinned_version(): ::String
2032
+ attr_writer pinned_version(): ::String | ::Symbol
2033
+ def clear_pinned_version: () -> void
2034
+
2035
+ # Indicates whether to override the workflow to be AutoUpgrade or Pinned.
2036
+ attr_reader override(): (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride | bool | ::Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride)?
2037
+ def has_override?: () -> bool
2038
+ def clear_override: () -> void
2039
+
2040
+ type init_map = {
2041
+ pinned: (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride::init_map)?,
2042
+ "pinned" => (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride::init_map)?,
2043
+ auto_upgrade: bool?,
2044
+ "auto_upgrade" => bool?,
2045
+ one_time: (::Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride::init_map)?,
2046
+ "one_time" => (::Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride::init_map)?,
2047
+ behavior: (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?,
2048
+ "behavior" => (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?,
2049
+ deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?,
2050
+ "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?,
2051
+ pinned_version: (::String | ::Symbol)?,
2052
+ "pinned_version" => (::String | ::Symbol)?,
2053
+ }
2054
+
2055
+ def initialize: (?init_map initial_value) -> void
2056
+
2057
+ def []:
2058
+ ("pinned" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride?
2059
+ | ("auto_upgrade" name) -> bool
2060
+ | ("one_time" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride?
2061
+ | ("behavior" name) -> (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer)
2062
+ | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment?
2063
+ | ("pinned_version" name) -> ::String
2064
+
2065
+ def []=:
2066
+ ("pinned" name, ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride? value) -> void
2067
+ | ("auto_upgrade" name, bool? value) -> void
2068
+ | ("one_time" name, ::Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride? value) -> void
2069
+ | ("behavior" name, (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float) value) -> void
2070
+ | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void
2071
+ | ("pinned_version" name, (::String | ::Symbol) value) -> void
2072
+ end
2073
+
2074
+ # When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and
2075
+ # there is already an existing running workflow, OnConflictOptions defines actions to be taken on
2076
+ # the existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent
2077
+ # history event in the running workflow with the changes requested in this object.
2078
+ class OnConflictOptions < ::Google::Protobuf::AbstractMessage
2079
+
2080
+ # Attaches the request ID to the running workflow.
2081
+ attr_accessor attach_request_id(): bool
2082
+ def clear_attach_request_id: () -> void
2083
+
2084
+ # Attaches the completion callbacks to the running workflow.
2085
+ attr_accessor attach_completion_callbacks(): bool
2086
+ def clear_attach_completion_callbacks: () -> void
2087
+
2088
+ # Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
2089
+ attr_accessor attach_links(): bool
2090
+ def clear_attach_links: () -> void
2091
+
2092
+ type init_map = {
2093
+ attach_request_id: bool?,
2094
+ "attach_request_id" => bool?,
2095
+ attach_completion_callbacks: bool?,
2096
+ "attach_completion_callbacks" => bool?,
2097
+ attach_links: bool?,
2098
+ "attach_links" => bool?,
2099
+ }
2100
+
2101
+ def initialize: (?init_map initial_value) -> void
2102
+
2103
+ def []:
2104
+ ("attach_request_id" name) -> bool
2105
+ | ("attach_completion_callbacks" name) -> bool
2106
+ | ("attach_links" name) -> bool
2107
+
2108
+ def []=:
2109
+ ("attach_request_id" name, bool value) -> void
2110
+ | ("attach_completion_callbacks" name, bool value) -> void
2111
+ | ("attach_links" name, bool value) -> void
2112
+ end
2113
+
2114
+ # RequestIdInfo contains details of a request ID.
2115
+ class RequestIdInfo < ::Google::Protobuf::AbstractMessage
2116
+
2117
+ # The event type of the history event generated by the request.
2118
+ attr_reader event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Integer
2119
+ attr_writer event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float
2120
+ attr_reader event_type_const(): ::Integer
2121
+ def clear_event_type: () -> void
2122
+
2123
+ # The event id of the history event generated by the request. It's possible the event ID is not
2124
+ # known (unflushed buffered event). In this case, the value will be zero or a negative value,
2125
+ # representing an invalid ID.
2126
+ attr_reader event_id(): ::Integer
2127
+ attr_writer event_id(): ::Integer | ::Float
2128
+ def clear_event_id: () -> void
2129
+
2130
+ # Indicate if the request is still buffered. If so, the event ID is not known and its value
2131
+ # will be an invalid event ID.
2132
+ attr_accessor buffered(): bool
2133
+ def clear_buffered: () -> void
2134
+
2135
+ type init_map = {
2136
+ event_type: (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?,
2137
+ "event_type" => (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?,
2138
+ event_id: (::Integer | ::Float)?,
2139
+ "event_id" => (::Integer | ::Float)?,
2140
+ buffered: bool?,
2141
+ "buffered" => bool?,
2142
+ }
2143
+
2144
+ def initialize: (?init_map initial_value) -> void
2145
+
2146
+ def []:
2147
+ ("event_type" name) -> (::Temporalio::Api::Enums::V1::EventType::names | ::Integer)
2148
+ | ("event_id" name) -> ::Integer
2149
+ | ("buffered" name) -> bool
2150
+
2151
+ def []=:
2152
+ ("event_type" name, (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float) value) -> void
2153
+ | ("event_id" name, (::Integer | ::Float) value) -> void
2154
+ | ("buffered" name, bool value) -> void
2155
+ end
2156
+
2157
+ # PostResetOperation represents an operation to be performed on the new workflow execution after a workflow reset.
2158
+ class PostResetOperation < ::Google::Protobuf::AbstractMessage
2159
+ # SignalWorkflow represents sending a signal after a workflow reset.
2160
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.
2161
+ class SignalWorkflow < ::Google::Protobuf::AbstractMessage
2162
+
2163
+ # The workflow author-defined name of the signal to send to the workflow.
2164
+ attr_reader signal_name(): ::String
2165
+ attr_writer signal_name(): ::String | ::Symbol
2166
+ def clear_signal_name: () -> void
2167
+
2168
+ # Serialized value(s) to provide with the signal.
2169
+ attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads?
2170
+ def has_input?: () -> bool
2171
+ def clear_input: () -> void
2172
+
2173
+ # Headers that are passed with the signal to the processing workflow.
2174
+ attr_accessor header(): ::Temporalio::Api::Common::V1::Header?
2175
+ def has_header?: () -> bool
2176
+ def clear_header: () -> void
2177
+
2178
+ # Links to be associated with the WorkflowExecutionSignaled event.
2179
+ attr_accessor links(): ::Google::Protobuf::RepeatedField
2180
+ def clear_links: () -> void
2181
+
2182
+ type init_map = {
2183
+ signal_name: (::String | ::Symbol)?,
2184
+ "signal_name" => (::String | ::Symbol)?,
2185
+ input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
2186
+ "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
2187
+ header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?,
2188
+ "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?,
2189
+ links: ::Array[::Temporalio::Api::Common::V1::Link]?,
2190
+ "links" => ::Array[::Temporalio::Api::Common::V1::Link]?,
2191
+ }
2192
+
2193
+ def initialize: (?init_map initial_value) -> void
2194
+
2195
+ def []:
2196
+ ("signal_name" name) -> ::String
2197
+ | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads?
2198
+ | ("header" name) -> ::Temporalio::Api::Common::V1::Header?
2199
+ | ("links" name) -> ::Google::Protobuf::RepeatedField
2200
+
2201
+ def []=:
2202
+ ("signal_name" name, (::String | ::Symbol) value) -> void
2203
+ | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void
2204
+ | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void
2205
+ | ("links" name, ::Google::Protobuf::RepeatedField value) -> void
2206
+ end
2207
+
2208
+ # UpdateWorkflowOptions represents updating workflow execution options after a workflow reset.
2209
+ # Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest.
2210
+ class UpdateWorkflowOptions < ::Google::Protobuf::AbstractMessage
2211
+
2212
+ # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.
2213
+ attr_accessor workflow_execution_options(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions?
2214
+ def has_workflow_execution_options?: () -> bool
2215
+ def clear_workflow_execution_options: () -> void
2216
+
2217
+ # Controls which fields from `workflow_execution_options` will be applied.
2218
+ # To unset a field, set it to null and use the update mask to indicate that it should be mutated.
2219
+ attr_accessor update_mask(): ::Google::Protobuf::FieldMask?
2220
+ def has_update_mask?: () -> bool
2221
+ def clear_update_mask: () -> void
2222
+
2223
+ type init_map = {
2224
+ workflow_execution_options: (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?,
2225
+ "workflow_execution_options" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?,
2226
+ update_mask: (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?,
2227
+ "update_mask" => (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?,
2228
+ }
2229
+
2230
+ def initialize: (?init_map initial_value) -> void
2231
+
2232
+ def []:
2233
+ ("workflow_execution_options" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions?
2234
+ | ("update_mask" name) -> ::Google::Protobuf::FieldMask?
2235
+
2236
+ def []=:
2237
+ ("workflow_execution_options" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? value) -> void
2238
+ | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void
2239
+ end
2240
+
2241
+ attr_accessor signal_workflow(): ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow?
2242
+ def has_signal_workflow?: () -> bool
2243
+ def clear_signal_workflow: () -> void
2244
+
2245
+ attr_accessor update_workflow_options(): ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions?
2246
+ def has_update_workflow_options?: () -> bool
2247
+ def clear_update_workflow_options: () -> void
2248
+
2249
+ attr_reader variant(): (::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow | ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions)?
2250
+ def has_variant?: () -> bool
2251
+ def clear_variant: () -> void
2252
+
2253
+ type init_map = {
2254
+ signal_workflow: (::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow | ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow::init_map)?,
2255
+ "signal_workflow" => (::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow | ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow::init_map)?,
2256
+ update_workflow_options: (::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions | ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions::init_map)?,
2257
+ "update_workflow_options" => (::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions | ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions::init_map)?,
2258
+ }
2259
+
2260
+ def initialize: (?init_map initial_value) -> void
2261
+
2262
+ def []:
2263
+ ("signal_workflow" name) -> ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow?
2264
+ | ("update_workflow_options" name) -> ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions?
2265
+
2266
+ def []=:
2267
+ ("signal_workflow" name, ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow? value) -> void
2268
+ | ("update_workflow_options" name, ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions? value) -> void
2269
+ end
2270
+
2271
+ # WorkflowExecutionPauseInfo contains the information about a workflow execution pause.
2272
+ class WorkflowExecutionPauseInfo < ::Google::Protobuf::AbstractMessage
2273
+
2274
+ # The identity of the client who paused the workflow execution.
2275
+ attr_reader identity(): ::String
2276
+ attr_writer identity(): ::String | ::Symbol
2277
+ def clear_identity: () -> void
2278
+
2279
+ # The time when the workflow execution was paused.
2280
+ attr_reader paused_time(): ::Google::Protobuf::Timestamp?
2281
+ attr_writer paused_time(): (::Google::Protobuf::Timestamp | ::Time)?
2282
+ def has_paused_time?: () -> bool
2283
+ def clear_paused_time: () -> void
2284
+
2285
+ # The reason for pausing the workflow execution.
2286
+ attr_reader reason(): ::String
2287
+ attr_writer reason(): ::String | ::Symbol
2288
+ def clear_reason: () -> void
2289
+
2290
+ type init_map = {
2291
+ identity: (::String | ::Symbol)?,
2292
+ "identity" => (::String | ::Symbol)?,
2293
+ paused_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
2294
+ "paused_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
2295
+ reason: (::String | ::Symbol)?,
2296
+ "reason" => (::String | ::Symbol)?,
2297
+ }
2298
+
2299
+ def initialize: (?init_map initial_value) -> void
2300
+
2301
+ def []:
2302
+ ("identity" name) -> ::String
2303
+ | ("paused_time" name) -> ::Google::Protobuf::Timestamp?
2304
+ | ("reason" name) -> ::String
2305
+
2306
+ def []=:
2307
+ ("identity" name, (::String | ::Symbol) value) -> void
2308
+ | ("paused_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
2309
+ | ("reason" name, (::String | ::Symbol) value) -> void
2310
+ end
2311
+ end
2312
+ end
2313
+ end
2314
+ end
2315
+
2316
+ module Google
2317
+ module Protobuf
2318
+ class DescriptorPool
2319
+ def lookup: (::String name) -> ::Google::Protobuf::Descriptor
2320
+ end
2321
+ end
2322
+ end