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,5031 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: temporal/api/workflow/v1/message.proto
3
+ # typed: strict
4
+
5
+ # Hold basic information about a workflow execution.
6
+ # This structure is a part of visibility, and thus contain a limited subset of information.
7
+ class Temporalio::Api::Workflow::V1::WorkflowExecutionInfo
8
+ include ::Google::Protobuf::MessageExts
9
+ extend ::Google::Protobuf::MessageExts::ClassMethods
10
+
11
+ sig do
12
+ params(
13
+ execution: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution),
14
+ type: T.nilable(Temporalio::Api::Common::V1::WorkflowType),
15
+ start_time: T.nilable(Google::Protobuf::Timestamp),
16
+ close_time: T.nilable(Google::Protobuf::Timestamp),
17
+ status: T.nilable(T.any(Symbol, String, Integer)),
18
+ history_length: T.nilable(Integer),
19
+ parent_namespace_id: T.nilable(String),
20
+ parent_execution: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution),
21
+ execution_time: T.nilable(Google::Protobuf::Timestamp),
22
+ memo: T.nilable(Temporalio::Api::Common::V1::Memo),
23
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
24
+ auto_reset_points: T.nilable(Temporalio::Api::Workflow::V1::ResetPoints),
25
+ task_queue: T.nilable(String),
26
+ state_transition_count: T.nilable(Integer),
27
+ history_size_bytes: T.nilable(Integer),
28
+ most_recent_worker_version_stamp: T.nilable(Temporalio::Api::Common::V1::WorkerVersionStamp),
29
+ execution_duration: T.nilable(Google::Protobuf::Duration),
30
+ root_execution: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution),
31
+ assigned_build_id: T.nilable(String),
32
+ inherited_build_id: T.nilable(String),
33
+ first_run_id: T.nilable(String),
34
+ versioning_info: T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo),
35
+ worker_deployment_name: T.nilable(String),
36
+ priority: T.nilable(Temporalio::Api::Common::V1::Priority),
37
+ external_payload_size_bytes: T.nilable(Integer),
38
+ external_payload_count: T.nilable(Integer)
39
+ ).void
40
+ end
41
+ def initialize(
42
+ execution: nil,
43
+ type: nil,
44
+ start_time: nil,
45
+ close_time: nil,
46
+ status: :WORKFLOW_EXECUTION_STATUS_UNSPECIFIED,
47
+ history_length: 0,
48
+ parent_namespace_id: "",
49
+ parent_execution: nil,
50
+ execution_time: nil,
51
+ memo: nil,
52
+ search_attributes: nil,
53
+ auto_reset_points: nil,
54
+ task_queue: "",
55
+ state_transition_count: 0,
56
+ history_size_bytes: 0,
57
+ most_recent_worker_version_stamp: nil,
58
+ execution_duration: nil,
59
+ root_execution: nil,
60
+ assigned_build_id: "",
61
+ inherited_build_id: "",
62
+ first_run_id: "",
63
+ versioning_info: nil,
64
+ worker_deployment_name: "",
65
+ priority: nil,
66
+ external_payload_size_bytes: 0,
67
+ external_payload_count: 0
68
+ )
69
+ end
70
+
71
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)) }
72
+ def execution
73
+ end
74
+
75
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)).void }
76
+ def execution=(value)
77
+ end
78
+
79
+ sig { void }
80
+ def clear_execution
81
+ end
82
+
83
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkflowType)) }
84
+ def type
85
+ end
86
+
87
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkflowType)).void }
88
+ def type=(value)
89
+ end
90
+
91
+ sig { void }
92
+ def clear_type
93
+ end
94
+
95
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
96
+ def start_time
97
+ end
98
+
99
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
100
+ def start_time=(value)
101
+ end
102
+
103
+ sig { void }
104
+ def clear_start_time
105
+ end
106
+
107
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
108
+ def close_time
109
+ end
110
+
111
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
112
+ def close_time=(value)
113
+ end
114
+
115
+ sig { void }
116
+ def clear_close_time
117
+ end
118
+
119
+ sig { returns(T.any(Symbol, Integer)) }
120
+ def status
121
+ end
122
+
123
+ sig { params(value: T.any(Symbol, String, Integer)).void }
124
+ def status=(value)
125
+ end
126
+
127
+ sig { void }
128
+ def clear_status
129
+ end
130
+
131
+ sig { returns(Integer) }
132
+ def history_length
133
+ end
134
+
135
+ sig { params(value: Integer).void }
136
+ def history_length=(value)
137
+ end
138
+
139
+ sig { void }
140
+ def clear_history_length
141
+ end
142
+
143
+ sig { returns(String) }
144
+ def parent_namespace_id
145
+ end
146
+
147
+ sig { params(value: String).void }
148
+ def parent_namespace_id=(value)
149
+ end
150
+
151
+ sig { void }
152
+ def clear_parent_namespace_id
153
+ end
154
+
155
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)) }
156
+ def parent_execution
157
+ end
158
+
159
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)).void }
160
+ def parent_execution=(value)
161
+ end
162
+
163
+ sig { void }
164
+ def clear_parent_execution
165
+ end
166
+
167
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
168
+ def execution_time
169
+ end
170
+
171
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
172
+ def execution_time=(value)
173
+ end
174
+
175
+ sig { void }
176
+ def clear_execution_time
177
+ end
178
+
179
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Memo)) }
180
+ def memo
181
+ end
182
+
183
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Memo)).void }
184
+ def memo=(value)
185
+ end
186
+
187
+ sig { void }
188
+ def clear_memo
189
+ end
190
+
191
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
192
+ def search_attributes
193
+ end
194
+
195
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
196
+ def search_attributes=(value)
197
+ end
198
+
199
+ sig { void }
200
+ def clear_search_attributes
201
+ end
202
+
203
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::ResetPoints)) }
204
+ def auto_reset_points
205
+ end
206
+
207
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::ResetPoints)).void }
208
+ def auto_reset_points=(value)
209
+ end
210
+
211
+ sig { void }
212
+ def clear_auto_reset_points
213
+ end
214
+
215
+ sig { returns(String) }
216
+ def task_queue
217
+ end
218
+
219
+ sig { params(value: String).void }
220
+ def task_queue=(value)
221
+ end
222
+
223
+ sig { void }
224
+ def clear_task_queue
225
+ end
226
+
227
+ sig { returns(Integer) }
228
+ def state_transition_count
229
+ end
230
+
231
+ sig { params(value: Integer).void }
232
+ def state_transition_count=(value)
233
+ end
234
+
235
+ sig { void }
236
+ def clear_state_transition_count
237
+ end
238
+
239
+ sig { returns(Integer) }
240
+ def history_size_bytes
241
+ end
242
+
243
+ sig { params(value: Integer).void }
244
+ def history_size_bytes=(value)
245
+ end
246
+
247
+ sig { void }
248
+ def clear_history_size_bytes
249
+ end
250
+
251
+ # If set, the most recent worker version stamp that appeared in a workflow task completion
252
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
253
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkerVersionStamp)) }
254
+ def most_recent_worker_version_stamp
255
+ end
256
+
257
+ # If set, the most recent worker version stamp that appeared in a workflow task completion
258
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
259
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkerVersionStamp)).void }
260
+ def most_recent_worker_version_stamp=(value)
261
+ end
262
+
263
+ # If set, the most recent worker version stamp that appeared in a workflow task completion
264
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
265
+ sig { void }
266
+ def clear_most_recent_worker_version_stamp
267
+ end
268
+
269
+ # Workflow execution duration is defined as difference between close time and execution time.
270
+ # This field is only populated if the workflow is closed.
271
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
272
+ def execution_duration
273
+ end
274
+
275
+ # Workflow execution duration is defined as difference between close time and execution time.
276
+ # This field is only populated if the workflow is closed.
277
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
278
+ def execution_duration=(value)
279
+ end
280
+
281
+ # Workflow execution duration is defined as difference between close time and execution time.
282
+ # This field is only populated if the workflow is closed.
283
+ sig { void }
284
+ def clear_execution_duration
285
+ end
286
+
287
+ # Contains information about the root workflow execution.
288
+ # The root workflow execution is defined as follows:
289
+ # 1. A workflow without parent workflow is its own root workflow.
290
+ # 2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
291
+ # Note: workflows continued as new or reseted may or may not have parents, check examples below.
292
+ #
293
+ # Examples:
294
+ # Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
295
+ # - The root workflow of all three workflows is W1.
296
+ # Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
297
+ # - The root workflow of all three workflows is W1.
298
+ # Scenario 3: Workflow W1 continued as new W2.
299
+ # - The root workflow of W1 is W1 and the root workflow of W2 is W2.
300
+ # Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
301
+ # - The root workflow of all three workflows is W1.
302
+ # Scenario 5: Workflow W1 is reseted, creating W2.
303
+ # - The root workflow of W1 is W1 and the root workflow of W2 is W2.
304
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)) }
305
+ def root_execution
306
+ end
307
+
308
+ # Contains information about the root workflow execution.
309
+ # The root workflow execution is defined as follows:
310
+ # 1. A workflow without parent workflow is its own root workflow.
311
+ # 2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
312
+ # Note: workflows continued as new or reseted may or may not have parents, check examples below.
313
+ #
314
+ # Examples:
315
+ # Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
316
+ # - The root workflow of all three workflows is W1.
317
+ # Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
318
+ # - The root workflow of all three workflows is W1.
319
+ # Scenario 3: Workflow W1 continued as new W2.
320
+ # - The root workflow of W1 is W1 and the root workflow of W2 is W2.
321
+ # Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
322
+ # - The root workflow of all three workflows is W1.
323
+ # Scenario 5: Workflow W1 is reseted, creating W2.
324
+ # - The root workflow of W1 is W1 and the root workflow of W2 is W2.
325
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)).void }
326
+ def root_execution=(value)
327
+ end
328
+
329
+ # Contains information about the root workflow execution.
330
+ # The root workflow execution is defined as follows:
331
+ # 1. A workflow without parent workflow is its own root workflow.
332
+ # 2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
333
+ # Note: workflows continued as new or reseted may or may not have parents, check examples below.
334
+ #
335
+ # Examples:
336
+ # Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
337
+ # - The root workflow of all three workflows is W1.
338
+ # Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
339
+ # - The root workflow of all three workflows is W1.
340
+ # Scenario 3: Workflow W1 continued as new W2.
341
+ # - The root workflow of W1 is W1 and the root workflow of W2 is W2.
342
+ # Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
343
+ # - The root workflow of all three workflows is W1.
344
+ # Scenario 5: Workflow W1 is reseted, creating W2.
345
+ # - The root workflow of W1 is W1 and the root workflow of W2 is W2.
346
+ sig { void }
347
+ def clear_root_execution
348
+ end
349
+
350
+ # The currently assigned build ID for this execution. Presence of this value means worker versioning is used
351
+ # for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules
352
+ # when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled
353
+ # again, the assigned build ID may change according to the latest versioning rules.
354
+ # Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to
355
+ # this execution.
356
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
357
+ sig { returns(String) }
358
+ def assigned_build_id
359
+ end
360
+
361
+ # The currently assigned build ID for this execution. Presence of this value means worker versioning is used
362
+ # for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules
363
+ # when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled
364
+ # again, the assigned build ID may change according to the latest versioning rules.
365
+ # Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to
366
+ # this execution.
367
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
368
+ sig { params(value: String).void }
369
+ def assigned_build_id=(value)
370
+ end
371
+
372
+ # The currently assigned build ID for this execution. Presence of this value means worker versioning is used
373
+ # for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules
374
+ # when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled
375
+ # again, the assigned build ID may change according to the latest versioning rules.
376
+ # Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to
377
+ # this execution.
378
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
379
+ sig { void }
380
+ def clear_assigned_build_id
381
+ end
382
+
383
+ # Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
384
+ # of using the assignment rules.
385
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
386
+ sig { returns(String) }
387
+ def inherited_build_id
388
+ end
389
+
390
+ # Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
391
+ # of using the assignment rules.
392
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
393
+ sig { params(value: String).void }
394
+ def inherited_build_id=(value)
395
+ end
396
+
397
+ # Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
398
+ # of using the assignment rules.
399
+ # Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
400
+ sig { void }
401
+ def clear_inherited_build_id
402
+ end
403
+
404
+ # The first run ID in the execution chain.
405
+ # Executions created via the following operations are considered to be in the same chain
406
+ # - ContinueAsNew
407
+ # - Workflow Retry
408
+ # - Workflow Reset
409
+ # - Cron Schedule
410
+ sig { returns(String) }
411
+ def first_run_id
412
+ end
413
+
414
+ # The first run ID in the execution chain.
415
+ # Executions created via the following operations are considered to be in the same chain
416
+ # - ContinueAsNew
417
+ # - Workflow Retry
418
+ # - Workflow Reset
419
+ # - Cron Schedule
420
+ sig { params(value: String).void }
421
+ def first_run_id=(value)
422
+ end
423
+
424
+ # The first run ID in the execution chain.
425
+ # Executions created via the following operations are considered to be in the same chain
426
+ # - ContinueAsNew
427
+ # - Workflow Retry
428
+ # - Workflow Reset
429
+ # - Cron Schedule
430
+ sig { void }
431
+ def clear_first_run_id
432
+ end
433
+
434
+ # Absent value means the workflow execution is not versioned. When present, the execution might
435
+ # be versioned or unversioned, depending on `versioning_info.behavior` and `versioning_info.versioning_override`.
436
+ # Experimental. Versioning info is experimental and might change in the future.
437
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo)) }
438
+ def versioning_info
439
+ end
440
+
441
+ # Absent value means the workflow execution is not versioned. When present, the execution might
442
+ # be versioned or unversioned, depending on `versioning_info.behavior` and `versioning_info.versioning_override`.
443
+ # Experimental. Versioning info is experimental and might change in the future.
444
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo)).void }
445
+ def versioning_info=(value)
446
+ end
447
+
448
+ # Absent value means the workflow execution is not versioned. When present, the execution might
449
+ # be versioned or unversioned, depending on `versioning_info.behavior` and `versioning_info.versioning_override`.
450
+ # Experimental. Versioning info is experimental and might change in the future.
451
+ sig { void }
452
+ def clear_versioning_info
453
+ end
454
+
455
+ # The name of Worker Deployment that completed the most recent workflow task.
456
+ sig { returns(String) }
457
+ def worker_deployment_name
458
+ end
459
+
460
+ # The name of Worker Deployment that completed the most recent workflow task.
461
+ sig { params(value: String).void }
462
+ def worker_deployment_name=(value)
463
+ end
464
+
465
+ # The name of Worker Deployment that completed the most recent workflow task.
466
+ sig { void }
467
+ def clear_worker_deployment_name
468
+ end
469
+
470
+ # Priority metadata
471
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
472
+ def priority
473
+ end
474
+
475
+ # Priority metadata
476
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
477
+ def priority=(value)
478
+ end
479
+
480
+ # Priority metadata
481
+ sig { void }
482
+ def clear_priority
483
+ end
484
+
485
+ # Total size in bytes of all external payloads referenced in workflow history.
486
+ sig { returns(Integer) }
487
+ def external_payload_size_bytes
488
+ end
489
+
490
+ # Total size in bytes of all external payloads referenced in workflow history.
491
+ sig { params(value: Integer).void }
492
+ def external_payload_size_bytes=(value)
493
+ end
494
+
495
+ # Total size in bytes of all external payloads referenced in workflow history.
496
+ sig { void }
497
+ def clear_external_payload_size_bytes
498
+ end
499
+
500
+ # Count of external payloads referenced in workflow history.
501
+ sig { returns(Integer) }
502
+ def external_payload_count
503
+ end
504
+
505
+ # Count of external payloads referenced in workflow history.
506
+ sig { params(value: Integer).void }
507
+ def external_payload_count=(value)
508
+ end
509
+
510
+ # Count of external payloads referenced in workflow history.
511
+ sig { void }
512
+ def clear_external_payload_count
513
+ end
514
+
515
+ sig { params(field: String).returns(T.untyped) }
516
+ def [](field)
517
+ end
518
+
519
+ sig { params(field: String, value: T.untyped).void }
520
+ def []=(field, value)
521
+ end
522
+
523
+ sig { returns(T::Hash[Symbol, T.untyped]) }
524
+ def to_h
525
+ end
526
+
527
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionInfo) }
528
+ def self.decode(str)
529
+ end
530
+
531
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionInfo).returns(String) }
532
+ def self.encode(msg)
533
+ end
534
+
535
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionInfo) }
536
+ def self.decode_json(str, **kw)
537
+ end
538
+
539
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionInfo, kw: T.untyped).returns(String) }
540
+ def self.encode_json(msg, **kw)
541
+ end
542
+
543
+ sig { returns(::Google::Protobuf::Descriptor) }
544
+ def self.descriptor
545
+ end
546
+ end
547
+
548
+ # Holds all the extra information about workflow execution that is not part of Visibility.
549
+ class Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo
550
+ include ::Google::Protobuf::MessageExts
551
+ extend ::Google::Protobuf::MessageExts::ClassMethods
552
+
553
+ sig do
554
+ params(
555
+ execution_expiration_time: T.nilable(Google::Protobuf::Timestamp),
556
+ run_expiration_time: T.nilable(Google::Protobuf::Timestamp),
557
+ cancel_requested: T.nilable(T::Boolean),
558
+ last_reset_time: T.nilable(Google::Protobuf::Timestamp),
559
+ original_start_time: T.nilable(Google::Protobuf::Timestamp),
560
+ reset_run_id: T.nilable(String),
561
+ request_id_infos: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Workflow::V1::RequestIdInfo)]),
562
+ pause_info: T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo),
563
+ time_skipping_info: T.nilable(Temporalio::Api::Common::V1::TimeSkippingInfo)
564
+ ).void
565
+ end
566
+ def initialize(
567
+ execution_expiration_time: nil,
568
+ run_expiration_time: nil,
569
+ cancel_requested: false,
570
+ last_reset_time: nil,
571
+ original_start_time: nil,
572
+ reset_run_id: "",
573
+ request_id_infos: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Workflow::V1::RequestIdInfo),
574
+ pause_info: nil,
575
+ time_skipping_info: nil
576
+ )
577
+ end
578
+
579
+ # Workflow execution expiration time is defined as workflow start time plus expiration timeout.
580
+ # Workflow start time may change after workflow reset.
581
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
582
+ def execution_expiration_time
583
+ end
584
+
585
+ # Workflow execution expiration time is defined as workflow start time plus expiration timeout.
586
+ # Workflow start time may change after workflow reset.
587
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
588
+ def execution_expiration_time=(value)
589
+ end
590
+
591
+ # Workflow execution expiration time is defined as workflow start time plus expiration timeout.
592
+ # Workflow start time may change after workflow reset.
593
+ sig { void }
594
+ def clear_execution_expiration_time
595
+ end
596
+
597
+ # Workflow run expiration time is defined as current workflow run start time plus workflow run timeout.
598
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
599
+ def run_expiration_time
600
+ end
601
+
602
+ # Workflow run expiration time is defined as current workflow run start time plus workflow run timeout.
603
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
604
+ def run_expiration_time=(value)
605
+ end
606
+
607
+ # Workflow run expiration time is defined as current workflow run start time plus workflow run timeout.
608
+ sig { void }
609
+ def clear_run_expiration_time
610
+ end
611
+
612
+ # indicates if the workflow received a cancel request
613
+ sig { returns(T::Boolean) }
614
+ def cancel_requested
615
+ end
616
+
617
+ # indicates if the workflow received a cancel request
618
+ sig { params(value: T::Boolean).void }
619
+ def cancel_requested=(value)
620
+ end
621
+
622
+ # indicates if the workflow received a cancel request
623
+ sig { void }
624
+ def clear_cancel_requested
625
+ end
626
+
627
+ # Last workflow reset time. Nil if the workflow was never reset.
628
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
629
+ def last_reset_time
630
+ end
631
+
632
+ # Last workflow reset time. Nil if the workflow was never reset.
633
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
634
+ def last_reset_time=(value)
635
+ end
636
+
637
+ # Last workflow reset time. Nil if the workflow was never reset.
638
+ sig { void }
639
+ def clear_last_reset_time
640
+ end
641
+
642
+ # Original workflow start time.
643
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
644
+ def original_start_time
645
+ end
646
+
647
+ # Original workflow start time.
648
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
649
+ def original_start_time=(value)
650
+ end
651
+
652
+ # Original workflow start time.
653
+ sig { void }
654
+ def clear_original_start_time
655
+ end
656
+
657
+ # 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.
658
+ sig { returns(String) }
659
+ def reset_run_id
660
+ end
661
+
662
+ # 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.
663
+ sig { params(value: String).void }
664
+ def reset_run_id=(value)
665
+ end
666
+
667
+ # 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.
668
+ sig { void }
669
+ def clear_reset_run_id
670
+ end
671
+
672
+ # Request ID information (eg: history event information associated with the request ID).
673
+ # Note: It only contains request IDs from StartWorkflowExecution requests, including indirect
674
+ # calls (eg: if SignalWithStartWorkflowExecution starts a new workflow, then the request ID is
675
+ # used in the StartWorkflowExecution request).
676
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Workflow::V1::RequestIdInfo)]) }
677
+ def request_id_infos
678
+ end
679
+
680
+ # Request ID information (eg: history event information associated with the request ID).
681
+ # Note: It only contains request IDs from StartWorkflowExecution requests, including indirect
682
+ # calls (eg: if SignalWithStartWorkflowExecution starts a new workflow, then the request ID is
683
+ # used in the StartWorkflowExecution request).
684
+ sig { params(value: ::Google::Protobuf::Map).void }
685
+ def request_id_infos=(value)
686
+ end
687
+
688
+ # Request ID information (eg: history event information associated with the request ID).
689
+ # Note: It only contains request IDs from StartWorkflowExecution requests, including indirect
690
+ # calls (eg: if SignalWithStartWorkflowExecution starts a new workflow, then the request ID is
691
+ # used in the StartWorkflowExecution request).
692
+ sig { void }
693
+ def clear_request_id_infos
694
+ end
695
+
696
+ # Information about the workflow execution pause operation.
697
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo)) }
698
+ def pause_info
699
+ end
700
+
701
+ # Information about the workflow execution pause operation.
702
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo)).void }
703
+ def pause_info=(value)
704
+ end
705
+
706
+ # Information about the workflow execution pause operation.
707
+ sig { void }
708
+ def clear_pause_info
709
+ end
710
+
711
+ # Information about time skipping of the workflow execution.
712
+ # If the execution has never enabled time skipping, it will be nil.
713
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingInfo)) }
714
+ def time_skipping_info
715
+ end
716
+
717
+ # Information about time skipping of the workflow execution.
718
+ # If the execution has never enabled time skipping, it will be nil.
719
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingInfo)).void }
720
+ def time_skipping_info=(value)
721
+ end
722
+
723
+ # Information about time skipping of the workflow execution.
724
+ # If the execution has never enabled time skipping, it will be nil.
725
+ sig { void }
726
+ def clear_time_skipping_info
727
+ end
728
+
729
+ sig { params(field: String).returns(T.untyped) }
730
+ def [](field)
731
+ end
732
+
733
+ sig { params(field: String, value: T.untyped).void }
734
+ def []=(field, value)
735
+ end
736
+
737
+ sig { returns(T::Hash[Symbol, T.untyped]) }
738
+ def to_h
739
+ end
740
+
741
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo) }
742
+ def self.decode(str)
743
+ end
744
+
745
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo).returns(String) }
746
+ def self.encode(msg)
747
+ end
748
+
749
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo) }
750
+ def self.decode_json(str, **kw)
751
+ end
752
+
753
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo, kw: T.untyped).returns(String) }
754
+ def self.encode_json(msg, **kw)
755
+ end
756
+
757
+ sig { returns(::Google::Protobuf::Descriptor) }
758
+ def self.descriptor
759
+ end
760
+ end
761
+
762
+ # Holds all the information about worker versioning for a particular workflow execution.
763
+ # Experimental. Versioning info is experimental and might change in the future.
764
+ class Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo
765
+ include ::Google::Protobuf::MessageExts
766
+ extend ::Google::Protobuf::MessageExts::ClassMethods
767
+
768
+ sig do
769
+ params(
770
+ behavior: T.nilable(T.any(Symbol, String, Integer)),
771
+ deployment: T.nilable(Temporalio::Api::Deployment::V1::Deployment),
772
+ version: T.nilable(String),
773
+ deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
774
+ versioning_override: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride),
775
+ deployment_transition: T.nilable(Temporalio::Api::Workflow::V1::DeploymentTransition),
776
+ version_transition: T.nilable(Temporalio::Api::Workflow::V1::DeploymentVersionTransition),
777
+ revision_number: T.nilable(Integer),
778
+ continue_as_new_initial_versioning_behavior: T.nilable(T.any(Symbol, String, Integer))
779
+ ).void
780
+ end
781
+ def initialize(
782
+ behavior: :VERSIONING_BEHAVIOR_UNSPECIFIED,
783
+ deployment: nil,
784
+ version: "",
785
+ deployment_version: nil,
786
+ versioning_override: nil,
787
+ deployment_transition: nil,
788
+ version_transition: nil,
789
+ revision_number: 0,
790
+ continue_as_new_initial_versioning_behavior: :CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED
791
+ )
792
+ end
793
+
794
+ # Versioning behavior determines how the server should treat this execution when workers are
795
+ # upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means
796
+ # unversioned. See the comments in `VersioningBehavior` enum for more info about different
797
+ # behaviors.
798
+ #
799
+ # Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning
800
+ # Behavior and Version (except when the new execution runs on a task queue not belonging to the
801
+ # same deployment version as the parent/previous run's task queue). The first workflow task will
802
+ # be dispatched according to the inherited behavior (or to the current version of the task-queue's
803
+ # deployment in the case of AutoUpgrade.) After completion of their first workflow task the
804
+ # Deployment Version and Behavior of the execution will update according to configuration on the worker.
805
+ #
806
+ # Note that `behavior` is overridden by `versioning_override` if the latter is present.
807
+ sig { returns(T.any(Symbol, Integer)) }
808
+ def behavior
809
+ end
810
+
811
+ # Versioning behavior determines how the server should treat this execution when workers are
812
+ # upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means
813
+ # unversioned. See the comments in `VersioningBehavior` enum for more info about different
814
+ # behaviors.
815
+ #
816
+ # Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning
817
+ # Behavior and Version (except when the new execution runs on a task queue not belonging to the
818
+ # same deployment version as the parent/previous run's task queue). The first workflow task will
819
+ # be dispatched according to the inherited behavior (or to the current version of the task-queue's
820
+ # deployment in the case of AutoUpgrade.) After completion of their first workflow task the
821
+ # Deployment Version and Behavior of the execution will update according to configuration on the worker.
822
+ #
823
+ # Note that `behavior` is overridden by `versioning_override` if the latter is present.
824
+ sig { params(value: T.any(Symbol, String, Integer)).void }
825
+ def behavior=(value)
826
+ end
827
+
828
+ # Versioning behavior determines how the server should treat this execution when workers are
829
+ # upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means
830
+ # unversioned. See the comments in `VersioningBehavior` enum for more info about different
831
+ # behaviors.
832
+ #
833
+ # Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning
834
+ # Behavior and Version (except when the new execution runs on a task queue not belonging to the
835
+ # same deployment version as the parent/previous run's task queue). The first workflow task will
836
+ # be dispatched according to the inherited behavior (or to the current version of the task-queue's
837
+ # deployment in the case of AutoUpgrade.) After completion of their first workflow task the
838
+ # Deployment Version and Behavior of the execution will update according to configuration on the worker.
839
+ #
840
+ # Note that `behavior` is overridden by `versioning_override` if the latter is present.
841
+ sig { void }
842
+ def clear_behavior
843
+ end
844
+
845
+ # The worker deployment that completed the last workflow task of this workflow execution. Must
846
+ # be present if `behavior` is set. Absent value means no workflow task is completed, or the
847
+ # last workflow task was completed by an unversioned worker. Unversioned workers may still send
848
+ # a deployment value which will be stored here, so the right way to check if an execution is
849
+ # versioned if an execution is versioned or not is via the `behavior` field.
850
+ # Note that `deployment` is overridden by `versioning_override` if the latter is present.
851
+ # Deprecated. Use `deployment_version`.
852
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::Deployment)) }
853
+ def deployment
854
+ end
855
+
856
+ # The worker deployment that completed the last workflow task of this workflow execution. Must
857
+ # be present if `behavior` is set. Absent value means no workflow task is completed, or the
858
+ # last workflow task was completed by an unversioned worker. Unversioned workers may still send
859
+ # a deployment value which will be stored here, so the right way to check if an execution is
860
+ # versioned if an execution is versioned or not is via the `behavior` field.
861
+ # Note that `deployment` is overridden by `versioning_override` if the latter is present.
862
+ # Deprecated. Use `deployment_version`.
863
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::Deployment)).void }
864
+ def deployment=(value)
865
+ end
866
+
867
+ # The worker deployment that completed the last workflow task of this workflow execution. Must
868
+ # be present if `behavior` is set. Absent value means no workflow task is completed, or the
869
+ # last workflow task was completed by an unversioned worker. Unversioned workers may still send
870
+ # a deployment value which will be stored here, so the right way to check if an execution is
871
+ # versioned if an execution is versioned or not is via the `behavior` field.
872
+ # Note that `deployment` is overridden by `versioning_override` if the latter is present.
873
+ # Deprecated. Use `deployment_version`.
874
+ sig { void }
875
+ def clear_deployment
876
+ end
877
+
878
+ # Deprecated. Use `deployment_version`.
879
+ sig { returns(String) }
880
+ def version
881
+ end
882
+
883
+ # Deprecated. Use `deployment_version`.
884
+ sig { params(value: String).void }
885
+ def version=(value)
886
+ end
887
+
888
+ # Deprecated. Use `deployment_version`.
889
+ sig { void }
890
+ def clear_version
891
+ end
892
+
893
+ # The Worker Deployment Version that completed the last workflow task of this workflow execution.
894
+ # An absent value means no workflow task is completed, or the workflow is unversioned.
895
+ # If present, and `behavior` is UNSPECIFIED, the last task of this workflow execution was completed
896
+ # by a worker that is not using versioning but _is_ passing Deployment Name and Build ID.
897
+ #
898
+ # Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning
899
+ # Behavior and Version (except when the new execution runs on a task queue not belonging to the
900
+ # same deployment version as the parent/previous run's task queue). The first workflow task will
901
+ # be dispatched according to the inherited behavior (or to the current version of the task-queue's
902
+ # deployment in the case of AutoUpgrade.) After completion of their first workflow task the
903
+ # Deployment Version and Behavior of the execution will update according to configuration on the worker.
904
+ #
905
+ # Note that if `versioning_override.behavior` is PINNED then `versioning_override.pinned_version`
906
+ # will override this value.
907
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
908
+ def deployment_version
909
+ end
910
+
911
+ # The Worker Deployment Version that completed the last workflow task of this workflow execution.
912
+ # An absent value means no workflow task is completed, or the workflow is unversioned.
913
+ # If present, and `behavior` is UNSPECIFIED, the last task of this workflow execution was completed
914
+ # by a worker that is not using versioning but _is_ passing Deployment Name and Build ID.
915
+ #
916
+ # Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning
917
+ # Behavior and Version (except when the new execution runs on a task queue not belonging to the
918
+ # same deployment version as the parent/previous run's task queue). The first workflow task will
919
+ # be dispatched according to the inherited behavior (or to the current version of the task-queue's
920
+ # deployment in the case of AutoUpgrade.) After completion of their first workflow task the
921
+ # Deployment Version and Behavior of the execution will update according to configuration on the worker.
922
+ #
923
+ # Note that if `versioning_override.behavior` is PINNED then `versioning_override.pinned_version`
924
+ # will override this value.
925
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
926
+ def deployment_version=(value)
927
+ end
928
+
929
+ # The Worker Deployment Version that completed the last workflow task of this workflow execution.
930
+ # An absent value means no workflow task is completed, or the workflow is unversioned.
931
+ # If present, and `behavior` is UNSPECIFIED, the last task of this workflow execution was completed
932
+ # by a worker that is not using versioning but _is_ passing Deployment Name and Build ID.
933
+ #
934
+ # Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning
935
+ # Behavior and Version (except when the new execution runs on a task queue not belonging to the
936
+ # same deployment version as the parent/previous run's task queue). The first workflow task will
937
+ # be dispatched according to the inherited behavior (or to the current version of the task-queue's
938
+ # deployment in the case of AutoUpgrade.) After completion of their first workflow task the
939
+ # Deployment Version and Behavior of the execution will update according to configuration on the worker.
940
+ #
941
+ # Note that if `versioning_override.behavior` is PINNED then `versioning_override.pinned_version`
942
+ # will override this value.
943
+ sig { void }
944
+ def clear_deployment_version
945
+ end
946
+
947
+ # Present if user has set an execution-specific versioning override. This override takes
948
+ # precedence over SDK-sent `behavior` (and `version` when override is PINNED). An
949
+ # override can be set when starting a new execution, as well as afterwards by calling the
950
+ # `UpdateWorkflowExecutionOptions` API.
951
+ # Pinned overrides are automatically inherited by child workflows, continue-as-new workflows,
952
+ # workflow retries, and cron workflows.
953
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)) }
954
+ def versioning_override
955
+ end
956
+
957
+ # Present if user has set an execution-specific versioning override. This override takes
958
+ # precedence over SDK-sent `behavior` (and `version` when override is PINNED). An
959
+ # override can be set when starting a new execution, as well as afterwards by calling the
960
+ # `UpdateWorkflowExecutionOptions` API.
961
+ # Pinned overrides are automatically inherited by child workflows, continue-as-new workflows,
962
+ # workflow retries, and cron workflows.
963
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)).void }
964
+ def versioning_override=(value)
965
+ end
966
+
967
+ # Present if user has set an execution-specific versioning override. This override takes
968
+ # precedence over SDK-sent `behavior` (and `version` when override is PINNED). An
969
+ # override can be set when starting a new execution, as well as afterwards by calling the
970
+ # `UpdateWorkflowExecutionOptions` API.
971
+ # Pinned overrides are automatically inherited by child workflows, continue-as-new workflows,
972
+ # workflow retries, and cron workflows.
973
+ sig { void }
974
+ def clear_versioning_override
975
+ end
976
+
977
+ # When present, indicates the workflow is transitioning to a different deployment. Can
978
+ # indicate one of the following transitions: unversioned -> versioned, versioned -> versioned
979
+ # on a different deployment, or versioned -> unversioned.
980
+ # Not applicable to workflows with PINNED behavior.
981
+ # When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically
982
+ # start a transition to the task queue's current deployment if the task queue's current
983
+ # deployment is different from the workflow's deployment.
984
+ # If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those
985
+ # tasks will be redirected to the task queue's current deployment. As soon as a poller from
986
+ # that deployment is available to receive the task, the workflow will automatically start a
987
+ # transition to that deployment and continue execution there.
988
+ # A deployment transition can only exist while there is a pending or started workflow task.
989
+ # Once the pending workflow task completes on the transition's target deployment, the
990
+ # transition completes and the workflow's `deployment` and `behavior` fields are updated per
991
+ # the worker's task completion response.
992
+ # Pending activities will not start new attempts during a transition. Once the transition is
993
+ # completed, pending activities will start their next attempt on the new deployment.
994
+ # Deprecated. Use version_transition.
995
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::DeploymentTransition)) }
996
+ def deployment_transition
997
+ end
998
+
999
+ # When present, indicates the workflow is transitioning to a different deployment. Can
1000
+ # indicate one of the following transitions: unversioned -> versioned, versioned -> versioned
1001
+ # on a different deployment, or versioned -> unversioned.
1002
+ # Not applicable to workflows with PINNED behavior.
1003
+ # When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically
1004
+ # start a transition to the task queue's current deployment if the task queue's current
1005
+ # deployment is different from the workflow's deployment.
1006
+ # If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those
1007
+ # tasks will be redirected to the task queue's current deployment. As soon as a poller from
1008
+ # that deployment is available to receive the task, the workflow will automatically start a
1009
+ # transition to that deployment and continue execution there.
1010
+ # A deployment transition can only exist while there is a pending or started workflow task.
1011
+ # Once the pending workflow task completes on the transition's target deployment, the
1012
+ # transition completes and the workflow's `deployment` and `behavior` fields are updated per
1013
+ # the worker's task completion response.
1014
+ # Pending activities will not start new attempts during a transition. Once the transition is
1015
+ # completed, pending activities will start their next attempt on the new deployment.
1016
+ # Deprecated. Use version_transition.
1017
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::DeploymentTransition)).void }
1018
+ def deployment_transition=(value)
1019
+ end
1020
+
1021
+ # When present, indicates the workflow is transitioning to a different deployment. Can
1022
+ # indicate one of the following transitions: unversioned -> versioned, versioned -> versioned
1023
+ # on a different deployment, or versioned -> unversioned.
1024
+ # Not applicable to workflows with PINNED behavior.
1025
+ # When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically
1026
+ # start a transition to the task queue's current deployment if the task queue's current
1027
+ # deployment is different from the workflow's deployment.
1028
+ # If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those
1029
+ # tasks will be redirected to the task queue's current deployment. As soon as a poller from
1030
+ # that deployment is available to receive the task, the workflow will automatically start a
1031
+ # transition to that deployment and continue execution there.
1032
+ # A deployment transition can only exist while there is a pending or started workflow task.
1033
+ # Once the pending workflow task completes on the transition's target deployment, the
1034
+ # transition completes and the workflow's `deployment` and `behavior` fields are updated per
1035
+ # the worker's task completion response.
1036
+ # Pending activities will not start new attempts during a transition. Once the transition is
1037
+ # completed, pending activities will start their next attempt on the new deployment.
1038
+ # Deprecated. Use version_transition.
1039
+ sig { void }
1040
+ def clear_deployment_transition
1041
+ end
1042
+
1043
+ # When present, indicates the workflow is transitioning to a different deployment version
1044
+ # (which may belong to the same deployment name or another). Can indicate one of the following
1045
+ # transitions: unversioned -> versioned, versioned -> versioned
1046
+ # on a different deployment version, or versioned -> unversioned.
1047
+ # Not applicable to workflows with PINNED behavior.
1048
+ # When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically
1049
+ # start a transition to the task queue's current version if the task queue's current version is
1050
+ # different from the workflow's current deployment version.
1051
+ # If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those
1052
+ # tasks will be redirected to the task queue's current version. As soon as a poller from
1053
+ # that deployment version is available to receive the task, the workflow will automatically
1054
+ # start a transition to that version and continue execution there.
1055
+ # A version transition can only exist while there is a pending or started workflow task.
1056
+ # Once the pending workflow task completes on the transition's target version, the
1057
+ # transition completes and the workflow's `behavior`, and `deployment_version` fields are updated per the
1058
+ # worker's task completion response.
1059
+ # Pending activities will not start new attempts during a transition. Once the transition is
1060
+ # completed, pending activities will start their next attempt on the new version.
1061
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::DeploymentVersionTransition)) }
1062
+ def version_transition
1063
+ end
1064
+
1065
+ # When present, indicates the workflow is transitioning to a different deployment version
1066
+ # (which may belong to the same deployment name or another). Can indicate one of the following
1067
+ # transitions: unversioned -> versioned, versioned -> versioned
1068
+ # on a different deployment version, or versioned -> unversioned.
1069
+ # Not applicable to workflows with PINNED behavior.
1070
+ # When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically
1071
+ # start a transition to the task queue's current version if the task queue's current version is
1072
+ # different from the workflow's current deployment version.
1073
+ # If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those
1074
+ # tasks will be redirected to the task queue's current version. As soon as a poller from
1075
+ # that deployment version is available to receive the task, the workflow will automatically
1076
+ # start a transition to that version and continue execution there.
1077
+ # A version transition can only exist while there is a pending or started workflow task.
1078
+ # Once the pending workflow task completes on the transition's target version, the
1079
+ # transition completes and the workflow's `behavior`, and `deployment_version` fields are updated per the
1080
+ # worker's task completion response.
1081
+ # Pending activities will not start new attempts during a transition. Once the transition is
1082
+ # completed, pending activities will start their next attempt on the new version.
1083
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::DeploymentVersionTransition)).void }
1084
+ def version_transition=(value)
1085
+ end
1086
+
1087
+ # When present, indicates the workflow is transitioning to a different deployment version
1088
+ # (which may belong to the same deployment name or another). Can indicate one of the following
1089
+ # transitions: unversioned -> versioned, versioned -> versioned
1090
+ # on a different deployment version, or versioned -> unversioned.
1091
+ # Not applicable to workflows with PINNED behavior.
1092
+ # When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically
1093
+ # start a transition to the task queue's current version if the task queue's current version is
1094
+ # different from the workflow's current deployment version.
1095
+ # If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those
1096
+ # tasks will be redirected to the task queue's current version. As soon as a poller from
1097
+ # that deployment version is available to receive the task, the workflow will automatically
1098
+ # start a transition to that version and continue execution there.
1099
+ # A version transition can only exist while there is a pending or started workflow task.
1100
+ # Once the pending workflow task completes on the transition's target version, the
1101
+ # transition completes and the workflow's `behavior`, and `deployment_version` fields are updated per the
1102
+ # worker's task completion response.
1103
+ # Pending activities will not start new attempts during a transition. Once the transition is
1104
+ # completed, pending activities will start their next attempt on the new version.
1105
+ sig { void }
1106
+ def clear_version_transition
1107
+ end
1108
+
1109
+ # Monotonic counter reflecting the latest routing decision for this workflow execution.
1110
+ # Used for staleness detection between history and matching when dispatching tasks to workers.
1111
+ # Incremented when a workflow execution routes to a new deployment version, which happens
1112
+ # when a worker of the new deployment version completes a workflow task.
1113
+ # Note: Pinned tasks and sticky tasks send a value of 0 for this field since these tasks do not
1114
+ # face the problem of inconsistent dispatching that arises from eventual consistency between
1115
+ # task queues and their partitions.
1116
+ sig { returns(Integer) }
1117
+ def revision_number
1118
+ end
1119
+
1120
+ # Monotonic counter reflecting the latest routing decision for this workflow execution.
1121
+ # Used for staleness detection between history and matching when dispatching tasks to workers.
1122
+ # Incremented when a workflow execution routes to a new deployment version, which happens
1123
+ # when a worker of the new deployment version completes a workflow task.
1124
+ # Note: Pinned tasks and sticky tasks send a value of 0 for this field since these tasks do not
1125
+ # face the problem of inconsistent dispatching that arises from eventual consistency between
1126
+ # task queues and their partitions.
1127
+ sig { params(value: Integer).void }
1128
+ def revision_number=(value)
1129
+ end
1130
+
1131
+ # Monotonic counter reflecting the latest routing decision for this workflow execution.
1132
+ # Used for staleness detection between history and matching when dispatching tasks to workers.
1133
+ # Incremented when a workflow execution routes to a new deployment version, which happens
1134
+ # when a worker of the new deployment version completes a workflow task.
1135
+ # Note: Pinned tasks and sticky tasks send a value of 0 for this field since these tasks do not
1136
+ # face the problem of inconsistent dispatching that arises from eventual consistency between
1137
+ # task queues and their partitions.
1138
+ sig { void }
1139
+ def clear_revision_number
1140
+ end
1141
+
1142
+ # Experimental.
1143
+ # If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
1144
+ # specified in that command.
1145
+ # Only used for the initial task of this run and the initial task of any retries of this run.
1146
+ # Not passed to children or to future continue-as-new.
1147
+ #
1148
+ # Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
1149
+ # a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
1150
+ # with ContinueAsNew history commands generated during that time, know that an UNSPECIFIED value here is equivalent
1151
+ # to ContinueAsNewVersioningBehaviorAutoUpgrade if the behavior of the workflow is AutoUpgrade.
1152
+ sig { returns(T.any(Symbol, Integer)) }
1153
+ def continue_as_new_initial_versioning_behavior
1154
+ end
1155
+
1156
+ # Experimental.
1157
+ # If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
1158
+ # specified in that command.
1159
+ # Only used for the initial task of this run and the initial task of any retries of this run.
1160
+ # Not passed to children or to future continue-as-new.
1161
+ #
1162
+ # Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
1163
+ # a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
1164
+ # with ContinueAsNew history commands generated during that time, know that an UNSPECIFIED value here is equivalent
1165
+ # to ContinueAsNewVersioningBehaviorAutoUpgrade if the behavior of the workflow is AutoUpgrade.
1166
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1167
+ def continue_as_new_initial_versioning_behavior=(value)
1168
+ end
1169
+
1170
+ # Experimental.
1171
+ # If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
1172
+ # specified in that command.
1173
+ # Only used for the initial task of this run and the initial task of any retries of this run.
1174
+ # Not passed to children or to future continue-as-new.
1175
+ #
1176
+ # Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
1177
+ # a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
1178
+ # with ContinueAsNew history commands generated during that time, know that an UNSPECIFIED value here is equivalent
1179
+ # to ContinueAsNewVersioningBehaviorAutoUpgrade if the behavior of the workflow is AutoUpgrade.
1180
+ sig { void }
1181
+ def clear_continue_as_new_initial_versioning_behavior
1182
+ end
1183
+
1184
+ sig { params(field: String).returns(T.untyped) }
1185
+ def [](field)
1186
+ end
1187
+
1188
+ sig { params(field: String, value: T.untyped).void }
1189
+ def []=(field, value)
1190
+ end
1191
+
1192
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1193
+ def to_h
1194
+ end
1195
+
1196
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo) }
1197
+ def self.decode(str)
1198
+ end
1199
+
1200
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo).returns(String) }
1201
+ def self.encode(msg)
1202
+ end
1203
+
1204
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo) }
1205
+ def self.decode_json(str, **kw)
1206
+ end
1207
+
1208
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo, kw: T.untyped).returns(String) }
1209
+ def self.encode_json(msg, **kw)
1210
+ end
1211
+
1212
+ sig { returns(::Google::Protobuf::Descriptor) }
1213
+ def self.descriptor
1214
+ end
1215
+ end
1216
+
1217
+ # Holds information about ongoing transition of a workflow execution from one deployment to another.
1218
+ # Deprecated. Use DeploymentVersionTransition.
1219
+ class Temporalio::Api::Workflow::V1::DeploymentTransition
1220
+ include ::Google::Protobuf::MessageExts
1221
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1222
+
1223
+ sig do
1224
+ params(
1225
+ deployment: T.nilable(Temporalio::Api::Deployment::V1::Deployment)
1226
+ ).void
1227
+ end
1228
+ def initialize(
1229
+ deployment: nil
1230
+ )
1231
+ end
1232
+
1233
+ # The target deployment of the transition. Null means a so-far-versioned workflow is
1234
+ # transitioning to unversioned workers.
1235
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::Deployment)) }
1236
+ def deployment
1237
+ end
1238
+
1239
+ # The target deployment of the transition. Null means a so-far-versioned workflow is
1240
+ # transitioning to unversioned workers.
1241
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::Deployment)).void }
1242
+ def deployment=(value)
1243
+ end
1244
+
1245
+ # The target deployment of the transition. Null means a so-far-versioned workflow is
1246
+ # transitioning to unversioned workers.
1247
+ sig { void }
1248
+ def clear_deployment
1249
+ end
1250
+
1251
+ sig { params(field: String).returns(T.untyped) }
1252
+ def [](field)
1253
+ end
1254
+
1255
+ sig { params(field: String, value: T.untyped).void }
1256
+ def []=(field, value)
1257
+ end
1258
+
1259
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1260
+ def to_h
1261
+ end
1262
+
1263
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::DeploymentTransition) }
1264
+ def self.decode(str)
1265
+ end
1266
+
1267
+ sig { params(msg: Temporalio::Api::Workflow::V1::DeploymentTransition).returns(String) }
1268
+ def self.encode(msg)
1269
+ end
1270
+
1271
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::DeploymentTransition) }
1272
+ def self.decode_json(str, **kw)
1273
+ end
1274
+
1275
+ sig { params(msg: Temporalio::Api::Workflow::V1::DeploymentTransition, kw: T.untyped).returns(String) }
1276
+ def self.encode_json(msg, **kw)
1277
+ end
1278
+
1279
+ sig { returns(::Google::Protobuf::Descriptor) }
1280
+ def self.descriptor
1281
+ end
1282
+ end
1283
+
1284
+ # Holds information about ongoing transition of a workflow execution from one worker
1285
+ # deployment version to another.
1286
+ # Experimental. Might change in the future.
1287
+ class Temporalio::Api::Workflow::V1::DeploymentVersionTransition
1288
+ include ::Google::Protobuf::MessageExts
1289
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1290
+
1291
+ sig do
1292
+ params(
1293
+ version: T.nilable(String),
1294
+ deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)
1295
+ ).void
1296
+ end
1297
+ def initialize(
1298
+ version: "",
1299
+ deployment_version: nil
1300
+ )
1301
+ end
1302
+
1303
+ # Deprecated. Use `deployment_version`.
1304
+ sig { returns(String) }
1305
+ def version
1306
+ end
1307
+
1308
+ # Deprecated. Use `deployment_version`.
1309
+ sig { params(value: String).void }
1310
+ def version=(value)
1311
+ end
1312
+
1313
+ # Deprecated. Use `deployment_version`.
1314
+ sig { void }
1315
+ def clear_version
1316
+ end
1317
+
1318
+ # The target Version of the transition.
1319
+ # If nil, a so-far-versioned workflow is transitioning to unversioned workers.
1320
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
1321
+ def deployment_version
1322
+ end
1323
+
1324
+ # The target Version of the transition.
1325
+ # If nil, a so-far-versioned workflow is transitioning to unversioned workers.
1326
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
1327
+ def deployment_version=(value)
1328
+ end
1329
+
1330
+ # The target Version of the transition.
1331
+ # If nil, a so-far-versioned workflow is transitioning to unversioned workers.
1332
+ sig { void }
1333
+ def clear_deployment_version
1334
+ end
1335
+
1336
+ sig { params(field: String).returns(T.untyped) }
1337
+ def [](field)
1338
+ end
1339
+
1340
+ sig { params(field: String, value: T.untyped).void }
1341
+ def []=(field, value)
1342
+ end
1343
+
1344
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1345
+ def to_h
1346
+ end
1347
+
1348
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::DeploymentVersionTransition) }
1349
+ def self.decode(str)
1350
+ end
1351
+
1352
+ sig { params(msg: Temporalio::Api::Workflow::V1::DeploymentVersionTransition).returns(String) }
1353
+ def self.encode(msg)
1354
+ end
1355
+
1356
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::DeploymentVersionTransition) }
1357
+ def self.decode_json(str, **kw)
1358
+ end
1359
+
1360
+ sig { params(msg: Temporalio::Api::Workflow::V1::DeploymentVersionTransition, kw: T.untyped).returns(String) }
1361
+ def self.encode_json(msg, **kw)
1362
+ end
1363
+
1364
+ sig { returns(::Google::Protobuf::Descriptor) }
1365
+ def self.descriptor
1366
+ end
1367
+ end
1368
+
1369
+ class Temporalio::Api::Workflow::V1::WorkflowExecutionConfig
1370
+ include ::Google::Protobuf::MessageExts
1371
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1372
+
1373
+ sig do
1374
+ params(
1375
+ task_queue: T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue),
1376
+ workflow_execution_timeout: T.nilable(Google::Protobuf::Duration),
1377
+ workflow_run_timeout: T.nilable(Google::Protobuf::Duration),
1378
+ default_workflow_task_timeout: T.nilable(Google::Protobuf::Duration),
1379
+ user_metadata: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)
1380
+ ).void
1381
+ end
1382
+ def initialize(
1383
+ task_queue: nil,
1384
+ workflow_execution_timeout: nil,
1385
+ workflow_run_timeout: nil,
1386
+ default_workflow_task_timeout: nil,
1387
+ user_metadata: nil
1388
+ )
1389
+ end
1390
+
1391
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue)) }
1392
+ def task_queue
1393
+ end
1394
+
1395
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue)).void }
1396
+ def task_queue=(value)
1397
+ end
1398
+
1399
+ sig { void }
1400
+ def clear_task_queue
1401
+ end
1402
+
1403
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1404
+ def workflow_execution_timeout
1405
+ end
1406
+
1407
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1408
+ def workflow_execution_timeout=(value)
1409
+ end
1410
+
1411
+ sig { void }
1412
+ def clear_workflow_execution_timeout
1413
+ end
1414
+
1415
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1416
+ def workflow_run_timeout
1417
+ end
1418
+
1419
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1420
+ def workflow_run_timeout=(value)
1421
+ end
1422
+
1423
+ sig { void }
1424
+ def clear_workflow_run_timeout
1425
+ end
1426
+
1427
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1428
+ def default_workflow_task_timeout
1429
+ end
1430
+
1431
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1432
+ def default_workflow_task_timeout=(value)
1433
+ end
1434
+
1435
+ sig { void }
1436
+ def clear_default_workflow_task_timeout
1437
+ end
1438
+
1439
+ # User metadata provided on start workflow.
1440
+ sig { returns(T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)) }
1441
+ def user_metadata
1442
+ end
1443
+
1444
+ # User metadata provided on start workflow.
1445
+ sig { params(value: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)).void }
1446
+ def user_metadata=(value)
1447
+ end
1448
+
1449
+ # User metadata provided on start workflow.
1450
+ sig { void }
1451
+ def clear_user_metadata
1452
+ end
1453
+
1454
+ sig { params(field: String).returns(T.untyped) }
1455
+ def [](field)
1456
+ end
1457
+
1458
+ sig { params(field: String, value: T.untyped).void }
1459
+ def []=(field, value)
1460
+ end
1461
+
1462
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1463
+ def to_h
1464
+ end
1465
+
1466
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionConfig) }
1467
+ def self.decode(str)
1468
+ end
1469
+
1470
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionConfig).returns(String) }
1471
+ def self.encode(msg)
1472
+ end
1473
+
1474
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionConfig) }
1475
+ def self.decode_json(str, **kw)
1476
+ end
1477
+
1478
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionConfig, kw: T.untyped).returns(String) }
1479
+ def self.encode_json(msg, **kw)
1480
+ end
1481
+
1482
+ sig { returns(::Google::Protobuf::Descriptor) }
1483
+ def self.descriptor
1484
+ end
1485
+ end
1486
+
1487
+ class Temporalio::Api::Workflow::V1::PendingActivityInfo
1488
+ include ::Google::Protobuf::MessageExts
1489
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1490
+
1491
+ sig do
1492
+ params(
1493
+ activity_id: T.nilable(String),
1494
+ activity_type: T.nilable(Temporalio::Api::Common::V1::ActivityType),
1495
+ state: T.nilable(T.any(Symbol, String, Integer)),
1496
+ heartbeat_details: T.nilable(Temporalio::Api::Common::V1::Payloads),
1497
+ last_heartbeat_time: T.nilable(Google::Protobuf::Timestamp),
1498
+ last_started_time: T.nilable(Google::Protobuf::Timestamp),
1499
+ attempt: T.nilable(Integer),
1500
+ maximum_attempts: T.nilable(Integer),
1501
+ scheduled_time: T.nilable(Google::Protobuf::Timestamp),
1502
+ expiration_time: T.nilable(Google::Protobuf::Timestamp),
1503
+ last_failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
1504
+ last_worker_identity: T.nilable(String),
1505
+ use_workflow_build_id: T.nilable(Google::Protobuf::Empty),
1506
+ last_independently_assigned_build_id: T.nilable(String),
1507
+ last_worker_version_stamp: T.nilable(Temporalio::Api::Common::V1::WorkerVersionStamp),
1508
+ current_retry_interval: T.nilable(Google::Protobuf::Duration),
1509
+ last_attempt_complete_time: T.nilable(Google::Protobuf::Timestamp),
1510
+ next_attempt_schedule_time: T.nilable(Google::Protobuf::Timestamp),
1511
+ paused: T.nilable(T::Boolean),
1512
+ last_deployment: T.nilable(Temporalio::Api::Deployment::V1::Deployment),
1513
+ last_worker_deployment_version: T.nilable(String),
1514
+ last_deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
1515
+ priority: T.nilable(Temporalio::Api::Common::V1::Priority),
1516
+ pause_info: T.nilable(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo),
1517
+ activity_options: T.nilable(Temporalio::Api::Activity::V1::ActivityOptions)
1518
+ ).void
1519
+ end
1520
+ def initialize(
1521
+ activity_id: "",
1522
+ activity_type: nil,
1523
+ state: :PENDING_ACTIVITY_STATE_UNSPECIFIED,
1524
+ heartbeat_details: nil,
1525
+ last_heartbeat_time: nil,
1526
+ last_started_time: nil,
1527
+ attempt: 0,
1528
+ maximum_attempts: 0,
1529
+ scheduled_time: nil,
1530
+ expiration_time: nil,
1531
+ last_failure: nil,
1532
+ last_worker_identity: "",
1533
+ use_workflow_build_id: nil,
1534
+ last_independently_assigned_build_id: "",
1535
+ last_worker_version_stamp: nil,
1536
+ current_retry_interval: nil,
1537
+ last_attempt_complete_time: nil,
1538
+ next_attempt_schedule_time: nil,
1539
+ paused: false,
1540
+ last_deployment: nil,
1541
+ last_worker_deployment_version: "",
1542
+ last_deployment_version: nil,
1543
+ priority: nil,
1544
+ pause_info: nil,
1545
+ activity_options: nil
1546
+ )
1547
+ end
1548
+
1549
+ sig { returns(String) }
1550
+ def activity_id
1551
+ end
1552
+
1553
+ sig { params(value: String).void }
1554
+ def activity_id=(value)
1555
+ end
1556
+
1557
+ sig { void }
1558
+ def clear_activity_id
1559
+ end
1560
+
1561
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::ActivityType)) }
1562
+ def activity_type
1563
+ end
1564
+
1565
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::ActivityType)).void }
1566
+ def activity_type=(value)
1567
+ end
1568
+
1569
+ sig { void }
1570
+ def clear_activity_type
1571
+ end
1572
+
1573
+ sig { returns(T.any(Symbol, Integer)) }
1574
+ def state
1575
+ end
1576
+
1577
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1578
+ def state=(value)
1579
+ end
1580
+
1581
+ sig { void }
1582
+ def clear_state
1583
+ end
1584
+
1585
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
1586
+ def heartbeat_details
1587
+ end
1588
+
1589
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
1590
+ def heartbeat_details=(value)
1591
+ end
1592
+
1593
+ sig { void }
1594
+ def clear_heartbeat_details
1595
+ end
1596
+
1597
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1598
+ def last_heartbeat_time
1599
+ end
1600
+
1601
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1602
+ def last_heartbeat_time=(value)
1603
+ end
1604
+
1605
+ sig { void }
1606
+ def clear_last_heartbeat_time
1607
+ end
1608
+
1609
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1610
+ def last_started_time
1611
+ end
1612
+
1613
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1614
+ def last_started_time=(value)
1615
+ end
1616
+
1617
+ sig { void }
1618
+ def clear_last_started_time
1619
+ end
1620
+
1621
+ sig { returns(Integer) }
1622
+ def attempt
1623
+ end
1624
+
1625
+ sig { params(value: Integer).void }
1626
+ def attempt=(value)
1627
+ end
1628
+
1629
+ sig { void }
1630
+ def clear_attempt
1631
+ end
1632
+
1633
+ sig { returns(Integer) }
1634
+ def maximum_attempts
1635
+ end
1636
+
1637
+ sig { params(value: Integer).void }
1638
+ def maximum_attempts=(value)
1639
+ end
1640
+
1641
+ sig { void }
1642
+ def clear_maximum_attempts
1643
+ end
1644
+
1645
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1646
+ def scheduled_time
1647
+ end
1648
+
1649
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1650
+ def scheduled_time=(value)
1651
+ end
1652
+
1653
+ sig { void }
1654
+ def clear_scheduled_time
1655
+ end
1656
+
1657
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1658
+ def expiration_time
1659
+ end
1660
+
1661
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1662
+ def expiration_time=(value)
1663
+ end
1664
+
1665
+ sig { void }
1666
+ def clear_expiration_time
1667
+ end
1668
+
1669
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
1670
+ def last_failure
1671
+ end
1672
+
1673
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
1674
+ def last_failure=(value)
1675
+ end
1676
+
1677
+ sig { void }
1678
+ def clear_last_failure
1679
+ end
1680
+
1681
+ sig { returns(String) }
1682
+ def last_worker_identity
1683
+ end
1684
+
1685
+ sig { params(value: String).void }
1686
+ def last_worker_identity=(value)
1687
+ end
1688
+
1689
+ sig { void }
1690
+ def clear_last_worker_identity
1691
+ end
1692
+
1693
+ # Deprecated. When present, it means this activity is assigned to the build ID of its workflow.
1694
+ sig { returns(T.nilable(Google::Protobuf::Empty)) }
1695
+ def use_workflow_build_id
1696
+ end
1697
+
1698
+ # Deprecated. When present, it means this activity is assigned to the build ID of its workflow.
1699
+ sig { params(value: T.nilable(Google::Protobuf::Empty)).void }
1700
+ def use_workflow_build_id=(value)
1701
+ end
1702
+
1703
+ # Deprecated. When present, it means this activity is assigned to the build ID of its workflow.
1704
+ sig { void }
1705
+ def clear_use_workflow_build_id
1706
+ end
1707
+
1708
+ # Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow.
1709
+ # The activity will use the build id in this field instead.
1710
+ # If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
1711
+ # rules.
1712
+ sig { returns(String) }
1713
+ def last_independently_assigned_build_id
1714
+ end
1715
+
1716
+ # Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow.
1717
+ # The activity will use the build id in this field instead.
1718
+ # If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
1719
+ # rules.
1720
+ sig { params(value: String).void }
1721
+ def last_independently_assigned_build_id=(value)
1722
+ end
1723
+
1724
+ # Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow.
1725
+ # The activity will use the build id in this field instead.
1726
+ # If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
1727
+ # rules.
1728
+ sig { void }
1729
+ def clear_last_independently_assigned_build_id
1730
+ end
1731
+
1732
+ # Deprecated. The version stamp of the worker to whom this activity was most recently dispatched
1733
+ # This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
1734
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkerVersionStamp)) }
1735
+ def last_worker_version_stamp
1736
+ end
1737
+
1738
+ # Deprecated. The version stamp of the worker to whom this activity was most recently dispatched
1739
+ # This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
1740
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkerVersionStamp)).void }
1741
+ def last_worker_version_stamp=(value)
1742
+ end
1743
+
1744
+ # Deprecated. The version stamp of the worker to whom this activity was most recently dispatched
1745
+ # This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
1746
+ sig { void }
1747
+ def clear_last_worker_version_stamp
1748
+ end
1749
+
1750
+ # The time activity will wait until the next retry.
1751
+ # If activity is currently running it will be next retry interval if activity failed.
1752
+ # If activity is currently waiting it will be current retry interval.
1753
+ # If there will be no retry it will be null.
1754
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1755
+ def current_retry_interval
1756
+ end
1757
+
1758
+ # The time activity will wait until the next retry.
1759
+ # If activity is currently running it will be next retry interval if activity failed.
1760
+ # If activity is currently waiting it will be current retry interval.
1761
+ # If there will be no retry it will be null.
1762
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1763
+ def current_retry_interval=(value)
1764
+ end
1765
+
1766
+ # The time activity will wait until the next retry.
1767
+ # If activity is currently running it will be next retry interval if activity failed.
1768
+ # If activity is currently waiting it will be current retry interval.
1769
+ # If there will be no retry it will be null.
1770
+ sig { void }
1771
+ def clear_current_retry_interval
1772
+ end
1773
+
1774
+ # The time when the last activity attempt was completed. If activity has not been completed yet then it will be null.
1775
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1776
+ def last_attempt_complete_time
1777
+ end
1778
+
1779
+ # The time when the last activity attempt was completed. If activity has not been completed yet then it will be null.
1780
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1781
+ def last_attempt_complete_time=(value)
1782
+ end
1783
+
1784
+ # The time when the last activity attempt was completed. If activity has not been completed yet then it will be null.
1785
+ sig { void }
1786
+ def clear_last_attempt_complete_time
1787
+ end
1788
+
1789
+ # Next time when activity will be scheduled.
1790
+ # If activity is currently scheduled or started it will be null.
1791
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1792
+ def next_attempt_schedule_time
1793
+ end
1794
+
1795
+ # Next time when activity will be scheduled.
1796
+ # If activity is currently scheduled or started it will be null.
1797
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1798
+ def next_attempt_schedule_time=(value)
1799
+ end
1800
+
1801
+ # Next time when activity will be scheduled.
1802
+ # If activity is currently scheduled or started it will be null.
1803
+ sig { void }
1804
+ def clear_next_attempt_schedule_time
1805
+ end
1806
+
1807
+ # Indicates if activity is paused.
1808
+ sig { returns(T::Boolean) }
1809
+ def paused
1810
+ end
1811
+
1812
+ # Indicates if activity is paused.
1813
+ sig { params(value: T::Boolean).void }
1814
+ def paused=(value)
1815
+ end
1816
+
1817
+ # Indicates if activity is paused.
1818
+ sig { void }
1819
+ def clear_paused
1820
+ end
1821
+
1822
+ # The deployment this activity was dispatched to most recently. Present only if the activity
1823
+ # was dispatched to a versioned worker.
1824
+ # Deprecated. Use `last_deployment_version`.
1825
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::Deployment)) }
1826
+ def last_deployment
1827
+ end
1828
+
1829
+ # The deployment this activity was dispatched to most recently. Present only if the activity
1830
+ # was dispatched to a versioned worker.
1831
+ # Deprecated. Use `last_deployment_version`.
1832
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::Deployment)).void }
1833
+ def last_deployment=(value)
1834
+ end
1835
+
1836
+ # The deployment this activity was dispatched to most recently. Present only if the activity
1837
+ # was dispatched to a versioned worker.
1838
+ # Deprecated. Use `last_deployment_version`.
1839
+ sig { void }
1840
+ def clear_last_deployment
1841
+ end
1842
+
1843
+ # The Worker Deployment Version this activity was dispatched to most recently.
1844
+ # Deprecated. Use `last_deployment_version`.
1845
+ sig { returns(String) }
1846
+ def last_worker_deployment_version
1847
+ end
1848
+
1849
+ # The Worker Deployment Version this activity was dispatched to most recently.
1850
+ # Deprecated. Use `last_deployment_version`.
1851
+ sig { params(value: String).void }
1852
+ def last_worker_deployment_version=(value)
1853
+ end
1854
+
1855
+ # The Worker Deployment Version this activity was dispatched to most recently.
1856
+ # Deprecated. Use `last_deployment_version`.
1857
+ sig { void }
1858
+ def clear_last_worker_deployment_version
1859
+ end
1860
+
1861
+ # The Worker Deployment Version this activity was dispatched to most recently.
1862
+ # If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
1863
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
1864
+ def last_deployment_version
1865
+ end
1866
+
1867
+ # The Worker Deployment Version this activity was dispatched to most recently.
1868
+ # If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
1869
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
1870
+ def last_deployment_version=(value)
1871
+ end
1872
+
1873
+ # The Worker Deployment Version this activity was dispatched to most recently.
1874
+ # If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
1875
+ sig { void }
1876
+ def clear_last_deployment_version
1877
+ end
1878
+
1879
+ # Priority metadata. If this message is not present, or any fields are not
1880
+ # present, they inherit the values from the workflow.
1881
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
1882
+ def priority
1883
+ end
1884
+
1885
+ # Priority metadata. If this message is not present, or any fields are not
1886
+ # present, they inherit the values from the workflow.
1887
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
1888
+ def priority=(value)
1889
+ end
1890
+
1891
+ # Priority metadata. If this message is not present, or any fields are not
1892
+ # present, they inherit the values from the workflow.
1893
+ sig { void }
1894
+ def clear_priority
1895
+ end
1896
+
1897
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo)) }
1898
+ def pause_info
1899
+ end
1900
+
1901
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo)).void }
1902
+ def pause_info=(value)
1903
+ end
1904
+
1905
+ sig { void }
1906
+ def clear_pause_info
1907
+ end
1908
+
1909
+ # Current activity options. May be different from the one used to start the activity.
1910
+ sig { returns(T.nilable(Temporalio::Api::Activity::V1::ActivityOptions)) }
1911
+ def activity_options
1912
+ end
1913
+
1914
+ # Current activity options. May be different from the one used to start the activity.
1915
+ sig { params(value: T.nilable(Temporalio::Api::Activity::V1::ActivityOptions)).void }
1916
+ def activity_options=(value)
1917
+ end
1918
+
1919
+ # Current activity options. May be different from the one used to start the activity.
1920
+ sig { void }
1921
+ def clear_activity_options
1922
+ end
1923
+
1924
+ sig { returns(T.nilable(Symbol)) }
1925
+ def assigned_build_id
1926
+ end
1927
+
1928
+ sig { params(field: String).returns(T.untyped) }
1929
+ def [](field)
1930
+ end
1931
+
1932
+ sig { params(field: String, value: T.untyped).void }
1933
+ def []=(field, value)
1934
+ end
1935
+
1936
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1937
+ def to_h
1938
+ end
1939
+
1940
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PendingActivityInfo) }
1941
+ def self.decode(str)
1942
+ end
1943
+
1944
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingActivityInfo).returns(String) }
1945
+ def self.encode(msg)
1946
+ end
1947
+
1948
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PendingActivityInfo) }
1949
+ def self.decode_json(str, **kw)
1950
+ end
1951
+
1952
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingActivityInfo, kw: T.untyped).returns(String) }
1953
+ def self.encode_json(msg, **kw)
1954
+ end
1955
+
1956
+ sig { returns(::Google::Protobuf::Descriptor) }
1957
+ def self.descriptor
1958
+ end
1959
+ end
1960
+
1961
+ class Temporalio::Api::Workflow::V1::PendingChildExecutionInfo
1962
+ include ::Google::Protobuf::MessageExts
1963
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1964
+
1965
+ sig do
1966
+ params(
1967
+ workflow_id: T.nilable(String),
1968
+ run_id: T.nilable(String),
1969
+ workflow_type_name: T.nilable(String),
1970
+ initiated_id: T.nilable(Integer),
1971
+ parent_close_policy: T.nilable(T.any(Symbol, String, Integer))
1972
+ ).void
1973
+ end
1974
+ def initialize(
1975
+ workflow_id: "",
1976
+ run_id: "",
1977
+ workflow_type_name: "",
1978
+ initiated_id: 0,
1979
+ parent_close_policy: :PARENT_CLOSE_POLICY_UNSPECIFIED
1980
+ )
1981
+ end
1982
+
1983
+ sig { returns(String) }
1984
+ def workflow_id
1985
+ end
1986
+
1987
+ sig { params(value: String).void }
1988
+ def workflow_id=(value)
1989
+ end
1990
+
1991
+ sig { void }
1992
+ def clear_workflow_id
1993
+ end
1994
+
1995
+ sig { returns(String) }
1996
+ def run_id
1997
+ end
1998
+
1999
+ sig { params(value: String).void }
2000
+ def run_id=(value)
2001
+ end
2002
+
2003
+ sig { void }
2004
+ def clear_run_id
2005
+ end
2006
+
2007
+ sig { returns(String) }
2008
+ def workflow_type_name
2009
+ end
2010
+
2011
+ sig { params(value: String).void }
2012
+ def workflow_type_name=(value)
2013
+ end
2014
+
2015
+ sig { void }
2016
+ def clear_workflow_type_name
2017
+ end
2018
+
2019
+ sig { returns(Integer) }
2020
+ def initiated_id
2021
+ end
2022
+
2023
+ sig { params(value: Integer).void }
2024
+ def initiated_id=(value)
2025
+ end
2026
+
2027
+ sig { void }
2028
+ def clear_initiated_id
2029
+ end
2030
+
2031
+ # Default: PARENT_CLOSE_POLICY_TERMINATE.
2032
+ sig { returns(T.any(Symbol, Integer)) }
2033
+ def parent_close_policy
2034
+ end
2035
+
2036
+ # Default: PARENT_CLOSE_POLICY_TERMINATE.
2037
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2038
+ def parent_close_policy=(value)
2039
+ end
2040
+
2041
+ # Default: PARENT_CLOSE_POLICY_TERMINATE.
2042
+ sig { void }
2043
+ def clear_parent_close_policy
2044
+ end
2045
+
2046
+ sig { params(field: String).returns(T.untyped) }
2047
+ def [](field)
2048
+ end
2049
+
2050
+ sig { params(field: String, value: T.untyped).void }
2051
+ def []=(field, value)
2052
+ end
2053
+
2054
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2055
+ def to_h
2056
+ end
2057
+
2058
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PendingChildExecutionInfo) }
2059
+ def self.decode(str)
2060
+ end
2061
+
2062
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingChildExecutionInfo).returns(String) }
2063
+ def self.encode(msg)
2064
+ end
2065
+
2066
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PendingChildExecutionInfo) }
2067
+ def self.decode_json(str, **kw)
2068
+ end
2069
+
2070
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingChildExecutionInfo, kw: T.untyped).returns(String) }
2071
+ def self.encode_json(msg, **kw)
2072
+ end
2073
+
2074
+ sig { returns(::Google::Protobuf::Descriptor) }
2075
+ def self.descriptor
2076
+ end
2077
+ end
2078
+
2079
+ class Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo
2080
+ include ::Google::Protobuf::MessageExts
2081
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2082
+
2083
+ sig do
2084
+ params(
2085
+ state: T.nilable(T.any(Symbol, String, Integer)),
2086
+ scheduled_time: T.nilable(Google::Protobuf::Timestamp),
2087
+ original_scheduled_time: T.nilable(Google::Protobuf::Timestamp),
2088
+ started_time: T.nilable(Google::Protobuf::Timestamp),
2089
+ attempt: T.nilable(Integer)
2090
+ ).void
2091
+ end
2092
+ def initialize(
2093
+ state: :PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED,
2094
+ scheduled_time: nil,
2095
+ original_scheduled_time: nil,
2096
+ started_time: nil,
2097
+ attempt: 0
2098
+ )
2099
+ end
2100
+
2101
+ sig { returns(T.any(Symbol, Integer)) }
2102
+ def state
2103
+ end
2104
+
2105
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2106
+ def state=(value)
2107
+ end
2108
+
2109
+ sig { void }
2110
+ def clear_state
2111
+ end
2112
+
2113
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2114
+ def scheduled_time
2115
+ end
2116
+
2117
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2118
+ def scheduled_time=(value)
2119
+ end
2120
+
2121
+ sig { void }
2122
+ def clear_scheduled_time
2123
+ end
2124
+
2125
+ # original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.
2126
+ # Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command
2127
+ # In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds
2128
+ # some threshold, the workflow task will be forced timeout.
2129
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2130
+ def original_scheduled_time
2131
+ end
2132
+
2133
+ # original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.
2134
+ # Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command
2135
+ # In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds
2136
+ # some threshold, the workflow task will be forced timeout.
2137
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2138
+ def original_scheduled_time=(value)
2139
+ end
2140
+
2141
+ # original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.
2142
+ # Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command
2143
+ # In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds
2144
+ # some threshold, the workflow task will be forced timeout.
2145
+ sig { void }
2146
+ def clear_original_scheduled_time
2147
+ end
2148
+
2149
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2150
+ def started_time
2151
+ end
2152
+
2153
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2154
+ def started_time=(value)
2155
+ end
2156
+
2157
+ sig { void }
2158
+ def clear_started_time
2159
+ end
2160
+
2161
+ sig { returns(Integer) }
2162
+ def attempt
2163
+ end
2164
+
2165
+ sig { params(value: Integer).void }
2166
+ def attempt=(value)
2167
+ end
2168
+
2169
+ sig { void }
2170
+ def clear_attempt
2171
+ end
2172
+
2173
+ sig { params(field: String).returns(T.untyped) }
2174
+ def [](field)
2175
+ end
2176
+
2177
+ sig { params(field: String, value: T.untyped).void }
2178
+ def []=(field, value)
2179
+ end
2180
+
2181
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2182
+ def to_h
2183
+ end
2184
+
2185
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo) }
2186
+ def self.decode(str)
2187
+ end
2188
+
2189
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo).returns(String) }
2190
+ def self.encode(msg)
2191
+ end
2192
+
2193
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo) }
2194
+ def self.decode_json(str, **kw)
2195
+ end
2196
+
2197
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo, kw: T.untyped).returns(String) }
2198
+ def self.encode_json(msg, **kw)
2199
+ end
2200
+
2201
+ sig { returns(::Google::Protobuf::Descriptor) }
2202
+ def self.descriptor
2203
+ end
2204
+ end
2205
+
2206
+ class Temporalio::Api::Workflow::V1::ResetPoints
2207
+ include ::Google::Protobuf::MessageExts
2208
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2209
+
2210
+ sig do
2211
+ params(
2212
+ points: T.nilable(T::Array[T.nilable(Temporalio::Api::Workflow::V1::ResetPointInfo)])
2213
+ ).void
2214
+ end
2215
+ def initialize(
2216
+ points: []
2217
+ )
2218
+ end
2219
+
2220
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Workflow::V1::ResetPointInfo)]) }
2221
+ def points
2222
+ end
2223
+
2224
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2225
+ def points=(value)
2226
+ end
2227
+
2228
+ sig { void }
2229
+ def clear_points
2230
+ end
2231
+
2232
+ sig { params(field: String).returns(T.untyped) }
2233
+ def [](field)
2234
+ end
2235
+
2236
+ sig { params(field: String, value: T.untyped).void }
2237
+ def []=(field, value)
2238
+ end
2239
+
2240
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2241
+ def to_h
2242
+ end
2243
+
2244
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::ResetPoints) }
2245
+ def self.decode(str)
2246
+ end
2247
+
2248
+ sig { params(msg: Temporalio::Api::Workflow::V1::ResetPoints).returns(String) }
2249
+ def self.encode(msg)
2250
+ end
2251
+
2252
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::ResetPoints) }
2253
+ def self.decode_json(str, **kw)
2254
+ end
2255
+
2256
+ sig { params(msg: Temporalio::Api::Workflow::V1::ResetPoints, kw: T.untyped).returns(String) }
2257
+ def self.encode_json(msg, **kw)
2258
+ end
2259
+
2260
+ sig { returns(::Google::Protobuf::Descriptor) }
2261
+ def self.descriptor
2262
+ end
2263
+ end
2264
+
2265
+ # ResetPointInfo records the workflow event id that is the first one processed by a given
2266
+ # build id or binary checksum. A new reset point will be created if either build id or binary
2267
+ # checksum changes (although in general only one or the other will be used at a time).
2268
+ class Temporalio::Api::Workflow::V1::ResetPointInfo
2269
+ include ::Google::Protobuf::MessageExts
2270
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2271
+
2272
+ sig do
2273
+ params(
2274
+ build_id: T.nilable(String),
2275
+ binary_checksum: T.nilable(String),
2276
+ run_id: T.nilable(String),
2277
+ first_workflow_task_completed_id: T.nilable(Integer),
2278
+ create_time: T.nilable(Google::Protobuf::Timestamp),
2279
+ expire_time: T.nilable(Google::Protobuf::Timestamp),
2280
+ resettable: T.nilable(T::Boolean)
2281
+ ).void
2282
+ end
2283
+ def initialize(
2284
+ build_id: "",
2285
+ binary_checksum: "",
2286
+ run_id: "",
2287
+ first_workflow_task_completed_id: 0,
2288
+ create_time: nil,
2289
+ expire_time: nil,
2290
+ resettable: false
2291
+ )
2292
+ end
2293
+
2294
+ # Worker build id.
2295
+ sig { returns(String) }
2296
+ def build_id
2297
+ end
2298
+
2299
+ # Worker build id.
2300
+ sig { params(value: String).void }
2301
+ def build_id=(value)
2302
+ end
2303
+
2304
+ # Worker build id.
2305
+ sig { void }
2306
+ def clear_build_id
2307
+ end
2308
+
2309
+ # Deprecated. A worker binary version identifier.
2310
+ sig { returns(String) }
2311
+ def binary_checksum
2312
+ end
2313
+
2314
+ # Deprecated. A worker binary version identifier.
2315
+ sig { params(value: String).void }
2316
+ def binary_checksum=(value)
2317
+ end
2318
+
2319
+ # Deprecated. A worker binary version identifier.
2320
+ sig { void }
2321
+ def clear_binary_checksum
2322
+ end
2323
+
2324
+ # The first run ID in the execution chain that was touched by this worker build.
2325
+ sig { returns(String) }
2326
+ def run_id
2327
+ end
2328
+
2329
+ # The first run ID in the execution chain that was touched by this worker build.
2330
+ sig { params(value: String).void }
2331
+ def run_id=(value)
2332
+ end
2333
+
2334
+ # The first run ID in the execution chain that was touched by this worker build.
2335
+ sig { void }
2336
+ def clear_run_id
2337
+ end
2338
+
2339
+ # Event ID of the first WorkflowTaskCompleted event processed by this worker build.
2340
+ sig { returns(Integer) }
2341
+ def first_workflow_task_completed_id
2342
+ end
2343
+
2344
+ # Event ID of the first WorkflowTaskCompleted event processed by this worker build.
2345
+ sig { params(value: Integer).void }
2346
+ def first_workflow_task_completed_id=(value)
2347
+ end
2348
+
2349
+ # Event ID of the first WorkflowTaskCompleted event processed by this worker build.
2350
+ sig { void }
2351
+ def clear_first_workflow_task_completed_id
2352
+ end
2353
+
2354
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2355
+ def create_time
2356
+ end
2357
+
2358
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2359
+ def create_time=(value)
2360
+ end
2361
+
2362
+ sig { void }
2363
+ def clear_create_time
2364
+ end
2365
+
2366
+ # (-- api-linter: core::0214::resource-expiry=disabled
2367
+ # aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --)
2368
+ # The time that the run is deleted due to retention.
2369
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2370
+ def expire_time
2371
+ end
2372
+
2373
+ # (-- api-linter: core::0214::resource-expiry=disabled
2374
+ # aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --)
2375
+ # The time that the run is deleted due to retention.
2376
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2377
+ def expire_time=(value)
2378
+ end
2379
+
2380
+ # (-- api-linter: core::0214::resource-expiry=disabled
2381
+ # aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --)
2382
+ # The time that the run is deleted due to retention.
2383
+ sig { void }
2384
+ def clear_expire_time
2385
+ end
2386
+
2387
+ # false if the reset point has pending childWFs/reqCancels/signalExternals.
2388
+ sig { returns(T::Boolean) }
2389
+ def resettable
2390
+ end
2391
+
2392
+ # false if the reset point has pending childWFs/reqCancels/signalExternals.
2393
+ sig { params(value: T::Boolean).void }
2394
+ def resettable=(value)
2395
+ end
2396
+
2397
+ # false if the reset point has pending childWFs/reqCancels/signalExternals.
2398
+ sig { void }
2399
+ def clear_resettable
2400
+ end
2401
+
2402
+ sig { params(field: String).returns(T.untyped) }
2403
+ def [](field)
2404
+ end
2405
+
2406
+ sig { params(field: String, value: T.untyped).void }
2407
+ def []=(field, value)
2408
+ end
2409
+
2410
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2411
+ def to_h
2412
+ end
2413
+
2414
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::ResetPointInfo) }
2415
+ def self.decode(str)
2416
+ end
2417
+
2418
+ sig { params(msg: Temporalio::Api::Workflow::V1::ResetPointInfo).returns(String) }
2419
+ def self.encode(msg)
2420
+ end
2421
+
2422
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::ResetPointInfo) }
2423
+ def self.decode_json(str, **kw)
2424
+ end
2425
+
2426
+ sig { params(msg: Temporalio::Api::Workflow::V1::ResetPointInfo, kw: T.untyped).returns(String) }
2427
+ def self.encode_json(msg, **kw)
2428
+ end
2429
+
2430
+ sig { returns(::Google::Protobuf::Descriptor) }
2431
+ def self.descriptor
2432
+ end
2433
+ end
2434
+
2435
+ # NewWorkflowExecutionInfo is a shared message that encapsulates all the
2436
+ # required arguments to starting a workflow in different contexts.
2437
+ class Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo
2438
+ include ::Google::Protobuf::MessageExts
2439
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2440
+
2441
+ sig do
2442
+ params(
2443
+ workflow_id: T.nilable(String),
2444
+ workflow_type: T.nilable(Temporalio::Api::Common::V1::WorkflowType),
2445
+ task_queue: T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue),
2446
+ input: T.nilable(Temporalio::Api::Common::V1::Payloads),
2447
+ workflow_execution_timeout: T.nilable(Google::Protobuf::Duration),
2448
+ workflow_run_timeout: T.nilable(Google::Protobuf::Duration),
2449
+ workflow_task_timeout: T.nilable(Google::Protobuf::Duration),
2450
+ workflow_id_reuse_policy: T.nilable(T.any(Symbol, String, Integer)),
2451
+ retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
2452
+ cron_schedule: T.nilable(String),
2453
+ memo: T.nilable(Temporalio::Api::Common::V1::Memo),
2454
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
2455
+ header: T.nilable(Temporalio::Api::Common::V1::Header),
2456
+ user_metadata: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata),
2457
+ versioning_override: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride),
2458
+ priority: T.nilable(Temporalio::Api::Common::V1::Priority)
2459
+ ).void
2460
+ end
2461
+ def initialize(
2462
+ workflow_id: "",
2463
+ workflow_type: nil,
2464
+ task_queue: nil,
2465
+ input: nil,
2466
+ workflow_execution_timeout: nil,
2467
+ workflow_run_timeout: nil,
2468
+ workflow_task_timeout: nil,
2469
+ workflow_id_reuse_policy: :WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED,
2470
+ retry_policy: nil,
2471
+ cron_schedule: "",
2472
+ memo: nil,
2473
+ search_attributes: nil,
2474
+ header: nil,
2475
+ user_metadata: nil,
2476
+ versioning_override: nil,
2477
+ priority: nil
2478
+ )
2479
+ end
2480
+
2481
+ sig { returns(String) }
2482
+ def workflow_id
2483
+ end
2484
+
2485
+ sig { params(value: String).void }
2486
+ def workflow_id=(value)
2487
+ end
2488
+
2489
+ sig { void }
2490
+ def clear_workflow_id
2491
+ end
2492
+
2493
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkflowType)) }
2494
+ def workflow_type
2495
+ end
2496
+
2497
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkflowType)).void }
2498
+ def workflow_type=(value)
2499
+ end
2500
+
2501
+ sig { void }
2502
+ def clear_workflow_type
2503
+ end
2504
+
2505
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue)) }
2506
+ def task_queue
2507
+ end
2508
+
2509
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue)).void }
2510
+ def task_queue=(value)
2511
+ end
2512
+
2513
+ sig { void }
2514
+ def clear_task_queue
2515
+ end
2516
+
2517
+ # Serialized arguments to the workflow.
2518
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
2519
+ def input
2520
+ end
2521
+
2522
+ # Serialized arguments to the workflow.
2523
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
2524
+ def input=(value)
2525
+ end
2526
+
2527
+ # Serialized arguments to the workflow.
2528
+ sig { void }
2529
+ def clear_input
2530
+ end
2531
+
2532
+ # Total workflow execution timeout including retries and continue as new.
2533
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
2534
+ def workflow_execution_timeout
2535
+ end
2536
+
2537
+ # Total workflow execution timeout including retries and continue as new.
2538
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
2539
+ def workflow_execution_timeout=(value)
2540
+ end
2541
+
2542
+ # Total workflow execution timeout including retries and continue as new.
2543
+ sig { void }
2544
+ def clear_workflow_execution_timeout
2545
+ end
2546
+
2547
+ # Timeout of a single workflow run.
2548
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
2549
+ def workflow_run_timeout
2550
+ end
2551
+
2552
+ # Timeout of a single workflow run.
2553
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
2554
+ def workflow_run_timeout=(value)
2555
+ end
2556
+
2557
+ # Timeout of a single workflow run.
2558
+ sig { void }
2559
+ def clear_workflow_run_timeout
2560
+ end
2561
+
2562
+ # Timeout of a single workflow task.
2563
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
2564
+ def workflow_task_timeout
2565
+ end
2566
+
2567
+ # Timeout of a single workflow task.
2568
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
2569
+ def workflow_task_timeout=(value)
2570
+ end
2571
+
2572
+ # Timeout of a single workflow task.
2573
+ sig { void }
2574
+ def clear_workflow_task_timeout
2575
+ end
2576
+
2577
+ # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
2578
+ sig { returns(T.any(Symbol, Integer)) }
2579
+ def workflow_id_reuse_policy
2580
+ end
2581
+
2582
+ # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
2583
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2584
+ def workflow_id_reuse_policy=(value)
2585
+ end
2586
+
2587
+ # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
2588
+ sig { void }
2589
+ def clear_workflow_id_reuse_policy
2590
+ end
2591
+
2592
+ # The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
2593
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
2594
+ def retry_policy
2595
+ end
2596
+
2597
+ # The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
2598
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
2599
+ def retry_policy=(value)
2600
+ end
2601
+
2602
+ # The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
2603
+ sig { void }
2604
+ def clear_retry_policy
2605
+ end
2606
+
2607
+ # See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
2608
+ sig { returns(String) }
2609
+ def cron_schedule
2610
+ end
2611
+
2612
+ # See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
2613
+ sig { params(value: String).void }
2614
+ def cron_schedule=(value)
2615
+ end
2616
+
2617
+ # See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
2618
+ sig { void }
2619
+ def clear_cron_schedule
2620
+ end
2621
+
2622
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Memo)) }
2623
+ def memo
2624
+ end
2625
+
2626
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Memo)).void }
2627
+ def memo=(value)
2628
+ end
2629
+
2630
+ sig { void }
2631
+ def clear_memo
2632
+ end
2633
+
2634
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
2635
+ def search_attributes
2636
+ end
2637
+
2638
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
2639
+ def search_attributes=(value)
2640
+ end
2641
+
2642
+ sig { void }
2643
+ def clear_search_attributes
2644
+ end
2645
+
2646
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Header)) }
2647
+ def header
2648
+ end
2649
+
2650
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Header)).void }
2651
+ def header=(value)
2652
+ end
2653
+
2654
+ sig { void }
2655
+ def clear_header
2656
+ end
2657
+
2658
+ # Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig
2659
+ # for use by user interfaces to display the fixed as-of-start summary and details of the
2660
+ # workflow.
2661
+ sig { returns(T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)) }
2662
+ def user_metadata
2663
+ end
2664
+
2665
+ # Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig
2666
+ # for use by user interfaces to display the fixed as-of-start summary and details of the
2667
+ # workflow.
2668
+ sig { params(value: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)).void }
2669
+ def user_metadata=(value)
2670
+ end
2671
+
2672
+ # Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig
2673
+ # for use by user interfaces to display the fixed as-of-start summary and details of the
2674
+ # workflow.
2675
+ sig { void }
2676
+ def clear_user_metadata
2677
+ end
2678
+
2679
+ # If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
2680
+ # To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
2681
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)) }
2682
+ def versioning_override
2683
+ end
2684
+
2685
+ # If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
2686
+ # To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
2687
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)).void }
2688
+ def versioning_override=(value)
2689
+ end
2690
+
2691
+ # If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
2692
+ # To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
2693
+ sig { void }
2694
+ def clear_versioning_override
2695
+ end
2696
+
2697
+ # Priority metadata
2698
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
2699
+ def priority
2700
+ end
2701
+
2702
+ # Priority metadata
2703
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
2704
+ def priority=(value)
2705
+ end
2706
+
2707
+ # Priority metadata
2708
+ sig { void }
2709
+ def clear_priority
2710
+ end
2711
+
2712
+ sig { params(field: String).returns(T.untyped) }
2713
+ def [](field)
2714
+ end
2715
+
2716
+ sig { params(field: String, value: T.untyped).void }
2717
+ def []=(field, value)
2718
+ end
2719
+
2720
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2721
+ def to_h
2722
+ end
2723
+
2724
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo) }
2725
+ def self.decode(str)
2726
+ end
2727
+
2728
+ sig { params(msg: Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo).returns(String) }
2729
+ def self.encode(msg)
2730
+ end
2731
+
2732
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo) }
2733
+ def self.decode_json(str, **kw)
2734
+ end
2735
+
2736
+ sig { params(msg: Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo, kw: T.untyped).returns(String) }
2737
+ def self.encode_json(msg, **kw)
2738
+ end
2739
+
2740
+ sig { returns(::Google::Protobuf::Descriptor) }
2741
+ def self.descriptor
2742
+ end
2743
+ end
2744
+
2745
+ # CallbackInfo contains the state of an attached workflow callback.
2746
+ class Temporalio::Api::Workflow::V1::CallbackInfo
2747
+ include ::Google::Protobuf::MessageExts
2748
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2749
+
2750
+ sig do
2751
+ params(
2752
+ callback: T.nilable(Temporalio::Api::Common::V1::Callback),
2753
+ trigger: T.nilable(Temporalio::Api::Workflow::V1::CallbackInfo::Trigger),
2754
+ registration_time: T.nilable(Google::Protobuf::Timestamp),
2755
+ state: T.nilable(T.any(Symbol, String, Integer)),
2756
+ attempt: T.nilable(Integer),
2757
+ last_attempt_complete_time: T.nilable(Google::Protobuf::Timestamp),
2758
+ last_attempt_failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
2759
+ next_attempt_schedule_time: T.nilable(Google::Protobuf::Timestamp),
2760
+ blocked_reason: T.nilable(String)
2761
+ ).void
2762
+ end
2763
+ def initialize(
2764
+ callback: nil,
2765
+ trigger: nil,
2766
+ registration_time: nil,
2767
+ state: :CALLBACK_STATE_UNSPECIFIED,
2768
+ attempt: 0,
2769
+ last_attempt_complete_time: nil,
2770
+ last_attempt_failure: nil,
2771
+ next_attempt_schedule_time: nil,
2772
+ blocked_reason: ""
2773
+ )
2774
+ end
2775
+
2776
+ # Information on how this callback should be invoked (e.g. its URL and type).
2777
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Callback)) }
2778
+ def callback
2779
+ end
2780
+
2781
+ # Information on how this callback should be invoked (e.g. its URL and type).
2782
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Callback)).void }
2783
+ def callback=(value)
2784
+ end
2785
+
2786
+ # Information on how this callback should be invoked (e.g. its URL and type).
2787
+ sig { void }
2788
+ def clear_callback
2789
+ end
2790
+
2791
+ # Trigger for this callback.
2792
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::CallbackInfo::Trigger)) }
2793
+ def trigger
2794
+ end
2795
+
2796
+ # Trigger for this callback.
2797
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::CallbackInfo::Trigger)).void }
2798
+ def trigger=(value)
2799
+ end
2800
+
2801
+ # Trigger for this callback.
2802
+ sig { void }
2803
+ def clear_trigger
2804
+ end
2805
+
2806
+ # The time when the callback was registered.
2807
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2808
+ def registration_time
2809
+ end
2810
+
2811
+ # The time when the callback was registered.
2812
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2813
+ def registration_time=(value)
2814
+ end
2815
+
2816
+ # The time when the callback was registered.
2817
+ sig { void }
2818
+ def clear_registration_time
2819
+ end
2820
+
2821
+ sig { returns(T.any(Symbol, Integer)) }
2822
+ def state
2823
+ end
2824
+
2825
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2826
+ def state=(value)
2827
+ end
2828
+
2829
+ sig { void }
2830
+ def clear_state
2831
+ end
2832
+
2833
+ # The number of attempts made to deliver the callback.
2834
+ # This number represents a minimum bound since the attempt is incremented after the callback request completes.
2835
+ sig { returns(Integer) }
2836
+ def attempt
2837
+ end
2838
+
2839
+ # The number of attempts made to deliver the callback.
2840
+ # This number represents a minimum bound since the attempt is incremented after the callback request completes.
2841
+ sig { params(value: Integer).void }
2842
+ def attempt=(value)
2843
+ end
2844
+
2845
+ # The number of attempts made to deliver the callback.
2846
+ # This number represents a minimum bound since the attempt is incremented after the callback request completes.
2847
+ sig { void }
2848
+ def clear_attempt
2849
+ end
2850
+
2851
+ # The time when the last attempt completed.
2852
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2853
+ def last_attempt_complete_time
2854
+ end
2855
+
2856
+ # The time when the last attempt completed.
2857
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2858
+ def last_attempt_complete_time=(value)
2859
+ end
2860
+
2861
+ # The time when the last attempt completed.
2862
+ sig { void }
2863
+ def clear_last_attempt_complete_time
2864
+ end
2865
+
2866
+ # The last attempt's failure, if any.
2867
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
2868
+ def last_attempt_failure
2869
+ end
2870
+
2871
+ # The last attempt's failure, if any.
2872
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
2873
+ def last_attempt_failure=(value)
2874
+ end
2875
+
2876
+ # The last attempt's failure, if any.
2877
+ sig { void }
2878
+ def clear_last_attempt_failure
2879
+ end
2880
+
2881
+ # The time when the next attempt is scheduled.
2882
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2883
+ def next_attempt_schedule_time
2884
+ end
2885
+
2886
+ # The time when the next attempt is scheduled.
2887
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2888
+ def next_attempt_schedule_time=(value)
2889
+ end
2890
+
2891
+ # The time when the next attempt is scheduled.
2892
+ sig { void }
2893
+ def clear_next_attempt_schedule_time
2894
+ end
2895
+
2896
+ # If the state is BLOCKED, blocked reason provides additional information.
2897
+ sig { returns(String) }
2898
+ def blocked_reason
2899
+ end
2900
+
2901
+ # If the state is BLOCKED, blocked reason provides additional information.
2902
+ sig { params(value: String).void }
2903
+ def blocked_reason=(value)
2904
+ end
2905
+
2906
+ # If the state is BLOCKED, blocked reason provides additional information.
2907
+ sig { void }
2908
+ def clear_blocked_reason
2909
+ end
2910
+
2911
+ sig { params(field: String).returns(T.untyped) }
2912
+ def [](field)
2913
+ end
2914
+
2915
+ sig { params(field: String, value: T.untyped).void }
2916
+ def []=(field, value)
2917
+ end
2918
+
2919
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2920
+ def to_h
2921
+ end
2922
+
2923
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::CallbackInfo) }
2924
+ def self.decode(str)
2925
+ end
2926
+
2927
+ sig { params(msg: Temporalio::Api::Workflow::V1::CallbackInfo).returns(String) }
2928
+ def self.encode(msg)
2929
+ end
2930
+
2931
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::CallbackInfo) }
2932
+ def self.decode_json(str, **kw)
2933
+ end
2934
+
2935
+ sig { params(msg: Temporalio::Api::Workflow::V1::CallbackInfo, kw: T.untyped).returns(String) }
2936
+ def self.encode_json(msg, **kw)
2937
+ end
2938
+
2939
+ sig { returns(::Google::Protobuf::Descriptor) }
2940
+ def self.descriptor
2941
+ end
2942
+ end
2943
+
2944
+ # PendingNexusOperationInfo contains the state of a pending Nexus operation.
2945
+ class Temporalio::Api::Workflow::V1::PendingNexusOperationInfo
2946
+ include ::Google::Protobuf::MessageExts
2947
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2948
+
2949
+ sig do
2950
+ params(
2951
+ endpoint: T.nilable(String),
2952
+ service: T.nilable(String),
2953
+ operation: T.nilable(String),
2954
+ operation_id: T.nilable(String),
2955
+ schedule_to_close_timeout: T.nilable(Google::Protobuf::Duration),
2956
+ scheduled_time: T.nilable(Google::Protobuf::Timestamp),
2957
+ state: T.nilable(T.any(Symbol, String, Integer)),
2958
+ attempt: T.nilable(Integer),
2959
+ last_attempt_complete_time: T.nilable(Google::Protobuf::Timestamp),
2960
+ last_attempt_failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
2961
+ next_attempt_schedule_time: T.nilable(Google::Protobuf::Timestamp),
2962
+ cancellation_info: T.nilable(Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo),
2963
+ scheduled_event_id: T.nilable(Integer),
2964
+ blocked_reason: T.nilable(String),
2965
+ operation_token: T.nilable(String),
2966
+ schedule_to_start_timeout: T.nilable(Google::Protobuf::Duration),
2967
+ start_to_close_timeout: T.nilable(Google::Protobuf::Duration)
2968
+ ).void
2969
+ end
2970
+ def initialize(
2971
+ endpoint: "",
2972
+ service: "",
2973
+ operation: "",
2974
+ operation_id: "",
2975
+ schedule_to_close_timeout: nil,
2976
+ scheduled_time: nil,
2977
+ state: :PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED,
2978
+ attempt: 0,
2979
+ last_attempt_complete_time: nil,
2980
+ last_attempt_failure: nil,
2981
+ next_attempt_schedule_time: nil,
2982
+ cancellation_info: nil,
2983
+ scheduled_event_id: 0,
2984
+ blocked_reason: "",
2985
+ operation_token: "",
2986
+ schedule_to_start_timeout: nil,
2987
+ start_to_close_timeout: nil
2988
+ )
2989
+ end
2990
+
2991
+ # Endpoint name.
2992
+ # Resolved to a URL via the cluster's endpoint registry.
2993
+ sig { returns(String) }
2994
+ def endpoint
2995
+ end
2996
+
2997
+ # Endpoint name.
2998
+ # Resolved to a URL via the cluster's endpoint registry.
2999
+ sig { params(value: String).void }
3000
+ def endpoint=(value)
3001
+ end
3002
+
3003
+ # Endpoint name.
3004
+ # Resolved to a URL via the cluster's endpoint registry.
3005
+ sig { void }
3006
+ def clear_endpoint
3007
+ end
3008
+
3009
+ # Service name.
3010
+ sig { returns(String) }
3011
+ def service
3012
+ end
3013
+
3014
+ # Service name.
3015
+ sig { params(value: String).void }
3016
+ def service=(value)
3017
+ end
3018
+
3019
+ # Service name.
3020
+ sig { void }
3021
+ def clear_service
3022
+ end
3023
+
3024
+ # Operation name.
3025
+ sig { returns(String) }
3026
+ def operation
3027
+ end
3028
+
3029
+ # Operation name.
3030
+ sig { params(value: String).void }
3031
+ def operation=(value)
3032
+ end
3033
+
3034
+ # Operation name.
3035
+ sig { void }
3036
+ def clear_operation
3037
+ end
3038
+
3039
+ # Operation ID. Only set for asynchronous operations after a successful StartOperation call.
3040
+ #
3041
+ # Deprecated. Renamed to operation_token.
3042
+ sig { returns(String) }
3043
+ def operation_id
3044
+ end
3045
+
3046
+ # Operation ID. Only set for asynchronous operations after a successful StartOperation call.
3047
+ #
3048
+ # Deprecated. Renamed to operation_token.
3049
+ sig { params(value: String).void }
3050
+ def operation_id=(value)
3051
+ end
3052
+
3053
+ # Operation ID. Only set for asynchronous operations after a successful StartOperation call.
3054
+ #
3055
+ # Deprecated. Renamed to operation_token.
3056
+ sig { void }
3057
+ def clear_operation_id
3058
+ end
3059
+
3060
+ # Schedule-to-close timeout for this operation.
3061
+ # This is the only timeout settable by a workflow.
3062
+ # (-- api-linter: core::0140::prepositions=disabled
3063
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
3064
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
3065
+ def schedule_to_close_timeout
3066
+ end
3067
+
3068
+ # Schedule-to-close timeout for this operation.
3069
+ # This is the only timeout settable by a workflow.
3070
+ # (-- api-linter: core::0140::prepositions=disabled
3071
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
3072
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
3073
+ def schedule_to_close_timeout=(value)
3074
+ end
3075
+
3076
+ # Schedule-to-close timeout for this operation.
3077
+ # This is the only timeout settable by a workflow.
3078
+ # (-- api-linter: core::0140::prepositions=disabled
3079
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
3080
+ sig { void }
3081
+ def clear_schedule_to_close_timeout
3082
+ end
3083
+
3084
+ # The time when the operation was scheduled.
3085
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
3086
+ def scheduled_time
3087
+ end
3088
+
3089
+ # The time when the operation was scheduled.
3090
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
3091
+ def scheduled_time=(value)
3092
+ end
3093
+
3094
+ # The time when the operation was scheduled.
3095
+ sig { void }
3096
+ def clear_scheduled_time
3097
+ end
3098
+
3099
+ sig { returns(T.any(Symbol, Integer)) }
3100
+ def state
3101
+ end
3102
+
3103
+ sig { params(value: T.any(Symbol, String, Integer)).void }
3104
+ def state=(value)
3105
+ end
3106
+
3107
+ sig { void }
3108
+ def clear_state
3109
+ end
3110
+
3111
+ # The number of attempts made to deliver the start operation request.
3112
+ # This number is approximate, it is incremented when a task is added to the history queue.
3113
+ # In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task
3114
+ # was never executed.
3115
+ sig { returns(Integer) }
3116
+ def attempt
3117
+ end
3118
+
3119
+ # The number of attempts made to deliver the start operation request.
3120
+ # This number is approximate, it is incremented when a task is added to the history queue.
3121
+ # In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task
3122
+ # was never executed.
3123
+ sig { params(value: Integer).void }
3124
+ def attempt=(value)
3125
+ end
3126
+
3127
+ # The number of attempts made to deliver the start operation request.
3128
+ # This number is approximate, it is incremented when a task is added to the history queue.
3129
+ # In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task
3130
+ # was never executed.
3131
+ sig { void }
3132
+ def clear_attempt
3133
+ end
3134
+
3135
+ # The time when the last attempt completed.
3136
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
3137
+ def last_attempt_complete_time
3138
+ end
3139
+
3140
+ # The time when the last attempt completed.
3141
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
3142
+ def last_attempt_complete_time=(value)
3143
+ end
3144
+
3145
+ # The time when the last attempt completed.
3146
+ sig { void }
3147
+ def clear_last_attempt_complete_time
3148
+ end
3149
+
3150
+ # The last attempt's failure, if any.
3151
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
3152
+ def last_attempt_failure
3153
+ end
3154
+
3155
+ # The last attempt's failure, if any.
3156
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
3157
+ def last_attempt_failure=(value)
3158
+ end
3159
+
3160
+ # The last attempt's failure, if any.
3161
+ sig { void }
3162
+ def clear_last_attempt_failure
3163
+ end
3164
+
3165
+ # The time when the next attempt is scheduled.
3166
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
3167
+ def next_attempt_schedule_time
3168
+ end
3169
+
3170
+ # The time when the next attempt is scheduled.
3171
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
3172
+ def next_attempt_schedule_time=(value)
3173
+ end
3174
+
3175
+ # The time when the next attempt is scheduled.
3176
+ sig { void }
3177
+ def clear_next_attempt_schedule_time
3178
+ end
3179
+
3180
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo)) }
3181
+ def cancellation_info
3182
+ end
3183
+
3184
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo)).void }
3185
+ def cancellation_info=(value)
3186
+ end
3187
+
3188
+ sig { void }
3189
+ def clear_cancellation_info
3190
+ end
3191
+
3192
+ # The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the
3193
+ # DescribeWorkflowExecution response with workflow history.
3194
+ sig { returns(Integer) }
3195
+ def scheduled_event_id
3196
+ end
3197
+
3198
+ # The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the
3199
+ # DescribeWorkflowExecution response with workflow history.
3200
+ sig { params(value: Integer).void }
3201
+ def scheduled_event_id=(value)
3202
+ end
3203
+
3204
+ # The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the
3205
+ # DescribeWorkflowExecution response with workflow history.
3206
+ sig { void }
3207
+ def clear_scheduled_event_id
3208
+ end
3209
+
3210
+ # If the state is BLOCKED, blocked reason provides additional information.
3211
+ sig { returns(String) }
3212
+ def blocked_reason
3213
+ end
3214
+
3215
+ # If the state is BLOCKED, blocked reason provides additional information.
3216
+ sig { params(value: String).void }
3217
+ def blocked_reason=(value)
3218
+ end
3219
+
3220
+ # If the state is BLOCKED, blocked reason provides additional information.
3221
+ sig { void }
3222
+ def clear_blocked_reason
3223
+ end
3224
+
3225
+ # Operation token. Only set for asynchronous operations after a successful StartOperation call.
3226
+ sig { returns(String) }
3227
+ def operation_token
3228
+ end
3229
+
3230
+ # Operation token. Only set for asynchronous operations after a successful StartOperation call.
3231
+ sig { params(value: String).void }
3232
+ def operation_token=(value)
3233
+ end
3234
+
3235
+ # Operation token. Only set for asynchronous operations after a successful StartOperation call.
3236
+ sig { void }
3237
+ def clear_operation_token
3238
+ end
3239
+
3240
+ # Schedule-to-start timeout for this operation.
3241
+ # (-- api-linter: core::0140::prepositions=disabled
3242
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
3243
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
3244
+ def schedule_to_start_timeout
3245
+ end
3246
+
3247
+ # Schedule-to-start timeout for this operation.
3248
+ # (-- api-linter: core::0140::prepositions=disabled
3249
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
3250
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
3251
+ def schedule_to_start_timeout=(value)
3252
+ end
3253
+
3254
+ # Schedule-to-start timeout for this operation.
3255
+ # (-- api-linter: core::0140::prepositions=disabled
3256
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
3257
+ sig { void }
3258
+ def clear_schedule_to_start_timeout
3259
+ end
3260
+
3261
+ # Start-to-close timeout for this operation.
3262
+ # (-- api-linter: core::0140::prepositions=disabled
3263
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
3264
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
3265
+ def start_to_close_timeout
3266
+ end
3267
+
3268
+ # Start-to-close timeout for this operation.
3269
+ # (-- api-linter: core::0140::prepositions=disabled
3270
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
3271
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
3272
+ def start_to_close_timeout=(value)
3273
+ end
3274
+
3275
+ # Start-to-close timeout for this operation.
3276
+ # (-- api-linter: core::0140::prepositions=disabled
3277
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
3278
+ sig { void }
3279
+ def clear_start_to_close_timeout
3280
+ end
3281
+
3282
+ sig { params(field: String).returns(T.untyped) }
3283
+ def [](field)
3284
+ end
3285
+
3286
+ sig { params(field: String, value: T.untyped).void }
3287
+ def []=(field, value)
3288
+ end
3289
+
3290
+ sig { returns(T::Hash[Symbol, T.untyped]) }
3291
+ def to_h
3292
+ end
3293
+
3294
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PendingNexusOperationInfo) }
3295
+ def self.decode(str)
3296
+ end
3297
+
3298
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingNexusOperationInfo).returns(String) }
3299
+ def self.encode(msg)
3300
+ end
3301
+
3302
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PendingNexusOperationInfo) }
3303
+ def self.decode_json(str, **kw)
3304
+ end
3305
+
3306
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingNexusOperationInfo, kw: T.untyped).returns(String) }
3307
+ def self.encode_json(msg, **kw)
3308
+ end
3309
+
3310
+ sig { returns(::Google::Protobuf::Descriptor) }
3311
+ def self.descriptor
3312
+ end
3313
+ end
3314
+
3315
+ # NexusOperationCancellationInfo contains the state of a nexus operation cancellation.
3316
+ class Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo
3317
+ include ::Google::Protobuf::MessageExts
3318
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3319
+
3320
+ sig do
3321
+ params(
3322
+ requested_time: T.nilable(Google::Protobuf::Timestamp),
3323
+ state: T.nilable(T.any(Symbol, String, Integer)),
3324
+ attempt: T.nilable(Integer),
3325
+ last_attempt_complete_time: T.nilable(Google::Protobuf::Timestamp),
3326
+ last_attempt_failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
3327
+ next_attempt_schedule_time: T.nilable(Google::Protobuf::Timestamp),
3328
+ blocked_reason: T.nilable(String)
3329
+ ).void
3330
+ end
3331
+ def initialize(
3332
+ requested_time: nil,
3333
+ state: :NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED,
3334
+ attempt: 0,
3335
+ last_attempt_complete_time: nil,
3336
+ last_attempt_failure: nil,
3337
+ next_attempt_schedule_time: nil,
3338
+ blocked_reason: ""
3339
+ )
3340
+ end
3341
+
3342
+ # The time when cancellation was requested.
3343
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
3344
+ def requested_time
3345
+ end
3346
+
3347
+ # The time when cancellation was requested.
3348
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
3349
+ def requested_time=(value)
3350
+ end
3351
+
3352
+ # The time when cancellation was requested.
3353
+ sig { void }
3354
+ def clear_requested_time
3355
+ end
3356
+
3357
+ sig { returns(T.any(Symbol, Integer)) }
3358
+ def state
3359
+ end
3360
+
3361
+ sig { params(value: T.any(Symbol, String, Integer)).void }
3362
+ def state=(value)
3363
+ end
3364
+
3365
+ sig { void }
3366
+ def clear_state
3367
+ end
3368
+
3369
+ # The number of attempts made to deliver the cancel operation request.
3370
+ # This number represents a minimum bound since the attempt is incremented after the request completes.
3371
+ sig { returns(Integer) }
3372
+ def attempt
3373
+ end
3374
+
3375
+ # The number of attempts made to deliver the cancel operation request.
3376
+ # This number represents a minimum bound since the attempt is incremented after the request completes.
3377
+ sig { params(value: Integer).void }
3378
+ def attempt=(value)
3379
+ end
3380
+
3381
+ # The number of attempts made to deliver the cancel operation request.
3382
+ # This number represents a minimum bound since the attempt is incremented after the request completes.
3383
+ sig { void }
3384
+ def clear_attempt
3385
+ end
3386
+
3387
+ # The time when the last attempt completed.
3388
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
3389
+ def last_attempt_complete_time
3390
+ end
3391
+
3392
+ # The time when the last attempt completed.
3393
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
3394
+ def last_attempt_complete_time=(value)
3395
+ end
3396
+
3397
+ # The time when the last attempt completed.
3398
+ sig { void }
3399
+ def clear_last_attempt_complete_time
3400
+ end
3401
+
3402
+ # The last attempt's failure, if any.
3403
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
3404
+ def last_attempt_failure
3405
+ end
3406
+
3407
+ # The last attempt's failure, if any.
3408
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
3409
+ def last_attempt_failure=(value)
3410
+ end
3411
+
3412
+ # The last attempt's failure, if any.
3413
+ sig { void }
3414
+ def clear_last_attempt_failure
3415
+ end
3416
+
3417
+ # The time when the next attempt is scheduled.
3418
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
3419
+ def next_attempt_schedule_time
3420
+ end
3421
+
3422
+ # The time when the next attempt is scheduled.
3423
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
3424
+ def next_attempt_schedule_time=(value)
3425
+ end
3426
+
3427
+ # The time when the next attempt is scheduled.
3428
+ sig { void }
3429
+ def clear_next_attempt_schedule_time
3430
+ end
3431
+
3432
+ # If the state is BLOCKED, blocked reason provides additional information.
3433
+ sig { returns(String) }
3434
+ def blocked_reason
3435
+ end
3436
+
3437
+ # If the state is BLOCKED, blocked reason provides additional information.
3438
+ sig { params(value: String).void }
3439
+ def blocked_reason=(value)
3440
+ end
3441
+
3442
+ # If the state is BLOCKED, blocked reason provides additional information.
3443
+ sig { void }
3444
+ def clear_blocked_reason
3445
+ end
3446
+
3447
+ sig { params(field: String).returns(T.untyped) }
3448
+ def [](field)
3449
+ end
3450
+
3451
+ sig { params(field: String, value: T.untyped).void }
3452
+ def []=(field, value)
3453
+ end
3454
+
3455
+ sig { returns(T::Hash[Symbol, T.untyped]) }
3456
+ def to_h
3457
+ end
3458
+
3459
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo) }
3460
+ def self.decode(str)
3461
+ end
3462
+
3463
+ sig { params(msg: Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo).returns(String) }
3464
+ def self.encode(msg)
3465
+ end
3466
+
3467
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo) }
3468
+ def self.decode_json(str, **kw)
3469
+ end
3470
+
3471
+ sig { params(msg: Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo, kw: T.untyped).returns(String) }
3472
+ def self.encode_json(msg, **kw)
3473
+ end
3474
+
3475
+ sig { returns(::Google::Protobuf::Descriptor) }
3476
+ def self.descriptor
3477
+ end
3478
+ end
3479
+
3480
+ class Temporalio::Api::Workflow::V1::WorkflowExecutionOptions
3481
+ include ::Google::Protobuf::MessageExts
3482
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3483
+
3484
+ sig do
3485
+ params(
3486
+ versioning_override: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride),
3487
+ priority: T.nilable(Temporalio::Api::Common::V1::Priority),
3488
+ time_skipping_config: T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)
3489
+ ).void
3490
+ end
3491
+ def initialize(
3492
+ versioning_override: nil,
3493
+ priority: nil,
3494
+ time_skipping_config: nil
3495
+ )
3496
+ end
3497
+
3498
+ # If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
3499
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)) }
3500
+ def versioning_override
3501
+ end
3502
+
3503
+ # If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
3504
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)).void }
3505
+ def versioning_override=(value)
3506
+ end
3507
+
3508
+ # If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
3509
+ sig { void }
3510
+ def clear_versioning_override
3511
+ end
3512
+
3513
+ # If set, overrides the workflow's priority sent by the SDK.
3514
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
3515
+ def priority
3516
+ end
3517
+
3518
+ # If set, overrides the workflow's priority sent by the SDK.
3519
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
3520
+ def priority=(value)
3521
+ end
3522
+
3523
+ # If set, overrides the workflow's priority sent by the SDK.
3524
+ sig { void }
3525
+ def clear_priority
3526
+ end
3527
+
3528
+ # The time-skipping configuration for this workflow execution.
3529
+ # When `fast_forward` is set, time will be fast-forwarded to a future point relative
3530
+ # to the current workflow timestamp. Each call takes effect, even if
3531
+ # `fast_forward` is set to the same duration, since the target time is recalculated
3532
+ # from the current timestamp on every call.
3533
+ #
3534
+ # This field must be updated as a whole; updating individual sub-fields is not supported.
3535
+ # When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`,
3536
+ # `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
3537
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)) }
3538
+ def time_skipping_config
3539
+ end
3540
+
3541
+ # The time-skipping configuration for this workflow execution.
3542
+ # When `fast_forward` is set, time will be fast-forwarded to a future point relative
3543
+ # to the current workflow timestamp. Each call takes effect, even if
3544
+ # `fast_forward` is set to the same duration, since the target time is recalculated
3545
+ # from the current timestamp on every call.
3546
+ #
3547
+ # This field must be updated as a whole; updating individual sub-fields is not supported.
3548
+ # When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`,
3549
+ # `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
3550
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)).void }
3551
+ def time_skipping_config=(value)
3552
+ end
3553
+
3554
+ # The time-skipping configuration for this workflow execution.
3555
+ # When `fast_forward` is set, time will be fast-forwarded to a future point relative
3556
+ # to the current workflow timestamp. Each call takes effect, even if
3557
+ # `fast_forward` is set to the same duration, since the target time is recalculated
3558
+ # from the current timestamp on every call.
3559
+ #
3560
+ # This field must be updated as a whole; updating individual sub-fields is not supported.
3561
+ # When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`,
3562
+ # `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
3563
+ sig { void }
3564
+ def clear_time_skipping_config
3565
+ end
3566
+
3567
+ sig { params(field: String).returns(T.untyped) }
3568
+ def [](field)
3569
+ end
3570
+
3571
+ sig { params(field: String, value: T.untyped).void }
3572
+ def []=(field, value)
3573
+ end
3574
+
3575
+ sig { returns(T::Hash[Symbol, T.untyped]) }
3576
+ def to_h
3577
+ end
3578
+
3579
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionOptions) }
3580
+ def self.decode(str)
3581
+ end
3582
+
3583
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionOptions).returns(String) }
3584
+ def self.encode(msg)
3585
+ end
3586
+
3587
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionOptions) }
3588
+ def self.decode_json(str, **kw)
3589
+ end
3590
+
3591
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionOptions, kw: T.untyped).returns(String) }
3592
+ def self.encode_json(msg, **kw)
3593
+ end
3594
+
3595
+ sig { returns(::Google::Protobuf::Descriptor) }
3596
+ def self.descriptor
3597
+ end
3598
+ end
3599
+
3600
+ # Used to override the versioning behavior (and pinned deployment version, if applicable) of a
3601
+ # specific workflow execution. If set, this override takes precedence over worker-sent values.
3602
+ # See `WorkflowExecutionInfo.VersioningInfo` for more information.
3603
+ #
3604
+ # To remove the override, call `UpdateWorkflowExecutionOptions` with a null
3605
+ # `VersioningOverride`, and use the `update_mask` to indicate that it should be mutated.
3606
+ #
3607
+ # Pinned behavior overrides are automatically inherited by child workflows, workflow retries, continue-as-new
3608
+ # workflows, and cron workflows.
3609
+ class Temporalio::Api::Workflow::V1::VersioningOverride
3610
+ include ::Google::Protobuf::MessageExts
3611
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3612
+
3613
+ sig do
3614
+ params(
3615
+ pinned: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride),
3616
+ auto_upgrade: T.nilable(T::Boolean),
3617
+ one_time: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride),
3618
+ behavior: T.nilable(T.any(Symbol, String, Integer)),
3619
+ deployment: T.nilable(Temporalio::Api::Deployment::V1::Deployment),
3620
+ pinned_version: T.nilable(String)
3621
+ ).void
3622
+ end
3623
+ def initialize(
3624
+ pinned: nil,
3625
+ auto_upgrade: false,
3626
+ one_time: nil,
3627
+ behavior: :VERSIONING_BEHAVIOR_UNSPECIFIED,
3628
+ deployment: nil,
3629
+ pinned_version: ""
3630
+ )
3631
+ end
3632
+
3633
+ # Override the workflow to have Pinned behavior. This is a sticky override:
3634
+ # Workflow Tasks continue to route according to this override until it is
3635
+ # explicitly removed.
3636
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride)) }
3637
+ def pinned
3638
+ end
3639
+
3640
+ # Override the workflow to have Pinned behavior. This is a sticky override:
3641
+ # Workflow Tasks continue to route according to this override until it is
3642
+ # explicitly removed.
3643
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride)).void }
3644
+ def pinned=(value)
3645
+ end
3646
+
3647
+ # Override the workflow to have Pinned behavior. This is a sticky override:
3648
+ # Workflow Tasks continue to route according to this override until it is
3649
+ # explicitly removed.
3650
+ sig { void }
3651
+ def clear_pinned
3652
+ end
3653
+
3654
+ # Override the workflow to have AutoUpgrade behavior.
3655
+ sig { returns(T::Boolean) }
3656
+ def auto_upgrade
3657
+ end
3658
+
3659
+ # Override the workflow to have AutoUpgrade behavior.
3660
+ sig { params(value: T::Boolean).void }
3661
+ def auto_upgrade=(value)
3662
+ end
3663
+
3664
+ # Override the workflow to have AutoUpgrade behavior.
3665
+ sig { void }
3666
+ def clear_auto_upgrade
3667
+ end
3668
+
3669
+ # Override Workflow Task routing to a specific Worker Deployment Version until
3670
+ # one Workflow Task completes there. After completion, the workflow execution's
3671
+ # Versioning Behavior and Deployment Version come from the worker's completion
3672
+ # response.
3673
+ # (-- api-linter: core::0142::time-field-type=disabled
3674
+ # aip.dev/not-precedent: one_time describes one-time routing semantics, not a timestamp or duration. --)
3675
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride)) }
3676
+ def one_time
3677
+ end
3678
+
3679
+ # Override Workflow Task routing to a specific Worker Deployment Version until
3680
+ # one Workflow Task completes there. After completion, the workflow execution's
3681
+ # Versioning Behavior and Deployment Version come from the worker's completion
3682
+ # response.
3683
+ # (-- api-linter: core::0142::time-field-type=disabled
3684
+ # aip.dev/not-precedent: one_time describes one-time routing semantics, not a timestamp or duration. --)
3685
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride)).void }
3686
+ def one_time=(value)
3687
+ end
3688
+
3689
+ # Override Workflow Task routing to a specific Worker Deployment Version until
3690
+ # one Workflow Task completes there. After completion, the workflow execution's
3691
+ # Versioning Behavior and Deployment Version come from the worker's completion
3692
+ # response.
3693
+ # (-- api-linter: core::0142::time-field-type=disabled
3694
+ # aip.dev/not-precedent: one_time describes one-time routing semantics, not a timestamp or duration. --)
3695
+ sig { void }
3696
+ def clear_one_time
3697
+ end
3698
+
3699
+ # Required.
3700
+ # Deprecated. Use `override`.
3701
+ sig { returns(T.any(Symbol, Integer)) }
3702
+ def behavior
3703
+ end
3704
+
3705
+ # Required.
3706
+ # Deprecated. Use `override`.
3707
+ sig { params(value: T.any(Symbol, String, Integer)).void }
3708
+ def behavior=(value)
3709
+ end
3710
+
3711
+ # Required.
3712
+ # Deprecated. Use `override`.
3713
+ sig { void }
3714
+ def clear_behavior
3715
+ end
3716
+
3717
+ # Required if behavior is `PINNED`. Must be null if behavior is `AUTO_UPGRADE`.
3718
+ # Identifies the worker deployment to pin the workflow to.
3719
+ # Deprecated. Use `override.pinned.version`.
3720
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::Deployment)) }
3721
+ def deployment
3722
+ end
3723
+
3724
+ # Required if behavior is `PINNED`. Must be null if behavior is `AUTO_UPGRADE`.
3725
+ # Identifies the worker deployment to pin the workflow to.
3726
+ # Deprecated. Use `override.pinned.version`.
3727
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::Deployment)).void }
3728
+ def deployment=(value)
3729
+ end
3730
+
3731
+ # Required if behavior is `PINNED`. Must be null if behavior is `AUTO_UPGRADE`.
3732
+ # Identifies the worker deployment to pin the workflow to.
3733
+ # Deprecated. Use `override.pinned.version`.
3734
+ sig { void }
3735
+ def clear_deployment
3736
+ end
3737
+
3738
+ # Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`.
3739
+ # Identifies the worker deployment version to pin the workflow to, in the format
3740
+ # "<deployment_name>.<build_id>".
3741
+ # Deprecated. Use `override.pinned.version`.
3742
+ sig { returns(String) }
3743
+ def pinned_version
3744
+ end
3745
+
3746
+ # Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`.
3747
+ # Identifies the worker deployment version to pin the workflow to, in the format
3748
+ # "<deployment_name>.<build_id>".
3749
+ # Deprecated. Use `override.pinned.version`.
3750
+ sig { params(value: String).void }
3751
+ def pinned_version=(value)
3752
+ end
3753
+
3754
+ # Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`.
3755
+ # Identifies the worker deployment version to pin the workflow to, in the format
3756
+ # "<deployment_name>.<build_id>".
3757
+ # Deprecated. Use `override.pinned.version`.
3758
+ sig { void }
3759
+ def clear_pinned_version
3760
+ end
3761
+
3762
+ sig { returns(T.nilable(Symbol)) }
3763
+ def override
3764
+ end
3765
+
3766
+ sig { params(field: String).returns(T.untyped) }
3767
+ def [](field)
3768
+ end
3769
+
3770
+ sig { params(field: String, value: T.untyped).void }
3771
+ def []=(field, value)
3772
+ end
3773
+
3774
+ sig { returns(T::Hash[Symbol, T.untyped]) }
3775
+ def to_h
3776
+ end
3777
+
3778
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::VersioningOverride) }
3779
+ def self.decode(str)
3780
+ end
3781
+
3782
+ sig { params(msg: Temporalio::Api::Workflow::V1::VersioningOverride).returns(String) }
3783
+ def self.encode(msg)
3784
+ end
3785
+
3786
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::VersioningOverride) }
3787
+ def self.decode_json(str, **kw)
3788
+ end
3789
+
3790
+ sig { params(msg: Temporalio::Api::Workflow::V1::VersioningOverride, kw: T.untyped).returns(String) }
3791
+ def self.encode_json(msg, **kw)
3792
+ end
3793
+
3794
+ sig { returns(::Google::Protobuf::Descriptor) }
3795
+ def self.descriptor
3796
+ end
3797
+ end
3798
+
3799
+ # When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and
3800
+ # there is already an existing running workflow, OnConflictOptions defines actions to be taken on
3801
+ # the existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent
3802
+ # history event in the running workflow with the changes requested in this object.
3803
+ class Temporalio::Api::Workflow::V1::OnConflictOptions
3804
+ include ::Google::Protobuf::MessageExts
3805
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3806
+
3807
+ sig do
3808
+ params(
3809
+ attach_request_id: T.nilable(T::Boolean),
3810
+ attach_completion_callbacks: T.nilable(T::Boolean),
3811
+ attach_links: T.nilable(T::Boolean)
3812
+ ).void
3813
+ end
3814
+ def initialize(
3815
+ attach_request_id: false,
3816
+ attach_completion_callbacks: false,
3817
+ attach_links: false
3818
+ )
3819
+ end
3820
+
3821
+ # Attaches the request ID to the running workflow.
3822
+ sig { returns(T::Boolean) }
3823
+ def attach_request_id
3824
+ end
3825
+
3826
+ # Attaches the request ID to the running workflow.
3827
+ sig { params(value: T::Boolean).void }
3828
+ def attach_request_id=(value)
3829
+ end
3830
+
3831
+ # Attaches the request ID to the running workflow.
3832
+ sig { void }
3833
+ def clear_attach_request_id
3834
+ end
3835
+
3836
+ # Attaches the completion callbacks to the running workflow.
3837
+ sig { returns(T::Boolean) }
3838
+ def attach_completion_callbacks
3839
+ end
3840
+
3841
+ # Attaches the completion callbacks to the running workflow.
3842
+ sig { params(value: T::Boolean).void }
3843
+ def attach_completion_callbacks=(value)
3844
+ end
3845
+
3846
+ # Attaches the completion callbacks to the running workflow.
3847
+ sig { void }
3848
+ def clear_attach_completion_callbacks
3849
+ end
3850
+
3851
+ # Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
3852
+ sig { returns(T::Boolean) }
3853
+ def attach_links
3854
+ end
3855
+
3856
+ # Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
3857
+ sig { params(value: T::Boolean).void }
3858
+ def attach_links=(value)
3859
+ end
3860
+
3861
+ # Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
3862
+ sig { void }
3863
+ def clear_attach_links
3864
+ end
3865
+
3866
+ sig { params(field: String).returns(T.untyped) }
3867
+ def [](field)
3868
+ end
3869
+
3870
+ sig { params(field: String, value: T.untyped).void }
3871
+ def []=(field, value)
3872
+ end
3873
+
3874
+ sig { returns(T::Hash[Symbol, T.untyped]) }
3875
+ def to_h
3876
+ end
3877
+
3878
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::OnConflictOptions) }
3879
+ def self.decode(str)
3880
+ end
3881
+
3882
+ sig { params(msg: Temporalio::Api::Workflow::V1::OnConflictOptions).returns(String) }
3883
+ def self.encode(msg)
3884
+ end
3885
+
3886
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::OnConflictOptions) }
3887
+ def self.decode_json(str, **kw)
3888
+ end
3889
+
3890
+ sig { params(msg: Temporalio::Api::Workflow::V1::OnConflictOptions, kw: T.untyped).returns(String) }
3891
+ def self.encode_json(msg, **kw)
3892
+ end
3893
+
3894
+ sig { returns(::Google::Protobuf::Descriptor) }
3895
+ def self.descriptor
3896
+ end
3897
+ end
3898
+
3899
+ # RequestIdInfo contains details of a request ID.
3900
+ class Temporalio::Api::Workflow::V1::RequestIdInfo
3901
+ include ::Google::Protobuf::MessageExts
3902
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3903
+
3904
+ sig do
3905
+ params(
3906
+ event_type: T.nilable(T.any(Symbol, String, Integer)),
3907
+ event_id: T.nilable(Integer),
3908
+ buffered: T.nilable(T::Boolean)
3909
+ ).void
3910
+ end
3911
+ def initialize(
3912
+ event_type: :EVENT_TYPE_UNSPECIFIED,
3913
+ event_id: 0,
3914
+ buffered: false
3915
+ )
3916
+ end
3917
+
3918
+ # The event type of the history event generated by the request.
3919
+ sig { returns(T.any(Symbol, Integer)) }
3920
+ def event_type
3921
+ end
3922
+
3923
+ # The event type of the history event generated by the request.
3924
+ sig { params(value: T.any(Symbol, String, Integer)).void }
3925
+ def event_type=(value)
3926
+ end
3927
+
3928
+ # The event type of the history event generated by the request.
3929
+ sig { void }
3930
+ def clear_event_type
3931
+ end
3932
+
3933
+ # The event id of the history event generated by the request. It's possible the event ID is not
3934
+ # known (unflushed buffered event). In this case, the value will be zero or a negative value,
3935
+ # representing an invalid ID.
3936
+ sig { returns(Integer) }
3937
+ def event_id
3938
+ end
3939
+
3940
+ # The event id of the history event generated by the request. It's possible the event ID is not
3941
+ # known (unflushed buffered event). In this case, the value will be zero or a negative value,
3942
+ # representing an invalid ID.
3943
+ sig { params(value: Integer).void }
3944
+ def event_id=(value)
3945
+ end
3946
+
3947
+ # The event id of the history event generated by the request. It's possible the event ID is not
3948
+ # known (unflushed buffered event). In this case, the value will be zero or a negative value,
3949
+ # representing an invalid ID.
3950
+ sig { void }
3951
+ def clear_event_id
3952
+ end
3953
+
3954
+ # Indicate if the request is still buffered. If so, the event ID is not known and its value
3955
+ # will be an invalid event ID.
3956
+ sig { returns(T::Boolean) }
3957
+ def buffered
3958
+ end
3959
+
3960
+ # Indicate if the request is still buffered. If so, the event ID is not known and its value
3961
+ # will be an invalid event ID.
3962
+ sig { params(value: T::Boolean).void }
3963
+ def buffered=(value)
3964
+ end
3965
+
3966
+ # Indicate if the request is still buffered. If so, the event ID is not known and its value
3967
+ # will be an invalid event ID.
3968
+ sig { void }
3969
+ def clear_buffered
3970
+ end
3971
+
3972
+ sig { params(field: String).returns(T.untyped) }
3973
+ def [](field)
3974
+ end
3975
+
3976
+ sig { params(field: String, value: T.untyped).void }
3977
+ def []=(field, value)
3978
+ end
3979
+
3980
+ sig { returns(T::Hash[Symbol, T.untyped]) }
3981
+ def to_h
3982
+ end
3983
+
3984
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::RequestIdInfo) }
3985
+ def self.decode(str)
3986
+ end
3987
+
3988
+ sig { params(msg: Temporalio::Api::Workflow::V1::RequestIdInfo).returns(String) }
3989
+ def self.encode(msg)
3990
+ end
3991
+
3992
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::RequestIdInfo) }
3993
+ def self.decode_json(str, **kw)
3994
+ end
3995
+
3996
+ sig { params(msg: Temporalio::Api::Workflow::V1::RequestIdInfo, kw: T.untyped).returns(String) }
3997
+ def self.encode_json(msg, **kw)
3998
+ end
3999
+
4000
+ sig { returns(::Google::Protobuf::Descriptor) }
4001
+ def self.descriptor
4002
+ end
4003
+ end
4004
+
4005
+ # PostResetOperation represents an operation to be performed on the new workflow execution after a workflow reset.
4006
+ class Temporalio::Api::Workflow::V1::PostResetOperation
4007
+ include ::Google::Protobuf::MessageExts
4008
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4009
+
4010
+ sig do
4011
+ params(
4012
+ signal_workflow: T.nilable(Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow),
4013
+ update_workflow_options: T.nilable(Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions)
4014
+ ).void
4015
+ end
4016
+ def initialize(
4017
+ signal_workflow: nil,
4018
+ update_workflow_options: nil
4019
+ )
4020
+ end
4021
+
4022
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow)) }
4023
+ def signal_workflow
4024
+ end
4025
+
4026
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow)).void }
4027
+ def signal_workflow=(value)
4028
+ end
4029
+
4030
+ sig { void }
4031
+ def clear_signal_workflow
4032
+ end
4033
+
4034
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions)) }
4035
+ def update_workflow_options
4036
+ end
4037
+
4038
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions)).void }
4039
+ def update_workflow_options=(value)
4040
+ end
4041
+
4042
+ sig { void }
4043
+ def clear_update_workflow_options
4044
+ end
4045
+
4046
+ sig { returns(T.nilable(Symbol)) }
4047
+ def variant
4048
+ end
4049
+
4050
+ sig { params(field: String).returns(T.untyped) }
4051
+ def [](field)
4052
+ end
4053
+
4054
+ sig { params(field: String, value: T.untyped).void }
4055
+ def []=(field, value)
4056
+ end
4057
+
4058
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4059
+ def to_h
4060
+ end
4061
+
4062
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PostResetOperation) }
4063
+ def self.decode(str)
4064
+ end
4065
+
4066
+ sig { params(msg: Temporalio::Api::Workflow::V1::PostResetOperation).returns(String) }
4067
+ def self.encode(msg)
4068
+ end
4069
+
4070
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PostResetOperation) }
4071
+ def self.decode_json(str, **kw)
4072
+ end
4073
+
4074
+ sig { params(msg: Temporalio::Api::Workflow::V1::PostResetOperation, kw: T.untyped).returns(String) }
4075
+ def self.encode_json(msg, **kw)
4076
+ end
4077
+
4078
+ sig { returns(::Google::Protobuf::Descriptor) }
4079
+ def self.descriptor
4080
+ end
4081
+ end
4082
+
4083
+ # WorkflowExecutionPauseInfo contains the information about a workflow execution pause.
4084
+ class Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo
4085
+ include ::Google::Protobuf::MessageExts
4086
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4087
+
4088
+ sig do
4089
+ params(
4090
+ identity: T.nilable(String),
4091
+ paused_time: T.nilable(Google::Protobuf::Timestamp),
4092
+ reason: T.nilable(String)
4093
+ ).void
4094
+ end
4095
+ def initialize(
4096
+ identity: "",
4097
+ paused_time: nil,
4098
+ reason: ""
4099
+ )
4100
+ end
4101
+
4102
+ # The identity of the client who paused the workflow execution.
4103
+ sig { returns(String) }
4104
+ def identity
4105
+ end
4106
+
4107
+ # The identity of the client who paused the workflow execution.
4108
+ sig { params(value: String).void }
4109
+ def identity=(value)
4110
+ end
4111
+
4112
+ # The identity of the client who paused the workflow execution.
4113
+ sig { void }
4114
+ def clear_identity
4115
+ end
4116
+
4117
+ # The time when the workflow execution was paused.
4118
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
4119
+ def paused_time
4120
+ end
4121
+
4122
+ # The time when the workflow execution was paused.
4123
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
4124
+ def paused_time=(value)
4125
+ end
4126
+
4127
+ # The time when the workflow execution was paused.
4128
+ sig { void }
4129
+ def clear_paused_time
4130
+ end
4131
+
4132
+ # The reason for pausing the workflow execution.
4133
+ sig { returns(String) }
4134
+ def reason
4135
+ end
4136
+
4137
+ # The reason for pausing the workflow execution.
4138
+ sig { params(value: String).void }
4139
+ def reason=(value)
4140
+ end
4141
+
4142
+ # The reason for pausing the workflow execution.
4143
+ sig { void }
4144
+ def clear_reason
4145
+ end
4146
+
4147
+ sig { params(field: String).returns(T.untyped) }
4148
+ def [](field)
4149
+ end
4150
+
4151
+ sig { params(field: String, value: T.untyped).void }
4152
+ def []=(field, value)
4153
+ end
4154
+
4155
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4156
+ def to_h
4157
+ end
4158
+
4159
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo) }
4160
+ def self.decode(str)
4161
+ end
4162
+
4163
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo).returns(String) }
4164
+ def self.encode(msg)
4165
+ end
4166
+
4167
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo) }
4168
+ def self.decode_json(str, **kw)
4169
+ end
4170
+
4171
+ sig { params(msg: Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo, kw: T.untyped).returns(String) }
4172
+ def self.encode_json(msg, **kw)
4173
+ end
4174
+
4175
+ sig { returns(::Google::Protobuf::Descriptor) }
4176
+ def self.descriptor
4177
+ end
4178
+ end
4179
+
4180
+ class Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo
4181
+ include ::Google::Protobuf::MessageExts
4182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4183
+
4184
+ sig do
4185
+ params(
4186
+ pause_time: T.nilable(Google::Protobuf::Timestamp),
4187
+ manual: T.nilable(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual),
4188
+ rule: T.nilable(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule)
4189
+ ).void
4190
+ end
4191
+ def initialize(
4192
+ pause_time: nil,
4193
+ manual: nil,
4194
+ rule: nil
4195
+ )
4196
+ end
4197
+
4198
+ # The time when the activity was paused.
4199
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
4200
+ def pause_time
4201
+ end
4202
+
4203
+ # The time when the activity was paused.
4204
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
4205
+ def pause_time=(value)
4206
+ end
4207
+
4208
+ # The time when the activity was paused.
4209
+ sig { void }
4210
+ def clear_pause_time
4211
+ end
4212
+
4213
+ # activity was paused by the manual intervention
4214
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual)) }
4215
+ def manual
4216
+ end
4217
+
4218
+ # activity was paused by the manual intervention
4219
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual)).void }
4220
+ def manual=(value)
4221
+ end
4222
+
4223
+ # activity was paused by the manual intervention
4224
+ sig { void }
4225
+ def clear_manual
4226
+ end
4227
+
4228
+ # activity was paused by the rule
4229
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule)) }
4230
+ def rule
4231
+ end
4232
+
4233
+ # activity was paused by the rule
4234
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule)).void }
4235
+ def rule=(value)
4236
+ end
4237
+
4238
+ # activity was paused by the rule
4239
+ sig { void }
4240
+ def clear_rule
4241
+ end
4242
+
4243
+ sig { returns(T.nilable(Symbol)) }
4244
+ def paused_by
4245
+ end
4246
+
4247
+ sig { params(field: String).returns(T.untyped) }
4248
+ def [](field)
4249
+ end
4250
+
4251
+ sig { params(field: String, value: T.untyped).void }
4252
+ def []=(field, value)
4253
+ end
4254
+
4255
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4256
+ def to_h
4257
+ end
4258
+
4259
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo) }
4260
+ def self.decode(str)
4261
+ end
4262
+
4263
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo).returns(String) }
4264
+ def self.encode(msg)
4265
+ end
4266
+
4267
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo) }
4268
+ def self.decode_json(str, **kw)
4269
+ end
4270
+
4271
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo, kw: T.untyped).returns(String) }
4272
+ def self.encode_json(msg, **kw)
4273
+ end
4274
+
4275
+ sig { returns(::Google::Protobuf::Descriptor) }
4276
+ def self.descriptor
4277
+ end
4278
+ end
4279
+
4280
+ class Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual
4281
+ include ::Google::Protobuf::MessageExts
4282
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4283
+
4284
+ sig do
4285
+ params(
4286
+ identity: T.nilable(String),
4287
+ reason: T.nilable(String)
4288
+ ).void
4289
+ end
4290
+ def initialize(
4291
+ identity: "",
4292
+ reason: ""
4293
+ )
4294
+ end
4295
+
4296
+ # The identity of the actor that paused the activity.
4297
+ sig { returns(String) }
4298
+ def identity
4299
+ end
4300
+
4301
+ # The identity of the actor that paused the activity.
4302
+ sig { params(value: String).void }
4303
+ def identity=(value)
4304
+ end
4305
+
4306
+ # The identity of the actor that paused the activity.
4307
+ sig { void }
4308
+ def clear_identity
4309
+ end
4310
+
4311
+ # Reason for pausing the activity.
4312
+ sig { returns(String) }
4313
+ def reason
4314
+ end
4315
+
4316
+ # Reason for pausing the activity.
4317
+ sig { params(value: String).void }
4318
+ def reason=(value)
4319
+ end
4320
+
4321
+ # Reason for pausing the activity.
4322
+ sig { void }
4323
+ def clear_reason
4324
+ end
4325
+
4326
+ sig { params(field: String).returns(T.untyped) }
4327
+ def [](field)
4328
+ end
4329
+
4330
+ sig { params(field: String, value: T.untyped).void }
4331
+ def []=(field, value)
4332
+ end
4333
+
4334
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4335
+ def to_h
4336
+ end
4337
+
4338
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual) }
4339
+ def self.decode(str)
4340
+ end
4341
+
4342
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual).returns(String) }
4343
+ def self.encode(msg)
4344
+ end
4345
+
4346
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual) }
4347
+ def self.decode_json(str, **kw)
4348
+ end
4349
+
4350
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual, kw: T.untyped).returns(String) }
4351
+ def self.encode_json(msg, **kw)
4352
+ end
4353
+
4354
+ sig { returns(::Google::Protobuf::Descriptor) }
4355
+ def self.descriptor
4356
+ end
4357
+ end
4358
+
4359
+ class Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule
4360
+ include ::Google::Protobuf::MessageExts
4361
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4362
+
4363
+ sig do
4364
+ params(
4365
+ rule_id: T.nilable(String),
4366
+ identity: T.nilable(String),
4367
+ reason: T.nilable(String)
4368
+ ).void
4369
+ end
4370
+ def initialize(
4371
+ rule_id: "",
4372
+ identity: "",
4373
+ reason: ""
4374
+ )
4375
+ end
4376
+
4377
+ # The rule that paused the activity.
4378
+ sig { returns(String) }
4379
+ def rule_id
4380
+ end
4381
+
4382
+ # The rule that paused the activity.
4383
+ sig { params(value: String).void }
4384
+ def rule_id=(value)
4385
+ end
4386
+
4387
+ # The rule that paused the activity.
4388
+ sig { void }
4389
+ def clear_rule_id
4390
+ end
4391
+
4392
+ # The identity of the actor that created the rule.
4393
+ sig { returns(String) }
4394
+ def identity
4395
+ end
4396
+
4397
+ # The identity of the actor that created the rule.
4398
+ sig { params(value: String).void }
4399
+ def identity=(value)
4400
+ end
4401
+
4402
+ # The identity of the actor that created the rule.
4403
+ sig { void }
4404
+ def clear_identity
4405
+ end
4406
+
4407
+ # Reason why rule was created. Populated from rule description.
4408
+ sig { returns(String) }
4409
+ def reason
4410
+ end
4411
+
4412
+ # Reason why rule was created. Populated from rule description.
4413
+ sig { params(value: String).void }
4414
+ def reason=(value)
4415
+ end
4416
+
4417
+ # Reason why rule was created. Populated from rule description.
4418
+ sig { void }
4419
+ def clear_reason
4420
+ end
4421
+
4422
+ sig { params(field: String).returns(T.untyped) }
4423
+ def [](field)
4424
+ end
4425
+
4426
+ sig { params(field: String, value: T.untyped).void }
4427
+ def []=(field, value)
4428
+ end
4429
+
4430
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4431
+ def to_h
4432
+ end
4433
+
4434
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule) }
4435
+ def self.decode(str)
4436
+ end
4437
+
4438
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule).returns(String) }
4439
+ def self.encode(msg)
4440
+ end
4441
+
4442
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule) }
4443
+ def self.decode_json(str, **kw)
4444
+ end
4445
+
4446
+ sig { params(msg: Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule, kw: T.untyped).returns(String) }
4447
+ def self.encode_json(msg, **kw)
4448
+ end
4449
+
4450
+ sig { returns(::Google::Protobuf::Descriptor) }
4451
+ def self.descriptor
4452
+ end
4453
+ end
4454
+
4455
+ # Trigger for when the workflow is closed.
4456
+ class Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed
4457
+ include ::Google::Protobuf::MessageExts
4458
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4459
+
4460
+ sig {void}
4461
+ def initialize; end
4462
+
4463
+ sig { params(field: String).returns(T.untyped) }
4464
+ def [](field)
4465
+ end
4466
+
4467
+ sig { params(field: String, value: T.untyped).void }
4468
+ def []=(field, value)
4469
+ end
4470
+
4471
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4472
+ def to_h
4473
+ end
4474
+
4475
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed) }
4476
+ def self.decode(str)
4477
+ end
4478
+
4479
+ sig { params(msg: Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed).returns(String) }
4480
+ def self.encode(msg)
4481
+ end
4482
+
4483
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed) }
4484
+ def self.decode_json(str, **kw)
4485
+ end
4486
+
4487
+ sig { params(msg: Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed, kw: T.untyped).returns(String) }
4488
+ def self.encode_json(msg, **kw)
4489
+ end
4490
+
4491
+ sig { returns(::Google::Protobuf::Descriptor) }
4492
+ def self.descriptor
4493
+ end
4494
+ end
4495
+
4496
+ # Trigger for when a workflow update is completed.
4497
+ class Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted
4498
+ include ::Google::Protobuf::MessageExts
4499
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4500
+
4501
+ sig do
4502
+ params(
4503
+ update_id: T.nilable(String)
4504
+ ).void
4505
+ end
4506
+ def initialize(
4507
+ update_id: ""
4508
+ )
4509
+ end
4510
+
4511
+ sig { returns(String) }
4512
+ def update_id
4513
+ end
4514
+
4515
+ sig { params(value: String).void }
4516
+ def update_id=(value)
4517
+ end
4518
+
4519
+ sig { void }
4520
+ def clear_update_id
4521
+ end
4522
+
4523
+ sig { params(field: String).returns(T.untyped) }
4524
+ def [](field)
4525
+ end
4526
+
4527
+ sig { params(field: String, value: T.untyped).void }
4528
+ def []=(field, value)
4529
+ end
4530
+
4531
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4532
+ def to_h
4533
+ end
4534
+
4535
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted) }
4536
+ def self.decode(str)
4537
+ end
4538
+
4539
+ sig { params(msg: Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted).returns(String) }
4540
+ def self.encode(msg)
4541
+ end
4542
+
4543
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted) }
4544
+ def self.decode_json(str, **kw)
4545
+ end
4546
+
4547
+ sig { params(msg: Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted, kw: T.untyped).returns(String) }
4548
+ def self.encode_json(msg, **kw)
4549
+ end
4550
+
4551
+ sig { returns(::Google::Protobuf::Descriptor) }
4552
+ def self.descriptor
4553
+ end
4554
+ end
4555
+
4556
+ class Temporalio::Api::Workflow::V1::CallbackInfo::Trigger
4557
+ include ::Google::Protobuf::MessageExts
4558
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4559
+
4560
+ sig do
4561
+ params(
4562
+ workflow_closed: T.nilable(Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed),
4563
+ update_workflow_execution_completed: T.nilable(Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted)
4564
+ ).void
4565
+ end
4566
+ def initialize(
4567
+ workflow_closed: nil,
4568
+ update_workflow_execution_completed: nil
4569
+ )
4570
+ end
4571
+
4572
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed)) }
4573
+ def workflow_closed
4574
+ end
4575
+
4576
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed)).void }
4577
+ def workflow_closed=(value)
4578
+ end
4579
+
4580
+ sig { void }
4581
+ def clear_workflow_closed
4582
+ end
4583
+
4584
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted)) }
4585
+ def update_workflow_execution_completed
4586
+ end
4587
+
4588
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::CallbackInfo::UpdateWorkflowExecutionCompleted)).void }
4589
+ def update_workflow_execution_completed=(value)
4590
+ end
4591
+
4592
+ sig { void }
4593
+ def clear_update_workflow_execution_completed
4594
+ end
4595
+
4596
+ sig { returns(T.nilable(Symbol)) }
4597
+ def variant
4598
+ end
4599
+
4600
+ sig { params(field: String).returns(T.untyped) }
4601
+ def [](field)
4602
+ end
4603
+
4604
+ sig { params(field: String, value: T.untyped).void }
4605
+ def []=(field, value)
4606
+ end
4607
+
4608
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4609
+ def to_h
4610
+ end
4611
+
4612
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::CallbackInfo::Trigger) }
4613
+ def self.decode(str)
4614
+ end
4615
+
4616
+ sig { params(msg: Temporalio::Api::Workflow::V1::CallbackInfo::Trigger).returns(String) }
4617
+ def self.encode(msg)
4618
+ end
4619
+
4620
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::CallbackInfo::Trigger) }
4621
+ def self.decode_json(str, **kw)
4622
+ end
4623
+
4624
+ sig { params(msg: Temporalio::Api::Workflow::V1::CallbackInfo::Trigger, kw: T.untyped).returns(String) }
4625
+ def self.encode_json(msg, **kw)
4626
+ end
4627
+
4628
+ sig { returns(::Google::Protobuf::Descriptor) }
4629
+ def self.descriptor
4630
+ end
4631
+ end
4632
+
4633
+ class Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride
4634
+ include ::Google::Protobuf::MessageExts
4635
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4636
+
4637
+ sig do
4638
+ params(
4639
+ behavior: T.nilable(T.any(Symbol, String, Integer)),
4640
+ version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)
4641
+ ).void
4642
+ end
4643
+ def initialize(
4644
+ behavior: :PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED,
4645
+ version: nil
4646
+ )
4647
+ end
4648
+
4649
+ # Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED.
4650
+ # See `PinnedOverrideBehavior` for details.
4651
+ sig { returns(T.any(Symbol, Integer)) }
4652
+ def behavior
4653
+ end
4654
+
4655
+ # Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED.
4656
+ # See `PinnedOverrideBehavior` for details.
4657
+ sig { params(value: T.any(Symbol, String, Integer)).void }
4658
+ def behavior=(value)
4659
+ end
4660
+
4661
+ # Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED.
4662
+ # See `PinnedOverrideBehavior` for details.
4663
+ sig { void }
4664
+ def clear_behavior
4665
+ end
4666
+
4667
+ # Specifies the Worker Deployment Version to pin this workflow to.
4668
+ # Required if the target workflow is not already pinned to a version.
4669
+ #
4670
+ # If omitted and the target workflow is already pinned, the effective
4671
+ # pinned version will be the existing pinned version.
4672
+ #
4673
+ # If omitted and the target workflow is not pinned, the override request
4674
+ # will be rejected with a PreconditionFailed error.
4675
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
4676
+ def version
4677
+ end
4678
+
4679
+ # Specifies the Worker Deployment Version to pin this workflow to.
4680
+ # Required if the target workflow is not already pinned to a version.
4681
+ #
4682
+ # If omitted and the target workflow is already pinned, the effective
4683
+ # pinned version will be the existing pinned version.
4684
+ #
4685
+ # If omitted and the target workflow is not pinned, the override request
4686
+ # will be rejected with a PreconditionFailed error.
4687
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
4688
+ def version=(value)
4689
+ end
4690
+
4691
+ # Specifies the Worker Deployment Version to pin this workflow to.
4692
+ # Required if the target workflow is not already pinned to a version.
4693
+ #
4694
+ # If omitted and the target workflow is already pinned, the effective
4695
+ # pinned version will be the existing pinned version.
4696
+ #
4697
+ # If omitted and the target workflow is not pinned, the override request
4698
+ # will be rejected with a PreconditionFailed error.
4699
+ sig { void }
4700
+ def clear_version
4701
+ end
4702
+
4703
+ sig { params(field: String).returns(T.untyped) }
4704
+ def [](field)
4705
+ end
4706
+
4707
+ sig { params(field: String, value: T.untyped).void }
4708
+ def []=(field, value)
4709
+ end
4710
+
4711
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4712
+ def to_h
4713
+ end
4714
+
4715
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride) }
4716
+ def self.decode(str)
4717
+ end
4718
+
4719
+ sig { params(msg: Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride).returns(String) }
4720
+ def self.encode(msg)
4721
+ end
4722
+
4723
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride) }
4724
+ def self.decode_json(str, **kw)
4725
+ end
4726
+
4727
+ sig { params(msg: Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride, kw: T.untyped).returns(String) }
4728
+ def self.encode_json(msg, **kw)
4729
+ end
4730
+
4731
+ sig { returns(::Google::Protobuf::Descriptor) }
4732
+ def self.descriptor
4733
+ end
4734
+ end
4735
+
4736
+ # Routes Workflow Tasks for this execution to `target_deployment_version`
4737
+ # until a Workflow Task completes on that version, then clears the override.
4738
+ #
4739
+ # This does not force the workflow's normal Versioning Behavior to become
4740
+ # Pinned. After the Workflow Task completes on `target_deployment_version`,
4741
+ # the workflow execution's normal Versioning Behavior and Deployment Version
4742
+ # are taken from the worker's completion response.
4743
+ #
4744
+ # Example: if an execution is one-time moved from version X to version Y, and
4745
+ # version Z later becomes current:
4746
+ # - if worker Y reports Pinned, the execution stays on Y;
4747
+ # - if worker Y reports AutoUpgrade, the execution routes to Z on a future
4748
+ # Workflow Task;
4749
+ # - if worker Y reports Pinned and the workflow uses upgrade-on-continue-as-new,
4750
+ # the current run stays on Y and the execution can route to Z after
4751
+ # continue-as-new.
4752
+ #
4753
+ # If no Workflow Task completes on `target_deployment_version`, this override
4754
+ # remains pending.
4755
+ class Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride
4756
+ include ::Google::Protobuf::MessageExts
4757
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4758
+
4759
+ sig do
4760
+ params(
4761
+ target_deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)
4762
+ ).void
4763
+ end
4764
+ def initialize(
4765
+ target_deployment_version: nil
4766
+ )
4767
+ end
4768
+
4769
+ # Required. Worker Deployment Version to receive the one-time Workflow Task.
4770
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
4771
+ def target_deployment_version
4772
+ end
4773
+
4774
+ # Required. Worker Deployment Version to receive the one-time Workflow Task.
4775
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
4776
+ def target_deployment_version=(value)
4777
+ end
4778
+
4779
+ # Required. Worker Deployment Version to receive the one-time Workflow Task.
4780
+ sig { void }
4781
+ def clear_target_deployment_version
4782
+ end
4783
+
4784
+ sig { params(field: String).returns(T.untyped) }
4785
+ def [](field)
4786
+ end
4787
+
4788
+ sig { params(field: String, value: T.untyped).void }
4789
+ def []=(field, value)
4790
+ end
4791
+
4792
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4793
+ def to_h
4794
+ end
4795
+
4796
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride) }
4797
+ def self.decode(str)
4798
+ end
4799
+
4800
+ sig { params(msg: Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride).returns(String) }
4801
+ def self.encode(msg)
4802
+ end
4803
+
4804
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride) }
4805
+ def self.decode_json(str, **kw)
4806
+ end
4807
+
4808
+ sig { params(msg: Temporalio::Api::Workflow::V1::VersioningOverride::OneTimeOverride, kw: T.untyped).returns(String) }
4809
+ def self.encode_json(msg, **kw)
4810
+ end
4811
+
4812
+ sig { returns(::Google::Protobuf::Descriptor) }
4813
+ def self.descriptor
4814
+ end
4815
+ end
4816
+
4817
+ # SignalWorkflow represents sending a signal after a workflow reset.
4818
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.
4819
+ class Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow
4820
+ include ::Google::Protobuf::MessageExts
4821
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4822
+
4823
+ sig do
4824
+ params(
4825
+ signal_name: T.nilable(String),
4826
+ input: T.nilable(Temporalio::Api::Common::V1::Payloads),
4827
+ header: T.nilable(Temporalio::Api::Common::V1::Header),
4828
+ links: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)])
4829
+ ).void
4830
+ end
4831
+ def initialize(
4832
+ signal_name: "",
4833
+ input: nil,
4834
+ header: nil,
4835
+ links: []
4836
+ )
4837
+ end
4838
+
4839
+ # The workflow author-defined name of the signal to send to the workflow.
4840
+ sig { returns(String) }
4841
+ def signal_name
4842
+ end
4843
+
4844
+ # The workflow author-defined name of the signal to send to the workflow.
4845
+ sig { params(value: String).void }
4846
+ def signal_name=(value)
4847
+ end
4848
+
4849
+ # The workflow author-defined name of the signal to send to the workflow.
4850
+ sig { void }
4851
+ def clear_signal_name
4852
+ end
4853
+
4854
+ # Serialized value(s) to provide with the signal.
4855
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
4856
+ def input
4857
+ end
4858
+
4859
+ # Serialized value(s) to provide with the signal.
4860
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
4861
+ def input=(value)
4862
+ end
4863
+
4864
+ # Serialized value(s) to provide with the signal.
4865
+ sig { void }
4866
+ def clear_input
4867
+ end
4868
+
4869
+ # Headers that are passed with the signal to the processing workflow.
4870
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Header)) }
4871
+ def header
4872
+ end
4873
+
4874
+ # Headers that are passed with the signal to the processing workflow.
4875
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Header)).void }
4876
+ def header=(value)
4877
+ end
4878
+
4879
+ # Headers that are passed with the signal to the processing workflow.
4880
+ sig { void }
4881
+ def clear_header
4882
+ end
4883
+
4884
+ # Links to be associated with the WorkflowExecutionSignaled event.
4885
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]) }
4886
+ def links
4887
+ end
4888
+
4889
+ # Links to be associated with the WorkflowExecutionSignaled event.
4890
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
4891
+ def links=(value)
4892
+ end
4893
+
4894
+ # Links to be associated with the WorkflowExecutionSignaled event.
4895
+ sig { void }
4896
+ def clear_links
4897
+ end
4898
+
4899
+ sig { params(field: String).returns(T.untyped) }
4900
+ def [](field)
4901
+ end
4902
+
4903
+ sig { params(field: String, value: T.untyped).void }
4904
+ def []=(field, value)
4905
+ end
4906
+
4907
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4908
+ def to_h
4909
+ end
4910
+
4911
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow) }
4912
+ def self.decode(str)
4913
+ end
4914
+
4915
+ sig { params(msg: Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow).returns(String) }
4916
+ def self.encode(msg)
4917
+ end
4918
+
4919
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow) }
4920
+ def self.decode_json(str, **kw)
4921
+ end
4922
+
4923
+ sig { params(msg: Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow, kw: T.untyped).returns(String) }
4924
+ def self.encode_json(msg, **kw)
4925
+ end
4926
+
4927
+ sig { returns(::Google::Protobuf::Descriptor) }
4928
+ def self.descriptor
4929
+ end
4930
+ end
4931
+
4932
+ # UpdateWorkflowOptions represents updating workflow execution options after a workflow reset.
4933
+ # Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest.
4934
+ class Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions
4935
+ include ::Google::Protobuf::MessageExts
4936
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4937
+
4938
+ sig do
4939
+ params(
4940
+ workflow_execution_options: T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionOptions),
4941
+ update_mask: T.nilable(Google::Protobuf::FieldMask)
4942
+ ).void
4943
+ end
4944
+ def initialize(
4945
+ workflow_execution_options: nil,
4946
+ update_mask: nil
4947
+ )
4948
+ end
4949
+
4950
+ # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.
4951
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionOptions)) }
4952
+ def workflow_execution_options
4953
+ end
4954
+
4955
+ # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.
4956
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionOptions)).void }
4957
+ def workflow_execution_options=(value)
4958
+ end
4959
+
4960
+ # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.
4961
+ sig { void }
4962
+ def clear_workflow_execution_options
4963
+ end
4964
+
4965
+ # Controls which fields from `workflow_execution_options` will be applied.
4966
+ # To unset a field, set it to null and use the update mask to indicate that it should be mutated.
4967
+ sig { returns(T.nilable(Google::Protobuf::FieldMask)) }
4968
+ def update_mask
4969
+ end
4970
+
4971
+ # Controls which fields from `workflow_execution_options` will be applied.
4972
+ # To unset a field, set it to null and use the update mask to indicate that it should be mutated.
4973
+ sig { params(value: T.nilable(Google::Protobuf::FieldMask)).void }
4974
+ def update_mask=(value)
4975
+ end
4976
+
4977
+ # Controls which fields from `workflow_execution_options` will be applied.
4978
+ # To unset a field, set it to null and use the update mask to indicate that it should be mutated.
4979
+ sig { void }
4980
+ def clear_update_mask
4981
+ end
4982
+
4983
+ sig { params(field: String).returns(T.untyped) }
4984
+ def [](field)
4985
+ end
4986
+
4987
+ sig { params(field: String, value: T.untyped).void }
4988
+ def []=(field, value)
4989
+ end
4990
+
4991
+ sig { returns(T::Hash[Symbol, T.untyped]) }
4992
+ def to_h
4993
+ end
4994
+
4995
+ sig { params(str: String).returns(Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions) }
4996
+ def self.decode(str)
4997
+ end
4998
+
4999
+ sig { params(msg: Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions).returns(String) }
5000
+ def self.encode(msg)
5001
+ end
5002
+
5003
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions) }
5004
+ def self.decode_json(str, **kw)
5005
+ end
5006
+
5007
+ sig { params(msg: Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions, kw: T.untyped).returns(String) }
5008
+ def self.encode_json(msg, **kw)
5009
+ end
5010
+
5011
+ sig { returns(::Google::Protobuf::Descriptor) }
5012
+ def self.descriptor
5013
+ end
5014
+ end
5015
+
5016
+ module Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior
5017
+ self::PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED = T.let(0, Integer)
5018
+ self::PINNED_OVERRIDE_BEHAVIOR_PINNED = T.let(1, Integer)
5019
+
5020
+ sig { params(value: Integer).returns(T.nilable(Symbol)) }
5021
+ def self.lookup(value)
5022
+ end
5023
+
5024
+ sig { params(value: Symbol).returns(T.nilable(Integer)) }
5025
+ def self.resolve(value)
5026
+ end
5027
+
5028
+ sig { returns(::Google::Protobuf::EnumDescriptor) }
5029
+ def self.descriptor
5030
+ end
5031
+ end