temporalio 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (492) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +1461 -621
  3. data/Cargo.toml +1 -1
  4. data/Gemfile +6 -5
  5. data/README.md +42 -1
  6. data/ext/Cargo.toml +9 -3
  7. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  8. data/lib/temporalio/api/cloud/billing/v1/message.rb +2 -1
  9. data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +17 -1
  10. data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
  11. data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
  12. data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
  13. data/lib/temporalio/api/cloud/namespace/v1/message.rb +5 -1
  14. data/lib/temporalio/api/command/v1/message.rb +2 -1
  15. data/lib/temporalio/api/common/v1/message.rb +5 -1
  16. data/lib/temporalio/api/deployment/v1/message.rb +3 -1
  17. data/lib/temporalio/api/history/v1/message.rb +3 -1
  18. data/lib/temporalio/api/namespace/v1/message.rb +1 -1
  19. data/lib/temporalio/api/nexus/v1/message.rb +1 -1
  20. data/lib/temporalio/api/nexusannotations/v1/options.rb +20 -0
  21. data/lib/temporalio/api/payload_visitor.rb +32 -0
  22. data/lib/temporalio/api/schedule/v1/message.rb +1 -1
  23. data/lib/temporalio/api/sdk/v1/event_group_marker.rb +26 -0
  24. data/lib/temporalio/api/update/v1/message.rb +1 -1
  25. data/lib/temporalio/api/workflow/v1/message.rb +3 -2
  26. data/lib/temporalio/api/workflowservice/v1/request_response.rb +11 -1
  27. data/lib/temporalio/api/workflowservice/v1/service.rb +3 -2
  28. data/lib/temporalio/client/connection/cloud_service.rb +120 -0
  29. data/lib/temporalio/client/connection/workflow_service.rb +75 -0
  30. data/lib/temporalio/client/connection.rb +37 -2
  31. data/lib/temporalio/client.rb +10 -5
  32. data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
  33. data/lib/temporalio/internal/bridge/client.rb +6 -1
  34. data/lib/temporalio/internal/bridge.rb +20 -0
  35. data/lib/temporalio/internal/google_protobuf.rb +11 -0
  36. data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
  37. data/lib/temporalio/internal/worker/workflow_instance/details.rb +3 -1
  38. data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +73 -2
  39. data/lib/temporalio/internal/worker/workflow_instance.rb +36 -6
  40. data/lib/temporalio/internal/worker/workflow_worker.rb +10 -2
  41. data/lib/temporalio/internal/workflow_task_failure_error.rb +9 -0
  42. data/lib/temporalio/version.rb +1 -1
  43. data/lib/temporalio/worker/activity_executor/fiber.rb +1 -1
  44. data/lib/temporalio/worker/activity_executor/thread_pool.rb +1 -1
  45. data/lib/temporalio/worker/illegal_workflow_call_validator.rb +3 -1
  46. data/lib/temporalio/worker/workflow_executor/thread_pool.rb +5 -1
  47. data/lib/temporalio/worker/workflow_replayer.rb +17 -4
  48. data/lib/temporalio/worker.rb +30 -5
  49. data/lib/temporalio/workflow/future.rb +5 -0
  50. data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
  51. data/lib/temporalio/workflow.rb +8 -0
  52. data/rbi/google/protobuf.rbi +25 -0
  53. data/rbi/temporalio/activity/cancellation_details.rbi +33 -0
  54. data/rbi/temporalio/activity/complete_async_error.rbi +3 -0
  55. data/rbi/temporalio/activity/context.rbi +42 -0
  56. data/rbi/temporalio/activity/definition.rbi +74 -0
  57. data/rbi/temporalio/activity/info.rbi +112 -0
  58. data/rbi/temporalio/activity.rbi +3 -0
  59. data/rbi/temporalio/api/activity/v1/message.rbi +1453 -0
  60. data/rbi/temporalio/api/batch/v1/message.rbi +1283 -0
  61. data/rbi/temporalio/api/callback/v1/message.rbi +188 -0
  62. data/rbi/temporalio/api/cloud/account/v1/message.rbi +650 -0
  63. data/rbi/temporalio/api/cloud/auditlog/v1/message.rbi +318 -0
  64. data/rbi/temporalio/api/cloud/billing/v1/message.rbi +480 -0
  65. data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +12454 -0
  66. data/rbi/temporalio/api/cloud/cloudservice/v1/service.rbi +3 -0
  67. data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +709 -0
  68. data/rbi/temporalio/api/cloud/cloudservice.rbi +5 -0
  69. data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +403 -0
  70. data/rbi/temporalio/api/cloud/identity/v1/message.rbi +3072 -0
  71. data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +3659 -0
  72. data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +595 -0
  73. data/rbi/temporalio/api/cloud/operation/v1/message.rbi +244 -0
  74. data/rbi/temporalio/api/cloud/region/v1/message.rbi +166 -0
  75. data/rbi/temporalio/api/cloud/resource/v1/message.rbi +29 -0
  76. data/rbi/temporalio/api/cloud/sink/v1/message.rbi +438 -0
  77. data/rbi/temporalio/api/cloud/usage/v1/message.rbi +409 -0
  78. data/rbi/temporalio/api/command/v1/message.rbi +2655 -0
  79. data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
  80. data/rbi/temporalio/api/common/v1/message.rbi +2983 -0
  81. data/rbi/temporalio/api/compute/v1/config.rbi +421 -0
  82. data/rbi/temporalio/api/compute/v1/provider.rbi +125 -0
  83. data/rbi/temporalio/api/compute/v1/scaler.rbi +102 -0
  84. data/rbi/temporalio/api/deployment/v1/message.rbi +2340 -0
  85. data/rbi/temporalio/api/enums/v1/activity.rbi +62 -0
  86. data/rbi/temporalio/api/enums/v1/batch_operation.rbi +47 -0
  87. data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
  88. data/rbi/temporalio/api/enums/v1/common.rbi +181 -0
  89. data/rbi/temporalio/api/enums/v1/deployment.rbi +80 -0
  90. data/rbi/temporalio/api/enums/v1/event_type.rbi +79 -0
  91. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +155 -0
  92. data/rbi/temporalio/api/enums/v1/namespace.rbi +58 -0
  93. data/rbi/temporalio/api/enums/v1/nexus.rbi +98 -0
  94. data/rbi/temporalio/api/enums/v1/query.rbi +40 -0
  95. data/rbi/temporalio/api/enums/v1/reset.rbi +60 -0
  96. data/rbi/temporalio/api/enums/v1/schedule.rbi +25 -0
  97. data/rbi/temporalio/api/enums/v1/task_queue.rbi +134 -0
  98. data/rbi/temporalio/api/enums/v1/update.rbi +39 -0
  99. data/rbi/temporalio/api/enums/v1/workflow.rbi +259 -0
  100. data/rbi/temporalio/api/errordetails/v1/message.rbi +1389 -0
  101. data/rbi/temporalio/api/export/v1/message.rbi +123 -0
  102. data/rbi/temporalio/api/failure/v1/message.rbi +1303 -0
  103. data/rbi/temporalio/api/filter/v1/message.rbi +267 -0
  104. data/rbi/temporalio/api/history/v1/message.rbi +10737 -0
  105. data/rbi/temporalio/api/namespace/v1/message.rbi +1044 -0
  106. data/rbi/temporalio/api/nexus/v1/message.rbi +2780 -0
  107. data/rbi/temporalio/api/nexusannotations/v1/options.rbi +161 -0
  108. data/rbi/temporalio/api/nexusservices/workerservice/v1/request_response.rbi +124 -0
  109. data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +1836 -0
  110. data/rbi/temporalio/api/operatorservice/v1/service.rbi +3 -0
  111. data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +143 -0
  112. data/rbi/temporalio/api/operatorservice.rbi +5 -0
  113. data/rbi/temporalio/api/payload_visitor.rbi +876 -0
  114. data/rbi/temporalio/api/protoc_gen_openapiv2/options/annotations.rbi +3 -0
  115. data/rbi/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbi +3482 -0
  116. data/rbi/temporalio/api/protocol/v1/message.rbi +139 -0
  117. data/rbi/temporalio/api/protometa/v1/annotations.rbi +97 -0
  118. data/rbi/temporalio/api/query/v1/message.rbi +288 -0
  119. data/rbi/temporalio/api/replication/v1/message.rbi +226 -0
  120. data/rbi/temporalio/api/rules/v1/message.rbi +492 -0
  121. data/rbi/temporalio/api/schedule/v1/message.rbi +2377 -0
  122. data/rbi/temporalio/api/sdk/v1/enhanced_stack_trace.rbi +478 -0
  123. data/rbi/temporalio/api/sdk/v1/event_group_marker.rbi +337 -0
  124. data/rbi/temporalio/api/sdk/v1/external_storage.rbi +85 -0
  125. data/rbi/temporalio/api/sdk/v1/task_complete_metadata.rbi +206 -0
  126. data/rbi/temporalio/api/sdk/v1/user_metadata.rbi +98 -0
  127. data/rbi/temporalio/api/sdk/v1/worker_config.rbi +255 -0
  128. data/rbi/temporalio/api/sdk/v1/workflow_metadata.rbi +297 -0
  129. data/rbi/temporalio/api/taskqueue/v1/message.rbi +2460 -0
  130. data/rbi/temporalio/api/testservice/v1/request_response.rbi +380 -0
  131. data/rbi/temporalio/api/testservice/v1/service.rbi +3 -0
  132. data/rbi/temporalio/api/testservice/v1/service_services.rbi +100 -0
  133. data/rbi/temporalio/api/update/v1/message.rbi +800 -0
  134. data/rbi/temporalio/api/version/v1/message.rbi +281 -0
  135. data/rbi/temporalio/api/worker/v1/message.rbi +1565 -0
  136. data/rbi/temporalio/api/workflow/v1/message.rbi +5011 -0
  137. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +30477 -0
  138. data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
  139. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1571 -0
  140. data/rbi/temporalio/api/workflowservice.rbi +5 -0
  141. data/rbi/temporalio/api.rbi +7 -0
  142. data/rbi/temporalio/cancellation.rbi +40 -0
  143. data/rbi/temporalio/client/activity_execution.rbi +134 -0
  144. data/rbi/temporalio/client/activity_execution_count.rbi +23 -0
  145. data/rbi/temporalio/client/activity_execution_status.rbi +11 -0
  146. data/rbi/temporalio/client/activity_handle.rbi +49 -0
  147. data/rbi/temporalio/client/activity_id_reference.rbi +24 -0
  148. data/rbi/temporalio/client/async_activity_handle.rbi +49 -0
  149. data/rbi/temporalio/client/connection/cloud_service.rbi +239 -0
  150. data/rbi/temporalio/client/connection/operator_service.rbi +47 -0
  151. data/rbi/temporalio/client/connection/service.rbi +19 -0
  152. data/rbi/temporalio/client/connection/test_service.rbi +29 -0
  153. data/rbi/temporalio/client/connection/workflow_service.rbi +377 -0
  154. data/rbi/temporalio/client/connection.rbi +284 -0
  155. data/rbi/temporalio/client/interceptor.rbi +1067 -0
  156. data/rbi/temporalio/client/pending_activity_state.rbi +9 -0
  157. data/rbi/temporalio/client/plugin.rbi +17 -0
  158. data/rbi/temporalio/client/schedule.rbi +677 -0
  159. data/rbi/temporalio/client/schedule_handle.rbi +40 -0
  160. data/rbi/temporalio/client/with_start_workflow_operation.rbi +126 -0
  161. data/rbi/temporalio/client/workflow_execution.rbi +62 -0
  162. data/rbi/temporalio/client/workflow_execution_count.rbi +23 -0
  163. data/rbi/temporalio/client/workflow_execution_status.rbi +11 -0
  164. data/rbi/temporalio/client/workflow_handle.rbi +148 -0
  165. data/rbi/temporalio/client/workflow_query_reject_condition.rbi +7 -0
  166. data/rbi/temporalio/client/workflow_update_handle.rbi +38 -0
  167. data/rbi/temporalio/client/workflow_update_wait_stage.rbi +7 -0
  168. data/rbi/temporalio/client.rbi +534 -0
  169. data/rbi/temporalio/common_enums.rbi +45 -0
  170. data/rbi/temporalio/contrib/open_telemetry.rbi +73 -0
  171. data/rbi/temporalio/converters/data_converter.rbi +44 -0
  172. data/rbi/temporalio/converters/failure_converter.rbi +20 -0
  173. data/rbi/temporalio/converters/payload_codec.rbi +11 -0
  174. data/rbi/temporalio/converters/payload_converter/binary_null.rbi +5 -0
  175. data/rbi/temporalio/converters/payload_converter/binary_plain.rbi +5 -0
  176. data/rbi/temporalio/converters/payload_converter/binary_protobuf.rbi +5 -0
  177. data/rbi/temporalio/converters/payload_converter/composite.rbi +20 -0
  178. data/rbi/temporalio/converters/payload_converter/encoding.rbi +14 -0
  179. data/rbi/temporalio/converters/payload_converter/json_plain.rbi +10 -0
  180. data/rbi/temporalio/converters/payload_converter/json_protobuf.rbi +5 -0
  181. data/rbi/temporalio/converters/payload_converter.rbi +28 -0
  182. data/rbi/temporalio/converters/raw_value.rbi +11 -0
  183. data/rbi/temporalio/converters.rbi +3 -0
  184. data/rbi/temporalio/env_config.rbi +156 -0
  185. data/rbi/temporalio/error/failure.rbi +3 -0
  186. data/rbi/temporalio/error.rbi +313 -0
  187. data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +547 -0
  188. data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +705 -0
  189. data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +332 -0
  190. data/rbi/temporalio/internal/bridge/api/common/common.rbi +191 -0
  191. data/rbi/temporalio/internal/bridge/api/core_interface.rbi +567 -0
  192. data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +255 -0
  193. data/rbi/temporalio/internal/bridge/api/nexus/nexus.rbi +527 -0
  194. data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +2808 -0
  195. data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +3309 -0
  196. data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +272 -0
  197. data/rbi/temporalio/internal/bridge/api.rbi +3 -0
  198. data/rbi/temporalio/internal/bridge/client.rbi +346 -0
  199. data/rbi/temporalio/internal/bridge/runtime.rbi +231 -0
  200. data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
  201. data/rbi/temporalio/internal/bridge/worker.rbi +250 -0
  202. data/rbi/temporalio/internal/bridge.rbi +47 -0
  203. data/rbi/temporalio/internal/client/implementation.rbi +53 -0
  204. data/rbi/temporalio/internal/google_protobuf.rbi +8 -0
  205. data/rbi/temporalio/internal/metric.rbi +55 -0
  206. data/rbi/temporalio/internal/proto_utils.rbi +148 -0
  207. data/rbi/temporalio/internal/worker/activity_worker.rbi +108 -0
  208. data/rbi/temporalio/internal/worker/multi_runner.rbi +175 -0
  209. data/rbi/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbi +20 -0
  210. data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +290 -0
  211. data/rbi/temporalio/internal/worker/workflow_instance/details.rbi +87 -0
  212. data/rbi/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbi +14 -0
  213. data/rbi/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbi +17 -0
  214. data/rbi/temporalio/internal/worker/workflow_instance/handler_execution.rbi +17 -0
  215. data/rbi/temporalio/internal/worker/workflow_instance/handler_hash.rbi +24 -0
  216. data/rbi/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbi +17 -0
  217. data/rbi/temporalio/internal/worker/workflow_instance/inbound_implementation.rbi +21 -0
  218. data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +47 -0
  219. data/rbi/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbi +19 -0
  220. data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +43 -0
  221. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbi +11 -0
  222. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbi +15 -0
  223. data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +36 -0
  224. data/rbi/temporalio/internal/worker/workflow_instance.rbi +231 -0
  225. data/rbi/temporalio/internal/worker/workflow_worker.rbi +199 -0
  226. data/rbi/temporalio/internal/workflow_task_failure_error.rbi +3 -0
  227. data/rbi/temporalio/internal.rbi +3 -0
  228. data/rbi/temporalio/metric.rbi +56 -0
  229. data/rbi/temporalio/priority.rbi +38 -0
  230. data/rbi/temporalio/retry_policy.rbi +40 -0
  231. data/rbi/temporalio/runtime/metric_buffer.rbi +45 -0
  232. data/rbi/temporalio/runtime.rbi +185 -0
  233. data/rbi/temporalio/scoped_logger.rbi +50 -0
  234. data/rbi/temporalio/search_attributes.rbi +94 -0
  235. data/rbi/temporalio/simple_plugin.rbi +41 -0
  236. data/rbi/temporalio/testing/activity_environment.rbi +43 -0
  237. data/rbi/temporalio/testing/workflow_environment.rbi +116 -0
  238. data/rbi/temporalio/testing.rbi +3 -0
  239. data/rbi/temporalio/version.rbi +5 -0
  240. data/rbi/temporalio/versioning_override.rbi +13 -0
  241. data/rbi/temporalio/worker/activity_executor/fiber.rbi +20 -0
  242. data/rbi/temporalio/worker/activity_executor/thread_pool.rbi +20 -0
  243. data/rbi/temporalio/worker/activity_executor.rbi +20 -0
  244. data/rbi/temporalio/worker/deployment_options.rbi +23 -0
  245. data/rbi/temporalio/worker/illegal_workflow_call_validator.rbi +33 -0
  246. data/rbi/temporalio/worker/interceptor.rbi +489 -0
  247. data/rbi/temporalio/worker/plugin.rbi +49 -0
  248. data/rbi/temporalio/worker/poller_behavior.rbi +29 -0
  249. data/rbi/temporalio/worker/thread_pool.rbi +38 -0
  250. data/rbi/temporalio/worker/tuner.rbi +221 -0
  251. data/rbi/temporalio/worker/workflow_executor/thread_pool.rbi +15 -0
  252. data/rbi/temporalio/worker/workflow_executor.rbi +8 -0
  253. data/rbi/temporalio/worker/workflow_replayer.rbi +152 -0
  254. data/rbi/temporalio/worker.rbi +258 -0
  255. data/rbi/temporalio/worker_deployment_version.rbi +29 -0
  256. data/rbi/temporalio/workflow/activity_cancellation_type.rbi +7 -0
  257. data/rbi/temporalio/workflow/child_workflow_cancellation_type.rbi +8 -0
  258. data/rbi/temporalio/workflow/child_workflow_handle.rbi +27 -0
  259. data/rbi/temporalio/workflow/definition.rbi +305 -0
  260. data/rbi/temporalio/workflow/external_workflow_handle.rbi +24 -0
  261. data/rbi/temporalio/workflow/future.rbi +62 -0
  262. data/rbi/temporalio/workflow/handler_unfinished_policy.rbi +6 -0
  263. data/rbi/temporalio/workflow/info.rbi +100 -0
  264. data/rbi/temporalio/workflow/nexus_client.rbi +65 -0
  265. data/rbi/temporalio/workflow/nexus_operation_cancellation_type.rbi +8 -0
  266. data/rbi/temporalio/workflow/nexus_operation_handle.rbi +14 -0
  267. data/rbi/temporalio/workflow/parent_close_policy.rbi +8 -0
  268. data/rbi/temporalio/workflow/update_info.rbi +14 -0
  269. data/rbi/temporalio/workflow.rbi +393 -0
  270. data/rbi/temporalio/workflow_history.rbi +21 -0
  271. data/rbi/temporalio.rbi +5 -0
  272. data/sig/common.rbs +1 -0
  273. data/sig/google/protobuf_compat.rbs +17 -0
  274. data/sig/open_telemetry.rbs +47 -0
  275. data/sig/temporalio/activity/cancellation_details.rbs +21 -0
  276. data/sig/temporalio/activity/complete_async_error.rbs +6 -0
  277. data/sig/temporalio/activity/context.rbs +26 -0
  278. data/sig/temporalio/activity/definition.rbs +60 -0
  279. data/sig/temporalio/activity/info.rbs +57 -0
  280. data/sig/temporalio/activity.rbs +4 -0
  281. data/sig/temporalio/api/activity/v1/message.rbs +708 -0
  282. data/sig/temporalio/api/batch/v1/message.rbs +594 -0
  283. data/sig/temporalio/api/callback/v1/message.rbs +112 -0
  284. data/sig/temporalio/api/cloud/account/v1/message.rbs +314 -0
  285. data/sig/temporalio/api/cloud/auditlog/v1/message.rbs +168 -0
  286. data/sig/temporalio/api/cloud/billing/v1/message.rbs +279 -0
  287. data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +4726 -0
  288. data/sig/temporalio/api/cloud/cloudservice/v1/service.rbs +25 -0
  289. data/sig/temporalio/api/cloud/cloudservice.rbs +8 -0
  290. data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +191 -0
  291. data/sig/temporalio/api/cloud/identity/v1/message.rbs +1372 -0
  292. data/sig/temporalio/api/cloud/namespace/v1/message.rbs +1571 -0
  293. data/sig/temporalio/api/cloud/nexus/v1/message.rbs +269 -0
  294. data/sig/temporalio/api/cloud/operation/v1/message.rbs +156 -0
  295. data/sig/temporalio/api/cloud/region/v1/message.rbs +109 -0
  296. data/sig/temporalio/api/cloud/resource/v1/message.rbs +61 -0
  297. data/sig/temporalio/api/cloud/sink/v1/message.rbs +207 -0
  298. data/sig/temporalio/api/cloud/usage/v1/message.rbs +230 -0
  299. data/sig/temporalio/api/command/v1/message.rbs +1211 -0
  300. data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
  301. data/sig/temporalio/api/common/v1/message.rbs +1238 -0
  302. data/sig/temporalio/api/compute/v1/config.rbs +176 -0
  303. data/sig/temporalio/api/compute/v1/provider.rbs +73 -0
  304. data/sig/temporalio/api/compute/v1/scaler.rbs +60 -0
  305. data/sig/temporalio/api/deployment/v1/message.rbs +1063 -0
  306. data/sig/temporalio/api/enums/v1/activity.rbs +134 -0
  307. data/sig/temporalio/api/enums/v1/batch_operation.rbs +80 -0
  308. data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
  309. data/sig/temporalio/api/enums/v1/common.rbs +271 -0
  310. data/sig/temporalio/api/enums/v1/deployment.rbs +177 -0
  311. data/sig/temporalio/api/enums/v1/event_type.rbs +263 -0
  312. data/sig/temporalio/api/enums/v1/failed_cause.rbs +281 -0
  313. data/sig/temporalio/api/enums/v1/namespace.rbs +87 -0
  314. data/sig/temporalio/api/enums/v1/nexus.rbs +172 -0
  315. data/sig/temporalio/api/enums/v1/query.rbs +69 -0
  316. data/sig/temporalio/api/enums/v1/reset.rbs +106 -0
  317. data/sig/temporalio/api/enums/v1/schedule.rbs +68 -0
  318. data/sig/temporalio/api/enums/v1/task_queue.rbs +238 -0
  319. data/sig/temporalio/api/enums/v1/update.rbs +87 -0
  320. data/sig/temporalio/api/enums/v1/workflow.rbs +435 -0
  321. data/sig/temporalio/api/errordetails/v1/message.rbs +532 -0
  322. data/sig/temporalio/api/export/v1/message.rbs +63 -0
  323. data/sig/temporalio/api/failure/v1/message.rbs +579 -0
  324. data/sig/temporalio/api/filter/v1/message.rbs +121 -0
  325. data/sig/temporalio/api/history/v1/message.rbs +4928 -0
  326. data/sig/temporalio/api/namespace/v1/message.rbs +465 -0
  327. data/sig/temporalio/api/nexus/v1/message.rbs +1268 -0
  328. data/sig/temporalio/api/nexusannotations/v1/options.rbs +76 -0
  329. data/sig/temporalio/api/nexusservices/workerservice/v1/request_response.rbs +65 -0
  330. data/sig/temporalio/api/operatorservice/v1/request_response.rbs +679 -0
  331. data/sig/temporalio/api/operatorservice/v1/service.rbs +23 -0
  332. data/sig/temporalio/api/operatorservice.rbs +6 -0
  333. data/sig/temporalio/api/payload_visitor.rbs +298 -0
  334. data/sig/temporalio/api/protoc_gen_openapiv2/options/annotations.rbs +23 -0
  335. data/sig/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbs +1691 -0
  336. data/sig/temporalio/api/protocol/v1/message.rbs +90 -0
  337. data/sig/temporalio/api/protometa/v1/annotations.rbs +62 -0
  338. data/sig/temporalio/api/query/v1/message.rbs +138 -0
  339. data/sig/temporalio/api/replication/v1/message.rbs +109 -0
  340. data/sig/temporalio/api/rules/v1/message.rbs +213 -0
  341. data/sig/temporalio/api/schedule/v1/message.rbs +1066 -0
  342. data/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs +210 -0
  343. data/sig/temporalio/api/sdk/v1/event_group_marker.rbs +154 -0
  344. data/sig/temporalio/api/sdk/v1/external_storage.rbs +54 -0
  345. data/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs +92 -0
  346. data/sig/temporalio/api/sdk/v1/user_metadata.rbs +58 -0
  347. data/sig/temporalio/api/sdk/v1/worker_config.rbs +122 -0
  348. data/sig/temporalio/api/sdk/v1/workflow_metadata.rbs +138 -0
  349. data/sig/temporalio/api/taskqueue/v1/message.rbs +1013 -0
  350. data/sig/temporalio/api/testservice/v1/request_response.rbs +125 -0
  351. data/sig/temporalio/api/testservice/v1/service.rbs +23 -0
  352. data/sig/temporalio/api/update/v1/message.rbs +349 -0
  353. data/sig/temporalio/api/version/v1/message.rbs +143 -0
  354. data/sig/temporalio/api/worker/v1/message.rbs +716 -0
  355. data/sig/temporalio/api/workflow/v1/message.rbs +2322 -0
  356. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +12735 -0
  357. data/sig/temporalio/api/workflowservice/v1/service.rbs +23 -0
  358. data/sig/temporalio/api/workflowservice.rbs +6 -0
  359. data/sig/temporalio/api.rbs +4 -0
  360. data/sig/temporalio/cancellation.rbs +20 -0
  361. data/sig/temporalio/client/activity_execution.rbs +50 -0
  362. data/sig/temporalio/client/activity_execution_count.rbs +17 -0
  363. data/sig/temporalio/client/activity_execution_status.rbs +15 -0
  364. data/sig/temporalio/client/activity_handle.rbs +26 -0
  365. data/sig/temporalio/client/activity_id_reference.rbs +16 -0
  366. data/sig/temporalio/client/async_activity_handle.rbs +41 -0
  367. data/sig/temporalio/client/connection/cloud_service.rbs +315 -0
  368. data/sig/temporalio/client/connection/operator_service.rbs +59 -0
  369. data/sig/temporalio/client/connection/service.rbs +17 -0
  370. data/sig/temporalio/client/connection/test_service.rbs +35 -0
  371. data/sig/temporalio/client/connection/workflow_service.rbs +499 -0
  372. data/sig/temporalio/client/connection.rbs +143 -0
  373. data/sig/temporalio/client/interceptor.rbs +622 -0
  374. data/sig/temporalio/client/pending_activity_state.rbs +14 -0
  375. data/sig/temporalio/client/plugin.rbs +14 -0
  376. data/sig/temporalio/client/schedule.rbs +337 -0
  377. data/sig/temporalio/client/schedule_handle.rbs +44 -0
  378. data/sig/temporalio/client/with_start_workflow_operation.rbs +82 -0
  379. data/sig/temporalio/client/workflow_execution.rbs +37 -0
  380. data/sig/temporalio/client/workflow_execution_count.rbs +17 -0
  381. data/sig/temporalio/client/workflow_execution_status.rbs +16 -0
  382. data/sig/temporalio/client/workflow_handle.rbs +95 -0
  383. data/sig/temporalio/client/workflow_query_reject_condition.rbs +12 -0
  384. data/sig/temporalio/client/workflow_update_handle.rbs +26 -0
  385. data/sig/temporalio/client/workflow_update_wait_stage.rbs +12 -0
  386. data/sig/temporalio/client.rbs +271 -0
  387. data/sig/temporalio/common_enums.rbs +60 -0
  388. data/sig/temporalio/contrib/open_telemetry.rbs +74 -0
  389. data/sig/temporalio/converters/data_converter.rbs +32 -0
  390. data/sig/temporalio/converters/failure_converter.rbs +12 -0
  391. data/sig/temporalio/converters/payload_codec.rbs +8 -0
  392. data/sig/temporalio/converters/payload_converter/binary_null.rbs +9 -0
  393. data/sig/temporalio/converters/payload_converter/binary_plain.rbs +9 -0
  394. data/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +9 -0
  395. data/sig/temporalio/converters/payload_converter/composite.rbs +16 -0
  396. data/sig/temporalio/converters/payload_converter/encoding.rbs +13 -0
  397. data/sig/temporalio/converters/payload_converter/json_plain.rbs +14 -0
  398. data/sig/temporalio/converters/payload_converter/json_protobuf.rbs +9 -0
  399. data/sig/temporalio/converters/payload_converter.rbs +24 -0
  400. data/sig/temporalio/converters/raw_value.rbs +9 -0
  401. data/sig/temporalio/converters.rbs +4 -0
  402. data/sig/temporalio/env_config.rbs +86 -0
  403. data/sig/temporalio/error/failure.rbs +170 -0
  404. data/sig/temporalio/error.rbs +88 -0
  405. data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +247 -0
  406. data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +372 -0
  407. data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +207 -0
  408. data/sig/temporalio/internal/bridge/api/common/common.rbs +123 -0
  409. data/sig/temporalio/internal/bridge/api/core_interface.rbs +231 -0
  410. data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +134 -0
  411. data/sig/temporalio/internal/bridge/api/nexus/nexus.rbs +285 -0
  412. data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +1304 -0
  413. data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +1526 -0
  414. data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +136 -0
  415. data/sig/temporalio/internal/bridge/api.rbs +8 -0
  416. data/sig/temporalio/internal/bridge/client.rbs +144 -0
  417. data/sig/temporalio/internal/bridge/metric.rbs +28 -0
  418. data/sig/temporalio/internal/bridge/runtime.rbs +97 -0
  419. data/sig/temporalio/internal/bridge/testing.rbs +91 -0
  420. data/sig/temporalio/internal/bridge/worker.rbs +199 -0
  421. data/sig/temporalio/internal/bridge.rbs +36 -0
  422. data/sig/temporalio/internal/client/implementation.rbs +33 -0
  423. data/sig/temporalio/internal/google_protobuf.rbs +7 -0
  424. data/sig/temporalio/internal/metric.rbs +35 -0
  425. data/sig/temporalio/internal/proto_utils.rbs +94 -0
  426. data/sig/temporalio/internal/worker/activity_worker.rbs +64 -0
  427. data/sig/temporalio/internal/worker/multi_runner.rbs +132 -0
  428. data/sig/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbs +22 -0
  429. data/sig/temporalio/internal/worker/workflow_instance/context.rbs +172 -0
  430. data/sig/temporalio/internal/worker/workflow_instance/details.rbs +43 -0
  431. data/sig/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbs +15 -0
  432. data/sig/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbs +16 -0
  433. data/sig/temporalio/internal/worker/workflow_instance/handler_execution.rbs +19 -0
  434. data/sig/temporalio/internal/worker/workflow_instance/handler_hash.rbs +14 -0
  435. data/sig/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbs +20 -0
  436. data/sig/temporalio/internal/worker/workflow_instance/inbound_implementation.rbs +19 -0
  437. data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +25 -0
  438. data/sig/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbs +19 -0
  439. data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +35 -0
  440. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbs +16 -0
  441. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbs +15 -0
  442. data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +52 -0
  443. data/sig/temporalio/internal/worker/workflow_instance.rbs +111 -0
  444. data/sig/temporalio/internal/worker/workflow_worker.rbs +99 -0
  445. data/sig/temporalio/internal/workflow_task_failure_error.rbs +6 -0
  446. data/sig/temporalio/internal.rbs +4 -0
  447. data/sig/temporalio/metric.rbs +55 -0
  448. data/sig/temporalio/priority.rbs +17 -0
  449. data/sig/temporalio/retry_policy.rbs +21 -0
  450. data/sig/temporalio/runtime/metric_buffer.rbs +49 -0
  451. data/sig/temporalio/runtime.rbs +118 -0
  452. data/sig/temporalio/scoped_logger.rbs +15 -0
  453. data/sig/temporalio/search_attributes.rbs +82 -0
  454. data/sig/temporalio/simple_plugin.rbs +65 -0
  455. data/sig/temporalio/testing/activity_environment.rbs +52 -0
  456. data/sig/temporalio/testing/workflow_environment.rbs +141 -0
  457. data/sig/temporalio/testing.rbs +4 -0
  458. data/sig/temporalio/version.rbs +3 -0
  459. data/sig/temporalio/versioning_override.rbs +17 -0
  460. data/sig/temporalio/worker/activity_executor/fiber.rbs +9 -0
  461. data/sig/temporalio/worker/activity_executor/thread_pool.rbs +11 -0
  462. data/sig/temporalio/worker/activity_executor.rbs +12 -0
  463. data/sig/temporalio/worker/deployment_options.rbs +17 -0
  464. data/sig/temporalio/worker/illegal_workflow_call_validator.rbs +25 -0
  465. data/sig/temporalio/worker/interceptor.rbs +373 -0
  466. data/sig/temporalio/worker/plugin.rbs +47 -0
  467. data/sig/temporalio/worker/poller_behavior.rbs +23 -0
  468. data/sig/temporalio/worker/thread_pool.rbs +44 -0
  469. data/sig/temporalio/worker/tuner.rbs +121 -0
  470. data/sig/temporalio/worker/workflow_executor/thread_pool.rbs +58 -0
  471. data/sig/temporalio/worker/workflow_executor.rbs +15 -0
  472. data/sig/temporalio/worker/workflow_replayer.rbs +105 -0
  473. data/sig/temporalio/worker.rbs +168 -0
  474. data/sig/temporalio/worker_deployment_version.rbs +17 -0
  475. data/sig/temporalio/workflow/activity_cancellation_type.rbs +11 -0
  476. data/sig/temporalio/workflow/child_workflow_cancellation_type.rbs +12 -0
  477. data/sig/temporalio/workflow/child_workflow_handle.rbs +18 -0
  478. data/sig/temporalio/workflow/definition.rbs +181 -0
  479. data/sig/temporalio/workflow/external_workflow_handle.rbs +17 -0
  480. data/sig/temporalio/workflow/future.rbs +24 -0
  481. data/sig/temporalio/workflow/handler_unfinished_policy.rbs +10 -0
  482. data/sig/temporalio/workflow/info.rbs +79 -0
  483. data/sig/temporalio/workflow/nexus_client.rbs +34 -0
  484. data/sig/temporalio/workflow/nexus_operation_cancellation_type.rbs +12 -0
  485. data/sig/temporalio/workflow/nexus_operation_handle.rbs +10 -0
  486. data/sig/temporalio/workflow/parent_close_policy.rbs +12 -0
  487. data/sig/temporalio/workflow/update_info.rbs +15 -0
  488. data/sig/temporalio/workflow.rbs +215 -0
  489. data/sig/temporalio/workflow_history.rbs +13 -0
  490. data/sig/temporalio.rbs +3 -0
  491. data/temporalio.gemspec +1 -1
  492. metadata +445 -2
@@ -0,0 +1,2808 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: temporal/sdk/core/workflow_activation/workflow_activation.proto
3
+ # typed: strict
4
+
5
+ # An instruction to the lang sdk to run some workflow code, whether for the first time or from
6
+ # a cached state.
7
+ #
8
+ # ## Job ordering guarantees and semantics
9
+ #
10
+ # Core will, by default, order jobs within the activation as follows:
11
+ # 1. init workflow
12
+ # 2. patches
13
+ # 3. random-seed-updates
14
+ # 4. signals/updates
15
+ # 5. all others
16
+ # 6. local activity resolutions
17
+ # 7. queries
18
+ # 8. evictions
19
+ #
20
+ # This is because:
21
+ # * Patches are expected to apply to the entire activation
22
+ # * Signal and update handlers should be invoked before workflow routines are iterated. That is to
23
+ # say before the users' main workflow function and anything spawned by it is allowed to continue.
24
+ # * Local activities resolutions go after other normal jobs because while *not* replaying, they
25
+ # will always take longer than anything else that produces an immediate job (which is
26
+ # effectively instant). When *replaying* we need to scan ahead for LA markers so that we can
27
+ # resolve them in the same activation that they completed in when not replaying. However, doing
28
+ # so would, by default, put those resolutions *before* any other immediate jobs that happened
29
+ # in that same activation (prime example: cancelling not-wait-for-cancel activities). So, we do
30
+ # this to ensure the LA resolution happens after that cancel (or whatever else it may be) as it
31
+ # normally would have when executing.
32
+ # * Queries always go last (and, in fact, always come in their own activation)
33
+ # * Evictions also always come in their own activation
34
+ #
35
+ # Core does this reordering to ensure that langs observe jobs in the same order during replay as
36
+ # they would have during execution. However, in principle, this ordering is not necessary
37
+ # (excepting queries/evictions, which definitely must come last) if lang layers apply all jobs to
38
+ # state *first* (by resolving promises/futures, marking handlers to be invoked, etc as they iterate
39
+ # over the jobs) and then only *after* that is done, drive coroutines/threads/whatever. If
40
+ # execution works this way, then determinism is only impacted by the order routines are driven in
41
+ # (which must be stable based on lang implementation or convention), rather than the order jobs are
42
+ # processed.
43
+ #
44
+ # ## Evictions
45
+ #
46
+ # Evictions appear as an activations that contains only a `remove_from_cache` job. Such activations
47
+ # should not cause the workflow code to be invoked and may be responded to with an empty command
48
+ # list.
49
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivation
50
+ include ::Google::Protobuf::MessageExts
51
+ extend ::Google::Protobuf::MessageExts::ClassMethods
52
+
53
+ sig do
54
+ params(
55
+ run_id: T.nilable(String),
56
+ timestamp: T.nilable(Google::Protobuf::Timestamp),
57
+ is_replaying: T.nilable(T::Boolean),
58
+ history_length: T.nilable(Integer),
59
+ jobs: T.nilable(T::Array[T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob)]),
60
+ available_internal_flags: T.nilable(T::Array[Integer]),
61
+ history_size_bytes: T.nilable(Integer),
62
+ continue_as_new_suggested: T.nilable(T::Boolean),
63
+ deployment_version_for_current_task: T.nilable(Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion),
64
+ last_sdk_version: T.nilable(String),
65
+ suggest_continue_as_new_reasons: T.nilable(T::Array[T.any(Symbol, String, Integer)]),
66
+ target_worker_deployment_version_changed: T.nilable(T::Boolean)
67
+ ).void
68
+ end
69
+ def initialize(
70
+ run_id: "",
71
+ timestamp: nil,
72
+ is_replaying: false,
73
+ history_length: 0,
74
+ jobs: [],
75
+ available_internal_flags: [],
76
+ history_size_bytes: 0,
77
+ continue_as_new_suggested: false,
78
+ deployment_version_for_current_task: nil,
79
+ last_sdk_version: "",
80
+ suggest_continue_as_new_reasons: [],
81
+ target_worker_deployment_version_changed: false
82
+ )
83
+ end
84
+
85
+ # The id of the currently active run of the workflow. Also used as a cache key. There may
86
+ # only ever be one active workflow task (and hence activation) of a run at one time.
87
+ sig { returns(String) }
88
+ def run_id
89
+ end
90
+
91
+ # The id of the currently active run of the workflow. Also used as a cache key. There may
92
+ # only ever be one active workflow task (and hence activation) of a run at one time.
93
+ sig { params(value: String).void }
94
+ def run_id=(value)
95
+ end
96
+
97
+ # The id of the currently active run of the workflow. Also used as a cache key. There may
98
+ # only ever be one active workflow task (and hence activation) of a run at one time.
99
+ sig { void }
100
+ def clear_run_id
101
+ end
102
+
103
+ # The current time as understood by the workflow, which is set by workflow task started events
104
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
105
+ def timestamp
106
+ end
107
+
108
+ # The current time as understood by the workflow, which is set by workflow task started events
109
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
110
+ def timestamp=(value)
111
+ end
112
+
113
+ # The current time as understood by the workflow, which is set by workflow task started events
114
+ sig { void }
115
+ def clear_timestamp
116
+ end
117
+
118
+ # Whether or not the activation is replaying past events
119
+ sig { returns(T::Boolean) }
120
+ def is_replaying
121
+ end
122
+
123
+ # Whether or not the activation is replaying past events
124
+ sig { params(value: T::Boolean).void }
125
+ def is_replaying=(value)
126
+ end
127
+
128
+ # Whether or not the activation is replaying past events
129
+ sig { void }
130
+ def clear_is_replaying
131
+ end
132
+
133
+ # Current history length as determined by the event id of the most recently processed event.
134
+ # This ensures that the number is always deterministic
135
+ sig { returns(Integer) }
136
+ def history_length
137
+ end
138
+
139
+ # Current history length as determined by the event id of the most recently processed event.
140
+ # This ensures that the number is always deterministic
141
+ sig { params(value: Integer).void }
142
+ def history_length=(value)
143
+ end
144
+
145
+ # Current history length as determined by the event id of the most recently processed event.
146
+ # This ensures that the number is always deterministic
147
+ sig { void }
148
+ def clear_history_length
149
+ end
150
+
151
+ # The things to do upon activating the workflow
152
+ sig { returns(T::Array[T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob)]) }
153
+ def jobs
154
+ end
155
+
156
+ # The things to do upon activating the workflow
157
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
158
+ def jobs=(value)
159
+ end
160
+
161
+ # The things to do upon activating the workflow
162
+ sig { void }
163
+ def clear_jobs
164
+ end
165
+
166
+ # Internal flags which are available for use by lang. If `is_replaying` is false, all
167
+ # internal flags may be used. This is not a delta - all previously used flags always
168
+ # appear since this representation is cheap.
169
+ sig { returns(T::Array[Integer]) }
170
+ def available_internal_flags
171
+ end
172
+
173
+ # Internal flags which are available for use by lang. If `is_replaying` is false, all
174
+ # internal flags may be used. This is not a delta - all previously used flags always
175
+ # appear since this representation is cheap.
176
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
177
+ def available_internal_flags=(value)
178
+ end
179
+
180
+ # Internal flags which are available for use by lang. If `is_replaying` is false, all
181
+ # internal flags may be used. This is not a delta - all previously used flags always
182
+ # appear since this representation is cheap.
183
+ sig { void }
184
+ def clear_available_internal_flags
185
+ end
186
+
187
+ # The history size in bytes as of the last WFT started event
188
+ sig { returns(Integer) }
189
+ def history_size_bytes
190
+ end
191
+
192
+ # The history size in bytes as of the last WFT started event
193
+ sig { params(value: Integer).void }
194
+ def history_size_bytes=(value)
195
+ end
196
+
197
+ # The history size in bytes as of the last WFT started event
198
+ sig { void }
199
+ def clear_history_size_bytes
200
+ end
201
+
202
+ # Set true if the most recent WFT started event had this suggestion
203
+ sig { returns(T::Boolean) }
204
+ def continue_as_new_suggested
205
+ end
206
+
207
+ # Set true if the most recent WFT started event had this suggestion
208
+ sig { params(value: T::Boolean).void }
209
+ def continue_as_new_suggested=(value)
210
+ end
211
+
212
+ # Set true if the most recent WFT started event had this suggestion
213
+ sig { void }
214
+ def clear_continue_as_new_suggested
215
+ end
216
+
217
+ # Set to the deployment version of the worker that processed this task,
218
+ # which may be empty. During replay this version may not equal the version
219
+ # of the replaying worker. If not replaying and this worker has a defined
220
+ # Deployment Version, it will equal that. It will also be empty for
221
+ # evict-only activations. The deployment name may be empty, but not the
222
+ # build id, if this worker was using the deprecated Build ID-only
223
+ # feature(s).
224
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion)) }
225
+ def deployment_version_for_current_task
226
+ end
227
+
228
+ # Set to the deployment version of the worker that processed this task,
229
+ # which may be empty. During replay this version may not equal the version
230
+ # of the replaying worker. If not replaying and this worker has a defined
231
+ # Deployment Version, it will equal that. It will also be empty for
232
+ # evict-only activations. The deployment name may be empty, but not the
233
+ # build id, if this worker was using the deprecated Build ID-only
234
+ # feature(s).
235
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion)).void }
236
+ def deployment_version_for_current_task=(value)
237
+ end
238
+
239
+ # Set to the deployment version of the worker that processed this task,
240
+ # which may be empty. During replay this version may not equal the version
241
+ # of the replaying worker. If not replaying and this worker has a defined
242
+ # Deployment Version, it will equal that. It will also be empty for
243
+ # evict-only activations. The deployment name may be empty, but not the
244
+ # build id, if this worker was using the deprecated Build ID-only
245
+ # feature(s).
246
+ sig { void }
247
+ def clear_deployment_version_for_current_task
248
+ end
249
+
250
+ # The last seen SDK version from the most recent WFT completed event
251
+ sig { returns(String) }
252
+ def last_sdk_version
253
+ end
254
+
255
+ # The last seen SDK version from the most recent WFT completed event
256
+ sig { params(value: String).void }
257
+ def last_sdk_version=(value)
258
+ end
259
+
260
+ # The last seen SDK version from the most recent WFT completed event
261
+ sig { void }
262
+ def clear_last_sdk_version
263
+ end
264
+
265
+ # Experimental. Optionally decide the versioning behavior that the first task of the new run should use.
266
+ # For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
267
+ # of the previous run.
268
+ sig { returns(T::Array[T.any(Symbol, Integer)]) }
269
+ def suggest_continue_as_new_reasons
270
+ end
271
+
272
+ # Experimental. Optionally decide the versioning behavior that the first task of the new run should use.
273
+ # For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
274
+ # of the previous run.
275
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
276
+ def suggest_continue_as_new_reasons=(value)
277
+ end
278
+
279
+ # Experimental. Optionally decide the versioning behavior that the first task of the new run should use.
280
+ # For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
281
+ # of the previous run.
282
+ sig { void }
283
+ def clear_suggest_continue_as_new_reasons
284
+ end
285
+
286
+ # True if Workflow's Target Worker Deployment Version is different from its Pinned Version and
287
+ # the workflow is Pinned.
288
+ # Experimental.
289
+ sig { returns(T::Boolean) }
290
+ def target_worker_deployment_version_changed
291
+ end
292
+
293
+ # True if Workflow's Target Worker Deployment Version is different from its Pinned Version and
294
+ # the workflow is Pinned.
295
+ # Experimental.
296
+ sig { params(value: T::Boolean).void }
297
+ def target_worker_deployment_version_changed=(value)
298
+ end
299
+
300
+ # True if Workflow's Target Worker Deployment Version is different from its Pinned Version and
301
+ # the workflow is Pinned.
302
+ # Experimental.
303
+ sig { void }
304
+ def clear_target_worker_deployment_version_changed
305
+ end
306
+
307
+ sig { params(field: String).returns(T.untyped) }
308
+ def [](field)
309
+ end
310
+
311
+ sig { params(field: String, value: T.untyped).void }
312
+ def []=(field, value)
313
+ end
314
+
315
+ sig { returns(T::Hash[Symbol, T.untyped]) }
316
+ def to_h
317
+ end
318
+
319
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivation) }
320
+ def self.decode(str)
321
+ end
322
+
323
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivation).returns(String) }
324
+ def self.encode(msg)
325
+ end
326
+
327
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivation) }
328
+ def self.decode_json(str, **kw)
329
+ end
330
+
331
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivation, kw: T.untyped).returns(String) }
332
+ def self.encode_json(msg, **kw)
333
+ end
334
+
335
+ sig { returns(::Google::Protobuf::Descriptor) }
336
+ def self.descriptor
337
+ end
338
+ end
339
+
340
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob
341
+ include ::Google::Protobuf::MessageExts
342
+ extend ::Google::Protobuf::MessageExts::ClassMethods
343
+
344
+ sig do
345
+ params(
346
+ initialize_workflow: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow),
347
+ fire_timer: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer),
348
+ update_random_seed: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed),
349
+ query_workflow: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow),
350
+ cancel_workflow: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow),
351
+ signal_workflow: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow),
352
+ resolve_activity: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity),
353
+ notify_has_patch: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch),
354
+ resolve_child_workflow_execution_start: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart),
355
+ resolve_child_workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution),
356
+ resolve_signal_external_workflow: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow),
357
+ resolve_request_cancel_external_workflow: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow),
358
+ do_update: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate),
359
+ resolve_nexus_operation_start: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart),
360
+ resolve_nexus_operation: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation),
361
+ remove_from_cache: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache)
362
+ ).void
363
+ end
364
+ def initialize(
365
+ initialize_workflow: nil,
366
+ fire_timer: nil,
367
+ update_random_seed: nil,
368
+ query_workflow: nil,
369
+ cancel_workflow: nil,
370
+ signal_workflow: nil,
371
+ resolve_activity: nil,
372
+ notify_has_patch: nil,
373
+ resolve_child_workflow_execution_start: nil,
374
+ resolve_child_workflow_execution: nil,
375
+ resolve_signal_external_workflow: nil,
376
+ resolve_request_cancel_external_workflow: nil,
377
+ do_update: nil,
378
+ resolve_nexus_operation_start: nil,
379
+ resolve_nexus_operation: nil,
380
+ remove_from_cache: nil
381
+ )
382
+ end
383
+
384
+ # A workflow is starting, record all of the information from its start event
385
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow)) }
386
+ def initialize_workflow
387
+ end
388
+
389
+ # A workflow is starting, record all of the information from its start event
390
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow)).void }
391
+ def initialize_workflow=(value)
392
+ end
393
+
394
+ # A workflow is starting, record all of the information from its start event
395
+ sig { void }
396
+ def clear_initialize_workflow
397
+ end
398
+
399
+ # A timer has fired, allowing whatever was waiting on it (if anything) to proceed
400
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer)) }
401
+ def fire_timer
402
+ end
403
+
404
+ # A timer has fired, allowing whatever was waiting on it (if anything) to proceed
405
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer)).void }
406
+ def fire_timer=(value)
407
+ end
408
+
409
+ # A timer has fired, allowing whatever was waiting on it (if anything) to proceed
410
+ sig { void }
411
+ def clear_fire_timer
412
+ end
413
+
414
+ # Workflow was reset. The randomness seed must be updated.
415
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed)) }
416
+ def update_random_seed
417
+ end
418
+
419
+ # Workflow was reset. The randomness seed must be updated.
420
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed)).void }
421
+ def update_random_seed=(value)
422
+ end
423
+
424
+ # Workflow was reset. The randomness seed must be updated.
425
+ sig { void }
426
+ def clear_update_random_seed
427
+ end
428
+
429
+ # A request to query the workflow was received. It is guaranteed that queries (one or more)
430
+ # always come in their own activation after other mutating jobs.
431
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow)) }
432
+ def query_workflow
433
+ end
434
+
435
+ # A request to query the workflow was received. It is guaranteed that queries (one or more)
436
+ # always come in their own activation after other mutating jobs.
437
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow)).void }
438
+ def query_workflow=(value)
439
+ end
440
+
441
+ # A request to query the workflow was received. It is guaranteed that queries (one or more)
442
+ # always come in their own activation after other mutating jobs.
443
+ sig { void }
444
+ def clear_query_workflow
445
+ end
446
+
447
+ # A request to cancel the workflow was received.
448
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow)) }
449
+ def cancel_workflow
450
+ end
451
+
452
+ # A request to cancel the workflow was received.
453
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow)).void }
454
+ def cancel_workflow=(value)
455
+ end
456
+
457
+ # A request to cancel the workflow was received.
458
+ sig { void }
459
+ def clear_cancel_workflow
460
+ end
461
+
462
+ # A request to signal the workflow was received.
463
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow)) }
464
+ def signal_workflow
465
+ end
466
+
467
+ # A request to signal the workflow was received.
468
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow)).void }
469
+ def signal_workflow=(value)
470
+ end
471
+
472
+ # A request to signal the workflow was received.
473
+ sig { void }
474
+ def clear_signal_workflow
475
+ end
476
+
477
+ # An activity was resolved, result could be completed, failed or cancelled
478
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity)) }
479
+ def resolve_activity
480
+ end
481
+
482
+ # An activity was resolved, result could be completed, failed or cancelled
483
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity)).void }
484
+ def resolve_activity=(value)
485
+ end
486
+
487
+ # An activity was resolved, result could be completed, failed or cancelled
488
+ sig { void }
489
+ def clear_resolve_activity
490
+ end
491
+
492
+ # A patch marker has been detected and lang is being told that change exists. This
493
+ # job is strange in that it is sent pre-emptively to lang without any corresponding
494
+ # command being sent first.
495
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch)) }
496
+ def notify_has_patch
497
+ end
498
+
499
+ # A patch marker has been detected and lang is being told that change exists. This
500
+ # job is strange in that it is sent pre-emptively to lang without any corresponding
501
+ # command being sent first.
502
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch)).void }
503
+ def notify_has_patch=(value)
504
+ end
505
+
506
+ # A patch marker has been detected and lang is being told that change exists. This
507
+ # job is strange in that it is sent pre-emptively to lang without any corresponding
508
+ # command being sent first.
509
+ sig { void }
510
+ def clear_notify_has_patch
511
+ end
512
+
513
+ # A child workflow execution has started or failed to start
514
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart)) }
515
+ def resolve_child_workflow_execution_start
516
+ end
517
+
518
+ # A child workflow execution has started or failed to start
519
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart)).void }
520
+ def resolve_child_workflow_execution_start=(value)
521
+ end
522
+
523
+ # A child workflow execution has started or failed to start
524
+ sig { void }
525
+ def clear_resolve_child_workflow_execution_start
526
+ end
527
+
528
+ # A child workflow was resolved, result could be completed or failed
529
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution)) }
530
+ def resolve_child_workflow_execution
531
+ end
532
+
533
+ # A child workflow was resolved, result could be completed or failed
534
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution)).void }
535
+ def resolve_child_workflow_execution=(value)
536
+ end
537
+
538
+ # A child workflow was resolved, result could be completed or failed
539
+ sig { void }
540
+ def clear_resolve_child_workflow_execution
541
+ end
542
+
543
+ # An attempt to signal an external workflow resolved
544
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow)) }
545
+ def resolve_signal_external_workflow
546
+ end
547
+
548
+ # An attempt to signal an external workflow resolved
549
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow)).void }
550
+ def resolve_signal_external_workflow=(value)
551
+ end
552
+
553
+ # An attempt to signal an external workflow resolved
554
+ sig { void }
555
+ def clear_resolve_signal_external_workflow
556
+ end
557
+
558
+ # An attempt to cancel an external workflow resolved
559
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow)) }
560
+ def resolve_request_cancel_external_workflow
561
+ end
562
+
563
+ # An attempt to cancel an external workflow resolved
564
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow)).void }
565
+ def resolve_request_cancel_external_workflow=(value)
566
+ end
567
+
568
+ # An attempt to cancel an external workflow resolved
569
+ sig { void }
570
+ def clear_resolve_request_cancel_external_workflow
571
+ end
572
+
573
+ # A request to handle a workflow update.
574
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate)) }
575
+ def do_update
576
+ end
577
+
578
+ # A request to handle a workflow update.
579
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate)).void }
580
+ def do_update=(value)
581
+ end
582
+
583
+ # A request to handle a workflow update.
584
+ sig { void }
585
+ def clear_do_update
586
+ end
587
+
588
+ # A nexus operation started.
589
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart)) }
590
+ def resolve_nexus_operation_start
591
+ end
592
+
593
+ # A nexus operation started.
594
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart)).void }
595
+ def resolve_nexus_operation_start=(value)
596
+ end
597
+
598
+ # A nexus operation started.
599
+ sig { void }
600
+ def clear_resolve_nexus_operation_start
601
+ end
602
+
603
+ # A nexus operation resolved.
604
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation)) }
605
+ def resolve_nexus_operation
606
+ end
607
+
608
+ # A nexus operation resolved.
609
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation)).void }
610
+ def resolve_nexus_operation=(value)
611
+ end
612
+
613
+ # A nexus operation resolved.
614
+ sig { void }
615
+ def clear_resolve_nexus_operation
616
+ end
617
+
618
+ # Remove the workflow identified by the [WorkflowActivation] containing this job from the
619
+ # cache after performing the activation. It is guaranteed that this will be the only job
620
+ # in the activation if present.
621
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache)) }
622
+ def remove_from_cache
623
+ end
624
+
625
+ # Remove the workflow identified by the [WorkflowActivation] containing this job from the
626
+ # cache after performing the activation. It is guaranteed that this will be the only job
627
+ # in the activation if present.
628
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache)).void }
629
+ def remove_from_cache=(value)
630
+ end
631
+
632
+ # Remove the workflow identified by the [WorkflowActivation] containing this job from the
633
+ # cache after performing the activation. It is guaranteed that this will be the only job
634
+ # in the activation if present.
635
+ sig { void }
636
+ def clear_remove_from_cache
637
+ end
638
+
639
+ sig { returns(T.nilable(Symbol)) }
640
+ def variant
641
+ end
642
+
643
+ sig { params(field: String).returns(T.untyped) }
644
+ def [](field)
645
+ end
646
+
647
+ sig { params(field: String, value: T.untyped).void }
648
+ def []=(field, value)
649
+ end
650
+
651
+ sig { returns(T::Hash[Symbol, T.untyped]) }
652
+ def to_h
653
+ end
654
+
655
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob) }
656
+ def self.decode(str)
657
+ end
658
+
659
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob).returns(String) }
660
+ def self.encode(msg)
661
+ end
662
+
663
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob) }
664
+ def self.decode_json(str, **kw)
665
+ end
666
+
667
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob, kw: T.untyped).returns(String) }
668
+ def self.encode_json(msg, **kw)
669
+ end
670
+
671
+ sig { returns(::Google::Protobuf::Descriptor) }
672
+ def self.descriptor
673
+ end
674
+ end
675
+
676
+ # Initialize a new workflow
677
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow
678
+ include ::Google::Protobuf::MessageExts
679
+ extend ::Google::Protobuf::MessageExts::ClassMethods
680
+
681
+ sig do
682
+ params(
683
+ workflow_type: T.nilable(String),
684
+ workflow_id: T.nilable(String),
685
+ arguments: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
686
+ randomness_seed: T.nilable(Integer),
687
+ headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
688
+ identity: T.nilable(String),
689
+ parent_workflow_info: T.nilable(Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution),
690
+ workflow_execution_timeout: T.nilable(Google::Protobuf::Duration),
691
+ workflow_run_timeout: T.nilable(Google::Protobuf::Duration),
692
+ workflow_task_timeout: T.nilable(Google::Protobuf::Duration),
693
+ continued_from_execution_run_id: T.nilable(String),
694
+ continued_initiator: T.nilable(T.any(Symbol, String, Integer)),
695
+ continued_failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
696
+ last_completion_result: T.nilable(Temporalio::Api::Common::V1::Payloads),
697
+ first_execution_run_id: T.nilable(String),
698
+ retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
699
+ attempt: T.nilable(Integer),
700
+ cron_schedule: T.nilable(String),
701
+ workflow_execution_expiration_time: T.nilable(Google::Protobuf::Timestamp),
702
+ cron_schedule_to_schedule_interval: T.nilable(Google::Protobuf::Duration),
703
+ memo: T.nilable(Temporalio::Api::Common::V1::Memo),
704
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
705
+ start_time: T.nilable(Google::Protobuf::Timestamp),
706
+ root_workflow: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution),
707
+ priority: T.nilable(Temporalio::Api::Common::V1::Priority)
708
+ ).void
709
+ end
710
+ def initialize(
711
+ workflow_type: "",
712
+ workflow_id: "",
713
+ arguments: [],
714
+ randomness_seed: 0,
715
+ headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
716
+ identity: "",
717
+ parent_workflow_info: nil,
718
+ workflow_execution_timeout: nil,
719
+ workflow_run_timeout: nil,
720
+ workflow_task_timeout: nil,
721
+ continued_from_execution_run_id: "",
722
+ continued_initiator: :CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED,
723
+ continued_failure: nil,
724
+ last_completion_result: nil,
725
+ first_execution_run_id: "",
726
+ retry_policy: nil,
727
+ attempt: 0,
728
+ cron_schedule: "",
729
+ workflow_execution_expiration_time: nil,
730
+ cron_schedule_to_schedule_interval: nil,
731
+ memo: nil,
732
+ search_attributes: nil,
733
+ start_time: nil,
734
+ root_workflow: nil,
735
+ priority: nil
736
+ )
737
+ end
738
+
739
+ # The identifier the lang-specific sdk uses to execute workflow code
740
+ sig { returns(String) }
741
+ def workflow_type
742
+ end
743
+
744
+ # The identifier the lang-specific sdk uses to execute workflow code
745
+ sig { params(value: String).void }
746
+ def workflow_type=(value)
747
+ end
748
+
749
+ # The identifier the lang-specific sdk uses to execute workflow code
750
+ sig { void }
751
+ def clear_workflow_type
752
+ end
753
+
754
+ # The workflow id used on the temporal server
755
+ sig { returns(String) }
756
+ def workflow_id
757
+ end
758
+
759
+ # The workflow id used on the temporal server
760
+ sig { params(value: String).void }
761
+ def workflow_id=(value)
762
+ end
763
+
764
+ # The workflow id used on the temporal server
765
+ sig { void }
766
+ def clear_workflow_id
767
+ end
768
+
769
+ # Inputs to the workflow code
770
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
771
+ def arguments
772
+ end
773
+
774
+ # Inputs to the workflow code
775
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
776
+ def arguments=(value)
777
+ end
778
+
779
+ # Inputs to the workflow code
780
+ sig { void }
781
+ def clear_arguments
782
+ end
783
+
784
+ # The seed must be used to initialize the random generator used by SDK.
785
+ # RandomSeedUpdatedAttributes are used to deliver seed updates.
786
+ sig { returns(Integer) }
787
+ def randomness_seed
788
+ end
789
+
790
+ # The seed must be used to initialize the random generator used by SDK.
791
+ # RandomSeedUpdatedAttributes are used to deliver seed updates.
792
+ sig { params(value: Integer).void }
793
+ def randomness_seed=(value)
794
+ end
795
+
796
+ # The seed must be used to initialize the random generator used by SDK.
797
+ # RandomSeedUpdatedAttributes are used to deliver seed updates.
798
+ sig { void }
799
+ def clear_randomness_seed
800
+ end
801
+
802
+ # Used to add metadata e.g. for tracing and auth, meant to be read and written to by interceptors.
803
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
804
+ def headers
805
+ end
806
+
807
+ # Used to add metadata e.g. for tracing and auth, meant to be read and written to by interceptors.
808
+ sig { params(value: ::Google::Protobuf::Map).void }
809
+ def headers=(value)
810
+ end
811
+
812
+ # Used to add metadata e.g. for tracing and auth, meant to be read and written to by interceptors.
813
+ sig { void }
814
+ def clear_headers
815
+ end
816
+
817
+ # Identity of the client who requested this execution
818
+ sig { returns(String) }
819
+ def identity
820
+ end
821
+
822
+ # Identity of the client who requested this execution
823
+ sig { params(value: String).void }
824
+ def identity=(value)
825
+ end
826
+
827
+ # Identity of the client who requested this execution
828
+ sig { void }
829
+ def clear_identity
830
+ end
831
+
832
+ # If this workflow is a child, information about the parent
833
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution)) }
834
+ def parent_workflow_info
835
+ end
836
+
837
+ # If this workflow is a child, information about the parent
838
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution)).void }
839
+ def parent_workflow_info=(value)
840
+ end
841
+
842
+ # If this workflow is a child, information about the parent
843
+ sig { void }
844
+ def clear_parent_workflow_info
845
+ end
846
+
847
+ # Total workflow execution timeout including retries and continue as new.
848
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
849
+ def workflow_execution_timeout
850
+ end
851
+
852
+ # Total workflow execution timeout including retries and continue as new.
853
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
854
+ def workflow_execution_timeout=(value)
855
+ end
856
+
857
+ # Total workflow execution timeout including retries and continue as new.
858
+ sig { void }
859
+ def clear_workflow_execution_timeout
860
+ end
861
+
862
+ # Timeout of a single workflow run.
863
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
864
+ def workflow_run_timeout
865
+ end
866
+
867
+ # Timeout of a single workflow run.
868
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
869
+ def workflow_run_timeout=(value)
870
+ end
871
+
872
+ # Timeout of a single workflow run.
873
+ sig { void }
874
+ def clear_workflow_run_timeout
875
+ end
876
+
877
+ # Timeout of a single workflow task.
878
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
879
+ def workflow_task_timeout
880
+ end
881
+
882
+ # Timeout of a single workflow task.
883
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
884
+ def workflow_task_timeout=(value)
885
+ end
886
+
887
+ # Timeout of a single workflow task.
888
+ sig { void }
889
+ def clear_workflow_task_timeout
890
+ end
891
+
892
+ # Run id of the previous workflow which continued-as-new or retired or cron executed into this
893
+ # workflow, if any.
894
+ sig { returns(String) }
895
+ def continued_from_execution_run_id
896
+ end
897
+
898
+ # Run id of the previous workflow which continued-as-new or retired or cron executed into this
899
+ # workflow, if any.
900
+ sig { params(value: String).void }
901
+ def continued_from_execution_run_id=(value)
902
+ end
903
+
904
+ # Run id of the previous workflow which continued-as-new or retired or cron executed into this
905
+ # workflow, if any.
906
+ sig { void }
907
+ def clear_continued_from_execution_run_id
908
+ end
909
+
910
+ # If this workflow was a continuation, indicates the type of continuation.
911
+ sig { returns(T.any(Symbol, Integer)) }
912
+ def continued_initiator
913
+ end
914
+
915
+ # If this workflow was a continuation, indicates the type of continuation.
916
+ sig { params(value: T.any(Symbol, String, Integer)).void }
917
+ def continued_initiator=(value)
918
+ end
919
+
920
+ # If this workflow was a continuation, indicates the type of continuation.
921
+ sig { void }
922
+ def clear_continued_initiator
923
+ end
924
+
925
+ # If this workflow was a continuation and that continuation failed, the details of that.
926
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
927
+ def continued_failure
928
+ end
929
+
930
+ # If this workflow was a continuation and that continuation failed, the details of that.
931
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
932
+ def continued_failure=(value)
933
+ end
934
+
935
+ # If this workflow was a continuation and that continuation failed, the details of that.
936
+ sig { void }
937
+ def clear_continued_failure
938
+ end
939
+
940
+ # If this workflow was a continuation and that continuation completed, the details of that.
941
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
942
+ def last_completion_result
943
+ end
944
+
945
+ # If this workflow was a continuation and that continuation completed, the details of that.
946
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
947
+ def last_completion_result=(value)
948
+ end
949
+
950
+ # If this workflow was a continuation and that continuation completed, the details of that.
951
+ sig { void }
952
+ def clear_last_completion_result
953
+ end
954
+
955
+ # This is the very first run id the workflow ever had, following continuation chains.
956
+ sig { returns(String) }
957
+ def first_execution_run_id
958
+ end
959
+
960
+ # This is the very first run id the workflow ever had, following continuation chains.
961
+ sig { params(value: String).void }
962
+ def first_execution_run_id=(value)
963
+ end
964
+
965
+ # This is the very first run id the workflow ever had, following continuation chains.
966
+ sig { void }
967
+ def clear_first_execution_run_id
968
+ end
969
+
970
+ # This workflow's retry policy
971
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
972
+ def retry_policy
973
+ end
974
+
975
+ # This workflow's retry policy
976
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
977
+ def retry_policy=(value)
978
+ end
979
+
980
+ # This workflow's retry policy
981
+ sig { void }
982
+ def clear_retry_policy
983
+ end
984
+
985
+ # Starting at 1, the number of times we have tried to execute this workflow
986
+ sig { returns(Integer) }
987
+ def attempt
988
+ end
989
+
990
+ # Starting at 1, the number of times we have tried to execute this workflow
991
+ sig { params(value: Integer).void }
992
+ def attempt=(value)
993
+ end
994
+
995
+ # Starting at 1, the number of times we have tried to execute this workflow
996
+ sig { void }
997
+ def clear_attempt
998
+ end
999
+
1000
+ # If this workflow runs on a cron schedule, it will appear here
1001
+ sig { returns(String) }
1002
+ def cron_schedule
1003
+ end
1004
+
1005
+ # If this workflow runs on a cron schedule, it will appear here
1006
+ sig { params(value: String).void }
1007
+ def cron_schedule=(value)
1008
+ end
1009
+
1010
+ # If this workflow runs on a cron schedule, it will appear here
1011
+ sig { void }
1012
+ def clear_cron_schedule
1013
+ end
1014
+
1015
+ # The absolute time at which the workflow will be timed out.
1016
+ # This is passed without change to the next run/retry of a workflow.
1017
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1018
+ def workflow_execution_expiration_time
1019
+ end
1020
+
1021
+ # The absolute time at which the workflow will be timed out.
1022
+ # This is passed without change to the next run/retry of a workflow.
1023
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1024
+ def workflow_execution_expiration_time=(value)
1025
+ end
1026
+
1027
+ # The absolute time at which the workflow will be timed out.
1028
+ # This is passed without change to the next run/retry of a workflow.
1029
+ sig { void }
1030
+ def clear_workflow_execution_expiration_time
1031
+ end
1032
+
1033
+ # For a cron workflow, this contains the amount of time between when this iteration of
1034
+ # the cron workflow was scheduled and when it should run next per its cron_schedule.
1035
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1036
+ def cron_schedule_to_schedule_interval
1037
+ end
1038
+
1039
+ # For a cron workflow, this contains the amount of time between when this iteration of
1040
+ # the cron workflow was scheduled and when it should run next per its cron_schedule.
1041
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1042
+ def cron_schedule_to_schedule_interval=(value)
1043
+ end
1044
+
1045
+ # For a cron workflow, this contains the amount of time between when this iteration of
1046
+ # the cron workflow was scheduled and when it should run next per its cron_schedule.
1047
+ sig { void }
1048
+ def clear_cron_schedule_to_schedule_interval
1049
+ end
1050
+
1051
+ # User-defined memo
1052
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Memo)) }
1053
+ def memo
1054
+ end
1055
+
1056
+ # User-defined memo
1057
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Memo)).void }
1058
+ def memo=(value)
1059
+ end
1060
+
1061
+ # User-defined memo
1062
+ sig { void }
1063
+ def clear_memo
1064
+ end
1065
+
1066
+ # Search attributes created/updated when this workflow was started
1067
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
1068
+ def search_attributes
1069
+ end
1070
+
1071
+ # Search attributes created/updated when this workflow was started
1072
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
1073
+ def search_attributes=(value)
1074
+ end
1075
+
1076
+ # Search attributes created/updated when this workflow was started
1077
+ sig { void }
1078
+ def clear_search_attributes
1079
+ end
1080
+
1081
+ # When the workflow execution started event was first written
1082
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1083
+ def start_time
1084
+ end
1085
+
1086
+ # When the workflow execution started event was first written
1087
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1088
+ def start_time=(value)
1089
+ end
1090
+
1091
+ # When the workflow execution started event was first written
1092
+ sig { void }
1093
+ def clear_start_time
1094
+ end
1095
+
1096
+ # Contains information about the root workflow execution. It is possible for the namespace to
1097
+ # be different than this workflow if using OSS and cross-namespace children, but this
1098
+ # information is not retained. Users should take care to track it by other means in such
1099
+ # situations.
1100
+ #
1101
+ # The root workflow execution is defined as follows:
1102
+ # 1. A workflow without parent workflow is its own root workflow.
1103
+ # 2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
1104
+ #
1105
+ # See field in WorkflowExecutionStarted for more detail.
1106
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)) }
1107
+ def root_workflow
1108
+ end
1109
+
1110
+ # Contains information about the root workflow execution. It is possible for the namespace to
1111
+ # be different than this workflow if using OSS and cross-namespace children, but this
1112
+ # information is not retained. Users should take care to track it by other means in such
1113
+ # situations.
1114
+ #
1115
+ # The root workflow execution is defined as follows:
1116
+ # 1. A workflow without parent workflow is its own root workflow.
1117
+ # 2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
1118
+ #
1119
+ # See field in WorkflowExecutionStarted for more detail.
1120
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)).void }
1121
+ def root_workflow=(value)
1122
+ end
1123
+
1124
+ # Contains information about the root workflow execution. It is possible for the namespace to
1125
+ # be different than this workflow if using OSS and cross-namespace children, but this
1126
+ # information is not retained. Users should take care to track it by other means in such
1127
+ # situations.
1128
+ #
1129
+ # The root workflow execution is defined as follows:
1130
+ # 1. A workflow without parent workflow is its own root workflow.
1131
+ # 2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
1132
+ #
1133
+ # See field in WorkflowExecutionStarted for more detail.
1134
+ sig { void }
1135
+ def clear_root_workflow
1136
+ end
1137
+
1138
+ # Priority of this workflow execution
1139
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
1140
+ def priority
1141
+ end
1142
+
1143
+ # Priority of this workflow execution
1144
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
1145
+ def priority=(value)
1146
+ end
1147
+
1148
+ # Priority of this workflow execution
1149
+ sig { void }
1150
+ def clear_priority
1151
+ end
1152
+
1153
+ sig { params(field: String).returns(T.untyped) }
1154
+ def [](field)
1155
+ end
1156
+
1157
+ sig { params(field: String, value: T.untyped).void }
1158
+ def []=(field, value)
1159
+ end
1160
+
1161
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1162
+ def to_h
1163
+ end
1164
+
1165
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow) }
1166
+ def self.decode(str)
1167
+ end
1168
+
1169
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow).returns(String) }
1170
+ def self.encode(msg)
1171
+ end
1172
+
1173
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow) }
1174
+ def self.decode_json(str, **kw)
1175
+ end
1176
+
1177
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow, kw: T.untyped).returns(String) }
1178
+ def self.encode_json(msg, **kw)
1179
+ end
1180
+
1181
+ sig { returns(::Google::Protobuf::Descriptor) }
1182
+ def self.descriptor
1183
+ end
1184
+ end
1185
+
1186
+ # Notify a workflow that a timer has fired
1187
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer
1188
+ include ::Google::Protobuf::MessageExts
1189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1190
+
1191
+ sig do
1192
+ params(
1193
+ seq: T.nilable(Integer)
1194
+ ).void
1195
+ end
1196
+ def initialize(
1197
+ seq: 0
1198
+ )
1199
+ end
1200
+
1201
+ # Sequence number as provided by lang in the corresponding StartTimer command
1202
+ sig { returns(Integer) }
1203
+ def seq
1204
+ end
1205
+
1206
+ # Sequence number as provided by lang in the corresponding StartTimer command
1207
+ sig { params(value: Integer).void }
1208
+ def seq=(value)
1209
+ end
1210
+
1211
+ # Sequence number as provided by lang in the corresponding StartTimer command
1212
+ sig { void }
1213
+ def clear_seq
1214
+ end
1215
+
1216
+ sig { params(field: String).returns(T.untyped) }
1217
+ def [](field)
1218
+ end
1219
+
1220
+ sig { params(field: String, value: T.untyped).void }
1221
+ def []=(field, value)
1222
+ end
1223
+
1224
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1225
+ def to_h
1226
+ end
1227
+
1228
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer) }
1229
+ def self.decode(str)
1230
+ end
1231
+
1232
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer).returns(String) }
1233
+ def self.encode(msg)
1234
+ end
1235
+
1236
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer) }
1237
+ def self.decode_json(str, **kw)
1238
+ end
1239
+
1240
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer, kw: T.untyped).returns(String) }
1241
+ def self.encode_json(msg, **kw)
1242
+ end
1243
+
1244
+ sig { returns(::Google::Protobuf::Descriptor) }
1245
+ def self.descriptor
1246
+ end
1247
+ end
1248
+
1249
+ # Notify a workflow that an activity has been resolved
1250
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity
1251
+ include ::Google::Protobuf::MessageExts
1252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1253
+
1254
+ sig do
1255
+ params(
1256
+ seq: T.nilable(Integer),
1257
+ result: T.nilable(Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution),
1258
+ is_local: T.nilable(T::Boolean)
1259
+ ).void
1260
+ end
1261
+ def initialize(
1262
+ seq: 0,
1263
+ result: nil,
1264
+ is_local: false
1265
+ )
1266
+ end
1267
+
1268
+ # Sequence number as provided by lang in the corresponding ScheduleActivity command
1269
+ sig { returns(Integer) }
1270
+ def seq
1271
+ end
1272
+
1273
+ # Sequence number as provided by lang in the corresponding ScheduleActivity command
1274
+ sig { params(value: Integer).void }
1275
+ def seq=(value)
1276
+ end
1277
+
1278
+ # Sequence number as provided by lang in the corresponding ScheduleActivity command
1279
+ sig { void }
1280
+ def clear_seq
1281
+ end
1282
+
1283
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution)) }
1284
+ def result
1285
+ end
1286
+
1287
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution)).void }
1288
+ def result=(value)
1289
+ end
1290
+
1291
+ sig { void }
1292
+ def clear_result
1293
+ end
1294
+
1295
+ # Set to true if the resolution is for a local activity. This is used internally by Core and
1296
+ # lang does not need to care about it.
1297
+ sig { returns(T::Boolean) }
1298
+ def is_local
1299
+ end
1300
+
1301
+ # Set to true if the resolution is for a local activity. This is used internally by Core and
1302
+ # lang does not need to care about it.
1303
+ sig { params(value: T::Boolean).void }
1304
+ def is_local=(value)
1305
+ end
1306
+
1307
+ # Set to true if the resolution is for a local activity. This is used internally by Core and
1308
+ # lang does not need to care about it.
1309
+ sig { void }
1310
+ def clear_is_local
1311
+ end
1312
+
1313
+ sig { params(field: String).returns(T.untyped) }
1314
+ def [](field)
1315
+ end
1316
+
1317
+ sig { params(field: String, value: T.untyped).void }
1318
+ def []=(field, value)
1319
+ end
1320
+
1321
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1322
+ def to_h
1323
+ end
1324
+
1325
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity) }
1326
+ def self.decode(str)
1327
+ end
1328
+
1329
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity).returns(String) }
1330
+ def self.encode(msg)
1331
+ end
1332
+
1333
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity) }
1334
+ def self.decode_json(str, **kw)
1335
+ end
1336
+
1337
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity, kw: T.untyped).returns(String) }
1338
+ def self.encode_json(msg, **kw)
1339
+ end
1340
+
1341
+ sig { returns(::Google::Protobuf::Descriptor) }
1342
+ def self.descriptor
1343
+ end
1344
+ end
1345
+
1346
+ # Notify a workflow that a start child workflow execution request has succeeded, failed or was
1347
+ # cancelled.
1348
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart
1349
+ include ::Google::Protobuf::MessageExts
1350
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1351
+
1352
+ sig do
1353
+ params(
1354
+ seq: T.nilable(Integer),
1355
+ succeeded: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess),
1356
+ failed: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure),
1357
+ cancelled: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled)
1358
+ ).void
1359
+ end
1360
+ def initialize(
1361
+ seq: 0,
1362
+ succeeded: nil,
1363
+ failed: nil,
1364
+ cancelled: nil
1365
+ )
1366
+ end
1367
+
1368
+ # Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
1369
+ sig { returns(Integer) }
1370
+ def seq
1371
+ end
1372
+
1373
+ # Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
1374
+ sig { params(value: Integer).void }
1375
+ def seq=(value)
1376
+ end
1377
+
1378
+ # Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
1379
+ sig { void }
1380
+ def clear_seq
1381
+ end
1382
+
1383
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess)) }
1384
+ def succeeded
1385
+ end
1386
+
1387
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess)).void }
1388
+ def succeeded=(value)
1389
+ end
1390
+
1391
+ sig { void }
1392
+ def clear_succeeded
1393
+ end
1394
+
1395
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure)) }
1396
+ def failed
1397
+ end
1398
+
1399
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure)).void }
1400
+ def failed=(value)
1401
+ end
1402
+
1403
+ sig { void }
1404
+ def clear_failed
1405
+ end
1406
+
1407
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled)) }
1408
+ def cancelled
1409
+ end
1410
+
1411
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled)).void }
1412
+ def cancelled=(value)
1413
+ end
1414
+
1415
+ sig { void }
1416
+ def clear_cancelled
1417
+ end
1418
+
1419
+ sig { returns(T.nilable(Symbol)) }
1420
+ def status
1421
+ end
1422
+
1423
+ sig { params(field: String).returns(T.untyped) }
1424
+ def [](field)
1425
+ end
1426
+
1427
+ sig { params(field: String, value: T.untyped).void }
1428
+ def []=(field, value)
1429
+ end
1430
+
1431
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1432
+ def to_h
1433
+ end
1434
+
1435
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart) }
1436
+ def self.decode(str)
1437
+ end
1438
+
1439
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart).returns(String) }
1440
+ def self.encode(msg)
1441
+ end
1442
+
1443
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart) }
1444
+ def self.decode_json(str, **kw)
1445
+ end
1446
+
1447
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart, kw: T.untyped).returns(String) }
1448
+ def self.encode_json(msg, **kw)
1449
+ end
1450
+
1451
+ sig { returns(::Google::Protobuf::Descriptor) }
1452
+ def self.descriptor
1453
+ end
1454
+ end
1455
+
1456
+ # Simply pass the run_id to lang
1457
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess
1458
+ include ::Google::Protobuf::MessageExts
1459
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1460
+
1461
+ sig do
1462
+ params(
1463
+ run_id: T.nilable(String)
1464
+ ).void
1465
+ end
1466
+ def initialize(
1467
+ run_id: ""
1468
+ )
1469
+ end
1470
+
1471
+ sig { returns(String) }
1472
+ def run_id
1473
+ end
1474
+
1475
+ sig { params(value: String).void }
1476
+ def run_id=(value)
1477
+ end
1478
+
1479
+ sig { void }
1480
+ def clear_run_id
1481
+ end
1482
+
1483
+ sig { params(field: String).returns(T.untyped) }
1484
+ def [](field)
1485
+ end
1486
+
1487
+ sig { params(field: String, value: T.untyped).void }
1488
+ def []=(field, value)
1489
+ end
1490
+
1491
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1492
+ def to_h
1493
+ end
1494
+
1495
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess) }
1496
+ def self.decode(str)
1497
+ end
1498
+
1499
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess).returns(String) }
1500
+ def self.encode(msg)
1501
+ end
1502
+
1503
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess) }
1504
+ def self.decode_json(str, **kw)
1505
+ end
1506
+
1507
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess, kw: T.untyped).returns(String) }
1508
+ def self.encode_json(msg, **kw)
1509
+ end
1510
+
1511
+ sig { returns(::Google::Protobuf::Descriptor) }
1512
+ def self.descriptor
1513
+ end
1514
+ end
1515
+
1516
+ # Provide lang the cause of failure
1517
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure
1518
+ include ::Google::Protobuf::MessageExts
1519
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1520
+
1521
+ sig do
1522
+ params(
1523
+ workflow_id: T.nilable(String),
1524
+ workflow_type: T.nilable(String),
1525
+ cause: T.nilable(T.any(Symbol, String, Integer))
1526
+ ).void
1527
+ end
1528
+ def initialize(
1529
+ workflow_id: "",
1530
+ workflow_type: "",
1531
+ cause: :START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED
1532
+ )
1533
+ end
1534
+
1535
+ # Lang should have this information but it's more convenient to pass it back
1536
+ # for error construction on the lang side.
1537
+ sig { returns(String) }
1538
+ def workflow_id
1539
+ end
1540
+
1541
+ # Lang should have this information but it's more convenient to pass it back
1542
+ # for error construction on the lang side.
1543
+ sig { params(value: String).void }
1544
+ def workflow_id=(value)
1545
+ end
1546
+
1547
+ # Lang should have this information but it's more convenient to pass it back
1548
+ # for error construction on the lang side.
1549
+ sig { void }
1550
+ def clear_workflow_id
1551
+ end
1552
+
1553
+ sig { returns(String) }
1554
+ def workflow_type
1555
+ end
1556
+
1557
+ sig { params(value: String).void }
1558
+ def workflow_type=(value)
1559
+ end
1560
+
1561
+ sig { void }
1562
+ def clear_workflow_type
1563
+ end
1564
+
1565
+ sig { returns(T.any(Symbol, Integer)) }
1566
+ def cause
1567
+ end
1568
+
1569
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1570
+ def cause=(value)
1571
+ end
1572
+
1573
+ sig { void }
1574
+ def clear_cause
1575
+ end
1576
+
1577
+ sig { params(field: String).returns(T.untyped) }
1578
+ def [](field)
1579
+ end
1580
+
1581
+ sig { params(field: String, value: T.untyped).void }
1582
+ def []=(field, value)
1583
+ end
1584
+
1585
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1586
+ def to_h
1587
+ end
1588
+
1589
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure) }
1590
+ def self.decode(str)
1591
+ end
1592
+
1593
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure).returns(String) }
1594
+ def self.encode(msg)
1595
+ end
1596
+
1597
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure) }
1598
+ def self.decode_json(str, **kw)
1599
+ end
1600
+
1601
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure, kw: T.untyped).returns(String) }
1602
+ def self.encode_json(msg, **kw)
1603
+ end
1604
+
1605
+ sig { returns(::Google::Protobuf::Descriptor) }
1606
+ def self.descriptor
1607
+ end
1608
+ end
1609
+
1610
+ # `failure` should be ChildWorkflowFailure with cause set to CancelledFailure.
1611
+ # The failure is constructed in core for lang's convenience.
1612
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled
1613
+ include ::Google::Protobuf::MessageExts
1614
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1615
+
1616
+ sig do
1617
+ params(
1618
+ failure: T.nilable(Temporalio::Api::Failure::V1::Failure)
1619
+ ).void
1620
+ end
1621
+ def initialize(
1622
+ failure: nil
1623
+ )
1624
+ end
1625
+
1626
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
1627
+ def failure
1628
+ end
1629
+
1630
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
1631
+ def failure=(value)
1632
+ end
1633
+
1634
+ sig { void }
1635
+ def clear_failure
1636
+ end
1637
+
1638
+ sig { params(field: String).returns(T.untyped) }
1639
+ def [](field)
1640
+ end
1641
+
1642
+ sig { params(field: String, value: T.untyped).void }
1643
+ def []=(field, value)
1644
+ end
1645
+
1646
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1647
+ def to_h
1648
+ end
1649
+
1650
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled) }
1651
+ def self.decode(str)
1652
+ end
1653
+
1654
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled).returns(String) }
1655
+ def self.encode(msg)
1656
+ end
1657
+
1658
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled) }
1659
+ def self.decode_json(str, **kw)
1660
+ end
1661
+
1662
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled, kw: T.untyped).returns(String) }
1663
+ def self.encode_json(msg, **kw)
1664
+ end
1665
+
1666
+ sig { returns(::Google::Protobuf::Descriptor) }
1667
+ def self.descriptor
1668
+ end
1669
+ end
1670
+
1671
+ # Notify a workflow that a child workflow execution has been resolved
1672
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution
1673
+ include ::Google::Protobuf::MessageExts
1674
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1675
+
1676
+ sig do
1677
+ params(
1678
+ seq: T.nilable(Integer),
1679
+ result: T.nilable(Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult)
1680
+ ).void
1681
+ end
1682
+ def initialize(
1683
+ seq: 0,
1684
+ result: nil
1685
+ )
1686
+ end
1687
+
1688
+ # Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
1689
+ sig { returns(Integer) }
1690
+ def seq
1691
+ end
1692
+
1693
+ # Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
1694
+ sig { params(value: Integer).void }
1695
+ def seq=(value)
1696
+ end
1697
+
1698
+ # Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
1699
+ sig { void }
1700
+ def clear_seq
1701
+ end
1702
+
1703
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult)) }
1704
+ def result
1705
+ end
1706
+
1707
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult)).void }
1708
+ def result=(value)
1709
+ end
1710
+
1711
+ sig { void }
1712
+ def clear_result
1713
+ end
1714
+
1715
+ sig { params(field: String).returns(T.untyped) }
1716
+ def [](field)
1717
+ end
1718
+
1719
+ sig { params(field: String, value: T.untyped).void }
1720
+ def []=(field, value)
1721
+ end
1722
+
1723
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1724
+ def to_h
1725
+ end
1726
+
1727
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution) }
1728
+ def self.decode(str)
1729
+ end
1730
+
1731
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution).returns(String) }
1732
+ def self.encode(msg)
1733
+ end
1734
+
1735
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution) }
1736
+ def self.decode_json(str, **kw)
1737
+ end
1738
+
1739
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution, kw: T.untyped).returns(String) }
1740
+ def self.encode_json(msg, **kw)
1741
+ end
1742
+
1743
+ sig { returns(::Google::Protobuf::Descriptor) }
1744
+ def self.descriptor
1745
+ end
1746
+ end
1747
+
1748
+ # Update the workflow's random seed
1749
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed
1750
+ include ::Google::Protobuf::MessageExts
1751
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1752
+
1753
+ sig do
1754
+ params(
1755
+ randomness_seed: T.nilable(Integer)
1756
+ ).void
1757
+ end
1758
+ def initialize(
1759
+ randomness_seed: 0
1760
+ )
1761
+ end
1762
+
1763
+ sig { returns(Integer) }
1764
+ def randomness_seed
1765
+ end
1766
+
1767
+ sig { params(value: Integer).void }
1768
+ def randomness_seed=(value)
1769
+ end
1770
+
1771
+ sig { void }
1772
+ def clear_randomness_seed
1773
+ end
1774
+
1775
+ sig { params(field: String).returns(T.untyped) }
1776
+ def [](field)
1777
+ end
1778
+
1779
+ sig { params(field: String, value: T.untyped).void }
1780
+ def []=(field, value)
1781
+ end
1782
+
1783
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1784
+ def to_h
1785
+ end
1786
+
1787
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed) }
1788
+ def self.decode(str)
1789
+ end
1790
+
1791
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed).returns(String) }
1792
+ def self.encode(msg)
1793
+ end
1794
+
1795
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed) }
1796
+ def self.decode_json(str, **kw)
1797
+ end
1798
+
1799
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed, kw: T.untyped).returns(String) }
1800
+ def self.encode_json(msg, **kw)
1801
+ end
1802
+
1803
+ sig { returns(::Google::Protobuf::Descriptor) }
1804
+ def self.descriptor
1805
+ end
1806
+ end
1807
+
1808
+ # Query a workflow
1809
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow
1810
+ include ::Google::Protobuf::MessageExts
1811
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1812
+
1813
+ sig do
1814
+ params(
1815
+ query_id: T.nilable(String),
1816
+ query_type: T.nilable(String),
1817
+ arguments: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
1818
+ headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)])
1819
+ ).void
1820
+ end
1821
+ def initialize(
1822
+ query_id: "",
1823
+ query_type: "",
1824
+ arguments: [],
1825
+ headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload)
1826
+ )
1827
+ end
1828
+
1829
+ # For PollWFTResp `query` field, this will be set to the special value `legacy`. For the
1830
+ # `queries` field, the server provides a unique identifier. If it is a `legacy` query,
1831
+ # lang cannot issue any commands in response other than to answer the query.
1832
+ sig { returns(String) }
1833
+ def query_id
1834
+ end
1835
+
1836
+ # For PollWFTResp `query` field, this will be set to the special value `legacy`. For the
1837
+ # `queries` field, the server provides a unique identifier. If it is a `legacy` query,
1838
+ # lang cannot issue any commands in response other than to answer the query.
1839
+ sig { params(value: String).void }
1840
+ def query_id=(value)
1841
+ end
1842
+
1843
+ # For PollWFTResp `query` field, this will be set to the special value `legacy`. For the
1844
+ # `queries` field, the server provides a unique identifier. If it is a `legacy` query,
1845
+ # lang cannot issue any commands in response other than to answer the query.
1846
+ sig { void }
1847
+ def clear_query_id
1848
+ end
1849
+
1850
+ # The query's function/method/etc name
1851
+ sig { returns(String) }
1852
+ def query_type
1853
+ end
1854
+
1855
+ # The query's function/method/etc name
1856
+ sig { params(value: String).void }
1857
+ def query_type=(value)
1858
+ end
1859
+
1860
+ # The query's function/method/etc name
1861
+ sig { void }
1862
+ def clear_query_type
1863
+ end
1864
+
1865
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
1866
+ def arguments
1867
+ end
1868
+
1869
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
1870
+ def arguments=(value)
1871
+ end
1872
+
1873
+ sig { void }
1874
+ def clear_arguments
1875
+ end
1876
+
1877
+ # Headers attached to the query
1878
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
1879
+ def headers
1880
+ end
1881
+
1882
+ # Headers attached to the query
1883
+ sig { params(value: ::Google::Protobuf::Map).void }
1884
+ def headers=(value)
1885
+ end
1886
+
1887
+ # Headers attached to the query
1888
+ sig { void }
1889
+ def clear_headers
1890
+ end
1891
+
1892
+ sig { params(field: String).returns(T.untyped) }
1893
+ def [](field)
1894
+ end
1895
+
1896
+ sig { params(field: String, value: T.untyped).void }
1897
+ def []=(field, value)
1898
+ end
1899
+
1900
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1901
+ def to_h
1902
+ end
1903
+
1904
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow) }
1905
+ def self.decode(str)
1906
+ end
1907
+
1908
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow).returns(String) }
1909
+ def self.encode(msg)
1910
+ end
1911
+
1912
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow) }
1913
+ def self.decode_json(str, **kw)
1914
+ end
1915
+
1916
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow, kw: T.untyped).returns(String) }
1917
+ def self.encode_json(msg, **kw)
1918
+ end
1919
+
1920
+ sig { returns(::Google::Protobuf::Descriptor) }
1921
+ def self.descriptor
1922
+ end
1923
+ end
1924
+
1925
+ # Cancel a running workflow
1926
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow
1927
+ include ::Google::Protobuf::MessageExts
1928
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1929
+
1930
+ sig do
1931
+ params(
1932
+ reason: T.nilable(String)
1933
+ ).void
1934
+ end
1935
+ def initialize(
1936
+ reason: ""
1937
+ )
1938
+ end
1939
+
1940
+ # User-specified reason the cancel request was issued
1941
+ sig { returns(String) }
1942
+ def reason
1943
+ end
1944
+
1945
+ # User-specified reason the cancel request was issued
1946
+ sig { params(value: String).void }
1947
+ def reason=(value)
1948
+ end
1949
+
1950
+ # User-specified reason the cancel request was issued
1951
+ sig { void }
1952
+ def clear_reason
1953
+ end
1954
+
1955
+ sig { params(field: String).returns(T.untyped) }
1956
+ def [](field)
1957
+ end
1958
+
1959
+ sig { params(field: String, value: T.untyped).void }
1960
+ def []=(field, value)
1961
+ end
1962
+
1963
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1964
+ def to_h
1965
+ end
1966
+
1967
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow) }
1968
+ def self.decode(str)
1969
+ end
1970
+
1971
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow).returns(String) }
1972
+ def self.encode(msg)
1973
+ end
1974
+
1975
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow) }
1976
+ def self.decode_json(str, **kw)
1977
+ end
1978
+
1979
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow, kw: T.untyped).returns(String) }
1980
+ def self.encode_json(msg, **kw)
1981
+ end
1982
+
1983
+ sig { returns(::Google::Protobuf::Descriptor) }
1984
+ def self.descriptor
1985
+ end
1986
+ end
1987
+
1988
+ # Send a signal to a workflow
1989
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow
1990
+ include ::Google::Protobuf::MessageExts
1991
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1992
+
1993
+ sig do
1994
+ params(
1995
+ signal_name: T.nilable(String),
1996
+ input: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
1997
+ identity: T.nilable(String),
1998
+ headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)])
1999
+ ).void
2000
+ end
2001
+ def initialize(
2002
+ signal_name: "",
2003
+ input: [],
2004
+ identity: "",
2005
+ headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload)
2006
+ )
2007
+ end
2008
+
2009
+ sig { returns(String) }
2010
+ def signal_name
2011
+ end
2012
+
2013
+ sig { params(value: String).void }
2014
+ def signal_name=(value)
2015
+ end
2016
+
2017
+ sig { void }
2018
+ def clear_signal_name
2019
+ end
2020
+
2021
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
2022
+ def input
2023
+ end
2024
+
2025
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2026
+ def input=(value)
2027
+ end
2028
+
2029
+ sig { void }
2030
+ def clear_input
2031
+ end
2032
+
2033
+ # Identity of the sender of the signal
2034
+ sig { returns(String) }
2035
+ def identity
2036
+ end
2037
+
2038
+ # Identity of the sender of the signal
2039
+ sig { params(value: String).void }
2040
+ def identity=(value)
2041
+ end
2042
+
2043
+ # Identity of the sender of the signal
2044
+ sig { void }
2045
+ def clear_identity
2046
+ end
2047
+
2048
+ # Headers attached to the signal
2049
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
2050
+ def headers
2051
+ end
2052
+
2053
+ # Headers attached to the signal
2054
+ sig { params(value: ::Google::Protobuf::Map).void }
2055
+ def headers=(value)
2056
+ end
2057
+
2058
+ # Headers attached to the signal
2059
+ sig { void }
2060
+ def clear_headers
2061
+ end
2062
+
2063
+ sig { params(field: String).returns(T.untyped) }
2064
+ def [](field)
2065
+ end
2066
+
2067
+ sig { params(field: String, value: T.untyped).void }
2068
+ def []=(field, value)
2069
+ end
2070
+
2071
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2072
+ def to_h
2073
+ end
2074
+
2075
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow) }
2076
+ def self.decode(str)
2077
+ end
2078
+
2079
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow).returns(String) }
2080
+ def self.encode(msg)
2081
+ end
2082
+
2083
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow) }
2084
+ def self.decode_json(str, **kw)
2085
+ end
2086
+
2087
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow, kw: T.untyped).returns(String) }
2088
+ def self.encode_json(msg, **kw)
2089
+ end
2090
+
2091
+ sig { returns(::Google::Protobuf::Descriptor) }
2092
+ def self.descriptor
2093
+ end
2094
+ end
2095
+
2096
+ # Inform lang what the result of a call to `patched` or similar API should be -- this is always
2097
+ # sent pre-emptively, so any time it is sent the change is present
2098
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch
2099
+ include ::Google::Protobuf::MessageExts
2100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2101
+
2102
+ sig do
2103
+ params(
2104
+ patch_id: T.nilable(String)
2105
+ ).void
2106
+ end
2107
+ def initialize(
2108
+ patch_id: ""
2109
+ )
2110
+ end
2111
+
2112
+ sig { returns(String) }
2113
+ def patch_id
2114
+ end
2115
+
2116
+ sig { params(value: String).void }
2117
+ def patch_id=(value)
2118
+ end
2119
+
2120
+ sig { void }
2121
+ def clear_patch_id
2122
+ end
2123
+
2124
+ sig { params(field: String).returns(T.untyped) }
2125
+ def [](field)
2126
+ end
2127
+
2128
+ sig { params(field: String, value: T.untyped).void }
2129
+ def []=(field, value)
2130
+ end
2131
+
2132
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2133
+ def to_h
2134
+ end
2135
+
2136
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch) }
2137
+ def self.decode(str)
2138
+ end
2139
+
2140
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch).returns(String) }
2141
+ def self.encode(msg)
2142
+ end
2143
+
2144
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch) }
2145
+ def self.decode_json(str, **kw)
2146
+ end
2147
+
2148
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch, kw: T.untyped).returns(String) }
2149
+ def self.encode_json(msg, **kw)
2150
+ end
2151
+
2152
+ sig { returns(::Google::Protobuf::Descriptor) }
2153
+ def self.descriptor
2154
+ end
2155
+ end
2156
+
2157
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow
2158
+ include ::Google::Protobuf::MessageExts
2159
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2160
+
2161
+ sig do
2162
+ params(
2163
+ seq: T.nilable(Integer),
2164
+ failure: T.nilable(Temporalio::Api::Failure::V1::Failure)
2165
+ ).void
2166
+ end
2167
+ def initialize(
2168
+ seq: 0,
2169
+ failure: nil
2170
+ )
2171
+ end
2172
+
2173
+ # Sequence number as provided by lang in the corresponding SignalExternalWorkflowExecution
2174
+ # command
2175
+ sig { returns(Integer) }
2176
+ def seq
2177
+ end
2178
+
2179
+ # Sequence number as provided by lang in the corresponding SignalExternalWorkflowExecution
2180
+ # command
2181
+ sig { params(value: Integer).void }
2182
+ def seq=(value)
2183
+ end
2184
+
2185
+ # Sequence number as provided by lang in the corresponding SignalExternalWorkflowExecution
2186
+ # command
2187
+ sig { void }
2188
+ def clear_seq
2189
+ end
2190
+
2191
+ # If populated, this signal either failed to be sent or was cancelled depending on failure
2192
+ # type / info.
2193
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
2194
+ def failure
2195
+ end
2196
+
2197
+ # If populated, this signal either failed to be sent or was cancelled depending on failure
2198
+ # type / info.
2199
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
2200
+ def failure=(value)
2201
+ end
2202
+
2203
+ # If populated, this signal either failed to be sent or was cancelled depending on failure
2204
+ # type / info.
2205
+ sig { void }
2206
+ def clear_failure
2207
+ end
2208
+
2209
+ sig { params(field: String).returns(T.untyped) }
2210
+ def [](field)
2211
+ end
2212
+
2213
+ sig { params(field: String, value: T.untyped).void }
2214
+ def []=(field, value)
2215
+ end
2216
+
2217
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2218
+ def to_h
2219
+ end
2220
+
2221
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow) }
2222
+ def self.decode(str)
2223
+ end
2224
+
2225
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow).returns(String) }
2226
+ def self.encode(msg)
2227
+ end
2228
+
2229
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow) }
2230
+ def self.decode_json(str, **kw)
2231
+ end
2232
+
2233
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow, kw: T.untyped).returns(String) }
2234
+ def self.encode_json(msg, **kw)
2235
+ end
2236
+
2237
+ sig { returns(::Google::Protobuf::Descriptor) }
2238
+ def self.descriptor
2239
+ end
2240
+ end
2241
+
2242
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow
2243
+ include ::Google::Protobuf::MessageExts
2244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2245
+
2246
+ sig do
2247
+ params(
2248
+ seq: T.nilable(Integer),
2249
+ failure: T.nilable(Temporalio::Api::Failure::V1::Failure)
2250
+ ).void
2251
+ end
2252
+ def initialize(
2253
+ seq: 0,
2254
+ failure: nil
2255
+ )
2256
+ end
2257
+
2258
+ # Sequence number as provided by lang in the corresponding
2259
+ # RequestCancelExternalWorkflowExecution command
2260
+ sig { returns(Integer) }
2261
+ def seq
2262
+ end
2263
+
2264
+ # Sequence number as provided by lang in the corresponding
2265
+ # RequestCancelExternalWorkflowExecution command
2266
+ sig { params(value: Integer).void }
2267
+ def seq=(value)
2268
+ end
2269
+
2270
+ # Sequence number as provided by lang in the corresponding
2271
+ # RequestCancelExternalWorkflowExecution command
2272
+ sig { void }
2273
+ def clear_seq
2274
+ end
2275
+
2276
+ # If populated, this signal either failed to be sent or was cancelled depending on failure
2277
+ # type / info.
2278
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
2279
+ def failure
2280
+ end
2281
+
2282
+ # If populated, this signal either failed to be sent or was cancelled depending on failure
2283
+ # type / info.
2284
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
2285
+ def failure=(value)
2286
+ end
2287
+
2288
+ # If populated, this signal either failed to be sent or was cancelled depending on failure
2289
+ # type / info.
2290
+ sig { void }
2291
+ def clear_failure
2292
+ end
2293
+
2294
+ sig { params(field: String).returns(T.untyped) }
2295
+ def [](field)
2296
+ end
2297
+
2298
+ sig { params(field: String, value: T.untyped).void }
2299
+ def []=(field, value)
2300
+ end
2301
+
2302
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2303
+ def to_h
2304
+ end
2305
+
2306
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow) }
2307
+ def self.decode(str)
2308
+ end
2309
+
2310
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow).returns(String) }
2311
+ def self.encode(msg)
2312
+ end
2313
+
2314
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow) }
2315
+ def self.decode_json(str, **kw)
2316
+ end
2317
+
2318
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow, kw: T.untyped).returns(String) }
2319
+ def self.encode_json(msg, **kw)
2320
+ end
2321
+
2322
+ sig { returns(::Google::Protobuf::Descriptor) }
2323
+ def self.descriptor
2324
+ end
2325
+ end
2326
+
2327
+ # Lang is requested to invoke an update handler on the workflow. Lang should invoke the update
2328
+ # validator first (if requested). If it accepts the update, immediately invoke the update handler.
2329
+ # Lang must reply to the activation containing this job with an `UpdateResponse`.
2330
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate
2331
+ include ::Google::Protobuf::MessageExts
2332
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2333
+
2334
+ sig do
2335
+ params(
2336
+ id: T.nilable(String),
2337
+ protocol_instance_id: T.nilable(String),
2338
+ name: T.nilable(String),
2339
+ input: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
2340
+ headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
2341
+ meta: T.nilable(Temporalio::Api::Update::V1::Meta),
2342
+ run_validator: T.nilable(T::Boolean)
2343
+ ).void
2344
+ end
2345
+ def initialize(
2346
+ id: "",
2347
+ protocol_instance_id: "",
2348
+ name: "",
2349
+ input: [],
2350
+ headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
2351
+ meta: nil,
2352
+ run_validator: false
2353
+ )
2354
+ end
2355
+
2356
+ # A workflow-unique identifier for this update
2357
+ sig { returns(String) }
2358
+ def id
2359
+ end
2360
+
2361
+ # A workflow-unique identifier for this update
2362
+ sig { params(value: String).void }
2363
+ def id=(value)
2364
+ end
2365
+
2366
+ # A workflow-unique identifier for this update
2367
+ sig { void }
2368
+ def clear_id
2369
+ end
2370
+
2371
+ # The protocol message instance ID - this is used to uniquely track the ID server side and
2372
+ # internally.
2373
+ sig { returns(String) }
2374
+ def protocol_instance_id
2375
+ end
2376
+
2377
+ # The protocol message instance ID - this is used to uniquely track the ID server side and
2378
+ # internally.
2379
+ sig { params(value: String).void }
2380
+ def protocol_instance_id=(value)
2381
+ end
2382
+
2383
+ # The protocol message instance ID - this is used to uniquely track the ID server side and
2384
+ # internally.
2385
+ sig { void }
2386
+ def clear_protocol_instance_id
2387
+ end
2388
+
2389
+ # The name of the update handler
2390
+ sig { returns(String) }
2391
+ def name
2392
+ end
2393
+
2394
+ # The name of the update handler
2395
+ sig { params(value: String).void }
2396
+ def name=(value)
2397
+ end
2398
+
2399
+ # The name of the update handler
2400
+ sig { void }
2401
+ def clear_name
2402
+ end
2403
+
2404
+ # The input to the update
2405
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
2406
+ def input
2407
+ end
2408
+
2409
+ # The input to the update
2410
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2411
+ def input=(value)
2412
+ end
2413
+
2414
+ # The input to the update
2415
+ sig { void }
2416
+ def clear_input
2417
+ end
2418
+
2419
+ # Headers attached to the update
2420
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
2421
+ def headers
2422
+ end
2423
+
2424
+ # Headers attached to the update
2425
+ sig { params(value: ::Google::Protobuf::Map).void }
2426
+ def headers=(value)
2427
+ end
2428
+
2429
+ # Headers attached to the update
2430
+ sig { void }
2431
+ def clear_headers
2432
+ end
2433
+
2434
+ # Remaining metadata associated with the update. The `update_id` field is stripped from here
2435
+ # and moved to `id`, since it is guaranteed to be present.
2436
+ sig { returns(T.nilable(Temporalio::Api::Update::V1::Meta)) }
2437
+ def meta
2438
+ end
2439
+
2440
+ # Remaining metadata associated with the update. The `update_id` field is stripped from here
2441
+ # and moved to `id`, since it is guaranteed to be present.
2442
+ sig { params(value: T.nilable(Temporalio::Api::Update::V1::Meta)).void }
2443
+ def meta=(value)
2444
+ end
2445
+
2446
+ # Remaining metadata associated with the update. The `update_id` field is stripped from here
2447
+ # and moved to `id`, since it is guaranteed to be present.
2448
+ sig { void }
2449
+ def clear_meta
2450
+ end
2451
+
2452
+ # If set true, lang must run the update's validator before running the handler. This will be
2453
+ # set false during replay, since validation is not re-run during replay.
2454
+ sig { returns(T::Boolean) }
2455
+ def run_validator
2456
+ end
2457
+
2458
+ # If set true, lang must run the update's validator before running the handler. This will be
2459
+ # set false during replay, since validation is not re-run during replay.
2460
+ sig { params(value: T::Boolean).void }
2461
+ def run_validator=(value)
2462
+ end
2463
+
2464
+ # If set true, lang must run the update's validator before running the handler. This will be
2465
+ # set false during replay, since validation is not re-run during replay.
2466
+ sig { void }
2467
+ def clear_run_validator
2468
+ end
2469
+
2470
+ sig { params(field: String).returns(T.untyped) }
2471
+ def [](field)
2472
+ end
2473
+
2474
+ sig { params(field: String, value: T.untyped).void }
2475
+ def []=(field, value)
2476
+ end
2477
+
2478
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2479
+ def to_h
2480
+ end
2481
+
2482
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate) }
2483
+ def self.decode(str)
2484
+ end
2485
+
2486
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate).returns(String) }
2487
+ def self.encode(msg)
2488
+ end
2489
+
2490
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate) }
2491
+ def self.decode_json(str, **kw)
2492
+ end
2493
+
2494
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate, kw: T.untyped).returns(String) }
2495
+ def self.encode_json(msg, **kw)
2496
+ end
2497
+
2498
+ sig { returns(::Google::Protobuf::Descriptor) }
2499
+ def self.descriptor
2500
+ end
2501
+ end
2502
+
2503
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart
2504
+ include ::Google::Protobuf::MessageExts
2505
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2506
+
2507
+ sig do
2508
+ params(
2509
+ seq: T.nilable(Integer),
2510
+ operation_token: T.nilable(String),
2511
+ started_sync: T.nilable(T::Boolean),
2512
+ failed: T.nilable(Temporalio::Api::Failure::V1::Failure)
2513
+ ).void
2514
+ end
2515
+ def initialize(
2516
+ seq: 0,
2517
+ operation_token: "",
2518
+ started_sync: false,
2519
+ failed: nil
2520
+ )
2521
+ end
2522
+
2523
+ # Sequence number as provided by lang in the corresponding ScheduleNexusOperation command
2524
+ sig { returns(Integer) }
2525
+ def seq
2526
+ end
2527
+
2528
+ # Sequence number as provided by lang in the corresponding ScheduleNexusOperation command
2529
+ sig { params(value: Integer).void }
2530
+ def seq=(value)
2531
+ end
2532
+
2533
+ # Sequence number as provided by lang in the corresponding ScheduleNexusOperation command
2534
+ sig { void }
2535
+ def clear_seq
2536
+ end
2537
+
2538
+ # The operation started asynchronously. Contains a token that can be used to perform
2539
+ # operations on the started operation by, ex, clients. A `ResolveNexusOperation` job will
2540
+ # follow at some point.
2541
+ sig { returns(String) }
2542
+ def operation_token
2543
+ end
2544
+
2545
+ # The operation started asynchronously. Contains a token that can be used to perform
2546
+ # operations on the started operation by, ex, clients. A `ResolveNexusOperation` job will
2547
+ # follow at some point.
2548
+ sig { params(value: String).void }
2549
+ def operation_token=(value)
2550
+ end
2551
+
2552
+ # The operation started asynchronously. Contains a token that can be used to perform
2553
+ # operations on the started operation by, ex, clients. A `ResolveNexusOperation` job will
2554
+ # follow at some point.
2555
+ sig { void }
2556
+ def clear_operation_token
2557
+ end
2558
+
2559
+ # If true the operation "started" but only because it's also already resolved. A
2560
+ # `ResolveNexusOperation` job will be in the same activation.
2561
+ sig { returns(T::Boolean) }
2562
+ def started_sync
2563
+ end
2564
+
2565
+ # If true the operation "started" but only because it's also already resolved. A
2566
+ # `ResolveNexusOperation` job will be in the same activation.
2567
+ sig { params(value: T::Boolean).void }
2568
+ def started_sync=(value)
2569
+ end
2570
+
2571
+ # If true the operation "started" but only because it's also already resolved. A
2572
+ # `ResolveNexusOperation` job will be in the same activation.
2573
+ sig { void }
2574
+ def clear_started_sync
2575
+ end
2576
+
2577
+ # The operation either failed to start, was cancelled before it started, timed out, or
2578
+ # failed synchronously. Details are included inside the message. In this case, the
2579
+ # subsequent ResolveNexusOperation will never be sent.
2580
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
2581
+ def failed
2582
+ end
2583
+
2584
+ # The operation either failed to start, was cancelled before it started, timed out, or
2585
+ # failed synchronously. Details are included inside the message. In this case, the
2586
+ # subsequent ResolveNexusOperation will never be sent.
2587
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
2588
+ def failed=(value)
2589
+ end
2590
+
2591
+ # The operation either failed to start, was cancelled before it started, timed out, or
2592
+ # failed synchronously. Details are included inside the message. In this case, the
2593
+ # subsequent ResolveNexusOperation will never be sent.
2594
+ sig { void }
2595
+ def clear_failed
2596
+ end
2597
+
2598
+ sig { returns(T.nilable(Symbol)) }
2599
+ def status
2600
+ end
2601
+
2602
+ sig { params(field: String).returns(T.untyped) }
2603
+ def [](field)
2604
+ end
2605
+
2606
+ sig { params(field: String, value: T.untyped).void }
2607
+ def []=(field, value)
2608
+ end
2609
+
2610
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2611
+ def to_h
2612
+ end
2613
+
2614
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart) }
2615
+ def self.decode(str)
2616
+ end
2617
+
2618
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart).returns(String) }
2619
+ def self.encode(msg)
2620
+ end
2621
+
2622
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart) }
2623
+ def self.decode_json(str, **kw)
2624
+ end
2625
+
2626
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart, kw: T.untyped).returns(String) }
2627
+ def self.encode_json(msg, **kw)
2628
+ end
2629
+
2630
+ sig { returns(::Google::Protobuf::Descriptor) }
2631
+ def self.descriptor
2632
+ end
2633
+ end
2634
+
2635
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation
2636
+ include ::Google::Protobuf::MessageExts
2637
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2638
+
2639
+ sig do
2640
+ params(
2641
+ seq: T.nilable(Integer),
2642
+ result: T.nilable(Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult)
2643
+ ).void
2644
+ end
2645
+ def initialize(
2646
+ seq: 0,
2647
+ result: nil
2648
+ )
2649
+ end
2650
+
2651
+ # Sequence number as provided by lang in the corresponding ScheduleNexusOperation command
2652
+ sig { returns(Integer) }
2653
+ def seq
2654
+ end
2655
+
2656
+ # Sequence number as provided by lang in the corresponding ScheduleNexusOperation command
2657
+ sig { params(value: Integer).void }
2658
+ def seq=(value)
2659
+ end
2660
+
2661
+ # Sequence number as provided by lang in the corresponding ScheduleNexusOperation command
2662
+ sig { void }
2663
+ def clear_seq
2664
+ end
2665
+
2666
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult)) }
2667
+ def result
2668
+ end
2669
+
2670
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult)).void }
2671
+ def result=(value)
2672
+ end
2673
+
2674
+ sig { void }
2675
+ def clear_result
2676
+ end
2677
+
2678
+ sig { params(field: String).returns(T.untyped) }
2679
+ def [](field)
2680
+ end
2681
+
2682
+ sig { params(field: String, value: T.untyped).void }
2683
+ def []=(field, value)
2684
+ end
2685
+
2686
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2687
+ def to_h
2688
+ end
2689
+
2690
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation) }
2691
+ def self.decode(str)
2692
+ end
2693
+
2694
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation).returns(String) }
2695
+ def self.encode(msg)
2696
+ end
2697
+
2698
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation) }
2699
+ def self.decode_json(str, **kw)
2700
+ end
2701
+
2702
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation, kw: T.untyped).returns(String) }
2703
+ def self.encode_json(msg, **kw)
2704
+ end
2705
+
2706
+ sig { returns(::Google::Protobuf::Descriptor) }
2707
+ def self.descriptor
2708
+ end
2709
+ end
2710
+
2711
+ class Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache
2712
+ include ::Google::Protobuf::MessageExts
2713
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2714
+
2715
+ sig do
2716
+ params(
2717
+ message: T.nilable(String),
2718
+ reason: T.nilable(T.any(Symbol, String, Integer))
2719
+ ).void
2720
+ end
2721
+ def initialize(
2722
+ message: "",
2723
+ reason: :UNSPECIFIED
2724
+ )
2725
+ end
2726
+
2727
+ sig { returns(String) }
2728
+ def message
2729
+ end
2730
+
2731
+ sig { params(value: String).void }
2732
+ def message=(value)
2733
+ end
2734
+
2735
+ sig { void }
2736
+ def clear_message
2737
+ end
2738
+
2739
+ sig { returns(T.any(Symbol, Integer)) }
2740
+ def reason
2741
+ end
2742
+
2743
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2744
+ def reason=(value)
2745
+ end
2746
+
2747
+ sig { void }
2748
+ def clear_reason
2749
+ end
2750
+
2751
+ sig { params(field: String).returns(T.untyped) }
2752
+ def [](field)
2753
+ end
2754
+
2755
+ sig { params(field: String, value: T.untyped).void }
2756
+ def []=(field, value)
2757
+ end
2758
+
2759
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2760
+ def to_h
2761
+ end
2762
+
2763
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache) }
2764
+ def self.decode(str)
2765
+ end
2766
+
2767
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache).returns(String) }
2768
+ def self.encode(msg)
2769
+ end
2770
+
2771
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache) }
2772
+ def self.decode_json(str, **kw)
2773
+ end
2774
+
2775
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache, kw: T.untyped).returns(String) }
2776
+ def self.encode_json(msg, **kw)
2777
+ end
2778
+
2779
+ sig { returns(::Google::Protobuf::Descriptor) }
2780
+ def self.descriptor
2781
+ end
2782
+ end
2783
+
2784
+ module Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason
2785
+ self::UNSPECIFIED = T.let(0, Integer)
2786
+ self::CACHE_FULL = T.let(1, Integer)
2787
+ self::CACHE_MISS = T.let(2, Integer)
2788
+ self::NONDETERMINISM = T.let(3, Integer)
2789
+ self::LANG_FAIL = T.let(4, Integer)
2790
+ self::LANG_REQUESTED = T.let(5, Integer)
2791
+ self::TASK_NOT_FOUND = T.let(6, Integer)
2792
+ self::UNHANDLED_COMMAND = T.let(7, Integer)
2793
+ self::FATAL = T.let(8, Integer)
2794
+ self::PAGINATION_OR_HISTORY_FETCH = T.let(9, Integer)
2795
+ self::WORKFLOW_EXECUTION_ENDING = T.let(10, Integer)
2796
+
2797
+ sig { params(value: Integer).returns(T.nilable(Symbol)) }
2798
+ def self.lookup(value)
2799
+ end
2800
+
2801
+ sig { params(value: Symbol).returns(T.nilable(Integer)) }
2802
+ def self.resolve(value)
2803
+ end
2804
+
2805
+ sig { returns(::Google::Protobuf::EnumDescriptor) }
2806
+ def self.descriptor
2807
+ end
2808
+ end