temporalio 1.5.0 → 1.7.0

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