temporalio 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +1469 -659
  3. data/Cargo.toml +1 -1
  4. data/Gemfile +9 -5
  5. data/README.md +59 -3
  6. data/Rakefile +1 -1
  7. data/ext/Cargo.toml +9 -3
  8. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  9. data/lib/temporalio/api/batch/v1/message.rb +4 -1
  10. data/lib/temporalio/api/cloud/billing/v1/message.rb +2 -1
  11. data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +17 -1
  12. data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
  13. data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
  14. data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
  15. data/lib/temporalio/api/cloud/namespace/v1/message.rb +5 -1
  16. data/lib/temporalio/api/command/v1/message.rb +3 -1
  17. data/lib/temporalio/api/common/v1/message.rb +9 -1
  18. data/lib/temporalio/api/deployment/v1/message.rb +3 -1
  19. data/lib/temporalio/api/enums/v1/activity.rb +1 -1
  20. data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
  21. data/lib/temporalio/api/enums/v1/common.rb +2 -1
  22. data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
  23. data/lib/temporalio/api/enums/v1/time_skipping.rb +21 -0
  24. data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
  25. data/lib/temporalio/api/history/v1/message.rb +3 -1
  26. data/lib/temporalio/api/namespace/v1/message.rb +1 -1
  27. data/lib/temporalio/api/nexus/v1/message.rb +1 -1
  28. data/lib/temporalio/api/nexusannotations/v1/options.rb +20 -0
  29. data/lib/temporalio/api/payload_visitor.rb +32 -0
  30. data/lib/temporalio/api/schedule/v1/message.rb +1 -1
  31. data/lib/temporalio/api/sdk/v1/event_group_marker.rb +26 -0
  32. data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
  33. data/lib/temporalio/api/update/v1/message.rb +1 -1
  34. data/lib/temporalio/api/worker/v1/message.rb +13 -1
  35. data/lib/temporalio/api/workflow/v1/message.rb +3 -2
  36. data/lib/temporalio/api/workflowservice/v1/request_response.rb +14 -1
  37. data/lib/temporalio/api/workflowservice/v1/service.rb +3 -2
  38. data/lib/temporalio/client/connection/cloud_service.rb +120 -0
  39. data/lib/temporalio/client/connection/workflow_service.rb +90 -0
  40. data/lib/temporalio/client/connection.rb +68 -3
  41. data/lib/temporalio/client/schedule.rb +4 -5
  42. data/lib/temporalio/client/workflow_execution.rb +2 -2
  43. data/lib/temporalio/client/workflow_handle.rb +2 -1
  44. data/lib/temporalio/client.rb +14 -11
  45. data/lib/temporalio/converters/data_converter.rb +1 -0
  46. data/lib/temporalio/converters/failure_converter.rb +7 -4
  47. data/lib/temporalio/internal/bridge/api/common/common.rb +2 -1
  48. data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
  49. data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +1 -1
  50. data/lib/temporalio/internal/bridge/client.rb +8 -1
  51. data/lib/temporalio/internal/bridge/runtime.rb +4 -1
  52. data/lib/temporalio/internal/bridge/worker.rb +3 -1
  53. data/lib/temporalio/internal/bridge.rb +20 -0
  54. data/lib/temporalio/internal/google_protobuf.rb +11 -0
  55. data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
  56. data/lib/temporalio/internal/worker/workflow_instance/details.rb +3 -1
  57. data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +9 -0
  58. data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +73 -2
  59. data/lib/temporalio/internal/worker/workflow_instance.rb +36 -6
  60. data/lib/temporalio/internal/worker/workflow_worker.rb +10 -2
  61. data/lib/temporalio/internal/workflow_task_failure_error.rb +9 -0
  62. data/lib/temporalio/runtime.rb +25 -7
  63. data/lib/temporalio/scoped_logger.rb +15 -0
  64. data/lib/temporalio/version.rb +1 -1
  65. data/lib/temporalio/worker/activity_executor/fiber.rb +1 -1
  66. data/lib/temporalio/worker/activity_executor/thread_pool.rb +1 -1
  67. data/lib/temporalio/worker/illegal_workflow_call_validator.rb +3 -1
  68. data/lib/temporalio/worker/workflow_executor/thread_pool.rb +5 -1
  69. data/lib/temporalio/worker/workflow_replayer.rb +19 -4
  70. data/lib/temporalio/worker.rb +54 -9
  71. data/lib/temporalio/workflow/future.rb +5 -0
  72. data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
  73. data/lib/temporalio/workflow.rb +16 -9
  74. data/rbi/google/protobuf.rbi +25 -0
  75. data/rbi/temporalio/activity/cancellation_details.rbi +33 -0
  76. data/rbi/temporalio/activity/complete_async_error.rbi +3 -0
  77. data/rbi/temporalio/activity/context.rbi +42 -0
  78. data/rbi/temporalio/activity/definition.rbi +74 -0
  79. data/rbi/temporalio/activity/info.rbi +112 -0
  80. data/rbi/temporalio/activity.rbi +3 -0
  81. data/rbi/temporalio/api/activity/v1/message.rbi +1539 -0
  82. data/rbi/temporalio/api/batch/v1/message.rbi +1510 -0
  83. data/rbi/temporalio/api/callback/v1/message.rbi +188 -0
  84. data/rbi/temporalio/api/cloud/account/v1/message.rbi +650 -0
  85. data/rbi/temporalio/api/cloud/auditlog/v1/message.rbi +318 -0
  86. data/rbi/temporalio/api/cloud/billing/v1/message.rbi +480 -0
  87. data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +12454 -0
  88. data/rbi/temporalio/api/cloud/cloudservice/v1/service.rbi +3 -0
  89. data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +709 -0
  90. data/rbi/temporalio/api/cloud/cloudservice.rbi +5 -0
  91. data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +403 -0
  92. data/rbi/temporalio/api/cloud/identity/v1/message.rbi +3072 -0
  93. data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +3659 -0
  94. data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +595 -0
  95. data/rbi/temporalio/api/cloud/operation/v1/message.rbi +244 -0
  96. data/rbi/temporalio/api/cloud/region/v1/message.rbi +166 -0
  97. data/rbi/temporalio/api/cloud/resource/v1/message.rbi +29 -0
  98. data/rbi/temporalio/api/cloud/sink/v1/message.rbi +438 -0
  99. data/rbi/temporalio/api/cloud/usage/v1/message.rbi +409 -0
  100. data/rbi/temporalio/api/command/v1/message.rbi +2675 -0
  101. data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
  102. data/rbi/temporalio/api/common/v1/message.rbi +3457 -0
  103. data/rbi/temporalio/api/compute/v1/config.rbi +421 -0
  104. data/rbi/temporalio/api/compute/v1/provider.rbi +125 -0
  105. data/rbi/temporalio/api/compute/v1/scaler.rbi +102 -0
  106. data/rbi/temporalio/api/deployment/v1/message.rbi +2340 -0
  107. data/rbi/temporalio/api/enums/v1/activity.rbi +63 -0
  108. data/rbi/temporalio/api/enums/v1/batch_operation.rbi +56 -0
  109. data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
  110. data/rbi/temporalio/api/enums/v1/common.rbi +199 -0
  111. data/rbi/temporalio/api/enums/v1/deployment.rbi +80 -0
  112. data/rbi/temporalio/api/enums/v1/event_type.rbi +79 -0
  113. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +159 -0
  114. data/rbi/temporalio/api/enums/v1/namespace.rbi +58 -0
  115. data/rbi/temporalio/api/enums/v1/nexus.rbi +98 -0
  116. data/rbi/temporalio/api/enums/v1/query.rbi +40 -0
  117. data/rbi/temporalio/api/enums/v1/reset.rbi +60 -0
  118. data/rbi/temporalio/api/enums/v1/schedule.rbi +25 -0
  119. data/rbi/temporalio/api/enums/v1/task_queue.rbi +134 -0
  120. data/rbi/temporalio/api/enums/v1/time_skipping.rbi +22 -0
  121. data/rbi/temporalio/api/enums/v1/update.rbi +39 -0
  122. data/rbi/temporalio/api/enums/v1/workflow.rbi +259 -0
  123. data/rbi/temporalio/api/errordetails/v1/message.rbi +1446 -0
  124. data/rbi/temporalio/api/export/v1/message.rbi +123 -0
  125. data/rbi/temporalio/api/failure/v1/message.rbi +1303 -0
  126. data/rbi/temporalio/api/filter/v1/message.rbi +267 -0
  127. data/rbi/temporalio/api/history/v1/message.rbi +10757 -0
  128. data/rbi/temporalio/api/namespace/v1/message.rbi +1135 -0
  129. data/rbi/temporalio/api/nexus/v1/message.rbi +2780 -0
  130. data/rbi/temporalio/api/nexusannotations/v1/options.rbi +161 -0
  131. data/rbi/temporalio/api/nexusservices/workerservice/v1/request_response.rbi +124 -0
  132. data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +1836 -0
  133. data/rbi/temporalio/api/operatorservice/v1/service.rbi +3 -0
  134. data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +143 -0
  135. data/rbi/temporalio/api/operatorservice.rbi +5 -0
  136. data/rbi/temporalio/api/payload_visitor.rbi +876 -0
  137. data/rbi/temporalio/api/protoc_gen_openapiv2/options/annotations.rbi +3 -0
  138. data/rbi/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbi +3482 -0
  139. data/rbi/temporalio/api/protocol/v1/message.rbi +139 -0
  140. data/rbi/temporalio/api/protometa/v1/annotations.rbi +97 -0
  141. data/rbi/temporalio/api/query/v1/message.rbi +288 -0
  142. data/rbi/temporalio/api/replication/v1/message.rbi +226 -0
  143. data/rbi/temporalio/api/rules/v1/message.rbi +492 -0
  144. data/rbi/temporalio/api/schedule/v1/message.rbi +2377 -0
  145. data/rbi/temporalio/api/sdk/v1/enhanced_stack_trace.rbi +478 -0
  146. data/rbi/temporalio/api/sdk/v1/event_group_marker.rbi +337 -0
  147. data/rbi/temporalio/api/sdk/v1/external_storage.rbi +85 -0
  148. data/rbi/temporalio/api/sdk/v1/task_complete_metadata.rbi +206 -0
  149. data/rbi/temporalio/api/sdk/v1/user_metadata.rbi +98 -0
  150. data/rbi/temporalio/api/sdk/v1/worker_config.rbi +255 -0
  151. data/rbi/temporalio/api/sdk/v1/workflow_metadata.rbi +297 -0
  152. data/rbi/temporalio/api/taskqueue/v1/message.rbi +2571 -0
  153. data/rbi/temporalio/api/testservice/v1/request_response.rbi +380 -0
  154. data/rbi/temporalio/api/testservice/v1/service.rbi +3 -0
  155. data/rbi/temporalio/api/testservice/v1/service_services.rbi +100 -0
  156. data/rbi/temporalio/api/update/v1/message.rbi +800 -0
  157. data/rbi/temporalio/api/version/v1/message.rbi +281 -0
  158. data/rbi/temporalio/api/worker/v1/message.rbi +2305 -0
  159. data/rbi/temporalio/api/workflow/v1/message.rbi +5031 -0
  160. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +31061 -0
  161. data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
  162. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1579 -0
  163. data/rbi/temporalio/api/workflowservice.rbi +5 -0
  164. data/rbi/temporalio/api.rbi +7 -0
  165. data/rbi/temporalio/cancellation.rbi +40 -0
  166. data/rbi/temporalio/client/activity_execution.rbi +134 -0
  167. data/rbi/temporalio/client/activity_execution_count.rbi +23 -0
  168. data/rbi/temporalio/client/activity_execution_status.rbi +11 -0
  169. data/rbi/temporalio/client/activity_handle.rbi +49 -0
  170. data/rbi/temporalio/client/activity_id_reference.rbi +24 -0
  171. data/rbi/temporalio/client/async_activity_handle.rbi +49 -0
  172. data/rbi/temporalio/client/connection/cloud_service.rbi +239 -0
  173. data/rbi/temporalio/client/connection/operator_service.rbi +47 -0
  174. data/rbi/temporalio/client/connection/service.rbi +19 -0
  175. data/rbi/temporalio/client/connection/test_service.rbi +29 -0
  176. data/rbi/temporalio/client/connection/workflow_service.rbi +380 -0
  177. data/rbi/temporalio/client/connection.rbi +286 -0
  178. data/rbi/temporalio/client/interceptor.rbi +1067 -0
  179. data/rbi/temporalio/client/pending_activity_state.rbi +9 -0
  180. data/rbi/temporalio/client/plugin.rbi +17 -0
  181. data/rbi/temporalio/client/schedule.rbi +677 -0
  182. data/rbi/temporalio/client/schedule_handle.rbi +40 -0
  183. data/rbi/temporalio/client/with_start_workflow_operation.rbi +126 -0
  184. data/rbi/temporalio/client/workflow_execution.rbi +62 -0
  185. data/rbi/temporalio/client/workflow_execution_count.rbi +23 -0
  186. data/rbi/temporalio/client/workflow_execution_status.rbi +11 -0
  187. data/rbi/temporalio/client/workflow_handle.rbi +148 -0
  188. data/rbi/temporalio/client/workflow_query_reject_condition.rbi +7 -0
  189. data/rbi/temporalio/client/workflow_update_handle.rbi +38 -0
  190. data/rbi/temporalio/client/workflow_update_wait_stage.rbi +7 -0
  191. data/rbi/temporalio/client.rbi +534 -0
  192. data/rbi/temporalio/common_enums.rbi +45 -0
  193. data/rbi/temporalio/contrib/open_telemetry.rbi +73 -0
  194. data/rbi/temporalio/converters/data_converter.rbi +44 -0
  195. data/rbi/temporalio/converters/failure_converter.rbi +25 -0
  196. data/rbi/temporalio/converters/payload_codec.rbi +11 -0
  197. data/rbi/temporalio/converters/payload_converter/binary_null.rbi +5 -0
  198. data/rbi/temporalio/converters/payload_converter/binary_plain.rbi +5 -0
  199. data/rbi/temporalio/converters/payload_converter/binary_protobuf.rbi +5 -0
  200. data/rbi/temporalio/converters/payload_converter/composite.rbi +20 -0
  201. data/rbi/temporalio/converters/payload_converter/encoding.rbi +14 -0
  202. data/rbi/temporalio/converters/payload_converter/json_plain.rbi +10 -0
  203. data/rbi/temporalio/converters/payload_converter/json_protobuf.rbi +5 -0
  204. data/rbi/temporalio/converters/payload_converter.rbi +28 -0
  205. data/rbi/temporalio/converters/raw_value.rbi +11 -0
  206. data/rbi/temporalio/converters.rbi +3 -0
  207. data/rbi/temporalio/env_config.rbi +156 -0
  208. data/rbi/temporalio/error/failure.rbi +3 -0
  209. data/rbi/temporalio/error.rbi +313 -0
  210. data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +547 -0
  211. data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +705 -0
  212. data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +332 -0
  213. data/rbi/temporalio/internal/bridge/api/common/common.rbi +306 -0
  214. data/rbi/temporalio/internal/bridge/api/core_interface.rbi +567 -0
  215. data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +255 -0
  216. data/rbi/temporalio/internal/bridge/api/nexus/nexus.rbi +527 -0
  217. data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +2808 -0
  218. data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +3309 -0
  219. data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +312 -0
  220. data/rbi/temporalio/internal/bridge/api.rbi +3 -0
  221. data/rbi/temporalio/internal/bridge/client.rbi +346 -0
  222. data/rbi/temporalio/internal/bridge/runtime.rbi +251 -0
  223. data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
  224. data/rbi/temporalio/internal/bridge/worker.rbi +252 -0
  225. data/rbi/temporalio/internal/bridge.rbi +47 -0
  226. data/rbi/temporalio/internal/client/implementation.rbi +53 -0
  227. data/rbi/temporalio/internal/google_protobuf.rbi +8 -0
  228. data/rbi/temporalio/internal/metric.rbi +55 -0
  229. data/rbi/temporalio/internal/proto_utils.rbi +148 -0
  230. data/rbi/temporalio/internal/worker/activity_worker.rbi +108 -0
  231. data/rbi/temporalio/internal/worker/multi_runner.rbi +175 -0
  232. data/rbi/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbi +20 -0
  233. data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +290 -0
  234. data/rbi/temporalio/internal/worker/workflow_instance/details.rbi +87 -0
  235. data/rbi/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbi +14 -0
  236. data/rbi/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbi +17 -0
  237. data/rbi/temporalio/internal/worker/workflow_instance/handler_execution.rbi +17 -0
  238. data/rbi/temporalio/internal/worker/workflow_instance/handler_hash.rbi +24 -0
  239. data/rbi/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbi +17 -0
  240. data/rbi/temporalio/internal/worker/workflow_instance/inbound_implementation.rbi +21 -0
  241. data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +47 -0
  242. data/rbi/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbi +19 -0
  243. data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +43 -0
  244. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbi +11 -0
  245. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbi +15 -0
  246. data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +36 -0
  247. data/rbi/temporalio/internal/worker/workflow_instance.rbi +231 -0
  248. data/rbi/temporalio/internal/worker/workflow_worker.rbi +199 -0
  249. data/rbi/temporalio/internal/workflow_task_failure_error.rbi +3 -0
  250. data/rbi/temporalio/internal.rbi +3 -0
  251. data/rbi/temporalio/metric.rbi +56 -0
  252. data/rbi/temporalio/priority.rbi +38 -0
  253. data/rbi/temporalio/retry_policy.rbi +40 -0
  254. data/rbi/temporalio/runtime/metric_buffer.rbi +45 -0
  255. data/rbi/temporalio/runtime.rbi +194 -0
  256. data/rbi/temporalio/scoped_logger.rbi +50 -0
  257. data/rbi/temporalio/search_attributes.rbi +94 -0
  258. data/rbi/temporalio/simple_plugin.rbi +41 -0
  259. data/rbi/temporalio/testing/activity_environment.rbi +43 -0
  260. data/rbi/temporalio/testing/workflow_environment.rbi +116 -0
  261. data/rbi/temporalio/testing.rbi +3 -0
  262. data/rbi/temporalio/version.rbi +5 -0
  263. data/rbi/temporalio/versioning_override.rbi +13 -0
  264. data/rbi/temporalio/worker/activity_executor/fiber.rbi +20 -0
  265. data/rbi/temporalio/worker/activity_executor/thread_pool.rbi +20 -0
  266. data/rbi/temporalio/worker/activity_executor.rbi +20 -0
  267. data/rbi/temporalio/worker/deployment_options.rbi +23 -0
  268. data/rbi/temporalio/worker/illegal_workflow_call_validator.rbi +33 -0
  269. data/rbi/temporalio/worker/interceptor.rbi +489 -0
  270. data/rbi/temporalio/worker/plugin.rbi +49 -0
  271. data/rbi/temporalio/worker/poller_behavior.rbi +29 -0
  272. data/rbi/temporalio/worker/thread_pool.rbi +38 -0
  273. data/rbi/temporalio/worker/tuner.rbi +221 -0
  274. data/rbi/temporalio/worker/workflow_executor/thread_pool.rbi +15 -0
  275. data/rbi/temporalio/worker/workflow_executor.rbi +8 -0
  276. data/rbi/temporalio/worker/workflow_replayer.rbi +152 -0
  277. data/rbi/temporalio/worker.rbi +265 -0
  278. data/rbi/temporalio/worker_deployment_version.rbi +29 -0
  279. data/rbi/temporalio/workflow/activity_cancellation_type.rbi +7 -0
  280. data/rbi/temporalio/workflow/child_workflow_cancellation_type.rbi +8 -0
  281. data/rbi/temporalio/workflow/child_workflow_handle.rbi +27 -0
  282. data/rbi/temporalio/workflow/definition.rbi +305 -0
  283. data/rbi/temporalio/workflow/external_workflow_handle.rbi +24 -0
  284. data/rbi/temporalio/workflow/future.rbi +62 -0
  285. data/rbi/temporalio/workflow/handler_unfinished_policy.rbi +6 -0
  286. data/rbi/temporalio/workflow/info.rbi +100 -0
  287. data/rbi/temporalio/workflow/nexus_client.rbi +65 -0
  288. data/rbi/temporalio/workflow/nexus_operation_cancellation_type.rbi +8 -0
  289. data/rbi/temporalio/workflow/nexus_operation_handle.rbi +14 -0
  290. data/rbi/temporalio/workflow/parent_close_policy.rbi +8 -0
  291. data/rbi/temporalio/workflow/update_info.rbi +14 -0
  292. data/rbi/temporalio/workflow.rbi +393 -0
  293. data/rbi/temporalio/workflow_history.rbi +21 -0
  294. data/rbi/temporalio.rbi +5 -0
  295. data/sig/common.rbs +1 -0
  296. data/sig/google/protobuf_compat.rbs +17 -0
  297. data/sig/open_telemetry.rbs +47 -0
  298. data/sig/temporalio/activity/cancellation_details.rbs +21 -0
  299. data/sig/temporalio/activity/complete_async_error.rbs +6 -0
  300. data/sig/temporalio/activity/context.rbs +26 -0
  301. data/sig/temporalio/activity/definition.rbs +60 -0
  302. data/sig/temporalio/activity/info.rbs +57 -0
  303. data/sig/temporalio/activity.rbs +4 -0
  304. data/sig/temporalio/api/activity/v1/message.rbs +754 -0
  305. data/sig/temporalio/api/batch/v1/message.rbs +680 -0
  306. data/sig/temporalio/api/callback/v1/message.rbs +112 -0
  307. data/sig/temporalio/api/cloud/account/v1/message.rbs +314 -0
  308. data/sig/temporalio/api/cloud/auditlog/v1/message.rbs +168 -0
  309. data/sig/temporalio/api/cloud/billing/v1/message.rbs +279 -0
  310. data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +4726 -0
  311. data/sig/temporalio/api/cloud/cloudservice/v1/service.rbs +25 -0
  312. data/sig/temporalio/api/cloud/cloudservice.rbs +8 -0
  313. data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +191 -0
  314. data/sig/temporalio/api/cloud/identity/v1/message.rbs +1372 -0
  315. data/sig/temporalio/api/cloud/namespace/v1/message.rbs +1571 -0
  316. data/sig/temporalio/api/cloud/nexus/v1/message.rbs +269 -0
  317. data/sig/temporalio/api/cloud/operation/v1/message.rbs +156 -0
  318. data/sig/temporalio/api/cloud/region/v1/message.rbs +109 -0
  319. data/sig/temporalio/api/cloud/resource/v1/message.rbs +61 -0
  320. data/sig/temporalio/api/cloud/sink/v1/message.rbs +207 -0
  321. data/sig/temporalio/api/cloud/usage/v1/message.rbs +230 -0
  322. data/sig/temporalio/api/command/v1/message.rbs +1221 -0
  323. data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
  324. data/sig/temporalio/api/common/v1/message.rbs +1439 -0
  325. data/sig/temporalio/api/compute/v1/config.rbs +176 -0
  326. data/sig/temporalio/api/compute/v1/provider.rbs +73 -0
  327. data/sig/temporalio/api/compute/v1/scaler.rbs +60 -0
  328. data/sig/temporalio/api/deployment/v1/message.rbs +1063 -0
  329. data/sig/temporalio/api/enums/v1/activity.rbs +138 -0
  330. data/sig/temporalio/api/enums/v1/batch_operation.rbs +110 -0
  331. data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
  332. data/sig/temporalio/api/enums/v1/common.rbs +294 -0
  333. data/sig/temporalio/api/enums/v1/deployment.rbs +177 -0
  334. data/sig/temporalio/api/enums/v1/event_type.rbs +263 -0
  335. data/sig/temporalio/api/enums/v1/failed_cause.rbs +293 -0
  336. data/sig/temporalio/api/enums/v1/namespace.rbs +87 -0
  337. data/sig/temporalio/api/enums/v1/nexus.rbs +172 -0
  338. data/sig/temporalio/api/enums/v1/query.rbs +69 -0
  339. data/sig/temporalio/api/enums/v1/reset.rbs +106 -0
  340. data/sig/temporalio/api/enums/v1/schedule.rbs +68 -0
  341. data/sig/temporalio/api/enums/v1/task_queue.rbs +238 -0
  342. data/sig/temporalio/api/enums/v1/time_skipping.rbs +58 -0
  343. data/sig/temporalio/api/enums/v1/update.rbs +87 -0
  344. data/sig/temporalio/api/enums/v1/workflow.rbs +435 -0
  345. data/sig/temporalio/api/errordetails/v1/message.rbs +551 -0
  346. data/sig/temporalio/api/export/v1/message.rbs +63 -0
  347. data/sig/temporalio/api/failure/v1/message.rbs +579 -0
  348. data/sig/temporalio/api/filter/v1/message.rbs +121 -0
  349. data/sig/temporalio/api/history/v1/message.rbs +4938 -0
  350. data/sig/temporalio/api/namespace/v1/message.rbs +508 -0
  351. data/sig/temporalio/api/nexus/v1/message.rbs +1268 -0
  352. data/sig/temporalio/api/nexusannotations/v1/options.rbs +76 -0
  353. data/sig/temporalio/api/nexusservices/workerservice/v1/request_response.rbs +65 -0
  354. data/sig/temporalio/api/operatorservice/v1/request_response.rbs +679 -0
  355. data/sig/temporalio/api/operatorservice/v1/service.rbs +23 -0
  356. data/sig/temporalio/api/operatorservice.rbs +6 -0
  357. data/sig/temporalio/api/payload_visitor.rbs +298 -0
  358. data/sig/temporalio/api/protoc_gen_openapiv2/options/annotations.rbs +23 -0
  359. data/sig/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbs +1691 -0
  360. data/sig/temporalio/api/protocol/v1/message.rbs +90 -0
  361. data/sig/temporalio/api/protometa/v1/annotations.rbs +62 -0
  362. data/sig/temporalio/api/query/v1/message.rbs +138 -0
  363. data/sig/temporalio/api/replication/v1/message.rbs +109 -0
  364. data/sig/temporalio/api/rules/v1/message.rbs +213 -0
  365. data/sig/temporalio/api/schedule/v1/message.rbs +1066 -0
  366. data/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs +210 -0
  367. data/sig/temporalio/api/sdk/v1/event_group_marker.rbs +154 -0
  368. data/sig/temporalio/api/sdk/v1/external_storage.rbs +54 -0
  369. data/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs +92 -0
  370. data/sig/temporalio/api/sdk/v1/user_metadata.rbs +58 -0
  371. data/sig/temporalio/api/sdk/v1/worker_config.rbs +122 -0
  372. data/sig/temporalio/api/sdk/v1/workflow_metadata.rbs +138 -0
  373. data/sig/temporalio/api/taskqueue/v1/message.rbs +1057 -0
  374. data/sig/temporalio/api/testservice/v1/request_response.rbs +125 -0
  375. data/sig/temporalio/api/testservice/v1/service.rbs +23 -0
  376. data/sig/temporalio/api/update/v1/message.rbs +349 -0
  377. data/sig/temporalio/api/version/v1/message.rbs +143 -0
  378. data/sig/temporalio/api/worker/v1/message.rbs +1126 -0
  379. data/sig/temporalio/api/workflow/v1/message.rbs +2332 -0
  380. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +13006 -0
  381. data/sig/temporalio/api/workflowservice/v1/service.rbs +23 -0
  382. data/sig/temporalio/api/workflowservice.rbs +6 -0
  383. data/sig/temporalio/api.rbs +4 -0
  384. data/sig/temporalio/cancellation.rbs +20 -0
  385. data/sig/temporalio/client/activity_execution.rbs +50 -0
  386. data/sig/temporalio/client/activity_execution_count.rbs +17 -0
  387. data/sig/temporalio/client/activity_execution_status.rbs +15 -0
  388. data/sig/temporalio/client/activity_handle.rbs +26 -0
  389. data/sig/temporalio/client/activity_id_reference.rbs +16 -0
  390. data/sig/temporalio/client/async_activity_handle.rbs +41 -0
  391. data/sig/temporalio/client/connection/cloud_service.rbs +315 -0
  392. data/sig/temporalio/client/connection/operator_service.rbs +59 -0
  393. data/sig/temporalio/client/connection/service.rbs +17 -0
  394. data/sig/temporalio/client/connection/test_service.rbs +35 -0
  395. data/sig/temporalio/client/connection/workflow_service.rbs +503 -0
  396. data/sig/temporalio/client/connection.rbs +156 -0
  397. data/sig/temporalio/client/interceptor.rbs +622 -0
  398. data/sig/temporalio/client/pending_activity_state.rbs +14 -0
  399. data/sig/temporalio/client/plugin.rbs +14 -0
  400. data/sig/temporalio/client/schedule.rbs +337 -0
  401. data/sig/temporalio/client/schedule_handle.rbs +44 -0
  402. data/sig/temporalio/client/with_start_workflow_operation.rbs +82 -0
  403. data/sig/temporalio/client/workflow_execution.rbs +37 -0
  404. data/sig/temporalio/client/workflow_execution_count.rbs +17 -0
  405. data/sig/temporalio/client/workflow_execution_status.rbs +16 -0
  406. data/sig/temporalio/client/workflow_handle.rbs +95 -0
  407. data/sig/temporalio/client/workflow_query_reject_condition.rbs +12 -0
  408. data/sig/temporalio/client/workflow_update_handle.rbs +26 -0
  409. data/sig/temporalio/client/workflow_update_wait_stage.rbs +12 -0
  410. data/sig/temporalio/client.rbs +271 -0
  411. data/sig/temporalio/common_enums.rbs +60 -0
  412. data/sig/temporalio/contrib/open_telemetry.rbs +74 -0
  413. data/sig/temporalio/converters/data_converter.rbs +32 -0
  414. data/sig/temporalio/converters/failure_converter.rbs +15 -0
  415. data/sig/temporalio/converters/payload_codec.rbs +8 -0
  416. data/sig/temporalio/converters/payload_converter/binary_null.rbs +9 -0
  417. data/sig/temporalio/converters/payload_converter/binary_plain.rbs +9 -0
  418. data/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +9 -0
  419. data/sig/temporalio/converters/payload_converter/composite.rbs +16 -0
  420. data/sig/temporalio/converters/payload_converter/encoding.rbs +13 -0
  421. data/sig/temporalio/converters/payload_converter/json_plain.rbs +14 -0
  422. data/sig/temporalio/converters/payload_converter/json_protobuf.rbs +9 -0
  423. data/sig/temporalio/converters/payload_converter.rbs +24 -0
  424. data/sig/temporalio/converters/raw_value.rbs +9 -0
  425. data/sig/temporalio/converters.rbs +4 -0
  426. data/sig/temporalio/env_config.rbs +86 -0
  427. data/sig/temporalio/error/failure.rbs +170 -0
  428. data/sig/temporalio/error.rbs +88 -0
  429. data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +247 -0
  430. data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +372 -0
  431. data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +207 -0
  432. data/sig/temporalio/internal/bridge/api/common/common.rbs +173 -0
  433. data/sig/temporalio/internal/bridge/api/core_interface.rbs +231 -0
  434. data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +134 -0
  435. data/sig/temporalio/internal/bridge/api/nexus/nexus.rbs +285 -0
  436. data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +1304 -0
  437. data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +1526 -0
  438. data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +156 -0
  439. data/sig/temporalio/internal/bridge/api.rbs +8 -0
  440. data/sig/temporalio/internal/bridge/client.rbs +148 -0
  441. data/sig/temporalio/internal/bridge/metric.rbs +28 -0
  442. data/sig/temporalio/internal/bridge/runtime.rbs +103 -0
  443. data/sig/temporalio/internal/bridge/testing.rbs +91 -0
  444. data/sig/temporalio/internal/bridge/worker.rbs +203 -0
  445. data/sig/temporalio/internal/bridge.rbs +36 -0
  446. data/sig/temporalio/internal/client/implementation.rbs +33 -0
  447. data/sig/temporalio/internal/google_protobuf.rbs +7 -0
  448. data/sig/temporalio/internal/metric.rbs +35 -0
  449. data/sig/temporalio/internal/proto_utils.rbs +94 -0
  450. data/sig/temporalio/internal/worker/activity_worker.rbs +64 -0
  451. data/sig/temporalio/internal/worker/multi_runner.rbs +132 -0
  452. data/sig/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbs +22 -0
  453. data/sig/temporalio/internal/worker/workflow_instance/context.rbs +172 -0
  454. data/sig/temporalio/internal/worker/workflow_instance/details.rbs +43 -0
  455. data/sig/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbs +15 -0
  456. data/sig/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbs +16 -0
  457. data/sig/temporalio/internal/worker/workflow_instance/handler_execution.rbs +19 -0
  458. data/sig/temporalio/internal/worker/workflow_instance/handler_hash.rbs +14 -0
  459. data/sig/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbs +20 -0
  460. data/sig/temporalio/internal/worker/workflow_instance/inbound_implementation.rbs +19 -0
  461. data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +25 -0
  462. data/sig/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbs +19 -0
  463. data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +35 -0
  464. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbs +16 -0
  465. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbs +15 -0
  466. data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +52 -0
  467. data/sig/temporalio/internal/worker/workflow_instance.rbs +111 -0
  468. data/sig/temporalio/internal/worker/workflow_worker.rbs +99 -0
  469. data/sig/temporalio/internal/workflow_task_failure_error.rbs +6 -0
  470. data/sig/temporalio/internal.rbs +4 -0
  471. data/sig/temporalio/metric.rbs +55 -0
  472. data/sig/temporalio/priority.rbs +17 -0
  473. data/sig/temporalio/retry_policy.rbs +21 -0
  474. data/sig/temporalio/runtime/metric_buffer.rbs +49 -0
  475. data/sig/temporalio/runtime.rbs +129 -0
  476. data/sig/temporalio/scoped_logger.rbs +15 -0
  477. data/sig/temporalio/search_attributes.rbs +82 -0
  478. data/sig/temporalio/simple_plugin.rbs +65 -0
  479. data/sig/temporalio/testing/activity_environment.rbs +52 -0
  480. data/sig/temporalio/testing/workflow_environment.rbs +141 -0
  481. data/sig/temporalio/testing.rbs +4 -0
  482. data/sig/temporalio/version.rbs +3 -0
  483. data/sig/temporalio/versioning_override.rbs +17 -0
  484. data/sig/temporalio/worker/activity_executor/fiber.rbs +9 -0
  485. data/sig/temporalio/worker/activity_executor/thread_pool.rbs +11 -0
  486. data/sig/temporalio/worker/activity_executor.rbs +12 -0
  487. data/sig/temporalio/worker/deployment_options.rbs +17 -0
  488. data/sig/temporalio/worker/illegal_workflow_call_validator.rbs +25 -0
  489. data/sig/temporalio/worker/interceptor.rbs +373 -0
  490. data/sig/temporalio/worker/plugin.rbs +47 -0
  491. data/sig/temporalio/worker/poller_behavior.rbs +23 -0
  492. data/sig/temporalio/worker/thread_pool.rbs +44 -0
  493. data/sig/temporalio/worker/tuner.rbs +121 -0
  494. data/sig/temporalio/worker/workflow_executor/thread_pool.rbs +58 -0
  495. data/sig/temporalio/worker/workflow_executor.rbs +15 -0
  496. data/sig/temporalio/worker/workflow_replayer.rbs +105 -0
  497. data/sig/temporalio/worker.rbs +174 -0
  498. data/sig/temporalio/worker_deployment_version.rbs +17 -0
  499. data/sig/temporalio/workflow/activity_cancellation_type.rbs +11 -0
  500. data/sig/temporalio/workflow/child_workflow_cancellation_type.rbs +12 -0
  501. data/sig/temporalio/workflow/child_workflow_handle.rbs +18 -0
  502. data/sig/temporalio/workflow/definition.rbs +181 -0
  503. data/sig/temporalio/workflow/external_workflow_handle.rbs +17 -0
  504. data/sig/temporalio/workflow/future.rbs +24 -0
  505. data/sig/temporalio/workflow/handler_unfinished_policy.rbs +10 -0
  506. data/sig/temporalio/workflow/info.rbs +79 -0
  507. data/sig/temporalio/workflow/nexus_client.rbs +34 -0
  508. data/sig/temporalio/workflow/nexus_operation_cancellation_type.rbs +12 -0
  509. data/sig/temporalio/workflow/nexus_operation_handle.rbs +10 -0
  510. data/sig/temporalio/workflow/parent_close_policy.rbs +12 -0
  511. data/sig/temporalio/workflow/update_info.rbs +15 -0
  512. data/sig/temporalio/workflow.rbs +215 -0
  513. data/sig/temporalio/workflow_history.rbs +13 -0
  514. data/sig/temporalio.rbs +3 -0
  515. data/temporalio.gemspec +1 -1
  516. metadata +448 -2
@@ -0,0 +1,1539 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: temporal/api/activity/v1/message.proto
3
+ # typed: strict
4
+
5
+ # The outcome of a completed activity execution: either a successful result or a failure.
6
+ class Temporalio::Api::Activity::V1::ActivityExecutionOutcome
7
+ include ::Google::Protobuf::MessageExts
8
+ extend ::Google::Protobuf::MessageExts::ClassMethods
9
+
10
+ sig do
11
+ params(
12
+ result: T.nilable(Temporalio::Api::Common::V1::Payloads),
13
+ failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
14
+ retry_state: T.nilable(T.any(Symbol, String, Integer))
15
+ ).void
16
+ end
17
+ def initialize(
18
+ result: nil,
19
+ failure: nil,
20
+ retry_state: :RETRY_STATE_UNSPECIFIED
21
+ )
22
+ end
23
+
24
+ # The result if the activity completed successfully.
25
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
26
+ def result
27
+ end
28
+
29
+ # The result if the activity completed successfully.
30
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
31
+ def result=(value)
32
+ end
33
+
34
+ # The result if the activity completed successfully.
35
+ sig { void }
36
+ def clear_result
37
+ end
38
+
39
+ # The failure if the activity completed unsuccessfully.
40
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
41
+ def failure
42
+ end
43
+
44
+ # The failure if the activity completed unsuccessfully.
45
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
46
+ def failure=(value)
47
+ end
48
+
49
+ # The failure if the activity completed unsuccessfully.
50
+ sig { void }
51
+ def clear_failure
52
+ end
53
+
54
+ # The retry state associated with an unsuccessful activity execution.
55
+ # This field is only meaningful when `failure` is set.
56
+ sig { returns(T.any(Symbol, Integer)) }
57
+ def retry_state
58
+ end
59
+
60
+ # The retry state associated with an unsuccessful activity execution.
61
+ # This field is only meaningful when `failure` is set.
62
+ sig { params(value: T.any(Symbol, String, Integer)).void }
63
+ def retry_state=(value)
64
+ end
65
+
66
+ # The retry state associated with an unsuccessful activity execution.
67
+ # This field is only meaningful when `failure` is set.
68
+ sig { void }
69
+ def clear_retry_state
70
+ end
71
+
72
+ sig { returns(T.nilable(Symbol)) }
73
+ def value
74
+ end
75
+
76
+ sig { params(field: String).returns(T.untyped) }
77
+ def [](field)
78
+ end
79
+
80
+ sig { params(field: String, value: T.untyped).void }
81
+ def []=(field, value)
82
+ end
83
+
84
+ sig { returns(T::Hash[Symbol, T.untyped]) }
85
+ def to_h
86
+ end
87
+
88
+ sig { params(str: String).returns(Temporalio::Api::Activity::V1::ActivityExecutionOutcome) }
89
+ def self.decode(str)
90
+ end
91
+
92
+ sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionOutcome).returns(String) }
93
+ def self.encode(msg)
94
+ end
95
+
96
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::ActivityExecutionOutcome) }
97
+ def self.decode_json(str, **kw)
98
+ end
99
+
100
+ sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionOutcome, kw: T.untyped).returns(String) }
101
+ def self.encode_json(msg, **kw)
102
+ end
103
+
104
+ sig { returns(::Google::Protobuf::Descriptor) }
105
+ def self.descriptor
106
+ end
107
+ end
108
+
109
+ class Temporalio::Api::Activity::V1::ActivityOptions
110
+ include ::Google::Protobuf::MessageExts
111
+ extend ::Google::Protobuf::MessageExts::ClassMethods
112
+
113
+ sig do
114
+ params(
115
+ task_queue: T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue),
116
+ schedule_to_close_timeout: T.nilable(Google::Protobuf::Duration),
117
+ schedule_to_start_timeout: T.nilable(Google::Protobuf::Duration),
118
+ start_to_close_timeout: T.nilable(Google::Protobuf::Duration),
119
+ heartbeat_timeout: T.nilable(Google::Protobuf::Duration),
120
+ retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
121
+ priority: T.nilable(Temporalio::Api::Common::V1::Priority),
122
+ start_delay: T.nilable(Google::Protobuf::Duration)
123
+ ).void
124
+ end
125
+ def initialize(
126
+ task_queue: nil,
127
+ schedule_to_close_timeout: nil,
128
+ schedule_to_start_timeout: nil,
129
+ start_to_close_timeout: nil,
130
+ heartbeat_timeout: nil,
131
+ retry_policy: nil,
132
+ priority: nil,
133
+ start_delay: nil
134
+ )
135
+ end
136
+
137
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue)) }
138
+ def task_queue
139
+ end
140
+
141
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue)).void }
142
+ def task_queue=(value)
143
+ end
144
+
145
+ sig { void }
146
+ def clear_task_queue
147
+ end
148
+
149
+ # Indicates how long the caller is willing to wait for an activity completion. Limits how long
150
+ # retries will be attempted. Either this or `start_to_close_timeout` must be specified.
151
+ #
152
+ # (-- api-linter: core::0140::prepositions=disabled
153
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
154
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
155
+ def schedule_to_close_timeout
156
+ end
157
+
158
+ # Indicates how long the caller is willing to wait for an activity completion. Limits how long
159
+ # retries will be attempted. Either this or `start_to_close_timeout` must be specified.
160
+ #
161
+ # (-- api-linter: core::0140::prepositions=disabled
162
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
163
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
164
+ def schedule_to_close_timeout=(value)
165
+ end
166
+
167
+ # Indicates how long the caller is willing to wait for an activity completion. Limits how long
168
+ # retries will be attempted. Either this or `start_to_close_timeout` must be specified.
169
+ #
170
+ # (-- api-linter: core::0140::prepositions=disabled
171
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
172
+ sig { void }
173
+ def clear_schedule_to_close_timeout
174
+ end
175
+
176
+ # Limits time an activity task can stay in a task queue before a worker picks it up. This
177
+ # timeout is always non retryable, as all a retry would achieve is to put it back into the same
178
+ # queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
179
+ # specified.
180
+ #
181
+ # (-- api-linter: core::0140::prepositions=disabled
182
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
183
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
184
+ def schedule_to_start_timeout
185
+ end
186
+
187
+ # Limits time an activity task can stay in a task queue before a worker picks it up. This
188
+ # timeout is always non retryable, as all a retry would achieve is to put it back into the same
189
+ # queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
190
+ # specified.
191
+ #
192
+ # (-- api-linter: core::0140::prepositions=disabled
193
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
194
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
195
+ def schedule_to_start_timeout=(value)
196
+ end
197
+
198
+ # Limits time an activity task can stay in a task queue before a worker picks it up. This
199
+ # timeout is always non retryable, as all a retry would achieve is to put it back into the same
200
+ # queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
201
+ # specified.
202
+ #
203
+ # (-- api-linter: core::0140::prepositions=disabled
204
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
205
+ sig { void }
206
+ def clear_schedule_to_start_timeout
207
+ end
208
+
209
+ # Maximum time an activity is allowed to execute after being picked up by a worker. This
210
+ # timeout is always retryable. Either this or `schedule_to_close_timeout` must be
211
+ # specified.
212
+ #
213
+ # (-- api-linter: core::0140::prepositions=disabled
214
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
215
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
216
+ def start_to_close_timeout
217
+ end
218
+
219
+ # Maximum time an activity is allowed to execute after being picked up by a worker. This
220
+ # timeout is always retryable. Either this or `schedule_to_close_timeout` must be
221
+ # specified.
222
+ #
223
+ # (-- api-linter: core::0140::prepositions=disabled
224
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
225
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
226
+ def start_to_close_timeout=(value)
227
+ end
228
+
229
+ # Maximum time an activity is allowed to execute after being picked up by a worker. This
230
+ # timeout is always retryable. Either this or `schedule_to_close_timeout` must be
231
+ # specified.
232
+ #
233
+ # (-- api-linter: core::0140::prepositions=disabled
234
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
235
+ sig { void }
236
+ def clear_start_to_close_timeout
237
+ end
238
+
239
+ # Maximum permitted time between successful worker heartbeats.
240
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
241
+ def heartbeat_timeout
242
+ end
243
+
244
+ # Maximum permitted time between successful worker heartbeats.
245
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
246
+ def heartbeat_timeout=(value)
247
+ end
248
+
249
+ # Maximum permitted time between successful worker heartbeats.
250
+ sig { void }
251
+ def clear_heartbeat_timeout
252
+ end
253
+
254
+ # The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
255
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
256
+ def retry_policy
257
+ end
258
+
259
+ # The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
260
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
261
+ def retry_policy=(value)
262
+ end
263
+
264
+ # The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
265
+ sig { void }
266
+ def clear_retry_policy
267
+ end
268
+
269
+ # Priority metadata. If this message is not present, or any fields are not
270
+ # present, they inherit the values from the workflow.
271
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
272
+ def priority
273
+ end
274
+
275
+ # Priority metadata. If this message is not present, or any fields are not
276
+ # present, they inherit the values from the workflow.
277
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
278
+ def priority=(value)
279
+ end
280
+
281
+ # Priority metadata. If this message is not present, or any fields are not
282
+ # present, they inherit the values from the workflow.
283
+ sig { void }
284
+ def clear_priority
285
+ end
286
+
287
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
288
+ # When updated, the time is added to the original `schedule_time`, not to the current time.
289
+ # If the resulting time is in the past, the task is made available for dispatch immediately.
290
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
291
+ def start_delay
292
+ end
293
+
294
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
295
+ # When updated, the time is added to the original `schedule_time`, not to the current time.
296
+ # If the resulting time is in the past, the task is made available for dispatch immediately.
297
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
298
+ def start_delay=(value)
299
+ end
300
+
301
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
302
+ # When updated, the time is added to the original `schedule_time`, not to the current time.
303
+ # If the resulting time is in the past, the task is made available for dispatch immediately.
304
+ sig { void }
305
+ def clear_start_delay
306
+ end
307
+
308
+ sig { params(field: String).returns(T.untyped) }
309
+ def [](field)
310
+ end
311
+
312
+ sig { params(field: String, value: T.untyped).void }
313
+ def []=(field, value)
314
+ end
315
+
316
+ sig { returns(T::Hash[Symbol, T.untyped]) }
317
+ def to_h
318
+ end
319
+
320
+ sig { params(str: String).returns(Temporalio::Api::Activity::V1::ActivityOptions) }
321
+ def self.decode(str)
322
+ end
323
+
324
+ sig { params(msg: Temporalio::Api::Activity::V1::ActivityOptions).returns(String) }
325
+ def self.encode(msg)
326
+ end
327
+
328
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::ActivityOptions) }
329
+ def self.decode_json(str, **kw)
330
+ end
331
+
332
+ sig { params(msg: Temporalio::Api::Activity::V1::ActivityOptions, kw: T.untyped).returns(String) }
333
+ def self.encode_json(msg, **kw)
334
+ end
335
+
336
+ sig { returns(::Google::Protobuf::Descriptor) }
337
+ def self.descriptor
338
+ end
339
+ end
340
+
341
+ # Information about a standalone activity.
342
+ class Temporalio::Api::Activity::V1::ActivityExecutionInfo
343
+ include ::Google::Protobuf::MessageExts
344
+ extend ::Google::Protobuf::MessageExts::ClassMethods
345
+
346
+ sig do
347
+ params(
348
+ activity_id: T.nilable(String),
349
+ run_id: T.nilable(String),
350
+ activity_type: T.nilable(Temporalio::Api::Common::V1::ActivityType),
351
+ status: T.nilable(T.any(Symbol, String, Integer)),
352
+ run_state: T.nilable(T.any(Symbol, String, Integer)),
353
+ task_queue: T.nilable(String),
354
+ schedule_to_close_timeout: T.nilable(Google::Protobuf::Duration),
355
+ schedule_to_start_timeout: T.nilable(Google::Protobuf::Duration),
356
+ start_to_close_timeout: T.nilable(Google::Protobuf::Duration),
357
+ heartbeat_timeout: T.nilable(Google::Protobuf::Duration),
358
+ retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
359
+ heartbeat_details: T.nilable(Temporalio::Api::Common::V1::Payloads),
360
+ last_heartbeat_time: T.nilable(Google::Protobuf::Timestamp),
361
+ last_started_time: T.nilable(Google::Protobuf::Timestamp),
362
+ attempt: T.nilable(Integer),
363
+ execution_duration: T.nilable(Google::Protobuf::Duration),
364
+ schedule_time: T.nilable(Google::Protobuf::Timestamp),
365
+ expiration_time: T.nilable(Google::Protobuf::Timestamp),
366
+ close_time: T.nilable(Google::Protobuf::Timestamp),
367
+ last_failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
368
+ last_worker_identity: T.nilable(String),
369
+ current_retry_interval: T.nilable(Google::Protobuf::Duration),
370
+ last_attempt_complete_time: T.nilable(Google::Protobuf::Timestamp),
371
+ next_attempt_schedule_time: T.nilable(Google::Protobuf::Timestamp),
372
+ last_deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
373
+ priority: T.nilable(Temporalio::Api::Common::V1::Priority),
374
+ state_transition_count: T.nilable(Integer),
375
+ state_size_bytes: T.nilable(Integer),
376
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
377
+ header: T.nilable(Temporalio::Api::Common::V1::Header),
378
+ user_metadata: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata),
379
+ canceled_reason: T.nilable(String),
380
+ links: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]),
381
+ total_heartbeat_count: T.nilable(Integer),
382
+ sdk_name: T.nilable(String),
383
+ sdk_version: T.nilable(String),
384
+ start_delay: T.nilable(Google::Protobuf::Duration),
385
+ execution_time: T.nilable(Google::Protobuf::Timestamp)
386
+ ).void
387
+ end
388
+ def initialize(
389
+ activity_id: "",
390
+ run_id: "",
391
+ activity_type: nil,
392
+ status: :ACTIVITY_EXECUTION_STATUS_UNSPECIFIED,
393
+ run_state: :PENDING_ACTIVITY_STATE_UNSPECIFIED,
394
+ task_queue: "",
395
+ schedule_to_close_timeout: nil,
396
+ schedule_to_start_timeout: nil,
397
+ start_to_close_timeout: nil,
398
+ heartbeat_timeout: nil,
399
+ retry_policy: nil,
400
+ heartbeat_details: nil,
401
+ last_heartbeat_time: nil,
402
+ last_started_time: nil,
403
+ attempt: 0,
404
+ execution_duration: nil,
405
+ schedule_time: nil,
406
+ expiration_time: nil,
407
+ close_time: nil,
408
+ last_failure: nil,
409
+ last_worker_identity: "",
410
+ current_retry_interval: nil,
411
+ last_attempt_complete_time: nil,
412
+ next_attempt_schedule_time: nil,
413
+ last_deployment_version: nil,
414
+ priority: nil,
415
+ state_transition_count: 0,
416
+ state_size_bytes: 0,
417
+ search_attributes: nil,
418
+ header: nil,
419
+ user_metadata: nil,
420
+ canceled_reason: "",
421
+ links: [],
422
+ total_heartbeat_count: 0,
423
+ sdk_name: "",
424
+ sdk_version: "",
425
+ start_delay: nil,
426
+ execution_time: nil
427
+ )
428
+ end
429
+
430
+ # Unique identifier of this activity within its namespace along with run ID (below).
431
+ sig { returns(String) }
432
+ def activity_id
433
+ end
434
+
435
+ # Unique identifier of this activity within its namespace along with run ID (below).
436
+ sig { params(value: String).void }
437
+ def activity_id=(value)
438
+ end
439
+
440
+ # Unique identifier of this activity within its namespace along with run ID (below).
441
+ sig { void }
442
+ def clear_activity_id
443
+ end
444
+
445
+ sig { returns(String) }
446
+ def run_id
447
+ end
448
+
449
+ sig { params(value: String).void }
450
+ def run_id=(value)
451
+ end
452
+
453
+ sig { void }
454
+ def clear_run_id
455
+ end
456
+
457
+ # The type of the activity, a string that maps to a registered activity on a worker.
458
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::ActivityType)) }
459
+ def activity_type
460
+ end
461
+
462
+ # The type of the activity, a string that maps to a registered activity on a worker.
463
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::ActivityType)).void }
464
+ def activity_type=(value)
465
+ end
466
+
467
+ # The type of the activity, a string that maps to a registered activity on a worker.
468
+ sig { void }
469
+ def clear_activity_type
470
+ end
471
+
472
+ # A general status for this activity, indicates whether it is currently running or in one of the terminal statuses.
473
+ sig { returns(T.any(Symbol, Integer)) }
474
+ def status
475
+ end
476
+
477
+ # A general status for this activity, indicates whether it is currently running or in one of the terminal statuses.
478
+ sig { params(value: T.any(Symbol, String, Integer)).void }
479
+ def status=(value)
480
+ end
481
+
482
+ # A general status for this activity, indicates whether it is currently running or in one of the terminal statuses.
483
+ sig { void }
484
+ def clear_status
485
+ end
486
+
487
+ # More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING.
488
+ sig { returns(T.any(Symbol, Integer)) }
489
+ def run_state
490
+ end
491
+
492
+ # More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING.
493
+ sig { params(value: T.any(Symbol, String, Integer)).void }
494
+ def run_state=(value)
495
+ end
496
+
497
+ # More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING.
498
+ sig { void }
499
+ def clear_run_state
500
+ end
501
+
502
+ sig { returns(String) }
503
+ def task_queue
504
+ end
505
+
506
+ sig { params(value: String).void }
507
+ def task_queue=(value)
508
+ end
509
+
510
+ sig { void }
511
+ def clear_task_queue
512
+ end
513
+
514
+ # Indicates how long the caller is willing to wait for an activity completion. Limits how long
515
+ # retries will be attempted.
516
+ #
517
+ # (-- api-linter: core::0140::prepositions=disabled
518
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
519
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
520
+ def schedule_to_close_timeout
521
+ end
522
+
523
+ # Indicates how long the caller is willing to wait for an activity completion. Limits how long
524
+ # retries will be attempted.
525
+ #
526
+ # (-- api-linter: core::0140::prepositions=disabled
527
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
528
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
529
+ def schedule_to_close_timeout=(value)
530
+ end
531
+
532
+ # Indicates how long the caller is willing to wait for an activity completion. Limits how long
533
+ # retries will be attempted.
534
+ #
535
+ # (-- api-linter: core::0140::prepositions=disabled
536
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
537
+ sig { void }
538
+ def clear_schedule_to_close_timeout
539
+ end
540
+
541
+ # Limits time an activity task can stay in a task queue before a worker picks it up. This
542
+ # timeout is always non retryable, as all a retry would achieve is to put it back into the same
543
+ # queue. Defaults to `schedule_to_close_timeout`.
544
+ #
545
+ # (-- api-linter: core::0140::prepositions=disabled
546
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
547
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
548
+ def schedule_to_start_timeout
549
+ end
550
+
551
+ # Limits time an activity task can stay in a task queue before a worker picks it up. This
552
+ # timeout is always non retryable, as all a retry would achieve is to put it back into the same
553
+ # queue. Defaults to `schedule_to_close_timeout`.
554
+ #
555
+ # (-- api-linter: core::0140::prepositions=disabled
556
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
557
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
558
+ def schedule_to_start_timeout=(value)
559
+ end
560
+
561
+ # Limits time an activity task can stay in a task queue before a worker picks it up. This
562
+ # timeout is always non retryable, as all a retry would achieve is to put it back into the same
563
+ # queue. Defaults to `schedule_to_close_timeout`.
564
+ #
565
+ # (-- api-linter: core::0140::prepositions=disabled
566
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
567
+ sig { void }
568
+ def clear_schedule_to_start_timeout
569
+ end
570
+
571
+ # Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
572
+ # timeout is always retryable.
573
+ #
574
+ # (-- api-linter: core::0140::prepositions=disabled
575
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
576
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
577
+ def start_to_close_timeout
578
+ end
579
+
580
+ # Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
581
+ # timeout is always retryable.
582
+ #
583
+ # (-- api-linter: core::0140::prepositions=disabled
584
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
585
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
586
+ def start_to_close_timeout=(value)
587
+ end
588
+
589
+ # Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
590
+ # timeout is always retryable.
591
+ #
592
+ # (-- api-linter: core::0140::prepositions=disabled
593
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
594
+ sig { void }
595
+ def clear_start_to_close_timeout
596
+ end
597
+
598
+ # Maximum permitted time between successful worker heartbeats.
599
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
600
+ def heartbeat_timeout
601
+ end
602
+
603
+ # Maximum permitted time between successful worker heartbeats.
604
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
605
+ def heartbeat_timeout=(value)
606
+ end
607
+
608
+ # Maximum permitted time between successful worker heartbeats.
609
+ sig { void }
610
+ def clear_heartbeat_timeout
611
+ end
612
+
613
+ # The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
614
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
615
+ def retry_policy
616
+ end
617
+
618
+ # The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
619
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
620
+ def retry_policy=(value)
621
+ end
622
+
623
+ # The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
624
+ sig { void }
625
+ def clear_retry_policy
626
+ end
627
+
628
+ # Details provided in the last recorded activity heartbeat.
629
+ # DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request.
630
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
631
+ def heartbeat_details
632
+ end
633
+
634
+ # Details provided in the last recorded activity heartbeat.
635
+ # DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request.
636
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
637
+ def heartbeat_details=(value)
638
+ end
639
+
640
+ # Details provided in the last recorded activity heartbeat.
641
+ # DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request.
642
+ sig { void }
643
+ def clear_heartbeat_details
644
+ end
645
+
646
+ # Time the last heartbeat was recorded.
647
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
648
+ def last_heartbeat_time
649
+ end
650
+
651
+ # Time the last heartbeat was recorded.
652
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
653
+ def last_heartbeat_time=(value)
654
+ end
655
+
656
+ # Time the last heartbeat was recorded.
657
+ sig { void }
658
+ def clear_last_heartbeat_time
659
+ end
660
+
661
+ # Time the last attempt was started.
662
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
663
+ def last_started_time
664
+ end
665
+
666
+ # Time the last attempt was started.
667
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
668
+ def last_started_time=(value)
669
+ end
670
+
671
+ # Time the last attempt was started.
672
+ sig { void }
673
+ def clear_last_started_time
674
+ end
675
+
676
+ # The attempt this activity is currently on. Incremented each time a new attempt is scheduled.
677
+ sig { returns(Integer) }
678
+ def attempt
679
+ end
680
+
681
+ # The attempt this activity is currently on. Incremented each time a new attempt is scheduled.
682
+ sig { params(value: Integer).void }
683
+ def attempt=(value)
684
+ end
685
+
686
+ # The attempt this activity is currently on. Incremented each time a new attempt is scheduled.
687
+ sig { void }
688
+ def clear_attempt
689
+ end
690
+
691
+ # How long this activity has been running for, including all attempts and backoff between attempts.
692
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
693
+ def execution_duration
694
+ end
695
+
696
+ # How long this activity has been running for, including all attempts and backoff between attempts.
697
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
698
+ def execution_duration=(value)
699
+ end
700
+
701
+ # How long this activity has been running for, including all attempts and backoff between attempts.
702
+ sig { void }
703
+ def clear_execution_duration
704
+ end
705
+
706
+ # Time the activity was originally scheduled via a StartActivityExecution request.
707
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
708
+ def schedule_time
709
+ end
710
+
711
+ # Time the activity was originally scheduled via a StartActivityExecution request.
712
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
713
+ def schedule_time=(value)
714
+ end
715
+
716
+ # Time the activity was originally scheduled via a StartActivityExecution request.
717
+ sig { void }
718
+ def clear_schedule_time
719
+ end
720
+
721
+ # The time at which the activity's Schedule-to-Close timeout expires.
722
+ # Calculated as `schedule_time` + `start_delay` + `schedule_to_close_timeout`.
723
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
724
+ def expiration_time
725
+ end
726
+
727
+ # The time at which the activity's Schedule-to-Close timeout expires.
728
+ # Calculated as `schedule_time` + `start_delay` + `schedule_to_close_timeout`.
729
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
730
+ def expiration_time=(value)
731
+ end
732
+
733
+ # The time at which the activity's Schedule-to-Close timeout expires.
734
+ # Calculated as `schedule_time` + `start_delay` + `schedule_to_close_timeout`.
735
+ sig { void }
736
+ def clear_expiration_time
737
+ end
738
+
739
+ # Time when the activity transitioned to a closed state.
740
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
741
+ def close_time
742
+ end
743
+
744
+ # Time when the activity transitioned to a closed state.
745
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
746
+ def close_time=(value)
747
+ end
748
+
749
+ # Time when the activity transitioned to a closed state.
750
+ sig { void }
751
+ def clear_close_time
752
+ end
753
+
754
+ # Failure details from the last failed attempt.
755
+ # DescribeActivityExecution does not set this field unless include_last_failure was true in the request.
756
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
757
+ def last_failure
758
+ end
759
+
760
+ # Failure details from the last failed attempt.
761
+ # DescribeActivityExecution does not set this field unless include_last_failure was true in the request.
762
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
763
+ def last_failure=(value)
764
+ end
765
+
766
+ # Failure details from the last failed attempt.
767
+ # DescribeActivityExecution does not set this field unless include_last_failure was true in the request.
768
+ sig { void }
769
+ def clear_last_failure
770
+ end
771
+
772
+ sig { returns(String) }
773
+ def last_worker_identity
774
+ end
775
+
776
+ sig { params(value: String).void }
777
+ def last_worker_identity=(value)
778
+ end
779
+
780
+ sig { void }
781
+ def clear_last_worker_identity
782
+ end
783
+
784
+ # Time from the last attempt failure to the next activity retry.
785
+ # If the activity is currently running, this represents the next retry interval in case the attempt fails.
786
+ # If activity is currently backing off between attempt, this represents the current retry interval.
787
+ # If there is no next retry allowed, this field will be null.
788
+ # This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
789
+ # with a retryable application failure specifying a retry delay.
790
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
791
+ def current_retry_interval
792
+ end
793
+
794
+ # Time from the last attempt failure to the next activity retry.
795
+ # If the activity is currently running, this represents the next retry interval in case the attempt fails.
796
+ # If activity is currently backing off between attempt, this represents the current retry interval.
797
+ # If there is no next retry allowed, this field will be null.
798
+ # This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
799
+ # with a retryable application failure specifying a retry delay.
800
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
801
+ def current_retry_interval=(value)
802
+ end
803
+
804
+ # Time from the last attempt failure to the next activity retry.
805
+ # If the activity is currently running, this represents the next retry interval in case the attempt fails.
806
+ # If activity is currently backing off between attempt, this represents the current retry interval.
807
+ # If there is no next retry allowed, this field will be null.
808
+ # This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
809
+ # with a retryable application failure specifying a retry delay.
810
+ sig { void }
811
+ def clear_current_retry_interval
812
+ end
813
+
814
+ # The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
815
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
816
+ def last_attempt_complete_time
817
+ end
818
+
819
+ # The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
820
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
821
+ def last_attempt_complete_time=(value)
822
+ end
823
+
824
+ # The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
825
+ sig { void }
826
+ def clear_last_attempt_complete_time
827
+ end
828
+
829
+ # The time when the next activity attempt will be scheduled.
830
+ # If activity is currently scheduled or started, this field will be null.
831
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
832
+ def next_attempt_schedule_time
833
+ end
834
+
835
+ # The time when the next activity attempt will be scheduled.
836
+ # If activity is currently scheduled or started, this field will be null.
837
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
838
+ def next_attempt_schedule_time=(value)
839
+ end
840
+
841
+ # The time when the next activity attempt will be scheduled.
842
+ # If activity is currently scheduled or started, this field will be null.
843
+ sig { void }
844
+ def clear_next_attempt_schedule_time
845
+ end
846
+
847
+ # The Worker Deployment Version this activity was dispatched to most recently.
848
+ # If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
849
+ sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
850
+ def last_deployment_version
851
+ end
852
+
853
+ # The Worker Deployment Version this activity was dispatched to most recently.
854
+ # If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
855
+ sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
856
+ def last_deployment_version=(value)
857
+ end
858
+
859
+ # The Worker Deployment Version this activity was dispatched to most recently.
860
+ # If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
861
+ sig { void }
862
+ def clear_last_deployment_version
863
+ end
864
+
865
+ # Priority metadata.
866
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
867
+ def priority
868
+ end
869
+
870
+ # Priority metadata.
871
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
872
+ def priority=(value)
873
+ end
874
+
875
+ # Priority metadata.
876
+ sig { void }
877
+ def clear_priority
878
+ end
879
+
880
+ # Incremented each time the activity's state is mutated in persistence.
881
+ sig { returns(Integer) }
882
+ def state_transition_count
883
+ end
884
+
885
+ # Incremented each time the activity's state is mutated in persistence.
886
+ sig { params(value: Integer).void }
887
+ def state_transition_count=(value)
888
+ end
889
+
890
+ # Incremented each time the activity's state is mutated in persistence.
891
+ sig { void }
892
+ def clear_state_transition_count
893
+ end
894
+
895
+ # Updated once on scheduled and once on terminal status.
896
+ sig { returns(Integer) }
897
+ def state_size_bytes
898
+ end
899
+
900
+ # Updated once on scheduled and once on terminal status.
901
+ sig { params(value: Integer).void }
902
+ def state_size_bytes=(value)
903
+ end
904
+
905
+ # Updated once on scheduled and once on terminal status.
906
+ sig { void }
907
+ def clear_state_size_bytes
908
+ end
909
+
910
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
911
+ def search_attributes
912
+ end
913
+
914
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
915
+ def search_attributes=(value)
916
+ end
917
+
918
+ sig { void }
919
+ def clear_search_attributes
920
+ end
921
+
922
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Header)) }
923
+ def header
924
+ end
925
+
926
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Header)).void }
927
+ def header=(value)
928
+ end
929
+
930
+ sig { void }
931
+ def clear_header
932
+ end
933
+
934
+ # Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
935
+ sig { returns(T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)) }
936
+ def user_metadata
937
+ end
938
+
939
+ # Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
940
+ sig { params(value: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)).void }
941
+ def user_metadata=(value)
942
+ end
943
+
944
+ # Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
945
+ sig { void }
946
+ def clear_user_metadata
947
+ end
948
+
949
+ # Set if activity cancelation was requested.
950
+ sig { returns(String) }
951
+ def canceled_reason
952
+ end
953
+
954
+ # Set if activity cancelation was requested.
955
+ sig { params(value: String).void }
956
+ def canceled_reason=(value)
957
+ end
958
+
959
+ # Set if activity cancelation was requested.
960
+ sig { void }
961
+ def clear_canceled_reason
962
+ end
963
+
964
+ # Links to related entities, such as the entity that started this activity.
965
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]) }
966
+ def links
967
+ end
968
+
969
+ # Links to related entities, such as the entity that started this activity.
970
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
971
+ def links=(value)
972
+ end
973
+
974
+ # Links to related entities, such as the entity that started this activity.
975
+ sig { void }
976
+ def clear_links
977
+ end
978
+
979
+ # Total number of heartbeats recorded across all attempts of this activity, including retries.
980
+ sig { returns(Integer) }
981
+ def total_heartbeat_count
982
+ end
983
+
984
+ # Total number of heartbeats recorded across all attempts of this activity, including retries.
985
+ sig { params(value: Integer).void }
986
+ def total_heartbeat_count=(value)
987
+ end
988
+
989
+ # Total number of heartbeats recorded across all attempts of this activity, including retries.
990
+ sig { void }
991
+ def clear_total_heartbeat_count
992
+ end
993
+
994
+ # The name of the SDK of the worker that most recently picked up an attempt of this activity.
995
+ # Overwritten on each new attempt. Empty if unknown.
996
+ sig { returns(String) }
997
+ def sdk_name
998
+ end
999
+
1000
+ # The name of the SDK of the worker that most recently picked up an attempt of this activity.
1001
+ # Overwritten on each new attempt. Empty if unknown.
1002
+ sig { params(value: String).void }
1003
+ def sdk_name=(value)
1004
+ end
1005
+
1006
+ # The name of the SDK of the worker that most recently picked up an attempt of this activity.
1007
+ # Overwritten on each new attempt. Empty if unknown.
1008
+ sig { void }
1009
+ def clear_sdk_name
1010
+ end
1011
+
1012
+ # The version of the SDK of the worker that most recently picked up an attempt of this activity.
1013
+ # Overwritten on each new attempt. Empty if unknown.
1014
+ sig { returns(String) }
1015
+ def sdk_version
1016
+ end
1017
+
1018
+ # The version of the SDK of the worker that most recently picked up an attempt of this activity.
1019
+ # Overwritten on each new attempt. Empty if unknown.
1020
+ sig { params(value: String).void }
1021
+ def sdk_version=(value)
1022
+ end
1023
+
1024
+ # The version of the SDK of the worker that most recently picked up an attempt of this activity.
1025
+ # Overwritten on each new attempt. Empty if unknown.
1026
+ sig { void }
1027
+ def clear_sdk_version
1028
+ end
1029
+
1030
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
1031
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1032
+ def start_delay
1033
+ end
1034
+
1035
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
1036
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1037
+ def start_delay=(value)
1038
+ end
1039
+
1040
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
1041
+ sig { void }
1042
+ def clear_start_delay
1043
+ end
1044
+
1045
+ # The time at which the first activity task is made available for dispatch, computed as
1046
+ # `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
1047
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1048
+ def execution_time
1049
+ end
1050
+
1051
+ # The time at which the first activity task is made available for dispatch, computed as
1052
+ # `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
1053
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1054
+ def execution_time=(value)
1055
+ end
1056
+
1057
+ # The time at which the first activity task is made available for dispatch, computed as
1058
+ # `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
1059
+ sig { void }
1060
+ def clear_execution_time
1061
+ end
1062
+
1063
+ sig { params(field: String).returns(T.untyped) }
1064
+ def [](field)
1065
+ end
1066
+
1067
+ sig { params(field: String, value: T.untyped).void }
1068
+ def []=(field, value)
1069
+ end
1070
+
1071
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1072
+ def to_h
1073
+ end
1074
+
1075
+ sig { params(str: String).returns(Temporalio::Api::Activity::V1::ActivityExecutionInfo) }
1076
+ def self.decode(str)
1077
+ end
1078
+
1079
+ sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionInfo).returns(String) }
1080
+ def self.encode(msg)
1081
+ end
1082
+
1083
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::ActivityExecutionInfo) }
1084
+ def self.decode_json(str, **kw)
1085
+ end
1086
+
1087
+ sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionInfo, kw: T.untyped).returns(String) }
1088
+ def self.encode_json(msg, **kw)
1089
+ end
1090
+
1091
+ sig { returns(::Google::Protobuf::Descriptor) }
1092
+ def self.descriptor
1093
+ end
1094
+ end
1095
+
1096
+ # Limited activity information returned in the list response.
1097
+ # When adding fields here, ensure that it is also present in ActivityExecutionInfo (note that it
1098
+ # may already be present in ActivityExecutionInfo but not at the top-level).
1099
+ class Temporalio::Api::Activity::V1::ActivityExecutionListInfo
1100
+ include ::Google::Protobuf::MessageExts
1101
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1102
+
1103
+ sig do
1104
+ params(
1105
+ activity_id: T.nilable(String),
1106
+ run_id: T.nilable(String),
1107
+ activity_type: T.nilable(Temporalio::Api::Common::V1::ActivityType),
1108
+ schedule_time: T.nilable(Google::Protobuf::Timestamp),
1109
+ close_time: T.nilable(Google::Protobuf::Timestamp),
1110
+ status: T.nilable(T.any(Symbol, String, Integer)),
1111
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
1112
+ task_queue: T.nilable(String),
1113
+ state_transition_count: T.nilable(Integer),
1114
+ state_size_bytes: T.nilable(Integer),
1115
+ execution_duration: T.nilable(Google::Protobuf::Duration),
1116
+ execution_time: T.nilable(Google::Protobuf::Timestamp)
1117
+ ).void
1118
+ end
1119
+ def initialize(
1120
+ activity_id: "",
1121
+ run_id: "",
1122
+ activity_type: nil,
1123
+ schedule_time: nil,
1124
+ close_time: nil,
1125
+ status: :ACTIVITY_EXECUTION_STATUS_UNSPECIFIED,
1126
+ search_attributes: nil,
1127
+ task_queue: "",
1128
+ state_transition_count: 0,
1129
+ state_size_bytes: 0,
1130
+ execution_duration: nil,
1131
+ execution_time: nil
1132
+ )
1133
+ end
1134
+
1135
+ # A unique identifier of this activity within its namespace along with run ID (below).
1136
+ sig { returns(String) }
1137
+ def activity_id
1138
+ end
1139
+
1140
+ # A unique identifier of this activity within its namespace along with run ID (below).
1141
+ sig { params(value: String).void }
1142
+ def activity_id=(value)
1143
+ end
1144
+
1145
+ # A unique identifier of this activity within its namespace along with run ID (below).
1146
+ sig { void }
1147
+ def clear_activity_id
1148
+ end
1149
+
1150
+ # The run ID of the standalone activity.
1151
+ sig { returns(String) }
1152
+ def run_id
1153
+ end
1154
+
1155
+ # The run ID of the standalone activity.
1156
+ sig { params(value: String).void }
1157
+ def run_id=(value)
1158
+ end
1159
+
1160
+ # The run ID of the standalone activity.
1161
+ sig { void }
1162
+ def clear_run_id
1163
+ end
1164
+
1165
+ # The type of the activity, a string that maps to a registered activity on a worker.
1166
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::ActivityType)) }
1167
+ def activity_type
1168
+ end
1169
+
1170
+ # The type of the activity, a string that maps to a registered activity on a worker.
1171
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::ActivityType)).void }
1172
+ def activity_type=(value)
1173
+ end
1174
+
1175
+ # The type of the activity, a string that maps to a registered activity on a worker.
1176
+ sig { void }
1177
+ def clear_activity_type
1178
+ end
1179
+
1180
+ # Time the activity was originally scheduled via a StartActivityExecution request.
1181
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1182
+ def schedule_time
1183
+ end
1184
+
1185
+ # Time the activity was originally scheduled via a StartActivityExecution request.
1186
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1187
+ def schedule_time=(value)
1188
+ end
1189
+
1190
+ # Time the activity was originally scheduled via a StartActivityExecution request.
1191
+ sig { void }
1192
+ def clear_schedule_time
1193
+ end
1194
+
1195
+ # If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
1196
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1197
+ def close_time
1198
+ end
1199
+
1200
+ # If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
1201
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1202
+ def close_time=(value)
1203
+ end
1204
+
1205
+ # If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
1206
+ sig { void }
1207
+ def clear_close_time
1208
+ end
1209
+
1210
+ # Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
1211
+ # available in the list response.
1212
+ sig { returns(T.any(Symbol, Integer)) }
1213
+ def status
1214
+ end
1215
+
1216
+ # Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
1217
+ # available in the list response.
1218
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1219
+ def status=(value)
1220
+ end
1221
+
1222
+ # Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
1223
+ # available in the list response.
1224
+ sig { void }
1225
+ def clear_status
1226
+ end
1227
+
1228
+ # Search attributes from the start request.
1229
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
1230
+ def search_attributes
1231
+ end
1232
+
1233
+ # Search attributes from the start request.
1234
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
1235
+ def search_attributes=(value)
1236
+ end
1237
+
1238
+ # Search attributes from the start request.
1239
+ sig { void }
1240
+ def clear_search_attributes
1241
+ end
1242
+
1243
+ # The task queue this activity was scheduled on when it was originally started, updated on activity options update.
1244
+ sig { returns(String) }
1245
+ def task_queue
1246
+ end
1247
+
1248
+ # The task queue this activity was scheduled on when it was originally started, updated on activity options update.
1249
+ sig { params(value: String).void }
1250
+ def task_queue=(value)
1251
+ end
1252
+
1253
+ # The task queue this activity was scheduled on when it was originally started, updated on activity options update.
1254
+ sig { void }
1255
+ def clear_task_queue
1256
+ end
1257
+
1258
+ # Updated on terminal status.
1259
+ sig { returns(Integer) }
1260
+ def state_transition_count
1261
+ end
1262
+
1263
+ # Updated on terminal status.
1264
+ sig { params(value: Integer).void }
1265
+ def state_transition_count=(value)
1266
+ end
1267
+
1268
+ # Updated on terminal status.
1269
+ sig { void }
1270
+ def clear_state_transition_count
1271
+ end
1272
+
1273
+ # Updated once on scheduled and once on terminal status.
1274
+ sig { returns(Integer) }
1275
+ def state_size_bytes
1276
+ end
1277
+
1278
+ # Updated once on scheduled and once on terminal status.
1279
+ sig { params(value: Integer).void }
1280
+ def state_size_bytes=(value)
1281
+ end
1282
+
1283
+ # Updated once on scheduled and once on terminal status.
1284
+ sig { void }
1285
+ def clear_state_size_bytes
1286
+ end
1287
+
1288
+ # The difference between close time and scheduled time.
1289
+ # This field is only populated if the activity is closed.
1290
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1291
+ def execution_duration
1292
+ end
1293
+
1294
+ # The difference between close time and scheduled time.
1295
+ # This field is only populated if the activity is closed.
1296
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1297
+ def execution_duration=(value)
1298
+ end
1299
+
1300
+ # The difference between close time and scheduled time.
1301
+ # This field is only populated if the activity is closed.
1302
+ sig { void }
1303
+ def clear_execution_duration
1304
+ end
1305
+
1306
+ # The time at which the first activity task is made available for dispatch, computed as
1307
+ # `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
1308
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1309
+ def execution_time
1310
+ end
1311
+
1312
+ # The time at which the first activity task is made available for dispatch, computed as
1313
+ # `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
1314
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1315
+ def execution_time=(value)
1316
+ end
1317
+
1318
+ # The time at which the first activity task is made available for dispatch, computed as
1319
+ # `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
1320
+ sig { void }
1321
+ def clear_execution_time
1322
+ end
1323
+
1324
+ sig { params(field: String).returns(T.untyped) }
1325
+ def [](field)
1326
+ end
1327
+
1328
+ sig { params(field: String, value: T.untyped).void }
1329
+ def []=(field, value)
1330
+ end
1331
+
1332
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1333
+ def to_h
1334
+ end
1335
+
1336
+ sig { params(str: String).returns(Temporalio::Api::Activity::V1::ActivityExecutionListInfo) }
1337
+ def self.decode(str)
1338
+ end
1339
+
1340
+ sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionListInfo).returns(String) }
1341
+ def self.encode(msg)
1342
+ end
1343
+
1344
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::ActivityExecutionListInfo) }
1345
+ def self.decode_json(str, **kw)
1346
+ end
1347
+
1348
+ sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionListInfo, kw: T.untyped).returns(String) }
1349
+ def self.encode_json(msg, **kw)
1350
+ end
1351
+
1352
+ sig { returns(::Google::Protobuf::Descriptor) }
1353
+ def self.descriptor
1354
+ end
1355
+ end
1356
+
1357
+ # CallbackInfo contains the state of an attached activity callback.
1358
+ class Temporalio::Api::Activity::V1::CallbackInfo
1359
+ include ::Google::Protobuf::MessageExts
1360
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1361
+
1362
+ sig do
1363
+ params(
1364
+ trigger: T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::Trigger),
1365
+ info: T.nilable(Temporalio::Api::Callback::V1::CallbackInfo)
1366
+ ).void
1367
+ end
1368
+ def initialize(
1369
+ trigger: nil,
1370
+ info: nil
1371
+ )
1372
+ end
1373
+
1374
+ # Trigger for this callback.
1375
+ sig { returns(T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::Trigger)) }
1376
+ def trigger
1377
+ end
1378
+
1379
+ # Trigger for this callback.
1380
+ sig { params(value: T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::Trigger)).void }
1381
+ def trigger=(value)
1382
+ end
1383
+
1384
+ # Trigger for this callback.
1385
+ sig { void }
1386
+ def clear_trigger
1387
+ end
1388
+
1389
+ # Common callback info.
1390
+ sig { returns(T.nilable(Temporalio::Api::Callback::V1::CallbackInfo)) }
1391
+ def info
1392
+ end
1393
+
1394
+ # Common callback info.
1395
+ sig { params(value: T.nilable(Temporalio::Api::Callback::V1::CallbackInfo)).void }
1396
+ def info=(value)
1397
+ end
1398
+
1399
+ # Common callback info.
1400
+ sig { void }
1401
+ def clear_info
1402
+ end
1403
+
1404
+ sig { params(field: String).returns(T.untyped) }
1405
+ def [](field)
1406
+ end
1407
+
1408
+ sig { params(field: String, value: T.untyped).void }
1409
+ def []=(field, value)
1410
+ end
1411
+
1412
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1413
+ def to_h
1414
+ end
1415
+
1416
+ sig { params(str: String).returns(Temporalio::Api::Activity::V1::CallbackInfo) }
1417
+ def self.decode(str)
1418
+ end
1419
+
1420
+ sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo).returns(String) }
1421
+ def self.encode(msg)
1422
+ end
1423
+
1424
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::CallbackInfo) }
1425
+ def self.decode_json(str, **kw)
1426
+ end
1427
+
1428
+ sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo, kw: T.untyped).returns(String) }
1429
+ def self.encode_json(msg, **kw)
1430
+ end
1431
+
1432
+ sig { returns(::Google::Protobuf::Descriptor) }
1433
+ def self.descriptor
1434
+ end
1435
+ end
1436
+
1437
+ # Trigger for when the activity is closed.
1438
+ class Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed
1439
+ include ::Google::Protobuf::MessageExts
1440
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1441
+
1442
+ sig {void}
1443
+ def initialize; end
1444
+
1445
+ sig { params(field: String).returns(T.untyped) }
1446
+ def [](field)
1447
+ end
1448
+
1449
+ sig { params(field: String, value: T.untyped).void }
1450
+ def []=(field, value)
1451
+ end
1452
+
1453
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1454
+ def to_h
1455
+ end
1456
+
1457
+ sig { params(str: String).returns(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed) }
1458
+ def self.decode(str)
1459
+ end
1460
+
1461
+ sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed).returns(String) }
1462
+ def self.encode(msg)
1463
+ end
1464
+
1465
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed) }
1466
+ def self.decode_json(str, **kw)
1467
+ end
1468
+
1469
+ sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed, kw: T.untyped).returns(String) }
1470
+ def self.encode_json(msg, **kw)
1471
+ end
1472
+
1473
+ sig { returns(::Google::Protobuf::Descriptor) }
1474
+ def self.descriptor
1475
+ end
1476
+ end
1477
+
1478
+ class Temporalio::Api::Activity::V1::CallbackInfo::Trigger
1479
+ include ::Google::Protobuf::MessageExts
1480
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1481
+
1482
+ sig do
1483
+ params(
1484
+ activity_closed: T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed)
1485
+ ).void
1486
+ end
1487
+ def initialize(
1488
+ activity_closed: nil
1489
+ )
1490
+ end
1491
+
1492
+ sig { returns(T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed)) }
1493
+ def activity_closed
1494
+ end
1495
+
1496
+ sig { params(value: T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed)).void }
1497
+ def activity_closed=(value)
1498
+ end
1499
+
1500
+ sig { void }
1501
+ def clear_activity_closed
1502
+ end
1503
+
1504
+ sig { returns(T.nilable(Symbol)) }
1505
+ def variant
1506
+ end
1507
+
1508
+ sig { params(field: String).returns(T.untyped) }
1509
+ def [](field)
1510
+ end
1511
+
1512
+ sig { params(field: String, value: T.untyped).void }
1513
+ def []=(field, value)
1514
+ end
1515
+
1516
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1517
+ def to_h
1518
+ end
1519
+
1520
+ sig { params(str: String).returns(Temporalio::Api::Activity::V1::CallbackInfo::Trigger) }
1521
+ def self.decode(str)
1522
+ end
1523
+
1524
+ sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo::Trigger).returns(String) }
1525
+ def self.encode(msg)
1526
+ end
1527
+
1528
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::CallbackInfo::Trigger) }
1529
+ def self.decode_json(str, **kw)
1530
+ end
1531
+
1532
+ sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo::Trigger, kw: T.untyped).returns(String) }
1533
+ def self.encode_json(msg, **kw)
1534
+ end
1535
+
1536
+ sig { returns(::Google::Protobuf::Descriptor) }
1537
+ def self.descriptor
1538
+ end
1539
+ end