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,3309 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: temporal/sdk/core/workflow_commands/workflow_commands.proto
3
+ # typed: strict
4
+
5
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand
6
+ include ::Google::Protobuf::MessageExts
7
+ extend ::Google::Protobuf::MessageExts::ClassMethods
8
+
9
+ sig do
10
+ params(
11
+ user_metadata: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata),
12
+ start_timer: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer),
13
+ schedule_activity: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity),
14
+ respond_to_query: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult),
15
+ request_cancel_activity: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity),
16
+ cancel_timer: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer),
17
+ complete_workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution),
18
+ fail_workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution),
19
+ continue_as_new_workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution),
20
+ cancel_workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution),
21
+ set_patch_marker: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker),
22
+ start_child_workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution),
23
+ cancel_child_workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution),
24
+ request_cancel_external_workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution),
25
+ signal_external_workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution),
26
+ cancel_signal_workflow: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow),
27
+ schedule_local_activity: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity),
28
+ request_cancel_local_activity: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity),
29
+ upsert_workflow_search_attributes: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes),
30
+ modify_workflow_properties: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties),
31
+ update_response: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse),
32
+ schedule_nexus_operation: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation),
33
+ request_cancel_nexus_operation: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation)
34
+ ).void
35
+ end
36
+ def initialize(
37
+ user_metadata: nil,
38
+ start_timer: nil,
39
+ schedule_activity: nil,
40
+ respond_to_query: nil,
41
+ request_cancel_activity: nil,
42
+ cancel_timer: nil,
43
+ complete_workflow_execution: nil,
44
+ fail_workflow_execution: nil,
45
+ continue_as_new_workflow_execution: nil,
46
+ cancel_workflow_execution: nil,
47
+ set_patch_marker: nil,
48
+ start_child_workflow_execution: nil,
49
+ cancel_child_workflow_execution: nil,
50
+ request_cancel_external_workflow_execution: nil,
51
+ signal_external_workflow_execution: nil,
52
+ cancel_signal_workflow: nil,
53
+ schedule_local_activity: nil,
54
+ request_cancel_local_activity: nil,
55
+ upsert_workflow_search_attributes: nil,
56
+ modify_workflow_properties: nil,
57
+ update_response: nil,
58
+ schedule_nexus_operation: nil,
59
+ request_cancel_nexus_operation: nil
60
+ )
61
+ end
62
+
63
+ # User metadata that may or may not be persisted into history depending on the command type.
64
+ # Lang layers are expected to expose the setting of the internals of this metadata on a
65
+ # per-command basis where applicable.
66
+ sig { returns(T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)) }
67
+ def user_metadata
68
+ end
69
+
70
+ # User metadata that may or may not be persisted into history depending on the command type.
71
+ # Lang layers are expected to expose the setting of the internals of this metadata on a
72
+ # per-command basis where applicable.
73
+ sig { params(value: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)).void }
74
+ def user_metadata=(value)
75
+ end
76
+
77
+ # User metadata that may or may not be persisted into history depending on the command type.
78
+ # Lang layers are expected to expose the setting of the internals of this metadata on a
79
+ # per-command basis where applicable.
80
+ sig { void }
81
+ def clear_user_metadata
82
+ end
83
+
84
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer)) }
85
+ def start_timer
86
+ end
87
+
88
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer)).void }
89
+ def start_timer=(value)
90
+ end
91
+
92
+ sig { void }
93
+ def clear_start_timer
94
+ end
95
+
96
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity)) }
97
+ def schedule_activity
98
+ end
99
+
100
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity)).void }
101
+ def schedule_activity=(value)
102
+ end
103
+
104
+ sig { void }
105
+ def clear_schedule_activity
106
+ end
107
+
108
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult)) }
109
+ def respond_to_query
110
+ end
111
+
112
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult)).void }
113
+ def respond_to_query=(value)
114
+ end
115
+
116
+ sig { void }
117
+ def clear_respond_to_query
118
+ end
119
+
120
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity)) }
121
+ def request_cancel_activity
122
+ end
123
+
124
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity)).void }
125
+ def request_cancel_activity=(value)
126
+ end
127
+
128
+ sig { void }
129
+ def clear_request_cancel_activity
130
+ end
131
+
132
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer)) }
133
+ def cancel_timer
134
+ end
135
+
136
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer)).void }
137
+ def cancel_timer=(value)
138
+ end
139
+
140
+ sig { void }
141
+ def clear_cancel_timer
142
+ end
143
+
144
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution)) }
145
+ def complete_workflow_execution
146
+ end
147
+
148
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution)).void }
149
+ def complete_workflow_execution=(value)
150
+ end
151
+
152
+ sig { void }
153
+ def clear_complete_workflow_execution
154
+ end
155
+
156
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution)) }
157
+ def fail_workflow_execution
158
+ end
159
+
160
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution)).void }
161
+ def fail_workflow_execution=(value)
162
+ end
163
+
164
+ sig { void }
165
+ def clear_fail_workflow_execution
166
+ end
167
+
168
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution)) }
169
+ def continue_as_new_workflow_execution
170
+ end
171
+
172
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution)).void }
173
+ def continue_as_new_workflow_execution=(value)
174
+ end
175
+
176
+ sig { void }
177
+ def clear_continue_as_new_workflow_execution
178
+ end
179
+
180
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution)) }
181
+ def cancel_workflow_execution
182
+ end
183
+
184
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution)).void }
185
+ def cancel_workflow_execution=(value)
186
+ end
187
+
188
+ sig { void }
189
+ def clear_cancel_workflow_execution
190
+ end
191
+
192
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker)) }
193
+ def set_patch_marker
194
+ end
195
+
196
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker)).void }
197
+ def set_patch_marker=(value)
198
+ end
199
+
200
+ sig { void }
201
+ def clear_set_patch_marker
202
+ end
203
+
204
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution)) }
205
+ def start_child_workflow_execution
206
+ end
207
+
208
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution)).void }
209
+ def start_child_workflow_execution=(value)
210
+ end
211
+
212
+ sig { void }
213
+ def clear_start_child_workflow_execution
214
+ end
215
+
216
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution)) }
217
+ def cancel_child_workflow_execution
218
+ end
219
+
220
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution)).void }
221
+ def cancel_child_workflow_execution=(value)
222
+ end
223
+
224
+ sig { void }
225
+ def clear_cancel_child_workflow_execution
226
+ end
227
+
228
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution)) }
229
+ def request_cancel_external_workflow_execution
230
+ end
231
+
232
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution)).void }
233
+ def request_cancel_external_workflow_execution=(value)
234
+ end
235
+
236
+ sig { void }
237
+ def clear_request_cancel_external_workflow_execution
238
+ end
239
+
240
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution)) }
241
+ def signal_external_workflow_execution
242
+ end
243
+
244
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution)).void }
245
+ def signal_external_workflow_execution=(value)
246
+ end
247
+
248
+ sig { void }
249
+ def clear_signal_external_workflow_execution
250
+ end
251
+
252
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow)) }
253
+ def cancel_signal_workflow
254
+ end
255
+
256
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow)).void }
257
+ def cancel_signal_workflow=(value)
258
+ end
259
+
260
+ sig { void }
261
+ def clear_cancel_signal_workflow
262
+ end
263
+
264
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity)) }
265
+ def schedule_local_activity
266
+ end
267
+
268
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity)).void }
269
+ def schedule_local_activity=(value)
270
+ end
271
+
272
+ sig { void }
273
+ def clear_schedule_local_activity
274
+ end
275
+
276
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity)) }
277
+ def request_cancel_local_activity
278
+ end
279
+
280
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity)).void }
281
+ def request_cancel_local_activity=(value)
282
+ end
283
+
284
+ sig { void }
285
+ def clear_request_cancel_local_activity
286
+ end
287
+
288
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes)) }
289
+ def upsert_workflow_search_attributes
290
+ end
291
+
292
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes)).void }
293
+ def upsert_workflow_search_attributes=(value)
294
+ end
295
+
296
+ sig { void }
297
+ def clear_upsert_workflow_search_attributes
298
+ end
299
+
300
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties)) }
301
+ def modify_workflow_properties
302
+ end
303
+
304
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties)).void }
305
+ def modify_workflow_properties=(value)
306
+ end
307
+
308
+ sig { void }
309
+ def clear_modify_workflow_properties
310
+ end
311
+
312
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse)) }
313
+ def update_response
314
+ end
315
+
316
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse)).void }
317
+ def update_response=(value)
318
+ end
319
+
320
+ sig { void }
321
+ def clear_update_response
322
+ end
323
+
324
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation)) }
325
+ def schedule_nexus_operation
326
+ end
327
+
328
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation)).void }
329
+ def schedule_nexus_operation=(value)
330
+ end
331
+
332
+ sig { void }
333
+ def clear_schedule_nexus_operation
334
+ end
335
+
336
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation)) }
337
+ def request_cancel_nexus_operation
338
+ end
339
+
340
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation)).void }
341
+ def request_cancel_nexus_operation=(value)
342
+ end
343
+
344
+ sig { void }
345
+ def clear_request_cancel_nexus_operation
346
+ end
347
+
348
+ sig { returns(T.nilable(Symbol)) }
349
+ def variant
350
+ end
351
+
352
+ sig { params(field: String).returns(T.untyped) }
353
+ def [](field)
354
+ end
355
+
356
+ sig { params(field: String, value: T.untyped).void }
357
+ def []=(field, value)
358
+ end
359
+
360
+ sig { returns(T::Hash[Symbol, T.untyped]) }
361
+ def to_h
362
+ end
363
+
364
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand) }
365
+ def self.decode(str)
366
+ end
367
+
368
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand).returns(String) }
369
+ def self.encode(msg)
370
+ end
371
+
372
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand) }
373
+ def self.decode_json(str, **kw)
374
+ end
375
+
376
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand, kw: T.untyped).returns(String) }
377
+ def self.encode_json(msg, **kw)
378
+ end
379
+
380
+ sig { returns(::Google::Protobuf::Descriptor) }
381
+ def self.descriptor
382
+ end
383
+ end
384
+
385
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer
386
+ include ::Google::Protobuf::MessageExts
387
+ extend ::Google::Protobuf::MessageExts::ClassMethods
388
+
389
+ sig do
390
+ params(
391
+ seq: T.nilable(Integer),
392
+ start_to_fire_timeout: T.nilable(Google::Protobuf::Duration)
393
+ ).void
394
+ end
395
+ def initialize(
396
+ seq: 0,
397
+ start_to_fire_timeout: nil
398
+ )
399
+ end
400
+
401
+ # Lang's incremental sequence number, used as the operation identifier
402
+ sig { returns(Integer) }
403
+ def seq
404
+ end
405
+
406
+ # Lang's incremental sequence number, used as the operation identifier
407
+ sig { params(value: Integer).void }
408
+ def seq=(value)
409
+ end
410
+
411
+ # Lang's incremental sequence number, used as the operation identifier
412
+ sig { void }
413
+ def clear_seq
414
+ end
415
+
416
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
417
+ def start_to_fire_timeout
418
+ end
419
+
420
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
421
+ def start_to_fire_timeout=(value)
422
+ end
423
+
424
+ sig { void }
425
+ def clear_start_to_fire_timeout
426
+ end
427
+
428
+ sig { params(field: String).returns(T.untyped) }
429
+ def [](field)
430
+ end
431
+
432
+ sig { params(field: String, value: T.untyped).void }
433
+ def []=(field, value)
434
+ end
435
+
436
+ sig { returns(T::Hash[Symbol, T.untyped]) }
437
+ def to_h
438
+ end
439
+
440
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer) }
441
+ def self.decode(str)
442
+ end
443
+
444
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer).returns(String) }
445
+ def self.encode(msg)
446
+ end
447
+
448
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer) }
449
+ def self.decode_json(str, **kw)
450
+ end
451
+
452
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer, kw: T.untyped).returns(String) }
453
+ def self.encode_json(msg, **kw)
454
+ end
455
+
456
+ sig { returns(::Google::Protobuf::Descriptor) }
457
+ def self.descriptor
458
+ end
459
+ end
460
+
461
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer
462
+ include ::Google::Protobuf::MessageExts
463
+ extend ::Google::Protobuf::MessageExts::ClassMethods
464
+
465
+ sig do
466
+ params(
467
+ seq: T.nilable(Integer)
468
+ ).void
469
+ end
470
+ def initialize(
471
+ seq: 0
472
+ )
473
+ end
474
+
475
+ # Lang's incremental sequence number as passed to `StartTimer`
476
+ sig { returns(Integer) }
477
+ def seq
478
+ end
479
+
480
+ # Lang's incremental sequence number as passed to `StartTimer`
481
+ sig { params(value: Integer).void }
482
+ def seq=(value)
483
+ end
484
+
485
+ # Lang's incremental sequence number as passed to `StartTimer`
486
+ sig { void }
487
+ def clear_seq
488
+ end
489
+
490
+ sig { params(field: String).returns(T.untyped) }
491
+ def [](field)
492
+ end
493
+
494
+ sig { params(field: String, value: T.untyped).void }
495
+ def []=(field, value)
496
+ end
497
+
498
+ sig { returns(T::Hash[Symbol, T.untyped]) }
499
+ def to_h
500
+ end
501
+
502
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer) }
503
+ def self.decode(str)
504
+ end
505
+
506
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer).returns(String) }
507
+ def self.encode(msg)
508
+ end
509
+
510
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer) }
511
+ def self.decode_json(str, **kw)
512
+ end
513
+
514
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer, kw: T.untyped).returns(String) }
515
+ def self.encode_json(msg, **kw)
516
+ end
517
+
518
+ sig { returns(::Google::Protobuf::Descriptor) }
519
+ def self.descriptor
520
+ end
521
+ end
522
+
523
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity
524
+ include ::Google::Protobuf::MessageExts
525
+ extend ::Google::Protobuf::MessageExts::ClassMethods
526
+
527
+ sig do
528
+ params(
529
+ seq: T.nilable(Integer),
530
+ activity_id: T.nilable(String),
531
+ activity_type: T.nilable(String),
532
+ task_queue: T.nilable(String),
533
+ headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
534
+ arguments: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
535
+ schedule_to_close_timeout: T.nilable(Google::Protobuf::Duration),
536
+ schedule_to_start_timeout: T.nilable(Google::Protobuf::Duration),
537
+ start_to_close_timeout: T.nilable(Google::Protobuf::Duration),
538
+ heartbeat_timeout: T.nilable(Google::Protobuf::Duration),
539
+ retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
540
+ cancellation_type: T.nilable(T.any(Symbol, String, Integer)),
541
+ do_not_eagerly_execute: T.nilable(T::Boolean),
542
+ versioning_intent: T.nilable(T.any(Symbol, String, Integer)),
543
+ priority: T.nilable(Temporalio::Api::Common::V1::Priority)
544
+ ).void
545
+ end
546
+ def initialize(
547
+ seq: 0,
548
+ activity_id: "",
549
+ activity_type: "",
550
+ task_queue: "",
551
+ headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
552
+ arguments: [],
553
+ schedule_to_close_timeout: nil,
554
+ schedule_to_start_timeout: nil,
555
+ start_to_close_timeout: nil,
556
+ heartbeat_timeout: nil,
557
+ retry_policy: nil,
558
+ cancellation_type: :TRY_CANCEL,
559
+ do_not_eagerly_execute: false,
560
+ versioning_intent: :UNSPECIFIED,
561
+ priority: nil
562
+ )
563
+ end
564
+
565
+ # Lang's incremental sequence number, used as the operation identifier
566
+ sig { returns(Integer) }
567
+ def seq
568
+ end
569
+
570
+ # Lang's incremental sequence number, used as the operation identifier
571
+ sig { params(value: Integer).void }
572
+ def seq=(value)
573
+ end
574
+
575
+ # Lang's incremental sequence number, used as the operation identifier
576
+ sig { void }
577
+ def clear_seq
578
+ end
579
+
580
+ sig { returns(String) }
581
+ def activity_id
582
+ end
583
+
584
+ sig { params(value: String).void }
585
+ def activity_id=(value)
586
+ end
587
+
588
+ sig { void }
589
+ def clear_activity_id
590
+ end
591
+
592
+ sig { returns(String) }
593
+ def activity_type
594
+ end
595
+
596
+ sig { params(value: String).void }
597
+ def activity_type=(value)
598
+ end
599
+
600
+ sig { void }
601
+ def clear_activity_type
602
+ end
603
+
604
+ # The name of the task queue to place this activity request in
605
+ sig { returns(String) }
606
+ def task_queue
607
+ end
608
+
609
+ # The name of the task queue to place this activity request in
610
+ sig { params(value: String).void }
611
+ def task_queue=(value)
612
+ end
613
+
614
+ # The name of the task queue to place this activity request in
615
+ sig { void }
616
+ def clear_task_queue
617
+ end
618
+
619
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
620
+ def headers
621
+ end
622
+
623
+ sig { params(value: ::Google::Protobuf::Map).void }
624
+ def headers=(value)
625
+ end
626
+
627
+ sig { void }
628
+ def clear_headers
629
+ end
630
+
631
+ # Arguments/input to the activity. Called "input" upstream.
632
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
633
+ def arguments
634
+ end
635
+
636
+ # Arguments/input to the activity. Called "input" upstream.
637
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
638
+ def arguments=(value)
639
+ end
640
+
641
+ # Arguments/input to the activity. Called "input" upstream.
642
+ sig { void }
643
+ def clear_arguments
644
+ end
645
+
646
+ # Indicates how long the caller is willing to wait for an activity completion. Limits how long
647
+ # retries will be attempted. Either this or start_to_close_timeout_seconds must be specified.
648
+ # When not specified defaults to the workflow execution timeout.
649
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
650
+ def schedule_to_close_timeout
651
+ end
652
+
653
+ # Indicates how long the caller is willing to wait for an activity completion. Limits how long
654
+ # retries will be attempted. Either this or start_to_close_timeout_seconds must be specified.
655
+ # When not specified defaults to the workflow execution timeout.
656
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
657
+ def schedule_to_close_timeout=(value)
658
+ end
659
+
660
+ # Indicates how long the caller is willing to wait for an activity completion. Limits how long
661
+ # retries will be attempted. Either this or start_to_close_timeout_seconds must be specified.
662
+ # When not specified defaults to the workflow execution timeout.
663
+ sig { void }
664
+ def clear_schedule_to_close_timeout
665
+ end
666
+
667
+ # Limits time an activity task can stay in a task queue before a worker picks it up. This
668
+ # timeout is always non retryable as all a retry would achieve is to put it back into the same
669
+ # queue. Defaults to schedule_to_close_timeout or workflow execution timeout if not specified.
670
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
671
+ def schedule_to_start_timeout
672
+ end
673
+
674
+ # Limits time an activity task can stay in a task queue before a worker picks it up. This
675
+ # timeout is always non retryable as all a retry would achieve is to put it back into the same
676
+ # queue. Defaults to schedule_to_close_timeout or workflow execution timeout if not specified.
677
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
678
+ def schedule_to_start_timeout=(value)
679
+ end
680
+
681
+ # Limits time an activity task can stay in a task queue before a worker picks it up. This
682
+ # timeout is always non retryable as all a retry would achieve is to put it back into the same
683
+ # queue. Defaults to schedule_to_close_timeout or workflow execution timeout if not specified.
684
+ sig { void }
685
+ def clear_schedule_to_start_timeout
686
+ end
687
+
688
+ # Maximum time an activity is allowed to execute after a pick up by a worker. This timeout is
689
+ # always retryable. Either this or schedule_to_close_timeout must be specified.
690
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
691
+ def start_to_close_timeout
692
+ end
693
+
694
+ # Maximum time an activity is allowed to execute after a pick up by a worker. This timeout is
695
+ # always retryable. Either this or schedule_to_close_timeout must be specified.
696
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
697
+ def start_to_close_timeout=(value)
698
+ end
699
+
700
+ # Maximum time an activity is allowed to execute after a pick up by a worker. This timeout is
701
+ # always retryable. Either this or schedule_to_close_timeout must be specified.
702
+ sig { void }
703
+ def clear_start_to_close_timeout
704
+ end
705
+
706
+ # Maximum time allowed between successful worker heartbeats.
707
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
708
+ def heartbeat_timeout
709
+ end
710
+
711
+ # Maximum time allowed between successful worker heartbeats.
712
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
713
+ def heartbeat_timeout=(value)
714
+ end
715
+
716
+ # Maximum time allowed between successful worker heartbeats.
717
+ sig { void }
718
+ def clear_heartbeat_timeout
719
+ end
720
+
721
+ # Activities are provided by a default retry policy controlled through the service dynamic
722
+ # configuration. Retries are happening up to schedule_to_close_timeout. To disable retries set
723
+ # retry_policy.maximum_attempts to 1.
724
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
725
+ def retry_policy
726
+ end
727
+
728
+ # Activities are provided by a default retry policy controlled through the service dynamic
729
+ # configuration. Retries are happening up to schedule_to_close_timeout. To disable retries set
730
+ # retry_policy.maximum_attempts to 1.
731
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
732
+ def retry_policy=(value)
733
+ end
734
+
735
+ # Activities are provided by a default retry policy controlled through the service dynamic
736
+ # configuration. Retries are happening up to schedule_to_close_timeout. To disable retries set
737
+ # retry_policy.maximum_attempts to 1.
738
+ sig { void }
739
+ def clear_retry_policy
740
+ end
741
+
742
+ # Defines how the workflow will wait (or not) for cancellation of the activity to be confirmed
743
+ sig { returns(T.any(Symbol, Integer)) }
744
+ def cancellation_type
745
+ end
746
+
747
+ # Defines how the workflow will wait (or not) for cancellation of the activity to be confirmed
748
+ sig { params(value: T.any(Symbol, String, Integer)).void }
749
+ def cancellation_type=(value)
750
+ end
751
+
752
+ # Defines how the workflow will wait (or not) for cancellation of the activity to be confirmed
753
+ sig { void }
754
+ def clear_cancellation_type
755
+ end
756
+
757
+ # If set, the worker will not tell the service that it can immediately start executing this
758
+ # activity. When unset/default, workers will always attempt to do so if activity execution
759
+ # slots are available.
760
+ sig { returns(T::Boolean) }
761
+ def do_not_eagerly_execute
762
+ end
763
+
764
+ # If set, the worker will not tell the service that it can immediately start executing this
765
+ # activity. When unset/default, workers will always attempt to do so if activity execution
766
+ # slots are available.
767
+ sig { params(value: T::Boolean).void }
768
+ def do_not_eagerly_execute=(value)
769
+ end
770
+
771
+ # If set, the worker will not tell the service that it can immediately start executing this
772
+ # activity. When unset/default, workers will always attempt to do so if activity execution
773
+ # slots are available.
774
+ sig { void }
775
+ def clear_do_not_eagerly_execute
776
+ end
777
+
778
+ # Whether this activity should run on a worker with a compatible build id or not.
779
+ sig { returns(T.any(Symbol, Integer)) }
780
+ def versioning_intent
781
+ end
782
+
783
+ # Whether this activity should run on a worker with a compatible build id or not.
784
+ sig { params(value: T.any(Symbol, String, Integer)).void }
785
+ def versioning_intent=(value)
786
+ end
787
+
788
+ # Whether this activity should run on a worker with a compatible build id or not.
789
+ sig { void }
790
+ def clear_versioning_intent
791
+ end
792
+
793
+ # The Priority to use for this activity
794
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
795
+ def priority
796
+ end
797
+
798
+ # The Priority to use for this activity
799
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
800
+ def priority=(value)
801
+ end
802
+
803
+ # The Priority to use for this activity
804
+ sig { void }
805
+ def clear_priority
806
+ end
807
+
808
+ sig { params(field: String).returns(T.untyped) }
809
+ def [](field)
810
+ end
811
+
812
+ sig { params(field: String, value: T.untyped).void }
813
+ def []=(field, value)
814
+ end
815
+
816
+ sig { returns(T::Hash[Symbol, T.untyped]) }
817
+ def to_h
818
+ end
819
+
820
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity) }
821
+ def self.decode(str)
822
+ end
823
+
824
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity).returns(String) }
825
+ def self.encode(msg)
826
+ end
827
+
828
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity) }
829
+ def self.decode_json(str, **kw)
830
+ end
831
+
832
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity, kw: T.untyped).returns(String) }
833
+ def self.encode_json(msg, **kw)
834
+ end
835
+
836
+ sig { returns(::Google::Protobuf::Descriptor) }
837
+ def self.descriptor
838
+ end
839
+ end
840
+
841
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity
842
+ include ::Google::Protobuf::MessageExts
843
+ extend ::Google::Protobuf::MessageExts::ClassMethods
844
+
845
+ sig do
846
+ params(
847
+ seq: T.nilable(Integer),
848
+ activity_id: T.nilable(String),
849
+ activity_type: T.nilable(String),
850
+ attempt: T.nilable(Integer),
851
+ original_schedule_time: T.nilable(Google::Protobuf::Timestamp),
852
+ headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
853
+ arguments: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
854
+ schedule_to_close_timeout: T.nilable(Google::Protobuf::Duration),
855
+ schedule_to_start_timeout: T.nilable(Google::Protobuf::Duration),
856
+ start_to_close_timeout: T.nilable(Google::Protobuf::Duration),
857
+ retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
858
+ local_retry_threshold: T.nilable(Google::Protobuf::Duration),
859
+ cancellation_type: T.nilable(T.any(Symbol, String, Integer))
860
+ ).void
861
+ end
862
+ def initialize(
863
+ seq: 0,
864
+ activity_id: "",
865
+ activity_type: "",
866
+ attempt: 0,
867
+ original_schedule_time: nil,
868
+ headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
869
+ arguments: [],
870
+ schedule_to_close_timeout: nil,
871
+ schedule_to_start_timeout: nil,
872
+ start_to_close_timeout: nil,
873
+ retry_policy: nil,
874
+ local_retry_threshold: nil,
875
+ cancellation_type: :TRY_CANCEL
876
+ )
877
+ end
878
+
879
+ # Lang's incremental sequence number, used as the operation identifier
880
+ sig { returns(Integer) }
881
+ def seq
882
+ end
883
+
884
+ # Lang's incremental sequence number, used as the operation identifier
885
+ sig { params(value: Integer).void }
886
+ def seq=(value)
887
+ end
888
+
889
+ # Lang's incremental sequence number, used as the operation identifier
890
+ sig { void }
891
+ def clear_seq
892
+ end
893
+
894
+ sig { returns(String) }
895
+ def activity_id
896
+ end
897
+
898
+ sig { params(value: String).void }
899
+ def activity_id=(value)
900
+ end
901
+
902
+ sig { void }
903
+ def clear_activity_id
904
+ end
905
+
906
+ sig { returns(String) }
907
+ def activity_type
908
+ end
909
+
910
+ sig { params(value: String).void }
911
+ def activity_type=(value)
912
+ end
913
+
914
+ sig { void }
915
+ def clear_activity_type
916
+ end
917
+
918
+ # Local activities can start with a non-1 attempt, if lang has been told to backoff using
919
+ # a timer before retrying. It should pass the attempt number from a `DoBackoff` activity
920
+ # resolution.
921
+ sig { returns(Integer) }
922
+ def attempt
923
+ end
924
+
925
+ # Local activities can start with a non-1 attempt, if lang has been told to backoff using
926
+ # a timer before retrying. It should pass the attempt number from a `DoBackoff` activity
927
+ # resolution.
928
+ sig { params(value: Integer).void }
929
+ def attempt=(value)
930
+ end
931
+
932
+ # Local activities can start with a non-1 attempt, if lang has been told to backoff using
933
+ # a timer before retrying. It should pass the attempt number from a `DoBackoff` activity
934
+ # resolution.
935
+ sig { void }
936
+ def clear_attempt
937
+ end
938
+
939
+ # If this local activity is a retry (as per the attempt field) this needs to be the original
940
+ # scheduling time (as provided in `DoBackoff`)
941
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
942
+ def original_schedule_time
943
+ end
944
+
945
+ # If this local activity is a retry (as per the attempt field) this needs to be the original
946
+ # scheduling time (as provided in `DoBackoff`)
947
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
948
+ def original_schedule_time=(value)
949
+ end
950
+
951
+ # If this local activity is a retry (as per the attempt field) this needs to be the original
952
+ # scheduling time (as provided in `DoBackoff`)
953
+ sig { void }
954
+ def clear_original_schedule_time
955
+ end
956
+
957
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
958
+ def headers
959
+ end
960
+
961
+ sig { params(value: ::Google::Protobuf::Map).void }
962
+ def headers=(value)
963
+ end
964
+
965
+ sig { void }
966
+ def clear_headers
967
+ end
968
+
969
+ # Arguments/input to the activity.
970
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
971
+ def arguments
972
+ end
973
+
974
+ # Arguments/input to the activity.
975
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
976
+ def arguments=(value)
977
+ end
978
+
979
+ # Arguments/input to the activity.
980
+ sig { void }
981
+ def clear_arguments
982
+ end
983
+
984
+ # Indicates how long the caller is willing to wait for local activity completion. Limits how
985
+ # long retries will be attempted. When not specified defaults to the workflow execution
986
+ # timeout (which may be unset).
987
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
988
+ def schedule_to_close_timeout
989
+ end
990
+
991
+ # Indicates how long the caller is willing to wait for local activity completion. Limits how
992
+ # long retries will be attempted. When not specified defaults to the workflow execution
993
+ # timeout (which may be unset).
994
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
995
+ def schedule_to_close_timeout=(value)
996
+ end
997
+
998
+ # Indicates how long the caller is willing to wait for local activity completion. Limits how
999
+ # long retries will be attempted. When not specified defaults to the workflow execution
1000
+ # timeout (which may be unset).
1001
+ sig { void }
1002
+ def clear_schedule_to_close_timeout
1003
+ end
1004
+
1005
+ # Limits time the local activity can idle internally before being executed. That can happen if
1006
+ # the worker is currently at max concurrent local activity executions. This timeout is always
1007
+ # non retryable as all a retry would achieve is to put it back into the same queue. Defaults
1008
+ # to `schedule_to_close_timeout` if not specified and that is set. Must be <=
1009
+ # `schedule_to_close_timeout` when set, otherwise, it will be clamped down.
1010
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1011
+ def schedule_to_start_timeout
1012
+ end
1013
+
1014
+ # Limits time the local activity can idle internally before being executed. That can happen if
1015
+ # the worker is currently at max concurrent local activity executions. This timeout is always
1016
+ # non retryable as all a retry would achieve is to put it back into the same queue. Defaults
1017
+ # to `schedule_to_close_timeout` if not specified and that is set. Must be <=
1018
+ # `schedule_to_close_timeout` when set, otherwise, it will be clamped down.
1019
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1020
+ def schedule_to_start_timeout=(value)
1021
+ end
1022
+
1023
+ # Limits time the local activity can idle internally before being executed. That can happen if
1024
+ # the worker is currently at max concurrent local activity executions. This timeout is always
1025
+ # non retryable as all a retry would achieve is to put it back into the same queue. Defaults
1026
+ # to `schedule_to_close_timeout` if not specified and that is set. Must be <=
1027
+ # `schedule_to_close_timeout` when set, otherwise, it will be clamped down.
1028
+ sig { void }
1029
+ def clear_schedule_to_start_timeout
1030
+ end
1031
+
1032
+ # Maximum time the local activity is allowed to execute after the task is dispatched. This
1033
+ # timeout is always retryable. Either or both of `schedule_to_close_timeout` and this must be
1034
+ # specified. If set, this must be <= `schedule_to_close_timeout`, otherwise, it will be
1035
+ # clamped down.
1036
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1037
+ def start_to_close_timeout
1038
+ end
1039
+
1040
+ # Maximum time the local activity is allowed to execute after the task is dispatched. This
1041
+ # timeout is always retryable. Either or both of `schedule_to_close_timeout` and this must be
1042
+ # specified. If set, this must be <= `schedule_to_close_timeout`, otherwise, it will be
1043
+ # clamped down.
1044
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1045
+ def start_to_close_timeout=(value)
1046
+ end
1047
+
1048
+ # Maximum time the local activity is allowed to execute after the task is dispatched. This
1049
+ # timeout is always retryable. Either or both of `schedule_to_close_timeout` and this must be
1050
+ # specified. If set, this must be <= `schedule_to_close_timeout`, otherwise, it will be
1051
+ # clamped down.
1052
+ sig { void }
1053
+ def clear_start_to_close_timeout
1054
+ end
1055
+
1056
+ # Specify a retry policy for the local activity. By default local activities will be retried
1057
+ # indefinitely.
1058
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
1059
+ def retry_policy
1060
+ end
1061
+
1062
+ # Specify a retry policy for the local activity. By default local activities will be retried
1063
+ # indefinitely.
1064
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
1065
+ def retry_policy=(value)
1066
+ end
1067
+
1068
+ # Specify a retry policy for the local activity. By default local activities will be retried
1069
+ # indefinitely.
1070
+ sig { void }
1071
+ def clear_retry_policy
1072
+ end
1073
+
1074
+ # If the activity is retrying and backoff would exceed this value, lang will be told to
1075
+ # schedule a timer and retry the activity after. Otherwise, backoff will happen internally in
1076
+ # core. Defaults to 1 minute.
1077
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1078
+ def local_retry_threshold
1079
+ end
1080
+
1081
+ # If the activity is retrying and backoff would exceed this value, lang will be told to
1082
+ # schedule a timer and retry the activity after. Otherwise, backoff will happen internally in
1083
+ # core. Defaults to 1 minute.
1084
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1085
+ def local_retry_threshold=(value)
1086
+ end
1087
+
1088
+ # If the activity is retrying and backoff would exceed this value, lang will be told to
1089
+ # schedule a timer and retry the activity after. Otherwise, backoff will happen internally in
1090
+ # core. Defaults to 1 minute.
1091
+ sig { void }
1092
+ def clear_local_retry_threshold
1093
+ end
1094
+
1095
+ # Defines how the workflow will wait (or not) for cancellation of the activity to be
1096
+ # confirmed. Lang should default this to `WAIT_CANCELLATION_COMPLETED`, even though proto
1097
+ # will default to `TRY_CANCEL` automatically.
1098
+ sig { returns(T.any(Symbol, Integer)) }
1099
+ def cancellation_type
1100
+ end
1101
+
1102
+ # Defines how the workflow will wait (or not) for cancellation of the activity to be
1103
+ # confirmed. Lang should default this to `WAIT_CANCELLATION_COMPLETED`, even though proto
1104
+ # will default to `TRY_CANCEL` automatically.
1105
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1106
+ def cancellation_type=(value)
1107
+ end
1108
+
1109
+ # Defines how the workflow will wait (or not) for cancellation of the activity to be
1110
+ # confirmed. Lang should default this to `WAIT_CANCELLATION_COMPLETED`, even though proto
1111
+ # will default to `TRY_CANCEL` automatically.
1112
+ sig { void }
1113
+ def clear_cancellation_type
1114
+ end
1115
+
1116
+ sig { params(field: String).returns(T.untyped) }
1117
+ def [](field)
1118
+ end
1119
+
1120
+ sig { params(field: String, value: T.untyped).void }
1121
+ def []=(field, value)
1122
+ end
1123
+
1124
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1125
+ def to_h
1126
+ end
1127
+
1128
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity) }
1129
+ def self.decode(str)
1130
+ end
1131
+
1132
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity).returns(String) }
1133
+ def self.encode(msg)
1134
+ end
1135
+
1136
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity) }
1137
+ def self.decode_json(str, **kw)
1138
+ end
1139
+
1140
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity, kw: T.untyped).returns(String) }
1141
+ def self.encode_json(msg, **kw)
1142
+ end
1143
+
1144
+ sig { returns(::Google::Protobuf::Descriptor) }
1145
+ def self.descriptor
1146
+ end
1147
+ end
1148
+
1149
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity
1150
+ include ::Google::Protobuf::MessageExts
1151
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1152
+
1153
+ sig do
1154
+ params(
1155
+ seq: T.nilable(Integer)
1156
+ ).void
1157
+ end
1158
+ def initialize(
1159
+ seq: 0
1160
+ )
1161
+ end
1162
+
1163
+ # Lang's incremental sequence number as passed to `ScheduleActivity`
1164
+ sig { returns(Integer) }
1165
+ def seq
1166
+ end
1167
+
1168
+ # Lang's incremental sequence number as passed to `ScheduleActivity`
1169
+ sig { params(value: Integer).void }
1170
+ def seq=(value)
1171
+ end
1172
+
1173
+ # Lang's incremental sequence number as passed to `ScheduleActivity`
1174
+ sig { void }
1175
+ def clear_seq
1176
+ end
1177
+
1178
+ sig { params(field: String).returns(T.untyped) }
1179
+ def [](field)
1180
+ end
1181
+
1182
+ sig { params(field: String, value: T.untyped).void }
1183
+ def []=(field, value)
1184
+ end
1185
+
1186
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1187
+ def to_h
1188
+ end
1189
+
1190
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity) }
1191
+ def self.decode(str)
1192
+ end
1193
+
1194
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity).returns(String) }
1195
+ def self.encode(msg)
1196
+ end
1197
+
1198
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity) }
1199
+ def self.decode_json(str, **kw)
1200
+ end
1201
+
1202
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity, kw: T.untyped).returns(String) }
1203
+ def self.encode_json(msg, **kw)
1204
+ end
1205
+
1206
+ sig { returns(::Google::Protobuf::Descriptor) }
1207
+ def self.descriptor
1208
+ end
1209
+ end
1210
+
1211
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity
1212
+ include ::Google::Protobuf::MessageExts
1213
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1214
+
1215
+ sig do
1216
+ params(
1217
+ seq: T.nilable(Integer)
1218
+ ).void
1219
+ end
1220
+ def initialize(
1221
+ seq: 0
1222
+ )
1223
+ end
1224
+
1225
+ # Lang's incremental sequence number as passed to `ScheduleLocalActivity`
1226
+ sig { returns(Integer) }
1227
+ def seq
1228
+ end
1229
+
1230
+ # Lang's incremental sequence number as passed to `ScheduleLocalActivity`
1231
+ sig { params(value: Integer).void }
1232
+ def seq=(value)
1233
+ end
1234
+
1235
+ # Lang's incremental sequence number as passed to `ScheduleLocalActivity`
1236
+ sig { void }
1237
+ def clear_seq
1238
+ end
1239
+
1240
+ sig { params(field: String).returns(T.untyped) }
1241
+ def [](field)
1242
+ end
1243
+
1244
+ sig { params(field: String, value: T.untyped).void }
1245
+ def []=(field, value)
1246
+ end
1247
+
1248
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1249
+ def to_h
1250
+ end
1251
+
1252
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity) }
1253
+ def self.decode(str)
1254
+ end
1255
+
1256
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity).returns(String) }
1257
+ def self.encode(msg)
1258
+ end
1259
+
1260
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity) }
1261
+ def self.decode_json(str, **kw)
1262
+ end
1263
+
1264
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity, kw: T.untyped).returns(String) }
1265
+ def self.encode_json(msg, **kw)
1266
+ end
1267
+
1268
+ sig { returns(::Google::Protobuf::Descriptor) }
1269
+ def self.descriptor
1270
+ end
1271
+ end
1272
+
1273
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult
1274
+ include ::Google::Protobuf::MessageExts
1275
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1276
+
1277
+ sig do
1278
+ params(
1279
+ query_id: T.nilable(String),
1280
+ succeeded: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess),
1281
+ failed: T.nilable(Temporalio::Api::Failure::V1::Failure)
1282
+ ).void
1283
+ end
1284
+ def initialize(
1285
+ query_id: "",
1286
+ succeeded: nil,
1287
+ failed: nil
1288
+ )
1289
+ end
1290
+
1291
+ # Corresponds to the id provided in the activation job
1292
+ sig { returns(String) }
1293
+ def query_id
1294
+ end
1295
+
1296
+ # Corresponds to the id provided in the activation job
1297
+ sig { params(value: String).void }
1298
+ def query_id=(value)
1299
+ end
1300
+
1301
+ # Corresponds to the id provided in the activation job
1302
+ sig { void }
1303
+ def clear_query_id
1304
+ end
1305
+
1306
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess)) }
1307
+ def succeeded
1308
+ end
1309
+
1310
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess)).void }
1311
+ def succeeded=(value)
1312
+ end
1313
+
1314
+ sig { void }
1315
+ def clear_succeeded
1316
+ end
1317
+
1318
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
1319
+ def failed
1320
+ end
1321
+
1322
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
1323
+ def failed=(value)
1324
+ end
1325
+
1326
+ sig { void }
1327
+ def clear_failed
1328
+ end
1329
+
1330
+ sig { returns(T.nilable(Symbol)) }
1331
+ def variant
1332
+ end
1333
+
1334
+ sig { params(field: String).returns(T.untyped) }
1335
+ def [](field)
1336
+ end
1337
+
1338
+ sig { params(field: String, value: T.untyped).void }
1339
+ def []=(field, value)
1340
+ end
1341
+
1342
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1343
+ def to_h
1344
+ end
1345
+
1346
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult) }
1347
+ def self.decode(str)
1348
+ end
1349
+
1350
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult).returns(String) }
1351
+ def self.encode(msg)
1352
+ end
1353
+
1354
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult) }
1355
+ def self.decode_json(str, **kw)
1356
+ end
1357
+
1358
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult, kw: T.untyped).returns(String) }
1359
+ def self.encode_json(msg, **kw)
1360
+ end
1361
+
1362
+ sig { returns(::Google::Protobuf::Descriptor) }
1363
+ def self.descriptor
1364
+ end
1365
+ end
1366
+
1367
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess
1368
+ include ::Google::Protobuf::MessageExts
1369
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1370
+
1371
+ sig do
1372
+ params(
1373
+ response: T.nilable(Temporalio::Api::Common::V1::Payload)
1374
+ ).void
1375
+ end
1376
+ def initialize(
1377
+ response: nil
1378
+ )
1379
+ end
1380
+
1381
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
1382
+ def response
1383
+ end
1384
+
1385
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
1386
+ def response=(value)
1387
+ end
1388
+
1389
+ sig { void }
1390
+ def clear_response
1391
+ end
1392
+
1393
+ sig { params(field: String).returns(T.untyped) }
1394
+ def [](field)
1395
+ end
1396
+
1397
+ sig { params(field: String, value: T.untyped).void }
1398
+ def []=(field, value)
1399
+ end
1400
+
1401
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1402
+ def to_h
1403
+ end
1404
+
1405
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess) }
1406
+ def self.decode(str)
1407
+ end
1408
+
1409
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess).returns(String) }
1410
+ def self.encode(msg)
1411
+ end
1412
+
1413
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess) }
1414
+ def self.decode_json(str, **kw)
1415
+ end
1416
+
1417
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess, kw: T.untyped).returns(String) }
1418
+ def self.encode_json(msg, **kw)
1419
+ end
1420
+
1421
+ sig { returns(::Google::Protobuf::Descriptor) }
1422
+ def self.descriptor
1423
+ end
1424
+ end
1425
+
1426
+ # Issued when the workflow completes successfully
1427
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution
1428
+ include ::Google::Protobuf::MessageExts
1429
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1430
+
1431
+ sig do
1432
+ params(
1433
+ result: T.nilable(Temporalio::Api::Common::V1::Payload)
1434
+ ).void
1435
+ end
1436
+ def initialize(
1437
+ result: nil
1438
+ )
1439
+ end
1440
+
1441
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
1442
+ def result
1443
+ end
1444
+
1445
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
1446
+ def result=(value)
1447
+ end
1448
+
1449
+ sig { void }
1450
+ def clear_result
1451
+ end
1452
+
1453
+ sig { params(field: String).returns(T.untyped) }
1454
+ def [](field)
1455
+ end
1456
+
1457
+ sig { params(field: String, value: T.untyped).void }
1458
+ def []=(field, value)
1459
+ end
1460
+
1461
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1462
+ def to_h
1463
+ end
1464
+
1465
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution) }
1466
+ def self.decode(str)
1467
+ end
1468
+
1469
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution).returns(String) }
1470
+ def self.encode(msg)
1471
+ end
1472
+
1473
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution) }
1474
+ def self.decode_json(str, **kw)
1475
+ end
1476
+
1477
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution, kw: T.untyped).returns(String) }
1478
+ def self.encode_json(msg, **kw)
1479
+ end
1480
+
1481
+ sig { returns(::Google::Protobuf::Descriptor) }
1482
+ def self.descriptor
1483
+ end
1484
+ end
1485
+
1486
+ # Issued when the workflow errors out
1487
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution
1488
+ include ::Google::Protobuf::MessageExts
1489
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1490
+
1491
+ sig do
1492
+ params(
1493
+ failure: T.nilable(Temporalio::Api::Failure::V1::Failure)
1494
+ ).void
1495
+ end
1496
+ def initialize(
1497
+ failure: nil
1498
+ )
1499
+ end
1500
+
1501
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
1502
+ def failure
1503
+ end
1504
+
1505
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
1506
+ def failure=(value)
1507
+ end
1508
+
1509
+ sig { void }
1510
+ def clear_failure
1511
+ end
1512
+
1513
+ sig { params(field: String).returns(T.untyped) }
1514
+ def [](field)
1515
+ end
1516
+
1517
+ sig { params(field: String, value: T.untyped).void }
1518
+ def []=(field, value)
1519
+ end
1520
+
1521
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1522
+ def to_h
1523
+ end
1524
+
1525
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution) }
1526
+ def self.decode(str)
1527
+ end
1528
+
1529
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution).returns(String) }
1530
+ def self.encode(msg)
1531
+ end
1532
+
1533
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution) }
1534
+ def self.decode_json(str, **kw)
1535
+ end
1536
+
1537
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution, kw: T.untyped).returns(String) }
1538
+ def self.encode_json(msg, **kw)
1539
+ end
1540
+
1541
+ sig { returns(::Google::Protobuf::Descriptor) }
1542
+ def self.descriptor
1543
+ end
1544
+ end
1545
+
1546
+ # Continue the workflow as a new execution
1547
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution
1548
+ include ::Google::Protobuf::MessageExts
1549
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1550
+
1551
+ sig do
1552
+ params(
1553
+ workflow_type: T.nilable(String),
1554
+ task_queue: T.nilable(String),
1555
+ arguments: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
1556
+ workflow_run_timeout: T.nilable(Google::Protobuf::Duration),
1557
+ workflow_task_timeout: T.nilable(Google::Protobuf::Duration),
1558
+ memo: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
1559
+ headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
1560
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
1561
+ retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
1562
+ versioning_intent: T.nilable(T.any(Symbol, String, Integer)),
1563
+ initial_versioning_behavior: T.nilable(T.any(Symbol, String, Integer)),
1564
+ backoff_start_interval: T.nilable(Google::Protobuf::Duration)
1565
+ ).void
1566
+ end
1567
+ def initialize(
1568
+ workflow_type: "",
1569
+ task_queue: "",
1570
+ arguments: [],
1571
+ workflow_run_timeout: nil,
1572
+ workflow_task_timeout: nil,
1573
+ memo: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
1574
+ headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
1575
+ search_attributes: nil,
1576
+ retry_policy: nil,
1577
+ versioning_intent: :UNSPECIFIED,
1578
+ initial_versioning_behavior: :CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED,
1579
+ backoff_start_interval: nil
1580
+ )
1581
+ end
1582
+
1583
+ # The identifier the lang-specific sdk uses to execute workflow code
1584
+ sig { returns(String) }
1585
+ def workflow_type
1586
+ end
1587
+
1588
+ # The identifier the lang-specific sdk uses to execute workflow code
1589
+ sig { params(value: String).void }
1590
+ def workflow_type=(value)
1591
+ end
1592
+
1593
+ # The identifier the lang-specific sdk uses to execute workflow code
1594
+ sig { void }
1595
+ def clear_workflow_type
1596
+ end
1597
+
1598
+ # Task queue for the new workflow execution
1599
+ sig { returns(String) }
1600
+ def task_queue
1601
+ end
1602
+
1603
+ # Task queue for the new workflow execution
1604
+ sig { params(value: String).void }
1605
+ def task_queue=(value)
1606
+ end
1607
+
1608
+ # Task queue for the new workflow execution
1609
+ sig { void }
1610
+ def clear_task_queue
1611
+ end
1612
+
1613
+ # Inputs to the workflow code. Should be specified. Will not re-use old arguments, as that
1614
+ # typically wouldn't make any sense.
1615
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
1616
+ def arguments
1617
+ end
1618
+
1619
+ # Inputs to the workflow code. Should be specified. Will not re-use old arguments, as that
1620
+ # typically wouldn't make any sense.
1621
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
1622
+ def arguments=(value)
1623
+ end
1624
+
1625
+ # Inputs to the workflow code. Should be specified. Will not re-use old arguments, as that
1626
+ # typically wouldn't make any sense.
1627
+ sig { void }
1628
+ def clear_arguments
1629
+ end
1630
+
1631
+ # Timeout for a single run of the new workflow. Will not re-use current workflow's value.
1632
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1633
+ def workflow_run_timeout
1634
+ end
1635
+
1636
+ # Timeout for a single run of the new workflow. Will not re-use current workflow's value.
1637
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1638
+ def workflow_run_timeout=(value)
1639
+ end
1640
+
1641
+ # Timeout for a single run of the new workflow. Will not re-use current workflow's value.
1642
+ sig { void }
1643
+ def clear_workflow_run_timeout
1644
+ end
1645
+
1646
+ # Timeout of a single workflow task. Will not re-use current workflow's value.
1647
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1648
+ def workflow_task_timeout
1649
+ end
1650
+
1651
+ # Timeout of a single workflow task. Will not re-use current workflow's value.
1652
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1653
+ def workflow_task_timeout=(value)
1654
+ end
1655
+
1656
+ # Timeout of a single workflow task. Will not re-use current workflow's value.
1657
+ sig { void }
1658
+ def clear_workflow_task_timeout
1659
+ end
1660
+
1661
+ # If set, the new workflow will have this memo. If unset, re-uses the current workflow's memo
1662
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
1663
+ def memo
1664
+ end
1665
+
1666
+ # If set, the new workflow will have this memo. If unset, re-uses the current workflow's memo
1667
+ sig { params(value: ::Google::Protobuf::Map).void }
1668
+ def memo=(value)
1669
+ end
1670
+
1671
+ # If set, the new workflow will have this memo. If unset, re-uses the current workflow's memo
1672
+ sig { void }
1673
+ def clear_memo
1674
+ end
1675
+
1676
+ # If set, the new workflow will have these headers. Will *not* re-use current workflow's
1677
+ # headers otherwise.
1678
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
1679
+ def headers
1680
+ end
1681
+
1682
+ # If set, the new workflow will have these headers. Will *not* re-use current workflow's
1683
+ # headers otherwise.
1684
+ sig { params(value: ::Google::Protobuf::Map).void }
1685
+ def headers=(value)
1686
+ end
1687
+
1688
+ # If set, the new workflow will have these headers. Will *not* re-use current workflow's
1689
+ # headers otherwise.
1690
+ sig { void }
1691
+ def clear_headers
1692
+ end
1693
+
1694
+ # If set, the new workflow will have these search attributes. If unset, re-uses the current
1695
+ # workflow's search attributes.
1696
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
1697
+ def search_attributes
1698
+ end
1699
+
1700
+ # If set, the new workflow will have these search attributes. If unset, re-uses the current
1701
+ # workflow's search attributes.
1702
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
1703
+ def search_attributes=(value)
1704
+ end
1705
+
1706
+ # If set, the new workflow will have these search attributes. If unset, re-uses the current
1707
+ # workflow's search attributes.
1708
+ sig { void }
1709
+ def clear_search_attributes
1710
+ end
1711
+
1712
+ # If set, the new workflow will have this retry policy. If unset, re-uses the current
1713
+ # workflow's retry policy.
1714
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
1715
+ def retry_policy
1716
+ end
1717
+
1718
+ # If set, the new workflow will have this retry policy. If unset, re-uses the current
1719
+ # workflow's retry policy.
1720
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
1721
+ def retry_policy=(value)
1722
+ end
1723
+
1724
+ # If set, the new workflow will have this retry policy. If unset, re-uses the current
1725
+ # workflow's retry policy.
1726
+ sig { void }
1727
+ def clear_retry_policy
1728
+ end
1729
+
1730
+ # Whether the continued workflow should run on a worker with a compatible build id or not.
1731
+ sig { returns(T.any(Symbol, Integer)) }
1732
+ def versioning_intent
1733
+ end
1734
+
1735
+ # Whether the continued workflow should run on a worker with a compatible build id or not.
1736
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1737
+ def versioning_intent=(value)
1738
+ end
1739
+
1740
+ # Whether the continued workflow should run on a worker with a compatible build id or not.
1741
+ sig { void }
1742
+ def clear_versioning_intent
1743
+ end
1744
+
1745
+ # Experimental. Optionally decide the versioning behavior that the first task of the new run should use.
1746
+ # For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
1747
+ # of the previous run.
1748
+ sig { returns(T.any(Symbol, Integer)) }
1749
+ def initial_versioning_behavior
1750
+ end
1751
+
1752
+ # Experimental. Optionally decide the versioning behavior that the first task of the new run should use.
1753
+ # For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
1754
+ # of the previous run.
1755
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1756
+ def initial_versioning_behavior=(value)
1757
+ end
1758
+
1759
+ # Experimental. Optionally decide the versioning behavior that the first task of the new run should use.
1760
+ # For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
1761
+ # of the previous run.
1762
+ sig { void }
1763
+ def clear_initial_versioning_behavior
1764
+ end
1765
+
1766
+ # Delay before the first workflow task of the continued run is scheduled.
1767
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1768
+ def backoff_start_interval
1769
+ end
1770
+
1771
+ # Delay before the first workflow task of the continued run is scheduled.
1772
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1773
+ def backoff_start_interval=(value)
1774
+ end
1775
+
1776
+ # Delay before the first workflow task of the continued run is scheduled.
1777
+ sig { void }
1778
+ def clear_backoff_start_interval
1779
+ end
1780
+
1781
+ sig { params(field: String).returns(T.untyped) }
1782
+ def [](field)
1783
+ end
1784
+
1785
+ sig { params(field: String, value: T.untyped).void }
1786
+ def []=(field, value)
1787
+ end
1788
+
1789
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1790
+ def to_h
1791
+ end
1792
+
1793
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution) }
1794
+ def self.decode(str)
1795
+ end
1796
+
1797
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution).returns(String) }
1798
+ def self.encode(msg)
1799
+ end
1800
+
1801
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution) }
1802
+ def self.decode_json(str, **kw)
1803
+ end
1804
+
1805
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution, kw: T.untyped).returns(String) }
1806
+ def self.encode_json(msg, **kw)
1807
+ end
1808
+
1809
+ sig { returns(::Google::Protobuf::Descriptor) }
1810
+ def self.descriptor
1811
+ end
1812
+ end
1813
+
1814
+ # Indicate a workflow has completed as cancelled. Generally sent as a response to an activation
1815
+ # containing a cancellation job.
1816
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution
1817
+ include ::Google::Protobuf::MessageExts
1818
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1819
+
1820
+ sig {void}
1821
+ def initialize; end
1822
+
1823
+ sig { params(field: String).returns(T.untyped) }
1824
+ def [](field)
1825
+ end
1826
+
1827
+ sig { params(field: String, value: T.untyped).void }
1828
+ def []=(field, value)
1829
+ end
1830
+
1831
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1832
+ def to_h
1833
+ end
1834
+
1835
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution) }
1836
+ def self.decode(str)
1837
+ end
1838
+
1839
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution).returns(String) }
1840
+ def self.encode(msg)
1841
+ end
1842
+
1843
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution) }
1844
+ def self.decode_json(str, **kw)
1845
+ end
1846
+
1847
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution, kw: T.untyped).returns(String) }
1848
+ def self.encode_json(msg, **kw)
1849
+ end
1850
+
1851
+ sig { returns(::Google::Protobuf::Descriptor) }
1852
+ def self.descriptor
1853
+ end
1854
+ end
1855
+
1856
+ # A request to set/check if a certain patch is present or not
1857
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker
1858
+ include ::Google::Protobuf::MessageExts
1859
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1860
+
1861
+ sig do
1862
+ params(
1863
+ patch_id: T.nilable(String),
1864
+ deprecated: T.nilable(T::Boolean)
1865
+ ).void
1866
+ end
1867
+ def initialize(
1868
+ patch_id: "",
1869
+ deprecated: false
1870
+ )
1871
+ end
1872
+
1873
+ # A user-chosen identifier for this patch. If the same identifier is used in multiple places in
1874
+ # the code, those places are considered to be versioned as one unit. IE: The check call will
1875
+ # return the same result for all of them
1876
+ sig { returns(String) }
1877
+ def patch_id
1878
+ end
1879
+
1880
+ # A user-chosen identifier for this patch. If the same identifier is used in multiple places in
1881
+ # the code, those places are considered to be versioned as one unit. IE: The check call will
1882
+ # return the same result for all of them
1883
+ sig { params(value: String).void }
1884
+ def patch_id=(value)
1885
+ end
1886
+
1887
+ # A user-chosen identifier for this patch. If the same identifier is used in multiple places in
1888
+ # the code, those places are considered to be versioned as one unit. IE: The check call will
1889
+ # return the same result for all of them
1890
+ sig { void }
1891
+ def clear_patch_id
1892
+ end
1893
+
1894
+ # Can be set to true to indicate that branches using this change are being removed, and all
1895
+ # future worker deployments will only have the "with change" code in them.
1896
+ sig { returns(T::Boolean) }
1897
+ def deprecated
1898
+ end
1899
+
1900
+ # Can be set to true to indicate that branches using this change are being removed, and all
1901
+ # future worker deployments will only have the "with change" code in them.
1902
+ sig { params(value: T::Boolean).void }
1903
+ def deprecated=(value)
1904
+ end
1905
+
1906
+ # Can be set to true to indicate that branches using this change are being removed, and all
1907
+ # future worker deployments will only have the "with change" code in them.
1908
+ sig { void }
1909
+ def clear_deprecated
1910
+ end
1911
+
1912
+ sig { params(field: String).returns(T.untyped) }
1913
+ def [](field)
1914
+ end
1915
+
1916
+ sig { params(field: String, value: T.untyped).void }
1917
+ def []=(field, value)
1918
+ end
1919
+
1920
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1921
+ def to_h
1922
+ end
1923
+
1924
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker) }
1925
+ def self.decode(str)
1926
+ end
1927
+
1928
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker).returns(String) }
1929
+ def self.encode(msg)
1930
+ end
1931
+
1932
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker) }
1933
+ def self.decode_json(str, **kw)
1934
+ end
1935
+
1936
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker, kw: T.untyped).returns(String) }
1937
+ def self.encode_json(msg, **kw)
1938
+ end
1939
+
1940
+ sig { returns(::Google::Protobuf::Descriptor) }
1941
+ def self.descriptor
1942
+ end
1943
+ end
1944
+
1945
+ # Start a child workflow execution
1946
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution
1947
+ include ::Google::Protobuf::MessageExts
1948
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1949
+
1950
+ sig do
1951
+ params(
1952
+ seq: T.nilable(Integer),
1953
+ namespace: T.nilable(String),
1954
+ workflow_id: T.nilable(String),
1955
+ workflow_type: T.nilable(String),
1956
+ task_queue: T.nilable(String),
1957
+ input: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
1958
+ workflow_execution_timeout: T.nilable(Google::Protobuf::Duration),
1959
+ workflow_run_timeout: T.nilable(Google::Protobuf::Duration),
1960
+ workflow_task_timeout: T.nilable(Google::Protobuf::Duration),
1961
+ parent_close_policy: T.nilable(T.any(Symbol, String, Integer)),
1962
+ workflow_id_reuse_policy: T.nilable(T.any(Symbol, String, Integer)),
1963
+ retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
1964
+ cron_schedule: T.nilable(String),
1965
+ headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
1966
+ memo: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
1967
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
1968
+ cancellation_type: T.nilable(T.any(Symbol, String, Integer)),
1969
+ versioning_intent: T.nilable(T.any(Symbol, String, Integer)),
1970
+ priority: T.nilable(Temporalio::Api::Common::V1::Priority)
1971
+ ).void
1972
+ end
1973
+ def initialize(
1974
+ seq: 0,
1975
+ namespace: "",
1976
+ workflow_id: "",
1977
+ workflow_type: "",
1978
+ task_queue: "",
1979
+ input: [],
1980
+ workflow_execution_timeout: nil,
1981
+ workflow_run_timeout: nil,
1982
+ workflow_task_timeout: nil,
1983
+ parent_close_policy: :PARENT_CLOSE_POLICY_UNSPECIFIED,
1984
+ workflow_id_reuse_policy: :WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED,
1985
+ retry_policy: nil,
1986
+ cron_schedule: "",
1987
+ headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
1988
+ memo: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
1989
+ search_attributes: nil,
1990
+ cancellation_type: :ABANDON,
1991
+ versioning_intent: :UNSPECIFIED,
1992
+ priority: nil
1993
+ )
1994
+ end
1995
+
1996
+ # Lang's incremental sequence number, used as the operation identifier
1997
+ sig { returns(Integer) }
1998
+ def seq
1999
+ end
2000
+
2001
+ # Lang's incremental sequence number, used as the operation identifier
2002
+ sig { params(value: Integer).void }
2003
+ def seq=(value)
2004
+ end
2005
+
2006
+ # Lang's incremental sequence number, used as the operation identifier
2007
+ sig { void }
2008
+ def clear_seq
2009
+ end
2010
+
2011
+ sig { returns(String) }
2012
+ def namespace
2013
+ end
2014
+
2015
+ sig { params(value: String).void }
2016
+ def namespace=(value)
2017
+ end
2018
+
2019
+ sig { void }
2020
+ def clear_namespace
2021
+ end
2022
+
2023
+ sig { returns(String) }
2024
+ def workflow_id
2025
+ end
2026
+
2027
+ sig { params(value: String).void }
2028
+ def workflow_id=(value)
2029
+ end
2030
+
2031
+ sig { void }
2032
+ def clear_workflow_id
2033
+ end
2034
+
2035
+ sig { returns(String) }
2036
+ def workflow_type
2037
+ end
2038
+
2039
+ sig { params(value: String).void }
2040
+ def workflow_type=(value)
2041
+ end
2042
+
2043
+ sig { void }
2044
+ def clear_workflow_type
2045
+ end
2046
+
2047
+ sig { returns(String) }
2048
+ def task_queue
2049
+ end
2050
+
2051
+ sig { params(value: String).void }
2052
+ def task_queue=(value)
2053
+ end
2054
+
2055
+ sig { void }
2056
+ def clear_task_queue
2057
+ end
2058
+
2059
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
2060
+ def input
2061
+ end
2062
+
2063
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2064
+ def input=(value)
2065
+ end
2066
+
2067
+ sig { void }
2068
+ def clear_input
2069
+ end
2070
+
2071
+ # Total workflow execution timeout including retries and continue as new.
2072
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
2073
+ def workflow_execution_timeout
2074
+ end
2075
+
2076
+ # Total workflow execution timeout including retries and continue as new.
2077
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
2078
+ def workflow_execution_timeout=(value)
2079
+ end
2080
+
2081
+ # Total workflow execution timeout including retries and continue as new.
2082
+ sig { void }
2083
+ def clear_workflow_execution_timeout
2084
+ end
2085
+
2086
+ # Timeout of a single workflow run.
2087
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
2088
+ def workflow_run_timeout
2089
+ end
2090
+
2091
+ # Timeout of a single workflow run.
2092
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
2093
+ def workflow_run_timeout=(value)
2094
+ end
2095
+
2096
+ # Timeout of a single workflow run.
2097
+ sig { void }
2098
+ def clear_workflow_run_timeout
2099
+ end
2100
+
2101
+ # Timeout of a single workflow task.
2102
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
2103
+ def workflow_task_timeout
2104
+ end
2105
+
2106
+ # Timeout of a single workflow task.
2107
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
2108
+ def workflow_task_timeout=(value)
2109
+ end
2110
+
2111
+ # Timeout of a single workflow task.
2112
+ sig { void }
2113
+ def clear_workflow_task_timeout
2114
+ end
2115
+
2116
+ # Default: PARENT_CLOSE_POLICY_TERMINATE.
2117
+ sig { returns(T.any(Symbol, Integer)) }
2118
+ def parent_close_policy
2119
+ end
2120
+
2121
+ # Default: PARENT_CLOSE_POLICY_TERMINATE.
2122
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2123
+ def parent_close_policy=(value)
2124
+ end
2125
+
2126
+ # Default: PARENT_CLOSE_POLICY_TERMINATE.
2127
+ sig { void }
2128
+ def clear_parent_close_policy
2129
+ end
2130
+
2131
+ # string control = 11; (unused from StartChildWorkflowExecutionCommandAttributes)
2132
+ # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
2133
+ sig { returns(T.any(Symbol, Integer)) }
2134
+ def workflow_id_reuse_policy
2135
+ end
2136
+
2137
+ # string control = 11; (unused from StartChildWorkflowExecutionCommandAttributes)
2138
+ # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
2139
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2140
+ def workflow_id_reuse_policy=(value)
2141
+ end
2142
+
2143
+ # string control = 11; (unused from StartChildWorkflowExecutionCommandAttributes)
2144
+ # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
2145
+ sig { void }
2146
+ def clear_workflow_id_reuse_policy
2147
+ end
2148
+
2149
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
2150
+ def retry_policy
2151
+ end
2152
+
2153
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
2154
+ def retry_policy=(value)
2155
+ end
2156
+
2157
+ sig { void }
2158
+ def clear_retry_policy
2159
+ end
2160
+
2161
+ sig { returns(String) }
2162
+ def cron_schedule
2163
+ end
2164
+
2165
+ sig { params(value: String).void }
2166
+ def cron_schedule=(value)
2167
+ end
2168
+
2169
+ sig { void }
2170
+ def clear_cron_schedule
2171
+ end
2172
+
2173
+ # Header fields
2174
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
2175
+ def headers
2176
+ end
2177
+
2178
+ # Header fields
2179
+ sig { params(value: ::Google::Protobuf::Map).void }
2180
+ def headers=(value)
2181
+ end
2182
+
2183
+ # Header fields
2184
+ sig { void }
2185
+ def clear_headers
2186
+ end
2187
+
2188
+ # Memo fields
2189
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
2190
+ def memo
2191
+ end
2192
+
2193
+ # Memo fields
2194
+ sig { params(value: ::Google::Protobuf::Map).void }
2195
+ def memo=(value)
2196
+ end
2197
+
2198
+ # Memo fields
2199
+ sig { void }
2200
+ def clear_memo
2201
+ end
2202
+
2203
+ # Search attributes
2204
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
2205
+ def search_attributes
2206
+ end
2207
+
2208
+ # Search attributes
2209
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
2210
+ def search_attributes=(value)
2211
+ end
2212
+
2213
+ # Search attributes
2214
+ sig { void }
2215
+ def clear_search_attributes
2216
+ end
2217
+
2218
+ # Defines behaviour of the underlying workflow when child workflow cancellation has been requested.
2219
+ sig { returns(T.any(Symbol, Integer)) }
2220
+ def cancellation_type
2221
+ end
2222
+
2223
+ # Defines behaviour of the underlying workflow when child workflow cancellation has been requested.
2224
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2225
+ def cancellation_type=(value)
2226
+ end
2227
+
2228
+ # Defines behaviour of the underlying workflow when child workflow cancellation has been requested.
2229
+ sig { void }
2230
+ def clear_cancellation_type
2231
+ end
2232
+
2233
+ # Whether this child should run on a worker with a compatible build id or not.
2234
+ sig { returns(T.any(Symbol, Integer)) }
2235
+ def versioning_intent
2236
+ end
2237
+
2238
+ # Whether this child should run on a worker with a compatible build id or not.
2239
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2240
+ def versioning_intent=(value)
2241
+ end
2242
+
2243
+ # Whether this child should run on a worker with a compatible build id or not.
2244
+ sig { void }
2245
+ def clear_versioning_intent
2246
+ end
2247
+
2248
+ # The Priority to use for this activity
2249
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
2250
+ def priority
2251
+ end
2252
+
2253
+ # The Priority to use for this activity
2254
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
2255
+ def priority=(value)
2256
+ end
2257
+
2258
+ # The Priority to use for this activity
2259
+ sig { void }
2260
+ def clear_priority
2261
+ end
2262
+
2263
+ sig { params(field: String).returns(T.untyped) }
2264
+ def [](field)
2265
+ end
2266
+
2267
+ sig { params(field: String, value: T.untyped).void }
2268
+ def []=(field, value)
2269
+ end
2270
+
2271
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2272
+ def to_h
2273
+ end
2274
+
2275
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution) }
2276
+ def self.decode(str)
2277
+ end
2278
+
2279
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution).returns(String) }
2280
+ def self.encode(msg)
2281
+ end
2282
+
2283
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution) }
2284
+ def self.decode_json(str, **kw)
2285
+ end
2286
+
2287
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution, kw: T.untyped).returns(String) }
2288
+ def self.encode_json(msg, **kw)
2289
+ end
2290
+
2291
+ sig { returns(::Google::Protobuf::Descriptor) }
2292
+ def self.descriptor
2293
+ end
2294
+ end
2295
+
2296
+ # Cancel a child workflow
2297
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution
2298
+ include ::Google::Protobuf::MessageExts
2299
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2300
+
2301
+ sig do
2302
+ params(
2303
+ child_workflow_seq: T.nilable(Integer),
2304
+ reason: T.nilable(String)
2305
+ ).void
2306
+ end
2307
+ def initialize(
2308
+ child_workflow_seq: 0,
2309
+ reason: ""
2310
+ )
2311
+ end
2312
+
2313
+ # Sequence number as given to the `StartChildWorkflowExecution` command
2314
+ sig { returns(Integer) }
2315
+ def child_workflow_seq
2316
+ end
2317
+
2318
+ # Sequence number as given to the `StartChildWorkflowExecution` command
2319
+ sig { params(value: Integer).void }
2320
+ def child_workflow_seq=(value)
2321
+ end
2322
+
2323
+ # Sequence number as given to the `StartChildWorkflowExecution` command
2324
+ sig { void }
2325
+ def clear_child_workflow_seq
2326
+ end
2327
+
2328
+ # A reason for the cancellation
2329
+ sig { returns(String) }
2330
+ def reason
2331
+ end
2332
+
2333
+ # A reason for the cancellation
2334
+ sig { params(value: String).void }
2335
+ def reason=(value)
2336
+ end
2337
+
2338
+ # A reason for the cancellation
2339
+ sig { void }
2340
+ def clear_reason
2341
+ end
2342
+
2343
+ sig { params(field: String).returns(T.untyped) }
2344
+ def [](field)
2345
+ end
2346
+
2347
+ sig { params(field: String, value: T.untyped).void }
2348
+ def []=(field, value)
2349
+ end
2350
+
2351
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2352
+ def to_h
2353
+ end
2354
+
2355
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution) }
2356
+ def self.decode(str)
2357
+ end
2358
+
2359
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution).returns(String) }
2360
+ def self.encode(msg)
2361
+ end
2362
+
2363
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution) }
2364
+ def self.decode_json(str, **kw)
2365
+ end
2366
+
2367
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution, kw: T.untyped).returns(String) }
2368
+ def self.encode_json(msg, **kw)
2369
+ end
2370
+
2371
+ sig { returns(::Google::Protobuf::Descriptor) }
2372
+ def self.descriptor
2373
+ end
2374
+ end
2375
+
2376
+ # Request cancellation of an external workflow execution. For cancellation of a child workflow,
2377
+ # prefer `CancelChildWorkflowExecution` instead, as it guards against cancel-before-start issues.
2378
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution
2379
+ include ::Google::Protobuf::MessageExts
2380
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2381
+
2382
+ sig do
2383
+ params(
2384
+ seq: T.nilable(Integer),
2385
+ workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution),
2386
+ reason: T.nilable(String)
2387
+ ).void
2388
+ end
2389
+ def initialize(
2390
+ seq: 0,
2391
+ workflow_execution: nil,
2392
+ reason: ""
2393
+ )
2394
+ end
2395
+
2396
+ # Lang's incremental sequence number, used as the operation identifier
2397
+ sig { returns(Integer) }
2398
+ def seq
2399
+ end
2400
+
2401
+ # Lang's incremental sequence number, used as the operation identifier
2402
+ sig { params(value: Integer).void }
2403
+ def seq=(value)
2404
+ end
2405
+
2406
+ # Lang's incremental sequence number, used as the operation identifier
2407
+ sig { void }
2408
+ def clear_seq
2409
+ end
2410
+
2411
+ # The workflow instance being targeted
2412
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution)) }
2413
+ def workflow_execution
2414
+ end
2415
+
2416
+ # The workflow instance being targeted
2417
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution)).void }
2418
+ def workflow_execution=(value)
2419
+ end
2420
+
2421
+ # The workflow instance being targeted
2422
+ sig { void }
2423
+ def clear_workflow_execution
2424
+ end
2425
+
2426
+ # A reason for the cancellation
2427
+ sig { returns(String) }
2428
+ def reason
2429
+ end
2430
+
2431
+ # A reason for the cancellation
2432
+ sig { params(value: String).void }
2433
+ def reason=(value)
2434
+ end
2435
+
2436
+ # A reason for the cancellation
2437
+ sig { void }
2438
+ def clear_reason
2439
+ end
2440
+
2441
+ sig { params(field: String).returns(T.untyped) }
2442
+ def [](field)
2443
+ end
2444
+
2445
+ sig { params(field: String, value: T.untyped).void }
2446
+ def []=(field, value)
2447
+ end
2448
+
2449
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2450
+ def to_h
2451
+ end
2452
+
2453
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution) }
2454
+ def self.decode(str)
2455
+ end
2456
+
2457
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution).returns(String) }
2458
+ def self.encode(msg)
2459
+ end
2460
+
2461
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution) }
2462
+ def self.decode_json(str, **kw)
2463
+ end
2464
+
2465
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution, kw: T.untyped).returns(String) }
2466
+ def self.encode_json(msg, **kw)
2467
+ end
2468
+
2469
+ sig { returns(::Google::Protobuf::Descriptor) }
2470
+ def self.descriptor
2471
+ end
2472
+ end
2473
+
2474
+ # Send a signal to an external or child workflow
2475
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution
2476
+ include ::Google::Protobuf::MessageExts
2477
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2478
+
2479
+ sig do
2480
+ params(
2481
+ seq: T.nilable(Integer),
2482
+ workflow_execution: T.nilable(Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution),
2483
+ child_workflow_id: T.nilable(String),
2484
+ signal_name: T.nilable(String),
2485
+ args: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
2486
+ headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)])
2487
+ ).void
2488
+ end
2489
+ def initialize(
2490
+ seq: 0,
2491
+ workflow_execution: nil,
2492
+ child_workflow_id: "",
2493
+ signal_name: "",
2494
+ args: [],
2495
+ headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload)
2496
+ )
2497
+ end
2498
+
2499
+ # Lang's incremental sequence number, used as the operation identifier
2500
+ sig { returns(Integer) }
2501
+ def seq
2502
+ end
2503
+
2504
+ # Lang's incremental sequence number, used as the operation identifier
2505
+ sig { params(value: Integer).void }
2506
+ def seq=(value)
2507
+ end
2508
+
2509
+ # Lang's incremental sequence number, used as the operation identifier
2510
+ sig { void }
2511
+ def clear_seq
2512
+ end
2513
+
2514
+ # A specific workflow instance
2515
+ sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution)) }
2516
+ def workflow_execution
2517
+ end
2518
+
2519
+ # A specific workflow instance
2520
+ sig { params(value: T.nilable(Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution)).void }
2521
+ def workflow_execution=(value)
2522
+ end
2523
+
2524
+ # A specific workflow instance
2525
+ sig { void }
2526
+ def clear_workflow_execution
2527
+ end
2528
+
2529
+ # The desired target must be a child of the issuing workflow, and this is its workflow id
2530
+ sig { returns(String) }
2531
+ def child_workflow_id
2532
+ end
2533
+
2534
+ # The desired target must be a child of the issuing workflow, and this is its workflow id
2535
+ sig { params(value: String).void }
2536
+ def child_workflow_id=(value)
2537
+ end
2538
+
2539
+ # The desired target must be a child of the issuing workflow, and this is its workflow id
2540
+ sig { void }
2541
+ def clear_child_workflow_id
2542
+ end
2543
+
2544
+ # Name of the signal handler
2545
+ sig { returns(String) }
2546
+ def signal_name
2547
+ end
2548
+
2549
+ # Name of the signal handler
2550
+ sig { params(value: String).void }
2551
+ def signal_name=(value)
2552
+ end
2553
+
2554
+ # Name of the signal handler
2555
+ sig { void }
2556
+ def clear_signal_name
2557
+ end
2558
+
2559
+ # Arguments for the handler
2560
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]) }
2561
+ def args
2562
+ end
2563
+
2564
+ # Arguments for the handler
2565
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2566
+ def args=(value)
2567
+ end
2568
+
2569
+ # Arguments for the handler
2570
+ sig { void }
2571
+ def clear_args
2572
+ end
2573
+
2574
+ # Headers to attach to the signal
2575
+ sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
2576
+ def headers
2577
+ end
2578
+
2579
+ # Headers to attach to the signal
2580
+ sig { params(value: ::Google::Protobuf::Map).void }
2581
+ def headers=(value)
2582
+ end
2583
+
2584
+ # Headers to attach to the signal
2585
+ sig { void }
2586
+ def clear_headers
2587
+ end
2588
+
2589
+ sig { returns(T.nilable(Symbol)) }
2590
+ def target
2591
+ end
2592
+
2593
+ sig { params(field: String).returns(T.untyped) }
2594
+ def [](field)
2595
+ end
2596
+
2597
+ sig { params(field: String, value: T.untyped).void }
2598
+ def []=(field, value)
2599
+ end
2600
+
2601
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2602
+ def to_h
2603
+ end
2604
+
2605
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution) }
2606
+ def self.decode(str)
2607
+ end
2608
+
2609
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution).returns(String) }
2610
+ def self.encode(msg)
2611
+ end
2612
+
2613
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution) }
2614
+ def self.decode_json(str, **kw)
2615
+ end
2616
+
2617
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution, kw: T.untyped).returns(String) }
2618
+ def self.encode_json(msg, **kw)
2619
+ end
2620
+
2621
+ sig { returns(::Google::Protobuf::Descriptor) }
2622
+ def self.descriptor
2623
+ end
2624
+ end
2625
+
2626
+ # Can be used to cancel not-already-sent `SignalExternalWorkflowExecution` commands
2627
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow
2628
+ include ::Google::Protobuf::MessageExts
2629
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2630
+
2631
+ sig do
2632
+ params(
2633
+ seq: T.nilable(Integer)
2634
+ ).void
2635
+ end
2636
+ def initialize(
2637
+ seq: 0
2638
+ )
2639
+ end
2640
+
2641
+ # Lang's incremental sequence number as passed to `SignalExternalWorkflowExecution`
2642
+ sig { returns(Integer) }
2643
+ def seq
2644
+ end
2645
+
2646
+ # Lang's incremental sequence number as passed to `SignalExternalWorkflowExecution`
2647
+ sig { params(value: Integer).void }
2648
+ def seq=(value)
2649
+ end
2650
+
2651
+ # Lang's incremental sequence number as passed to `SignalExternalWorkflowExecution`
2652
+ sig { void }
2653
+ def clear_seq
2654
+ end
2655
+
2656
+ sig { params(field: String).returns(T.untyped) }
2657
+ def [](field)
2658
+ end
2659
+
2660
+ sig { params(field: String, value: T.untyped).void }
2661
+ def []=(field, value)
2662
+ end
2663
+
2664
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2665
+ def to_h
2666
+ end
2667
+
2668
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow) }
2669
+ def self.decode(str)
2670
+ end
2671
+
2672
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow).returns(String) }
2673
+ def self.encode(msg)
2674
+ end
2675
+
2676
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow) }
2677
+ def self.decode_json(str, **kw)
2678
+ end
2679
+
2680
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow, kw: T.untyped).returns(String) }
2681
+ def self.encode_json(msg, **kw)
2682
+ end
2683
+
2684
+ sig { returns(::Google::Protobuf::Descriptor) }
2685
+ def self.descriptor
2686
+ end
2687
+ end
2688
+
2689
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes
2690
+ include ::Google::Protobuf::MessageExts
2691
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2692
+
2693
+ sig do
2694
+ params(
2695
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)
2696
+ ).void
2697
+ end
2698
+ def initialize(
2699
+ search_attributes: nil
2700
+ )
2701
+ end
2702
+
2703
+ # SearchAttributes to upsert. The indexed_fields map will be merged with existing search
2704
+ # attributes, with these values taking precedence.
2705
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
2706
+ def search_attributes
2707
+ end
2708
+
2709
+ # SearchAttributes to upsert. The indexed_fields map will be merged with existing search
2710
+ # attributes, with these values taking precedence.
2711
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
2712
+ def search_attributes=(value)
2713
+ end
2714
+
2715
+ # SearchAttributes to upsert. The indexed_fields map will be merged with existing search
2716
+ # attributes, with these values taking precedence.
2717
+ sig { void }
2718
+ def clear_search_attributes
2719
+ end
2720
+
2721
+ sig { params(field: String).returns(T.untyped) }
2722
+ def [](field)
2723
+ end
2724
+
2725
+ sig { params(field: String, value: T.untyped).void }
2726
+ def []=(field, value)
2727
+ end
2728
+
2729
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2730
+ def to_h
2731
+ end
2732
+
2733
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes) }
2734
+ def self.decode(str)
2735
+ end
2736
+
2737
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes).returns(String) }
2738
+ def self.encode(msg)
2739
+ end
2740
+
2741
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes) }
2742
+ def self.decode_json(str, **kw)
2743
+ end
2744
+
2745
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes, kw: T.untyped).returns(String) }
2746
+ def self.encode_json(msg, **kw)
2747
+ end
2748
+
2749
+ sig { returns(::Google::Protobuf::Descriptor) }
2750
+ def self.descriptor
2751
+ end
2752
+ end
2753
+
2754
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties
2755
+ include ::Google::Protobuf::MessageExts
2756
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2757
+
2758
+ sig do
2759
+ params(
2760
+ upserted_memo: T.nilable(Temporalio::Api::Common::V1::Memo)
2761
+ ).void
2762
+ end
2763
+ def initialize(
2764
+ upserted_memo: nil
2765
+ )
2766
+ end
2767
+
2768
+ # If set, update the workflow memo with the provided values. The values will be merged with
2769
+ # the existing memo. If the user wants to delete values, a default/empty Payload should be
2770
+ # used as the value for the key being deleted.
2771
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Memo)) }
2772
+ def upserted_memo
2773
+ end
2774
+
2775
+ # If set, update the workflow memo with the provided values. The values will be merged with
2776
+ # the existing memo. If the user wants to delete values, a default/empty Payload should be
2777
+ # used as the value for the key being deleted.
2778
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Memo)).void }
2779
+ def upserted_memo=(value)
2780
+ end
2781
+
2782
+ # If set, update the workflow memo with the provided values. The values will be merged with
2783
+ # the existing memo. If the user wants to delete values, a default/empty Payload should be
2784
+ # used as the value for the key being deleted.
2785
+ sig { void }
2786
+ def clear_upserted_memo
2787
+ end
2788
+
2789
+ sig { params(field: String).returns(T.untyped) }
2790
+ def [](field)
2791
+ end
2792
+
2793
+ sig { params(field: String, value: T.untyped).void }
2794
+ def []=(field, value)
2795
+ end
2796
+
2797
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2798
+ def to_h
2799
+ end
2800
+
2801
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties) }
2802
+ def self.decode(str)
2803
+ end
2804
+
2805
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties).returns(String) }
2806
+ def self.encode(msg)
2807
+ end
2808
+
2809
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties) }
2810
+ def self.decode_json(str, **kw)
2811
+ end
2812
+
2813
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties, kw: T.untyped).returns(String) }
2814
+ def self.encode_json(msg, **kw)
2815
+ end
2816
+
2817
+ sig { returns(::Google::Protobuf::Descriptor) }
2818
+ def self.descriptor
2819
+ end
2820
+ end
2821
+
2822
+ # A reply to a `DoUpdate` job - lang must run the update's validator if told to, and then
2823
+ # immediately run the handler, if the update was accepted.
2824
+ #
2825
+ # There must always be an accepted or rejected response immediately, in the same activation as
2826
+ # this job, to indicate the result of the validator. Accepted for ran and accepted or skipped, or
2827
+ # rejected for rejected.
2828
+ #
2829
+ # Then, in the same or any subsequent activation, after the update handler has completed, respond
2830
+ # with completed or rejected as appropriate for the result of the handler.
2831
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse
2832
+ include ::Google::Protobuf::MessageExts
2833
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2834
+
2835
+ sig do
2836
+ params(
2837
+ protocol_instance_id: T.nilable(String),
2838
+ accepted: T.nilable(Google::Protobuf::Empty),
2839
+ rejected: T.nilable(Temporalio::Api::Failure::V1::Failure),
2840
+ completed: T.nilable(Temporalio::Api::Common::V1::Payload)
2841
+ ).void
2842
+ end
2843
+ def initialize(
2844
+ protocol_instance_id: "",
2845
+ accepted: nil,
2846
+ rejected: nil,
2847
+ completed: nil
2848
+ )
2849
+ end
2850
+
2851
+ # The protocol message instance ID
2852
+ sig { returns(String) }
2853
+ def protocol_instance_id
2854
+ end
2855
+
2856
+ # The protocol message instance ID
2857
+ sig { params(value: String).void }
2858
+ def protocol_instance_id=(value)
2859
+ end
2860
+
2861
+ # The protocol message instance ID
2862
+ sig { void }
2863
+ def clear_protocol_instance_id
2864
+ end
2865
+
2866
+ # Must be sent if the update's validator has passed (or lang was not asked to run it, and
2867
+ # thus should be considered already-accepted, allowing lang to always send the same
2868
+ # sequence on replay).
2869
+ sig { returns(T.nilable(Google::Protobuf::Empty)) }
2870
+ def accepted
2871
+ end
2872
+
2873
+ # Must be sent if the update's validator has passed (or lang was not asked to run it, and
2874
+ # thus should be considered already-accepted, allowing lang to always send the same
2875
+ # sequence on replay).
2876
+ sig { params(value: T.nilable(Google::Protobuf::Empty)).void }
2877
+ def accepted=(value)
2878
+ end
2879
+
2880
+ # Must be sent if the update's validator has passed (or lang was not asked to run it, and
2881
+ # thus should be considered already-accepted, allowing lang to always send the same
2882
+ # sequence on replay).
2883
+ sig { void }
2884
+ def clear_accepted
2885
+ end
2886
+
2887
+ # Must be sent if the update's validator does not pass, or after acceptance if the update
2888
+ # handler fails.
2889
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
2890
+ def rejected
2891
+ end
2892
+
2893
+ # Must be sent if the update's validator does not pass, or after acceptance if the update
2894
+ # handler fails.
2895
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
2896
+ def rejected=(value)
2897
+ end
2898
+
2899
+ # Must be sent if the update's validator does not pass, or after acceptance if the update
2900
+ # handler fails.
2901
+ sig { void }
2902
+ def clear_rejected
2903
+ end
2904
+
2905
+ # Must be sent once the update handler completes successfully.
2906
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
2907
+ def completed
2908
+ end
2909
+
2910
+ # Must be sent once the update handler completes successfully.
2911
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
2912
+ def completed=(value)
2913
+ end
2914
+
2915
+ # Must be sent once the update handler completes successfully.
2916
+ sig { void }
2917
+ def clear_completed
2918
+ end
2919
+
2920
+ sig { returns(T.nilable(Symbol)) }
2921
+ def response
2922
+ end
2923
+
2924
+ sig { params(field: String).returns(T.untyped) }
2925
+ def [](field)
2926
+ end
2927
+
2928
+ sig { params(field: String, value: T.untyped).void }
2929
+ def []=(field, value)
2930
+ end
2931
+
2932
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2933
+ def to_h
2934
+ end
2935
+
2936
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse) }
2937
+ def self.decode(str)
2938
+ end
2939
+
2940
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse).returns(String) }
2941
+ def self.encode(msg)
2942
+ end
2943
+
2944
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse) }
2945
+ def self.decode_json(str, **kw)
2946
+ end
2947
+
2948
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse, kw: T.untyped).returns(String) }
2949
+ def self.encode_json(msg, **kw)
2950
+ end
2951
+
2952
+ sig { returns(::Google::Protobuf::Descriptor) }
2953
+ def self.descriptor
2954
+ end
2955
+ end
2956
+
2957
+ # A request to begin a Nexus operation
2958
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation
2959
+ include ::Google::Protobuf::MessageExts
2960
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2961
+
2962
+ sig do
2963
+ params(
2964
+ seq: T.nilable(Integer),
2965
+ endpoint: T.nilable(String),
2966
+ service: T.nilable(String),
2967
+ operation: T.nilable(String),
2968
+ input: T.nilable(Temporalio::Api::Common::V1::Payload),
2969
+ schedule_to_close_timeout: T.nilable(Google::Protobuf::Duration),
2970
+ nexus_header: T.nilable(T::Hash[String, String]),
2971
+ cancellation_type: T.nilable(T.any(Symbol, String, Integer)),
2972
+ schedule_to_start_timeout: T.nilable(Google::Protobuf::Duration),
2973
+ start_to_close_timeout: T.nilable(Google::Protobuf::Duration)
2974
+ ).void
2975
+ end
2976
+ def initialize(
2977
+ seq: 0,
2978
+ endpoint: "",
2979
+ service: "",
2980
+ operation: "",
2981
+ input: nil,
2982
+ schedule_to_close_timeout: nil,
2983
+ nexus_header: ::Google::Protobuf::Map.new(:string, :string),
2984
+ cancellation_type: :WAIT_CANCELLATION_COMPLETED,
2985
+ schedule_to_start_timeout: nil,
2986
+ start_to_close_timeout: nil
2987
+ )
2988
+ end
2989
+
2990
+ # Lang's incremental sequence number, used as the operation identifier
2991
+ sig { returns(Integer) }
2992
+ def seq
2993
+ end
2994
+
2995
+ # Lang's incremental sequence number, used as the operation identifier
2996
+ sig { params(value: Integer).void }
2997
+ def seq=(value)
2998
+ end
2999
+
3000
+ # Lang's incremental sequence number, used as the operation identifier
3001
+ sig { void }
3002
+ def clear_seq
3003
+ end
3004
+
3005
+ # Endpoint name, must exist in the endpoint registry or this command will fail.
3006
+ sig { returns(String) }
3007
+ def endpoint
3008
+ end
3009
+
3010
+ # Endpoint name, must exist in the endpoint registry or this command will fail.
3011
+ sig { params(value: String).void }
3012
+ def endpoint=(value)
3013
+ end
3014
+
3015
+ # Endpoint name, must exist in the endpoint registry or this command will fail.
3016
+ sig { void }
3017
+ def clear_endpoint
3018
+ end
3019
+
3020
+ # Service name.
3021
+ sig { returns(String) }
3022
+ def service
3023
+ end
3024
+
3025
+ # Service name.
3026
+ sig { params(value: String).void }
3027
+ def service=(value)
3028
+ end
3029
+
3030
+ # Service name.
3031
+ sig { void }
3032
+ def clear_service
3033
+ end
3034
+
3035
+ # Operation name.
3036
+ sig { returns(String) }
3037
+ def operation
3038
+ end
3039
+
3040
+ # Operation name.
3041
+ sig { params(value: String).void }
3042
+ def operation=(value)
3043
+ end
3044
+
3045
+ # Operation name.
3046
+ sig { void }
3047
+ def clear_operation
3048
+ end
3049
+
3050
+ # Input for the operation. The server converts this into Nexus request content and the
3051
+ # appropriate content headers internally when sending the StartOperation request. On the
3052
+ # handler side, if it is also backed by Temporal, the content is transformed back to the
3053
+ # original Payload sent in this command.
3054
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
3055
+ def input
3056
+ end
3057
+
3058
+ # Input for the operation. The server converts this into Nexus request content and the
3059
+ # appropriate content headers internally when sending the StartOperation request. On the
3060
+ # handler side, if it is also backed by Temporal, the content is transformed back to the
3061
+ # original Payload sent in this command.
3062
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
3063
+ def input=(value)
3064
+ end
3065
+
3066
+ # Input for the operation. The server converts this into Nexus request content and the
3067
+ # appropriate content headers internally when sending the StartOperation request. On the
3068
+ # handler side, if it is also backed by Temporal, the content is transformed back to the
3069
+ # original Payload sent in this command.
3070
+ sig { void }
3071
+ def clear_input
3072
+ end
3073
+
3074
+ # Schedule-to-close timeout for this operation.
3075
+ # Indicates how long the caller is willing to wait for operation completion.
3076
+ # Calls are retried internally by the server.
3077
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
3078
+ def schedule_to_close_timeout
3079
+ end
3080
+
3081
+ # Schedule-to-close timeout for this operation.
3082
+ # Indicates how long the caller is willing to wait for operation completion.
3083
+ # Calls are retried internally by the server.
3084
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
3085
+ def schedule_to_close_timeout=(value)
3086
+ end
3087
+
3088
+ # Schedule-to-close timeout for this operation.
3089
+ # Indicates how long the caller is willing to wait for operation completion.
3090
+ # Calls are retried internally by the server.
3091
+ sig { void }
3092
+ def clear_schedule_to_close_timeout
3093
+ end
3094
+
3095
+ # Header to attach to the Nexus request.
3096
+ # Users are responsible for encrypting sensitive data in this header as it is stored in
3097
+ # workflow history and transmitted to external services as-is. This is useful for propagating
3098
+ # tracing information. Note these headers are not the same as Temporal headers on internal
3099
+ # activities and child workflows, these are transmitted to Nexus operations that may be
3100
+ # external and are not traditional payloads.
3101
+ sig { returns(T::Hash[String, String]) }
3102
+ def nexus_header
3103
+ end
3104
+
3105
+ # Header to attach to the Nexus request.
3106
+ # Users are responsible for encrypting sensitive data in this header as it is stored in
3107
+ # workflow history and transmitted to external services as-is. This is useful for propagating
3108
+ # tracing information. Note these headers are not the same as Temporal headers on internal
3109
+ # activities and child workflows, these are transmitted to Nexus operations that may be
3110
+ # external and are not traditional payloads.
3111
+ sig { params(value: ::Google::Protobuf::Map).void }
3112
+ def nexus_header=(value)
3113
+ end
3114
+
3115
+ # Header to attach to the Nexus request.
3116
+ # Users are responsible for encrypting sensitive data in this header as it is stored in
3117
+ # workflow history and transmitted to external services as-is. This is useful for propagating
3118
+ # tracing information. Note these headers are not the same as Temporal headers on internal
3119
+ # activities and child workflows, these are transmitted to Nexus operations that may be
3120
+ # external and are not traditional payloads.
3121
+ sig { void }
3122
+ def clear_nexus_header
3123
+ end
3124
+
3125
+ # Defines behaviour of the underlying nexus operation when operation cancellation has been requested.
3126
+ sig { returns(T.any(Symbol, Integer)) }
3127
+ def cancellation_type
3128
+ end
3129
+
3130
+ # Defines behaviour of the underlying nexus operation when operation cancellation has been requested.
3131
+ sig { params(value: T.any(Symbol, String, Integer)).void }
3132
+ def cancellation_type=(value)
3133
+ end
3134
+
3135
+ # Defines behaviour of the underlying nexus operation when operation cancellation has been requested.
3136
+ sig { void }
3137
+ def clear_cancellation_type
3138
+ end
3139
+
3140
+ # Schedule-to-start timeout for this operation.
3141
+ # Indicates how long the caller is willing to wait for the operation to be started (or completed if synchronous)
3142
+ # by the handler. If the operation is not started within this timeout, it will fail with
3143
+ # TIMEOUT_TYPE_SCHEDULE_TO_START.
3144
+ # If not set or zero, no schedule-to-start timeout is enforced.
3145
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
3146
+ def schedule_to_start_timeout
3147
+ end
3148
+
3149
+ # Schedule-to-start timeout for this operation.
3150
+ # Indicates how long the caller is willing to wait for the operation to be started (or completed if synchronous)
3151
+ # by the handler. If the operation is not started within this timeout, it will fail with
3152
+ # TIMEOUT_TYPE_SCHEDULE_TO_START.
3153
+ # If not set or zero, no schedule-to-start timeout is enforced.
3154
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
3155
+ def schedule_to_start_timeout=(value)
3156
+ end
3157
+
3158
+ # Schedule-to-start timeout for this operation.
3159
+ # Indicates how long the caller is willing to wait for the operation to be started (or completed if synchronous)
3160
+ # by the handler. If the operation is not started within this timeout, it will fail with
3161
+ # TIMEOUT_TYPE_SCHEDULE_TO_START.
3162
+ # If not set or zero, no schedule-to-start timeout is enforced.
3163
+ sig { void }
3164
+ def clear_schedule_to_start_timeout
3165
+ end
3166
+
3167
+ # Start-to-close timeout for this operation.
3168
+ # Indicates how long the caller is willing to wait for an asynchronous operation to complete after it has been
3169
+ # started. If the operation does not complete within this timeout after starting, it will fail with
3170
+ # TIMEOUT_TYPE_START_TO_CLOSE.
3171
+ # Only applies to asynchronous operations. Synchronous operations ignore this timeout.
3172
+ # If not set or zero, no start-to-close timeout is enforced.
3173
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
3174
+ def start_to_close_timeout
3175
+ end
3176
+
3177
+ # Start-to-close timeout for this operation.
3178
+ # Indicates how long the caller is willing to wait for an asynchronous operation to complete after it has been
3179
+ # started. If the operation does not complete within this timeout after starting, it will fail with
3180
+ # TIMEOUT_TYPE_START_TO_CLOSE.
3181
+ # Only applies to asynchronous operations. Synchronous operations ignore this timeout.
3182
+ # If not set or zero, no start-to-close timeout is enforced.
3183
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
3184
+ def start_to_close_timeout=(value)
3185
+ end
3186
+
3187
+ # Start-to-close timeout for this operation.
3188
+ # Indicates how long the caller is willing to wait for an asynchronous operation to complete after it has been
3189
+ # started. If the operation does not complete within this timeout after starting, it will fail with
3190
+ # TIMEOUT_TYPE_START_TO_CLOSE.
3191
+ # Only applies to asynchronous operations. Synchronous operations ignore this timeout.
3192
+ # If not set or zero, no start-to-close timeout is enforced.
3193
+ sig { void }
3194
+ def clear_start_to_close_timeout
3195
+ end
3196
+
3197
+ sig { params(field: String).returns(T.untyped) }
3198
+ def [](field)
3199
+ end
3200
+
3201
+ sig { params(field: String, value: T.untyped).void }
3202
+ def []=(field, value)
3203
+ end
3204
+
3205
+ sig { returns(T::Hash[Symbol, T.untyped]) }
3206
+ def to_h
3207
+ end
3208
+
3209
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation) }
3210
+ def self.decode(str)
3211
+ end
3212
+
3213
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation).returns(String) }
3214
+ def self.encode(msg)
3215
+ end
3216
+
3217
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation) }
3218
+ def self.decode_json(str, **kw)
3219
+ end
3220
+
3221
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation, kw: T.untyped).returns(String) }
3222
+ def self.encode_json(msg, **kw)
3223
+ end
3224
+
3225
+ sig { returns(::Google::Protobuf::Descriptor) }
3226
+ def self.descriptor
3227
+ end
3228
+ end
3229
+
3230
+ # Request cancellation of a nexus operation started via `ScheduleNexusOperation`
3231
+ class Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation
3232
+ include ::Google::Protobuf::MessageExts
3233
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3234
+
3235
+ sig do
3236
+ params(
3237
+ seq: T.nilable(Integer)
3238
+ ).void
3239
+ end
3240
+ def initialize(
3241
+ seq: 0
3242
+ )
3243
+ end
3244
+
3245
+ # Lang's incremental sequence number as passed to `ScheduleNexusOperation`
3246
+ sig { returns(Integer) }
3247
+ def seq
3248
+ end
3249
+
3250
+ # Lang's incremental sequence number as passed to `ScheduleNexusOperation`
3251
+ sig { params(value: Integer).void }
3252
+ def seq=(value)
3253
+ end
3254
+
3255
+ # Lang's incremental sequence number as passed to `ScheduleNexusOperation`
3256
+ sig { void }
3257
+ def clear_seq
3258
+ end
3259
+
3260
+ sig { params(field: String).returns(T.untyped) }
3261
+ def [](field)
3262
+ end
3263
+
3264
+ sig { params(field: String, value: T.untyped).void }
3265
+ def []=(field, value)
3266
+ end
3267
+
3268
+ sig { returns(T::Hash[Symbol, T.untyped]) }
3269
+ def to_h
3270
+ end
3271
+
3272
+ sig { params(str: String).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation) }
3273
+ def self.decode(str)
3274
+ end
3275
+
3276
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation).returns(String) }
3277
+ def self.encode(msg)
3278
+ end
3279
+
3280
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation) }
3281
+ def self.decode_json(str, **kw)
3282
+ end
3283
+
3284
+ sig { params(msg: Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation, kw: T.untyped).returns(String) }
3285
+ def self.encode_json(msg, **kw)
3286
+ end
3287
+
3288
+ sig { returns(::Google::Protobuf::Descriptor) }
3289
+ def self.descriptor
3290
+ end
3291
+ end
3292
+
3293
+ module Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType
3294
+ self::TRY_CANCEL = T.let(0, Integer)
3295
+ self::WAIT_CANCELLATION_COMPLETED = T.let(1, Integer)
3296
+ self::ABANDON = T.let(2, Integer)
3297
+
3298
+ sig { params(value: Integer).returns(T.nilable(Symbol)) }
3299
+ def self.lookup(value)
3300
+ end
3301
+
3302
+ sig { params(value: Symbol).returns(T.nilable(Integer)) }
3303
+ def self.resolve(value)
3304
+ end
3305
+
3306
+ sig { returns(::Google::Protobuf::EnumDescriptor) }
3307
+ def self.descriptor
3308
+ end
3309
+ end