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,1283 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: temporal/api/batch/v1/message.proto
3
+ # typed: strict
4
+
5
+ class Temporalio::Api::Batch::V1::BatchOperationInfo
6
+ include ::Google::Protobuf::MessageExts
7
+ extend ::Google::Protobuf::MessageExts::ClassMethods
8
+
9
+ sig do
10
+ params(
11
+ job_id: T.nilable(String),
12
+ state: T.nilable(T.any(Symbol, String, Integer)),
13
+ start_time: T.nilable(Google::Protobuf::Timestamp),
14
+ close_time: T.nilable(Google::Protobuf::Timestamp)
15
+ ).void
16
+ end
17
+ def initialize(
18
+ job_id: "",
19
+ state: :BATCH_OPERATION_STATE_UNSPECIFIED,
20
+ start_time: nil,
21
+ close_time: nil
22
+ )
23
+ end
24
+
25
+ # Batch job ID
26
+ sig { returns(String) }
27
+ def job_id
28
+ end
29
+
30
+ # Batch job ID
31
+ sig { params(value: String).void }
32
+ def job_id=(value)
33
+ end
34
+
35
+ # Batch job ID
36
+ sig { void }
37
+ def clear_job_id
38
+ end
39
+
40
+ # Batch operation state
41
+ sig { returns(T.any(Symbol, Integer)) }
42
+ def state
43
+ end
44
+
45
+ # Batch operation state
46
+ sig { params(value: T.any(Symbol, String, Integer)).void }
47
+ def state=(value)
48
+ end
49
+
50
+ # Batch operation state
51
+ sig { void }
52
+ def clear_state
53
+ end
54
+
55
+ # Batch operation start time
56
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
57
+ def start_time
58
+ end
59
+
60
+ # Batch operation start time
61
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
62
+ def start_time=(value)
63
+ end
64
+
65
+ # Batch operation start time
66
+ sig { void }
67
+ def clear_start_time
68
+ end
69
+
70
+ # Batch operation close time
71
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
72
+ def close_time
73
+ end
74
+
75
+ # Batch operation close time
76
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
77
+ def close_time=(value)
78
+ end
79
+
80
+ # Batch operation close time
81
+ sig { void }
82
+ def clear_close_time
83
+ end
84
+
85
+ sig { params(field: String).returns(T.untyped) }
86
+ def [](field)
87
+ end
88
+
89
+ sig { params(field: String, value: T.untyped).void }
90
+ def []=(field, value)
91
+ end
92
+
93
+ sig { returns(T::Hash[Symbol, T.untyped]) }
94
+ def to_h
95
+ end
96
+
97
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationInfo) }
98
+ def self.decode(str)
99
+ end
100
+
101
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationInfo).returns(String) }
102
+ def self.encode(msg)
103
+ end
104
+
105
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationInfo) }
106
+ def self.decode_json(str, **kw)
107
+ end
108
+
109
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationInfo, kw: T.untyped).returns(String) }
110
+ def self.encode_json(msg, **kw)
111
+ end
112
+
113
+ sig { returns(::Google::Protobuf::Descriptor) }
114
+ def self.descriptor
115
+ end
116
+ end
117
+
118
+ # BatchOperationTermination sends terminate requests to batch workflows.
119
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest.
120
+ # Ignore first_execution_run_id because this is used for single workflow operation.
121
+ class Temporalio::Api::Batch::V1::BatchOperationTermination
122
+ include ::Google::Protobuf::MessageExts
123
+ extend ::Google::Protobuf::MessageExts::ClassMethods
124
+
125
+ sig do
126
+ params(
127
+ details: T.nilable(Temporalio::Api::Common::V1::Payloads),
128
+ identity: T.nilable(String)
129
+ ).void
130
+ end
131
+ def initialize(
132
+ details: nil,
133
+ identity: ""
134
+ )
135
+ end
136
+
137
+ # Serialized value(s) to provide to the termination event
138
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
139
+ def details
140
+ end
141
+
142
+ # Serialized value(s) to provide to the termination event
143
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
144
+ def details=(value)
145
+ end
146
+
147
+ # Serialized value(s) to provide to the termination event
148
+ sig { void }
149
+ def clear_details
150
+ end
151
+
152
+ # The identity of the worker/client
153
+ sig { returns(String) }
154
+ def identity
155
+ end
156
+
157
+ # The identity of the worker/client
158
+ sig { params(value: String).void }
159
+ def identity=(value)
160
+ end
161
+
162
+ # The identity of the worker/client
163
+ sig { void }
164
+ def clear_identity
165
+ end
166
+
167
+ sig { params(field: String).returns(T.untyped) }
168
+ def [](field)
169
+ end
170
+
171
+ sig { params(field: String, value: T.untyped).void }
172
+ def []=(field, value)
173
+ end
174
+
175
+ sig { returns(T::Hash[Symbol, T.untyped]) }
176
+ def to_h
177
+ end
178
+
179
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationTermination) }
180
+ def self.decode(str)
181
+ end
182
+
183
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationTermination).returns(String) }
184
+ def self.encode(msg)
185
+ end
186
+
187
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationTermination) }
188
+ def self.decode_json(str, **kw)
189
+ end
190
+
191
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationTermination, kw: T.untyped).returns(String) }
192
+ def self.encode_json(msg, **kw)
193
+ end
194
+
195
+ sig { returns(::Google::Protobuf::Descriptor) }
196
+ def self.descriptor
197
+ end
198
+ end
199
+
200
+ # BatchOperationSignal sends signals to batch workflows.
201
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.
202
+ class Temporalio::Api::Batch::V1::BatchOperationSignal
203
+ include ::Google::Protobuf::MessageExts
204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ sig do
207
+ params(
208
+ signal: T.nilable(String),
209
+ input: T.nilable(Temporalio::Api::Common::V1::Payloads),
210
+ header: T.nilable(Temporalio::Api::Common::V1::Header),
211
+ identity: T.nilable(String)
212
+ ).void
213
+ end
214
+ def initialize(
215
+ signal: "",
216
+ input: nil,
217
+ header: nil,
218
+ identity: ""
219
+ )
220
+ end
221
+
222
+ # The workflow author-defined name of the signal to send to the workflow
223
+ sig { returns(String) }
224
+ def signal
225
+ end
226
+
227
+ # The workflow author-defined name of the signal to send to the workflow
228
+ sig { params(value: String).void }
229
+ def signal=(value)
230
+ end
231
+
232
+ # The workflow author-defined name of the signal to send to the workflow
233
+ sig { void }
234
+ def clear_signal
235
+ end
236
+
237
+ # Serialized value(s) to provide with the signal
238
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
239
+ def input
240
+ end
241
+
242
+ # Serialized value(s) to provide with the signal
243
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
244
+ def input=(value)
245
+ end
246
+
247
+ # Serialized value(s) to provide with the signal
248
+ sig { void }
249
+ def clear_input
250
+ end
251
+
252
+ # Headers that are passed with the signal to the processing workflow.
253
+ # These can include things like auth or tracing tokens.
254
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Header)) }
255
+ def header
256
+ end
257
+
258
+ # Headers that are passed with the signal to the processing workflow.
259
+ # These can include things like auth or tracing tokens.
260
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Header)).void }
261
+ def header=(value)
262
+ end
263
+
264
+ # Headers that are passed with the signal to the processing workflow.
265
+ # These can include things like auth or tracing tokens.
266
+ sig { void }
267
+ def clear_header
268
+ end
269
+
270
+ # The identity of the worker/client
271
+ sig { returns(String) }
272
+ def identity
273
+ end
274
+
275
+ # The identity of the worker/client
276
+ sig { params(value: String).void }
277
+ def identity=(value)
278
+ end
279
+
280
+ # The identity of the worker/client
281
+ sig { void }
282
+ def clear_identity
283
+ end
284
+
285
+ sig { params(field: String).returns(T.untyped) }
286
+ def [](field)
287
+ end
288
+
289
+ sig { params(field: String, value: T.untyped).void }
290
+ def []=(field, value)
291
+ end
292
+
293
+ sig { returns(T::Hash[Symbol, T.untyped]) }
294
+ def to_h
295
+ end
296
+
297
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationSignal) }
298
+ def self.decode(str)
299
+ end
300
+
301
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationSignal).returns(String) }
302
+ def self.encode(msg)
303
+ end
304
+
305
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationSignal) }
306
+ def self.decode_json(str, **kw)
307
+ end
308
+
309
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationSignal, kw: T.untyped).returns(String) }
310
+ def self.encode_json(msg, **kw)
311
+ end
312
+
313
+ sig { returns(::Google::Protobuf::Descriptor) }
314
+ def self.descriptor
315
+ end
316
+ end
317
+
318
+ # BatchOperationCancellation sends cancel requests to batch workflows.
319
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest.
320
+ # Ignore first_execution_run_id because this is used for single workflow operation.
321
+ class Temporalio::Api::Batch::V1::BatchOperationCancellation
322
+ include ::Google::Protobuf::MessageExts
323
+ extend ::Google::Protobuf::MessageExts::ClassMethods
324
+
325
+ sig do
326
+ params(
327
+ identity: T.nilable(String)
328
+ ).void
329
+ end
330
+ def initialize(
331
+ identity: ""
332
+ )
333
+ end
334
+
335
+ # The identity of the worker/client
336
+ sig { returns(String) }
337
+ def identity
338
+ end
339
+
340
+ # The identity of the worker/client
341
+ sig { params(value: String).void }
342
+ def identity=(value)
343
+ end
344
+
345
+ # The identity of the worker/client
346
+ sig { void }
347
+ def clear_identity
348
+ end
349
+
350
+ sig { params(field: String).returns(T.untyped) }
351
+ def [](field)
352
+ end
353
+
354
+ sig { params(field: String, value: T.untyped).void }
355
+ def []=(field, value)
356
+ end
357
+
358
+ sig { returns(T::Hash[Symbol, T.untyped]) }
359
+ def to_h
360
+ end
361
+
362
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationCancellation) }
363
+ def self.decode(str)
364
+ end
365
+
366
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationCancellation).returns(String) }
367
+ def self.encode(msg)
368
+ end
369
+
370
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationCancellation) }
371
+ def self.decode_json(str, **kw)
372
+ end
373
+
374
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationCancellation, kw: T.untyped).returns(String) }
375
+ def self.encode_json(msg, **kw)
376
+ end
377
+
378
+ sig { returns(::Google::Protobuf::Descriptor) }
379
+ def self.descriptor
380
+ end
381
+ end
382
+
383
+ # BatchOperationDeletion sends deletion requests to batch workflows.
384
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest.
385
+ class Temporalio::Api::Batch::V1::BatchOperationDeletion
386
+ include ::Google::Protobuf::MessageExts
387
+ extend ::Google::Protobuf::MessageExts::ClassMethods
388
+
389
+ sig do
390
+ params(
391
+ identity: T.nilable(String)
392
+ ).void
393
+ end
394
+ def initialize(
395
+ identity: ""
396
+ )
397
+ end
398
+
399
+ # The identity of the worker/client
400
+ sig { returns(String) }
401
+ def identity
402
+ end
403
+
404
+ # The identity of the worker/client
405
+ sig { params(value: String).void }
406
+ def identity=(value)
407
+ end
408
+
409
+ # The identity of the worker/client
410
+ sig { void }
411
+ def clear_identity
412
+ end
413
+
414
+ sig { params(field: String).returns(T.untyped) }
415
+ def [](field)
416
+ end
417
+
418
+ sig { params(field: String, value: T.untyped).void }
419
+ def []=(field, value)
420
+ end
421
+
422
+ sig { returns(T::Hash[Symbol, T.untyped]) }
423
+ def to_h
424
+ end
425
+
426
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationDeletion) }
427
+ def self.decode(str)
428
+ end
429
+
430
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationDeletion).returns(String) }
431
+ def self.encode(msg)
432
+ end
433
+
434
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationDeletion) }
435
+ def self.decode_json(str, **kw)
436
+ end
437
+
438
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationDeletion, kw: T.untyped).returns(String) }
439
+ def self.encode_json(msg, **kw)
440
+ end
441
+
442
+ sig { returns(::Google::Protobuf::Descriptor) }
443
+ def self.descriptor
444
+ end
445
+ end
446
+
447
+ # BatchOperationReset sends reset requests to batch workflows.
448
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.
449
+ class Temporalio::Api::Batch::V1::BatchOperationReset
450
+ include ::Google::Protobuf::MessageExts
451
+ extend ::Google::Protobuf::MessageExts::ClassMethods
452
+
453
+ sig do
454
+ params(
455
+ identity: T.nilable(String),
456
+ options: T.nilable(Temporalio::Api::Common::V1::ResetOptions),
457
+ reset_type: T.nilable(T.any(Symbol, String, Integer)),
458
+ reset_reapply_type: T.nilable(T.any(Symbol, String, Integer)),
459
+ post_reset_operations: T.nilable(T::Array[T.nilable(Temporalio::Api::Workflow::V1::PostResetOperation)])
460
+ ).void
461
+ end
462
+ def initialize(
463
+ identity: "",
464
+ options: nil,
465
+ reset_type: :RESET_TYPE_UNSPECIFIED,
466
+ reset_reapply_type: :RESET_REAPPLY_TYPE_UNSPECIFIED,
467
+ post_reset_operations: []
468
+ )
469
+ end
470
+
471
+ # The identity of the worker/client.
472
+ sig { returns(String) }
473
+ def identity
474
+ end
475
+
476
+ # The identity of the worker/client.
477
+ sig { params(value: String).void }
478
+ def identity=(value)
479
+ end
480
+
481
+ # The identity of the worker/client.
482
+ sig { void }
483
+ def clear_identity
484
+ end
485
+
486
+ # Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
487
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::ResetOptions)) }
488
+ def options
489
+ end
490
+
491
+ # Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
492
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::ResetOptions)).void }
493
+ def options=(value)
494
+ end
495
+
496
+ # Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
497
+ sig { void }
498
+ def clear_options
499
+ end
500
+
501
+ # Deprecated. Use `options`.
502
+ sig { returns(T.any(Symbol, Integer)) }
503
+ def reset_type
504
+ end
505
+
506
+ # Deprecated. Use `options`.
507
+ sig { params(value: T.any(Symbol, String, Integer)).void }
508
+ def reset_type=(value)
509
+ end
510
+
511
+ # Deprecated. Use `options`.
512
+ sig { void }
513
+ def clear_reset_type
514
+ end
515
+
516
+ # Deprecated. Use `options`.
517
+ sig { returns(T.any(Symbol, Integer)) }
518
+ def reset_reapply_type
519
+ end
520
+
521
+ # Deprecated. Use `options`.
522
+ sig { params(value: T.any(Symbol, String, Integer)).void }
523
+ def reset_reapply_type=(value)
524
+ end
525
+
526
+ # Deprecated. Use `options`.
527
+ sig { void }
528
+ def clear_reset_reapply_type
529
+ end
530
+
531
+ # Operations to perform after the workflow has been reset. These operations will be applied
532
+ # to the *new* run of the workflow execution in the order they are provided.
533
+ # All operations are applied to the workflow before the first new workflow task is generated
534
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Workflow::V1::PostResetOperation)]) }
535
+ def post_reset_operations
536
+ end
537
+
538
+ # Operations to perform after the workflow has been reset. These operations will be applied
539
+ # to the *new* run of the workflow execution in the order they are provided.
540
+ # All operations are applied to the workflow before the first new workflow task is generated
541
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
542
+ def post_reset_operations=(value)
543
+ end
544
+
545
+ # Operations to perform after the workflow has been reset. These operations will be applied
546
+ # to the *new* run of the workflow execution in the order they are provided.
547
+ # All operations are applied to the workflow before the first new workflow task is generated
548
+ sig { void }
549
+ def clear_post_reset_operations
550
+ end
551
+
552
+ sig { params(field: String).returns(T.untyped) }
553
+ def [](field)
554
+ end
555
+
556
+ sig { params(field: String, value: T.untyped).void }
557
+ def []=(field, value)
558
+ end
559
+
560
+ sig { returns(T::Hash[Symbol, T.untyped]) }
561
+ def to_h
562
+ end
563
+
564
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationReset) }
565
+ def self.decode(str)
566
+ end
567
+
568
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationReset).returns(String) }
569
+ def self.encode(msg)
570
+ end
571
+
572
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationReset) }
573
+ def self.decode_json(str, **kw)
574
+ end
575
+
576
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationReset, kw: T.untyped).returns(String) }
577
+ def self.encode_json(msg, **kw)
578
+ end
579
+
580
+ sig { returns(::Google::Protobuf::Descriptor) }
581
+ def self.descriptor
582
+ end
583
+ end
584
+
585
+ # BatchOperationUpdateWorkflowExecutionOptions sends UpdateWorkflowExecutionOptions requests to batch workflows.
586
+ # Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest.
587
+ class Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions
588
+ include ::Google::Protobuf::MessageExts
589
+ extend ::Google::Protobuf::MessageExts::ClassMethods
590
+
591
+ sig do
592
+ params(
593
+ identity: T.nilable(String),
594
+ workflow_execution_options: T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionOptions),
595
+ update_mask: T.nilable(Google::Protobuf::FieldMask)
596
+ ).void
597
+ end
598
+ def initialize(
599
+ identity: "",
600
+ workflow_execution_options: nil,
601
+ update_mask: nil
602
+ )
603
+ end
604
+
605
+ # The identity of the worker/client.
606
+ sig { returns(String) }
607
+ def identity
608
+ end
609
+
610
+ # The identity of the worker/client.
611
+ sig { params(value: String).void }
612
+ def identity=(value)
613
+ end
614
+
615
+ # The identity of the worker/client.
616
+ sig { void }
617
+ def clear_identity
618
+ end
619
+
620
+ # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.
621
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionOptions)) }
622
+ def workflow_execution_options
623
+ end
624
+
625
+ # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.
626
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::WorkflowExecutionOptions)).void }
627
+ def workflow_execution_options=(value)
628
+ end
629
+
630
+ # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.
631
+ sig { void }
632
+ def clear_workflow_execution_options
633
+ end
634
+
635
+ # Controls which fields from `workflow_execution_options` will be applied.
636
+ # To unset a field, set it to null and use the update mask to indicate that it should be mutated.
637
+ sig { returns(T.nilable(Google::Protobuf::FieldMask)) }
638
+ def update_mask
639
+ end
640
+
641
+ # Controls which fields from `workflow_execution_options` will be applied.
642
+ # To unset a field, set it to null and use the update mask to indicate that it should be mutated.
643
+ sig { params(value: T.nilable(Google::Protobuf::FieldMask)).void }
644
+ def update_mask=(value)
645
+ end
646
+
647
+ # Controls which fields from `workflow_execution_options` will be applied.
648
+ # To unset a field, set it to null and use the update mask to indicate that it should be mutated.
649
+ sig { void }
650
+ def clear_update_mask
651
+ end
652
+
653
+ sig { params(field: String).returns(T.untyped) }
654
+ def [](field)
655
+ end
656
+
657
+ sig { params(field: String, value: T.untyped).void }
658
+ def []=(field, value)
659
+ end
660
+
661
+ sig { returns(T::Hash[Symbol, T.untyped]) }
662
+ def to_h
663
+ end
664
+
665
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions) }
666
+ def self.decode(str)
667
+ end
668
+
669
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions).returns(String) }
670
+ def self.encode(msg)
671
+ end
672
+
673
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions) }
674
+ def self.decode_json(str, **kw)
675
+ end
676
+
677
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions, kw: T.untyped).returns(String) }
678
+ def self.encode_json(msg, **kw)
679
+ end
680
+
681
+ sig { returns(::Google::Protobuf::Descriptor) }
682
+ def self.descriptor
683
+ end
684
+ end
685
+
686
+ # BatchOperationUnpauseActivities sends unpause requests to batch workflows.
687
+ class Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities
688
+ include ::Google::Protobuf::MessageExts
689
+ extend ::Google::Protobuf::MessageExts::ClassMethods
690
+
691
+ sig do
692
+ params(
693
+ identity: T.nilable(String),
694
+ type: T.nilable(String),
695
+ match_all: T.nilable(T::Boolean),
696
+ reset_attempts: T.nilable(T::Boolean),
697
+ reset_heartbeat: T.nilable(T::Boolean),
698
+ jitter: T.nilable(Google::Protobuf::Duration)
699
+ ).void
700
+ end
701
+ def initialize(
702
+ identity: "",
703
+ type: "",
704
+ match_all: false,
705
+ reset_attempts: false,
706
+ reset_heartbeat: false,
707
+ jitter: nil
708
+ )
709
+ end
710
+
711
+ # The identity of the worker/client.
712
+ sig { returns(String) }
713
+ def identity
714
+ end
715
+
716
+ # The identity of the worker/client.
717
+ sig { params(value: String).void }
718
+ def identity=(value)
719
+ end
720
+
721
+ # The identity of the worker/client.
722
+ sig { void }
723
+ def clear_identity
724
+ end
725
+
726
+ sig { returns(String) }
727
+ def type
728
+ end
729
+
730
+ sig { params(value: String).void }
731
+ def type=(value)
732
+ end
733
+
734
+ sig { void }
735
+ def clear_type
736
+ end
737
+
738
+ sig { returns(T::Boolean) }
739
+ def match_all
740
+ end
741
+
742
+ sig { params(value: T::Boolean).void }
743
+ def match_all=(value)
744
+ end
745
+
746
+ sig { void }
747
+ def clear_match_all
748
+ end
749
+
750
+ # Setting this flag will also reset the number of attempts.
751
+ sig { returns(T::Boolean) }
752
+ def reset_attempts
753
+ end
754
+
755
+ # Setting this flag will also reset the number of attempts.
756
+ sig { params(value: T::Boolean).void }
757
+ def reset_attempts=(value)
758
+ end
759
+
760
+ # Setting this flag will also reset the number of attempts.
761
+ sig { void }
762
+ def clear_reset_attempts
763
+ end
764
+
765
+ # Setting this flag will also reset the heartbeat details.
766
+ sig { returns(T::Boolean) }
767
+ def reset_heartbeat
768
+ end
769
+
770
+ # Setting this flag will also reset the heartbeat details.
771
+ sig { params(value: T::Boolean).void }
772
+ def reset_heartbeat=(value)
773
+ end
774
+
775
+ # Setting this flag will also reset the heartbeat details.
776
+ sig { void }
777
+ def clear_reset_heartbeat
778
+ end
779
+
780
+ # If set, the activity will start at a random time within the specified jitter
781
+ # duration, introducing variability to the start time.
782
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
783
+ def jitter
784
+ end
785
+
786
+ # If set, the activity will start at a random time within the specified jitter
787
+ # duration, introducing variability to the start time.
788
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
789
+ def jitter=(value)
790
+ end
791
+
792
+ # If set, the activity will start at a random time within the specified jitter
793
+ # duration, introducing variability to the start time.
794
+ sig { void }
795
+ def clear_jitter
796
+ end
797
+
798
+ sig { returns(T.nilable(Symbol)) }
799
+ def activity
800
+ end
801
+
802
+ sig { params(field: String).returns(T.untyped) }
803
+ def [](field)
804
+ end
805
+
806
+ sig { params(field: String, value: T.untyped).void }
807
+ def []=(field, value)
808
+ end
809
+
810
+ sig { returns(T::Hash[Symbol, T.untyped]) }
811
+ def to_h
812
+ end
813
+
814
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities) }
815
+ def self.decode(str)
816
+ end
817
+
818
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities).returns(String) }
819
+ def self.encode(msg)
820
+ end
821
+
822
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities) }
823
+ def self.decode_json(str, **kw)
824
+ end
825
+
826
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities, kw: T.untyped).returns(String) }
827
+ def self.encode_json(msg, **kw)
828
+ end
829
+
830
+ sig { returns(::Google::Protobuf::Descriptor) }
831
+ def self.descriptor
832
+ end
833
+ end
834
+
835
+ # BatchOperationTriggerWorkflowRule sends TriggerWorkflowRule requests to batch workflows.
836
+ class Temporalio::Api::Batch::V1::BatchOperationTriggerWorkflowRule
837
+ include ::Google::Protobuf::MessageExts
838
+ extend ::Google::Protobuf::MessageExts::ClassMethods
839
+
840
+ sig do
841
+ params(
842
+ identity: T.nilable(String),
843
+ id: T.nilable(String),
844
+ spec: T.nilable(Temporalio::Api::Rules::V1::WorkflowRuleSpec)
845
+ ).void
846
+ end
847
+ def initialize(
848
+ identity: "",
849
+ id: "",
850
+ spec: nil
851
+ )
852
+ end
853
+
854
+ # The identity of the worker/client.
855
+ sig { returns(String) }
856
+ def identity
857
+ end
858
+
859
+ # The identity of the worker/client.
860
+ sig { params(value: String).void }
861
+ def identity=(value)
862
+ end
863
+
864
+ # The identity of the worker/client.
865
+ sig { void }
866
+ def clear_identity
867
+ end
868
+
869
+ # ID of existing rule.
870
+ sig { returns(String) }
871
+ def id
872
+ end
873
+
874
+ # ID of existing rule.
875
+ sig { params(value: String).void }
876
+ def id=(value)
877
+ end
878
+
879
+ # ID of existing rule.
880
+ sig { void }
881
+ def clear_id
882
+ end
883
+
884
+ # Rule specification to be applied to the workflow without creating a new rule.
885
+ sig { returns(T.nilable(Temporalio::Api::Rules::V1::WorkflowRuleSpec)) }
886
+ def spec
887
+ end
888
+
889
+ # Rule specification to be applied to the workflow without creating a new rule.
890
+ sig { params(value: T.nilable(Temporalio::Api::Rules::V1::WorkflowRuleSpec)).void }
891
+ def spec=(value)
892
+ end
893
+
894
+ # Rule specification to be applied to the workflow without creating a new rule.
895
+ sig { void }
896
+ def clear_spec
897
+ end
898
+
899
+ sig { returns(T.nilable(Symbol)) }
900
+ def rule
901
+ end
902
+
903
+ sig { params(field: String).returns(T.untyped) }
904
+ def [](field)
905
+ end
906
+
907
+ sig { params(field: String, value: T.untyped).void }
908
+ def []=(field, value)
909
+ end
910
+
911
+ sig { returns(T::Hash[Symbol, T.untyped]) }
912
+ def to_h
913
+ end
914
+
915
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationTriggerWorkflowRule) }
916
+ def self.decode(str)
917
+ end
918
+
919
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationTriggerWorkflowRule).returns(String) }
920
+ def self.encode(msg)
921
+ end
922
+
923
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationTriggerWorkflowRule) }
924
+ def self.decode_json(str, **kw)
925
+ end
926
+
927
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationTriggerWorkflowRule, kw: T.untyped).returns(String) }
928
+ def self.encode_json(msg, **kw)
929
+ end
930
+
931
+ sig { returns(::Google::Protobuf::Descriptor) }
932
+ def self.descriptor
933
+ end
934
+ end
935
+
936
+ # BatchOperationResetActivities sends activity reset requests in a batch.
937
+ # NOTE: keep in sync with temporal.api.workflowservice.v1.ResetActivityRequest
938
+ class Temporalio::Api::Batch::V1::BatchOperationResetActivities
939
+ include ::Google::Protobuf::MessageExts
940
+ extend ::Google::Protobuf::MessageExts::ClassMethods
941
+
942
+ sig do
943
+ params(
944
+ identity: T.nilable(String),
945
+ type: T.nilable(String),
946
+ match_all: T.nilable(T::Boolean),
947
+ reset_attempts: T.nilable(T::Boolean),
948
+ reset_heartbeat: T.nilable(T::Boolean),
949
+ keep_paused: T.nilable(T::Boolean),
950
+ jitter: T.nilable(Google::Protobuf::Duration),
951
+ restore_original_options: T.nilable(T::Boolean)
952
+ ).void
953
+ end
954
+ def initialize(
955
+ identity: "",
956
+ type: "",
957
+ match_all: false,
958
+ reset_attempts: false,
959
+ reset_heartbeat: false,
960
+ keep_paused: false,
961
+ jitter: nil,
962
+ restore_original_options: false
963
+ )
964
+ end
965
+
966
+ # The identity of the worker/client.
967
+ sig { returns(String) }
968
+ def identity
969
+ end
970
+
971
+ # The identity of the worker/client.
972
+ sig { params(value: String).void }
973
+ def identity=(value)
974
+ end
975
+
976
+ # The identity of the worker/client.
977
+ sig { void }
978
+ def clear_identity
979
+ end
980
+
981
+ sig { returns(String) }
982
+ def type
983
+ end
984
+
985
+ sig { params(value: String).void }
986
+ def type=(value)
987
+ end
988
+
989
+ sig { void }
990
+ def clear_type
991
+ end
992
+
993
+ sig { returns(T::Boolean) }
994
+ def match_all
995
+ end
996
+
997
+ sig { params(value: T::Boolean).void }
998
+ def match_all=(value)
999
+ end
1000
+
1001
+ sig { void }
1002
+ def clear_match_all
1003
+ end
1004
+
1005
+ # Setting this flag will also reset the number of attempts.
1006
+ sig { returns(T::Boolean) }
1007
+ def reset_attempts
1008
+ end
1009
+
1010
+ # Setting this flag will also reset the number of attempts.
1011
+ sig { params(value: T::Boolean).void }
1012
+ def reset_attempts=(value)
1013
+ end
1014
+
1015
+ # Setting this flag will also reset the number of attempts.
1016
+ sig { void }
1017
+ def clear_reset_attempts
1018
+ end
1019
+
1020
+ # Setting this flag will also reset the heartbeat details.
1021
+ sig { returns(T::Boolean) }
1022
+ def reset_heartbeat
1023
+ end
1024
+
1025
+ # Setting this flag will also reset the heartbeat details.
1026
+ sig { params(value: T::Boolean).void }
1027
+ def reset_heartbeat=(value)
1028
+ end
1029
+
1030
+ # Setting this flag will also reset the heartbeat details.
1031
+ sig { void }
1032
+ def clear_reset_heartbeat
1033
+ end
1034
+
1035
+ # If activity is paused, it will remain paused after reset
1036
+ sig { returns(T::Boolean) }
1037
+ def keep_paused
1038
+ end
1039
+
1040
+ # If activity is paused, it will remain paused after reset
1041
+ sig { params(value: T::Boolean).void }
1042
+ def keep_paused=(value)
1043
+ end
1044
+
1045
+ # If activity is paused, it will remain paused after reset
1046
+ sig { void }
1047
+ def clear_keep_paused
1048
+ end
1049
+
1050
+ # If set, the activity will start at a random time within the specified jitter
1051
+ # duration, introducing variability to the start time.
1052
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1053
+ def jitter
1054
+ end
1055
+
1056
+ # If set, the activity will start at a random time within the specified jitter
1057
+ # duration, introducing variability to the start time.
1058
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1059
+ def jitter=(value)
1060
+ end
1061
+
1062
+ # If set, the activity will start at a random time within the specified jitter
1063
+ # duration, introducing variability to the start time.
1064
+ sig { void }
1065
+ def clear_jitter
1066
+ end
1067
+
1068
+ # If set, the activity options will be restored to the defaults.
1069
+ # Default options are then options activity was created with.
1070
+ # They are part of the first ActivityTaskScheduled event.
1071
+ sig { returns(T::Boolean) }
1072
+ def restore_original_options
1073
+ end
1074
+
1075
+ # If set, the activity options will be restored to the defaults.
1076
+ # Default options are then options activity was created with.
1077
+ # They are part of the first ActivityTaskScheduled event.
1078
+ sig { params(value: T::Boolean).void }
1079
+ def restore_original_options=(value)
1080
+ end
1081
+
1082
+ # If set, the activity options will be restored to the defaults.
1083
+ # Default options are then options activity was created with.
1084
+ # They are part of the first ActivityTaskScheduled event.
1085
+ sig { void }
1086
+ def clear_restore_original_options
1087
+ end
1088
+
1089
+ sig { returns(T.nilable(Symbol)) }
1090
+ def activity
1091
+ end
1092
+
1093
+ sig { params(field: String).returns(T.untyped) }
1094
+ def [](field)
1095
+ end
1096
+
1097
+ sig { params(field: String, value: T.untyped).void }
1098
+ def []=(field, value)
1099
+ end
1100
+
1101
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1102
+ def to_h
1103
+ end
1104
+
1105
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationResetActivities) }
1106
+ def self.decode(str)
1107
+ end
1108
+
1109
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationResetActivities).returns(String) }
1110
+ def self.encode(msg)
1111
+ end
1112
+
1113
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationResetActivities) }
1114
+ def self.decode_json(str, **kw)
1115
+ end
1116
+
1117
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationResetActivities, kw: T.untyped).returns(String) }
1118
+ def self.encode_json(msg, **kw)
1119
+ end
1120
+
1121
+ sig { returns(::Google::Protobuf::Descriptor) }
1122
+ def self.descriptor
1123
+ end
1124
+ end
1125
+
1126
+ # BatchOperationUpdateActivityOptions sends an update-activity-options requests in a batch.
1127
+ # NOTE: keep in sync with temporal.api.workflowservice.v1.UpdateActivityRequest
1128
+ class Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions
1129
+ include ::Google::Protobuf::MessageExts
1130
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1131
+
1132
+ sig do
1133
+ params(
1134
+ identity: T.nilable(String),
1135
+ type: T.nilable(String),
1136
+ match_all: T.nilable(T::Boolean),
1137
+ activity_options: T.nilable(Temporalio::Api::Activity::V1::ActivityOptions),
1138
+ update_mask: T.nilable(Google::Protobuf::FieldMask),
1139
+ restore_original: T.nilable(T::Boolean)
1140
+ ).void
1141
+ end
1142
+ def initialize(
1143
+ identity: "",
1144
+ type: "",
1145
+ match_all: false,
1146
+ activity_options: nil,
1147
+ update_mask: nil,
1148
+ restore_original: false
1149
+ )
1150
+ end
1151
+
1152
+ # The identity of the worker/client.
1153
+ sig { returns(String) }
1154
+ def identity
1155
+ end
1156
+
1157
+ # The identity of the worker/client.
1158
+ sig { params(value: String).void }
1159
+ def identity=(value)
1160
+ end
1161
+
1162
+ # The identity of the worker/client.
1163
+ sig { void }
1164
+ def clear_identity
1165
+ end
1166
+
1167
+ sig { returns(String) }
1168
+ def type
1169
+ end
1170
+
1171
+ sig { params(value: String).void }
1172
+ def type=(value)
1173
+ end
1174
+
1175
+ sig { void }
1176
+ def clear_type
1177
+ end
1178
+
1179
+ sig { returns(T::Boolean) }
1180
+ def match_all
1181
+ end
1182
+
1183
+ sig { params(value: T::Boolean).void }
1184
+ def match_all=(value)
1185
+ end
1186
+
1187
+ sig { void }
1188
+ def clear_match_all
1189
+ end
1190
+
1191
+ # Update Activity options. Partial updates are accepted and controlled by update_mask.
1192
+ sig { returns(T.nilable(Temporalio::Api::Activity::V1::ActivityOptions)) }
1193
+ def activity_options
1194
+ end
1195
+
1196
+ # Update Activity options. Partial updates are accepted and controlled by update_mask.
1197
+ sig { params(value: T.nilable(Temporalio::Api::Activity::V1::ActivityOptions)).void }
1198
+ def activity_options=(value)
1199
+ end
1200
+
1201
+ # Update Activity options. Partial updates are accepted and controlled by update_mask.
1202
+ sig { void }
1203
+ def clear_activity_options
1204
+ end
1205
+
1206
+ # Controls which fields from `activity_options` will be applied
1207
+ sig { returns(T.nilable(Google::Protobuf::FieldMask)) }
1208
+ def update_mask
1209
+ end
1210
+
1211
+ # Controls which fields from `activity_options` will be applied
1212
+ sig { params(value: T.nilable(Google::Protobuf::FieldMask)).void }
1213
+ def update_mask=(value)
1214
+ end
1215
+
1216
+ # Controls which fields from `activity_options` will be applied
1217
+ sig { void }
1218
+ def clear_update_mask
1219
+ end
1220
+
1221
+ # If set, the activity options will be restored to the default.
1222
+ # Default options are then options activity was created with.
1223
+ # They are part of the first ActivityTaskScheduled event.
1224
+ # This flag cannot be combined with any other option; if you supply
1225
+ # restore_original together with other options, the request will be rejected.
1226
+ sig { returns(T::Boolean) }
1227
+ def restore_original
1228
+ end
1229
+
1230
+ # If set, the activity options will be restored to the default.
1231
+ # Default options are then options activity was created with.
1232
+ # They are part of the first ActivityTaskScheduled event.
1233
+ # This flag cannot be combined with any other option; if you supply
1234
+ # restore_original together with other options, the request will be rejected.
1235
+ sig { params(value: T::Boolean).void }
1236
+ def restore_original=(value)
1237
+ end
1238
+
1239
+ # If set, the activity options will be restored to the default.
1240
+ # Default options are then options activity was created with.
1241
+ # They are part of the first ActivityTaskScheduled event.
1242
+ # This flag cannot be combined with any other option; if you supply
1243
+ # restore_original together with other options, the request will be rejected.
1244
+ sig { void }
1245
+ def clear_restore_original
1246
+ end
1247
+
1248
+ sig { returns(T.nilable(Symbol)) }
1249
+ def activity
1250
+ end
1251
+
1252
+ sig { params(field: String).returns(T.untyped) }
1253
+ def [](field)
1254
+ end
1255
+
1256
+ sig { params(field: String, value: T.untyped).void }
1257
+ def []=(field, value)
1258
+ end
1259
+
1260
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1261
+ def to_h
1262
+ end
1263
+
1264
+ sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions) }
1265
+ def self.decode(str)
1266
+ end
1267
+
1268
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions).returns(String) }
1269
+ def self.encode(msg)
1270
+ end
1271
+
1272
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions) }
1273
+ def self.decode_json(str, **kw)
1274
+ end
1275
+
1276
+ sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions, kw: T.untyped).returns(String) }
1277
+ def self.encode_json(msg, **kw)
1278
+ end
1279
+
1280
+ sig { returns(::Google::Protobuf::Descriptor) }
1281
+ def self.descriptor
1282
+ end
1283
+ end