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,680 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # This RBS interface is provided for convenience, on a best-effort basis.
3
+ # The library is the definitive source for the API contract; if the RBS file
4
+ # and the library's behavior differ, the library behavior is authoritative.
5
+ # We welcome fixes to change the RBS file to match.
6
+ # source: temporal/api/batch/v1/message.proto
7
+
8
+ module Temporalio
9
+ module Api
10
+ module Batch
11
+ module V1
12
+ class BatchOperationInfo < ::Google::Protobuf::AbstractMessage
13
+
14
+ # Batch job ID
15
+ attr_reader job_id(): ::String
16
+ attr_writer job_id(): ::String | ::Symbol
17
+ def clear_job_id: () -> void
18
+
19
+ # Batch operation state
20
+ attr_reader state(): ::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Integer
21
+ attr_writer state(): ::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float
22
+ attr_reader state_const(): ::Integer
23
+ def clear_state: () -> void
24
+
25
+ # Batch operation start time
26
+ attr_reader start_time(): ::Google::Protobuf::Timestamp?
27
+ attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
28
+ def has_start_time?: () -> bool
29
+ def clear_start_time: () -> void
30
+
31
+ # Batch operation close time
32
+ attr_reader close_time(): ::Google::Protobuf::Timestamp?
33
+ attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)?
34
+ def has_close_time?: () -> bool
35
+ def clear_close_time: () -> void
36
+
37
+ # Operation type
38
+ attr_reader operation_type(): ::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Integer
39
+ attr_writer operation_type(): ::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float
40
+ attr_reader operation_type_const(): ::Integer
41
+ def clear_operation_type: () -> void
42
+
43
+ type init_map = {
44
+ job_id: (::String | ::Symbol)?,
45
+ "job_id" => (::String | ::Symbol)?,
46
+ state: (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float)?,
47
+ "state" => (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float)?,
48
+ start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
49
+ "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
50
+ close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
51
+ "close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
52
+ operation_type: (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float)?,
53
+ "operation_type" => (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float)?,
54
+ }
55
+
56
+ def initialize: (?init_map initial_value) -> void
57
+
58
+ def []:
59
+ ("job_id" name) -> ::String
60
+ | ("state" name) -> (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Integer)
61
+ | ("start_time" name) -> ::Google::Protobuf::Timestamp?
62
+ | ("close_time" name) -> ::Google::Protobuf::Timestamp?
63
+ | ("operation_type" name) -> (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Integer)
64
+
65
+ def []=:
66
+ ("job_id" name, (::String | ::Symbol) value) -> void
67
+ | ("state" name, (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float) value) -> void
68
+ | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
69
+ | ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
70
+ | ("operation_type" name, (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float) value) -> void
71
+ end
72
+
73
+ # BatchOperationTermination sends terminate requests to batch workflows.
74
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest.
75
+ # Ignore first_execution_run_id because this is used for single workflow operation.
76
+ class BatchOperationTermination < ::Google::Protobuf::AbstractMessage
77
+
78
+ # Serialized value(s) to provide to the termination event
79
+ attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads?
80
+ def has_details?: () -> bool
81
+ def clear_details: () -> void
82
+
83
+ # The identity of the worker/client
84
+ attr_reader identity(): ::String
85
+ attr_writer identity(): ::String | ::Symbol
86
+ def clear_identity: () -> void
87
+
88
+ type init_map = {
89
+ details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
90
+ "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
91
+ identity: (::String | ::Symbol)?,
92
+ "identity" => (::String | ::Symbol)?,
93
+ }
94
+
95
+ def initialize: (?init_map initial_value) -> void
96
+
97
+ def []:
98
+ ("details" name) -> ::Temporalio::Api::Common::V1::Payloads?
99
+ | ("identity" name) -> ::String
100
+
101
+ def []=:
102
+ ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void
103
+ | ("identity" name, (::String | ::Symbol) value) -> void
104
+ end
105
+
106
+ # BatchOperationTerminateActivities sends terminate requests to a batch of activities.
107
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.TerminateActivityExecutionRequest.
108
+ class BatchOperationTerminateActivities < ::Google::Protobuf::AbstractMessage
109
+
110
+ # The identity of the worker/client
111
+ attr_reader identity(): ::String
112
+ attr_writer identity(): ::String | ::Symbol
113
+ def clear_identity: () -> void
114
+
115
+ # Reason for requesting the termination, recorded and available via the PollActivityExecution API.
116
+ # Not propagated to a worker if an activity attempt is currently running.
117
+ attr_reader reason(): ::String
118
+ attr_writer reason(): ::String | ::Symbol
119
+ def clear_reason: () -> void
120
+
121
+ type init_map = {
122
+ identity: (::String | ::Symbol)?,
123
+ "identity" => (::String | ::Symbol)?,
124
+ reason: (::String | ::Symbol)?,
125
+ "reason" => (::String | ::Symbol)?,
126
+ }
127
+
128
+ def initialize: (?init_map initial_value) -> void
129
+
130
+ def []:
131
+ ("identity" name) -> ::String
132
+ | ("reason" name) -> ::String
133
+
134
+ def []=:
135
+ ("identity" name, (::String | ::Symbol) value) -> void
136
+ | ("reason" name, (::String | ::Symbol) value) -> void
137
+ end
138
+
139
+ # BatchOperationSignal sends signals to batch workflows.
140
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.
141
+ class BatchOperationSignal < ::Google::Protobuf::AbstractMessage
142
+
143
+ # The workflow author-defined name of the signal to send to the workflow
144
+ attr_reader signal(): ::String
145
+ attr_writer signal(): ::String | ::Symbol
146
+ def clear_signal: () -> void
147
+
148
+ # Serialized value(s) to provide with the signal
149
+ attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads?
150
+ def has_input?: () -> bool
151
+ def clear_input: () -> void
152
+
153
+ # Headers that are passed with the signal to the processing workflow.
154
+ # These can include things like auth or tracing tokens.
155
+ attr_accessor header(): ::Temporalio::Api::Common::V1::Header?
156
+ def has_header?: () -> bool
157
+ def clear_header: () -> void
158
+
159
+ # The identity of the worker/client
160
+ attr_reader identity(): ::String
161
+ attr_writer identity(): ::String | ::Symbol
162
+ def clear_identity: () -> void
163
+
164
+ type init_map = {
165
+ signal: (::String | ::Symbol)?,
166
+ "signal" => (::String | ::Symbol)?,
167
+ input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
168
+ "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
169
+ header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?,
170
+ "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?,
171
+ identity: (::String | ::Symbol)?,
172
+ "identity" => (::String | ::Symbol)?,
173
+ }
174
+
175
+ def initialize: (?init_map initial_value) -> void
176
+
177
+ def []:
178
+ ("signal" name) -> ::String
179
+ | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads?
180
+ | ("header" name) -> ::Temporalio::Api::Common::V1::Header?
181
+ | ("identity" name) -> ::String
182
+
183
+ def []=:
184
+ ("signal" name, (::String | ::Symbol) value) -> void
185
+ | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void
186
+ | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void
187
+ | ("identity" name, (::String | ::Symbol) value) -> void
188
+ end
189
+
190
+ # BatchOperationCancellation sends cancel requests to batch workflows.
191
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest.
192
+ # Ignore first_execution_run_id because this is used for single workflow operation.
193
+ class BatchOperationCancellation < ::Google::Protobuf::AbstractMessage
194
+
195
+ # The identity of the worker/client
196
+ attr_reader identity(): ::String
197
+ attr_writer identity(): ::String | ::Symbol
198
+ def clear_identity: () -> void
199
+
200
+ type init_map = {
201
+ identity: (::String | ::Symbol)?,
202
+ "identity" => (::String | ::Symbol)?,
203
+ }
204
+
205
+ def initialize: (?init_map initial_value) -> void
206
+
207
+ def []:
208
+ ("identity" name) -> ::String
209
+
210
+ def []=:
211
+ ("identity" name, (::String | ::Symbol) value) -> void
212
+ end
213
+
214
+ # BatchOperationCancelActivities sends cancel requests to a batch of activities.
215
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest.
216
+ class BatchOperationCancelActivities < ::Google::Protobuf::AbstractMessage
217
+
218
+ # The identity of the worker/client
219
+ attr_reader identity(): ::String
220
+ attr_writer identity(): ::String | ::Symbol
221
+ def clear_identity: () -> void
222
+
223
+ # Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
224
+ # Not propagated to a worker if an activity attempt is currently running.
225
+ attr_reader reason(): ::String
226
+ attr_writer reason(): ::String | ::Symbol
227
+ def clear_reason: () -> void
228
+
229
+ type init_map = {
230
+ identity: (::String | ::Symbol)?,
231
+ "identity" => (::String | ::Symbol)?,
232
+ reason: (::String | ::Symbol)?,
233
+ "reason" => (::String | ::Symbol)?,
234
+ }
235
+
236
+ def initialize: (?init_map initial_value) -> void
237
+
238
+ def []:
239
+ ("identity" name) -> ::String
240
+ | ("reason" name) -> ::String
241
+
242
+ def []=:
243
+ ("identity" name, (::String | ::Symbol) value) -> void
244
+ | ("reason" name, (::String | ::Symbol) value) -> void
245
+ end
246
+
247
+ # BatchOperationDeletion sends deletion requests to batch workflows.
248
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest.
249
+ class BatchOperationDeletion < ::Google::Protobuf::AbstractMessage
250
+
251
+ # The identity of the worker/client
252
+ attr_reader identity(): ::String
253
+ attr_writer identity(): ::String | ::Symbol
254
+ def clear_identity: () -> void
255
+
256
+ type init_map = {
257
+ identity: (::String | ::Symbol)?,
258
+ "identity" => (::String | ::Symbol)?,
259
+ }
260
+
261
+ def initialize: (?init_map initial_value) -> void
262
+
263
+ def []:
264
+ ("identity" name) -> ::String
265
+
266
+ def []=:
267
+ ("identity" name, (::String | ::Symbol) value) -> void
268
+ end
269
+
270
+ # BatchOperationDeleteActivities sends deletion requests to a batch of activities.
271
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteActivityExecutionRequest.
272
+ class BatchOperationDeleteActivities < ::Google::Protobuf::AbstractMessage
273
+
274
+ type init_map = {
275
+ }
276
+
277
+ def initialize: (?init_map initial_value) -> void
278
+ end
279
+
280
+ # BatchOperationReset sends reset requests to batch workflows.
281
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.
282
+ class BatchOperationReset < ::Google::Protobuf::AbstractMessage
283
+
284
+ # The identity of the worker/client.
285
+ attr_reader identity(): ::String
286
+ attr_writer identity(): ::String | ::Symbol
287
+ def clear_identity: () -> void
288
+
289
+ # Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
290
+ attr_accessor options(): ::Temporalio::Api::Common::V1::ResetOptions?
291
+ def has_options?: () -> bool
292
+ def clear_options: () -> void
293
+
294
+ # Deprecated. Use `options`.
295
+ # @deprecated
296
+ attr_reader reset_type(): ::Temporalio::Api::Enums::V1::ResetType::names | ::Integer
297
+ attr_writer reset_type(): ::Temporalio::Api::Enums::V1::ResetType::names | ::Temporalio::Api::Enums::V1::ResetType::strings | ::Integer | ::Float
298
+ attr_reader reset_type_const(): ::Integer
299
+ def clear_reset_type: () -> void
300
+
301
+ # Deprecated. Use `options`.
302
+ # @deprecated
303
+ attr_reader reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer
304
+ attr_writer reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float
305
+ attr_reader reset_reapply_type_const(): ::Integer
306
+ def clear_reset_reapply_type: () -> void
307
+
308
+ # Operations to perform after the workflow has been reset. These operations will be applied
309
+ # to the *new* run of the workflow execution in the order they are provided.
310
+ # All operations are applied to the workflow before the first new workflow task is generated
311
+ attr_accessor post_reset_operations(): ::Google::Protobuf::RepeatedField
312
+ def clear_post_reset_operations: () -> void
313
+
314
+ type init_map = {
315
+ identity: (::String | ::Symbol)?,
316
+ "identity" => (::String | ::Symbol)?,
317
+ options: (::Temporalio::Api::Common::V1::ResetOptions | ::Temporalio::Api::Common::V1::ResetOptions::init_map)?,
318
+ "options" => (::Temporalio::Api::Common::V1::ResetOptions | ::Temporalio::Api::Common::V1::ResetOptions::init_map)?,
319
+ reset_type: (::Temporalio::Api::Enums::V1::ResetType::names | ::Temporalio::Api::Enums::V1::ResetType::strings | ::Integer | ::Float)?,
320
+ "reset_type" => (::Temporalio::Api::Enums::V1::ResetType::names | ::Temporalio::Api::Enums::V1::ResetType::strings | ::Integer | ::Float)?,
321
+ reset_reapply_type: (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?,
322
+ "reset_reapply_type" => (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?,
323
+ post_reset_operations: ::Array[::Temporalio::Api::Workflow::V1::PostResetOperation]?,
324
+ "post_reset_operations" => ::Array[::Temporalio::Api::Workflow::V1::PostResetOperation]?,
325
+ }
326
+
327
+ def initialize: (?init_map initial_value) -> void
328
+
329
+ def []:
330
+ ("identity" name) -> ::String
331
+ | ("options" name) -> ::Temporalio::Api::Common::V1::ResetOptions?
332
+ | ("reset_type" name) -> (::Temporalio::Api::Enums::V1::ResetType::names | ::Integer)
333
+ | ("reset_reapply_type" name) -> (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer)
334
+ | ("post_reset_operations" name) -> ::Google::Protobuf::RepeatedField
335
+
336
+ def []=:
337
+ ("identity" name, (::String | ::Symbol) value) -> void
338
+ | ("options" name, ::Temporalio::Api::Common::V1::ResetOptions? value) -> void
339
+ | ("reset_type" name, (::Temporalio::Api::Enums::V1::ResetType::names | ::Temporalio::Api::Enums::V1::ResetType::strings | ::Integer | ::Float) value) -> void
340
+ | ("reset_reapply_type" name, (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float) value) -> void
341
+ | ("post_reset_operations" name, ::Google::Protobuf::RepeatedField value) -> void
342
+ end
343
+
344
+ # BatchOperationUpdateWorkflowExecutionOptions sends UpdateWorkflowExecutionOptions requests to batch workflows.
345
+ # Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest.
346
+ class BatchOperationUpdateWorkflowExecutionOptions < ::Google::Protobuf::AbstractMessage
347
+
348
+ # The identity of the worker/client.
349
+ attr_reader identity(): ::String
350
+ attr_writer identity(): ::String | ::Symbol
351
+ def clear_identity: () -> void
352
+
353
+ # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.
354
+ attr_accessor workflow_execution_options(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions?
355
+ def has_workflow_execution_options?: () -> bool
356
+ def clear_workflow_execution_options: () -> void
357
+
358
+ # Controls which fields from `workflow_execution_options` will be applied.
359
+ # To unset a field, set it to null and use the update mask to indicate that it should be mutated.
360
+ attr_accessor update_mask(): ::Google::Protobuf::FieldMask?
361
+ def has_update_mask?: () -> bool
362
+ def clear_update_mask: () -> void
363
+
364
+ type init_map = {
365
+ identity: (::String | ::Symbol)?,
366
+ "identity" => (::String | ::Symbol)?,
367
+ workflow_execution_options: (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?,
368
+ "workflow_execution_options" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?,
369
+ update_mask: (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?,
370
+ "update_mask" => (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?,
371
+ }
372
+
373
+ def initialize: (?init_map initial_value) -> void
374
+
375
+ def []:
376
+ ("identity" name) -> ::String
377
+ | ("workflow_execution_options" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions?
378
+ | ("update_mask" name) -> ::Google::Protobuf::FieldMask?
379
+
380
+ def []=:
381
+ ("identity" name, (::String | ::Symbol) value) -> void
382
+ | ("workflow_execution_options" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? value) -> void
383
+ | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void
384
+ end
385
+
386
+ # BatchOperationUnpauseActivities sends unpause requests to batch workflows.
387
+ class BatchOperationUnpauseActivities < ::Google::Protobuf::AbstractMessage
388
+
389
+ # The identity of the worker/client.
390
+ attr_reader identity(): ::String
391
+ attr_writer identity(): ::String | ::Symbol
392
+ def clear_identity: () -> void
393
+
394
+ attr_reader type(): ::String
395
+ attr_writer type(): (::String | ::Symbol)?
396
+ def has_type?: () -> bool
397
+ def clear_type: () -> void
398
+
399
+ attr_reader match_all(): bool
400
+ attr_writer match_all(): bool?
401
+ def has_match_all?: () -> bool
402
+ def clear_match_all: () -> void
403
+
404
+ # Setting this flag will also reset the number of attempts.
405
+ attr_accessor reset_attempts(): bool
406
+ def clear_reset_attempts: () -> void
407
+
408
+ # Setting this flag will also reset the heartbeat details.
409
+ attr_accessor reset_heartbeat(): bool
410
+ def clear_reset_heartbeat: () -> void
411
+
412
+ # If set, the activity will start at a random time within the specified jitter
413
+ # duration, introducing variability to the start time.
414
+ attr_reader jitter(): ::Google::Protobuf::Duration?
415
+ attr_writer jitter(): (::Google::Protobuf::Duration | ::int)?
416
+ def has_jitter?: () -> bool
417
+ def clear_jitter: () -> void
418
+
419
+ # The activity to unpause. If match_all is set to true, all activities will be unpaused.
420
+ attr_reader activity(): (::String | bool)?
421
+ def has_activity?: () -> bool
422
+ def clear_activity: () -> void
423
+
424
+ type init_map = {
425
+ identity: (::String | ::Symbol)?,
426
+ "identity" => (::String | ::Symbol)?,
427
+ type: (::String | ::Symbol)?,
428
+ "type" => (::String | ::Symbol)?,
429
+ match_all: bool?,
430
+ "match_all" => bool?,
431
+ reset_attempts: bool?,
432
+ "reset_attempts" => bool?,
433
+ reset_heartbeat: bool?,
434
+ "reset_heartbeat" => bool?,
435
+ jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
436
+ "jitter" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
437
+ }
438
+
439
+ def initialize: (?init_map initial_value) -> void
440
+
441
+ def []:
442
+ ("identity" name) -> ::String
443
+ | ("type" name) -> ::String
444
+ | ("match_all" name) -> bool
445
+ | ("reset_attempts" name) -> bool
446
+ | ("reset_heartbeat" name) -> bool
447
+ | ("jitter" name) -> ::Google::Protobuf::Duration?
448
+
449
+ def []=:
450
+ ("identity" name, (::String | ::Symbol) value) -> void
451
+ | ("type" name, ((::String | ::Symbol)?) value) -> void
452
+ | ("match_all" name, bool? value) -> void
453
+ | ("reset_attempts" name, bool value) -> void
454
+ | ("reset_heartbeat" name, bool value) -> void
455
+ | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
456
+ end
457
+
458
+ # BatchOperationTriggerWorkflowRule sends TriggerWorkflowRule requests to batch workflows.
459
+ class BatchOperationTriggerWorkflowRule < ::Google::Protobuf::AbstractMessage
460
+
461
+ # The identity of the worker/client.
462
+ attr_reader identity(): ::String
463
+ attr_writer identity(): ::String | ::Symbol
464
+ def clear_identity: () -> void
465
+
466
+ # ID of existing rule.
467
+ attr_reader id(): ::String
468
+ attr_writer id(): (::String | ::Symbol)?
469
+ def has_id?: () -> bool
470
+ def clear_id: () -> void
471
+
472
+ # Rule specification to be applied to the workflow without creating a new rule.
473
+ attr_accessor spec(): ::Temporalio::Api::Rules::V1::WorkflowRuleSpec?
474
+ def has_spec?: () -> bool
475
+ def clear_spec: () -> void
476
+
477
+ attr_reader rule(): (::String | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec)?
478
+ def has_rule?: () -> bool
479
+ def clear_rule: () -> void
480
+
481
+ type init_map = {
482
+ identity: (::String | ::Symbol)?,
483
+ "identity" => (::String | ::Symbol)?,
484
+ id: (::String | ::Symbol)?,
485
+ "id" => (::String | ::Symbol)?,
486
+ spec: (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?,
487
+ "spec" => (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?,
488
+ }
489
+
490
+ def initialize: (?init_map initial_value) -> void
491
+
492
+ def []:
493
+ ("identity" name) -> ::String
494
+ | ("id" name) -> ::String
495
+ | ("spec" name) -> ::Temporalio::Api::Rules::V1::WorkflowRuleSpec?
496
+
497
+ def []=:
498
+ ("identity" name, (::String | ::Symbol) value) -> void
499
+ | ("id" name, ((::String | ::Symbol)?) value) -> void
500
+ | ("spec" name, ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? value) -> void
501
+ end
502
+
503
+ # BatchOperationResetActivities sends activity reset requests in a batch.
504
+ # NOTE: keep in sync with temporal.api.workflowservice.v1.ResetActivityRequest
505
+ class BatchOperationResetActivities < ::Google::Protobuf::AbstractMessage
506
+
507
+ # The identity of the worker/client.
508
+ attr_reader identity(): ::String
509
+ attr_writer identity(): ::String | ::Symbol
510
+ def clear_identity: () -> void
511
+
512
+ attr_reader type(): ::String
513
+ attr_writer type(): (::String | ::Symbol)?
514
+ def has_type?: () -> bool
515
+ def clear_type: () -> void
516
+
517
+ attr_reader match_all(): bool
518
+ attr_writer match_all(): bool?
519
+ def has_match_all?: () -> bool
520
+ def clear_match_all: () -> void
521
+
522
+ # Setting this flag will also reset the number of attempts.
523
+ attr_accessor reset_attempts(): bool
524
+ def clear_reset_attempts: () -> void
525
+
526
+ # Setting this flag will also reset the heartbeat details.
527
+ attr_accessor reset_heartbeat(): bool
528
+ def clear_reset_heartbeat: () -> void
529
+
530
+ # If activity is paused, it will remain paused after reset
531
+ attr_accessor keep_paused(): bool
532
+ def clear_keep_paused: () -> void
533
+
534
+ # If set, the activity will start at a random time within the specified jitter
535
+ # duration, introducing variability to the start time.
536
+ attr_reader jitter(): ::Google::Protobuf::Duration?
537
+ attr_writer jitter(): (::Google::Protobuf::Duration | ::int)?
538
+ def has_jitter?: () -> bool
539
+ def clear_jitter: () -> void
540
+
541
+ # If set, the activity options will be restored to the defaults.
542
+ # Default options are then options activity was created with.
543
+ # They are part of the first ActivityTaskScheduled event.
544
+ attr_accessor restore_original_options(): bool
545
+ def clear_restore_original_options: () -> void
546
+
547
+ # The activities to reset. If match_all is set to true, all activities will be reset.
548
+ attr_reader activity(): (::String | bool)?
549
+ def has_activity?: () -> bool
550
+ def clear_activity: () -> void
551
+
552
+ type init_map = {
553
+ identity: (::String | ::Symbol)?,
554
+ "identity" => (::String | ::Symbol)?,
555
+ type: (::String | ::Symbol)?,
556
+ "type" => (::String | ::Symbol)?,
557
+ match_all: bool?,
558
+ "match_all" => bool?,
559
+ reset_attempts: bool?,
560
+ "reset_attempts" => bool?,
561
+ reset_heartbeat: bool?,
562
+ "reset_heartbeat" => bool?,
563
+ keep_paused: bool?,
564
+ "keep_paused" => bool?,
565
+ jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
566
+ "jitter" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
567
+ restore_original_options: bool?,
568
+ "restore_original_options" => bool?,
569
+ }
570
+
571
+ def initialize: (?init_map initial_value) -> void
572
+
573
+ def []:
574
+ ("identity" name) -> ::String
575
+ | ("type" name) -> ::String
576
+ | ("match_all" name) -> bool
577
+ | ("reset_attempts" name) -> bool
578
+ | ("reset_heartbeat" name) -> bool
579
+ | ("keep_paused" name) -> bool
580
+ | ("jitter" name) -> ::Google::Protobuf::Duration?
581
+ | ("restore_original_options" name) -> bool
582
+
583
+ def []=:
584
+ ("identity" name, (::String | ::Symbol) value) -> void
585
+ | ("type" name, ((::String | ::Symbol)?) value) -> void
586
+ | ("match_all" name, bool? value) -> void
587
+ | ("reset_attempts" name, bool value) -> void
588
+ | ("reset_heartbeat" name, bool value) -> void
589
+ | ("keep_paused" name, bool value) -> void
590
+ | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
591
+ | ("restore_original_options" name, bool value) -> void
592
+ end
593
+
594
+ # BatchOperationUpdateActivityOptions sends an update-activity-options requests in a batch.
595
+ # NOTE: keep in sync with temporal.api.workflowservice.v1.UpdateActivityRequest
596
+ class BatchOperationUpdateActivityOptions < ::Google::Protobuf::AbstractMessage
597
+
598
+ # The identity of the worker/client.
599
+ attr_reader identity(): ::String
600
+ attr_writer identity(): ::String | ::Symbol
601
+ def clear_identity: () -> void
602
+
603
+ attr_reader type(): ::String
604
+ attr_writer type(): (::String | ::Symbol)?
605
+ def has_type?: () -> bool
606
+ def clear_type: () -> void
607
+
608
+ attr_reader match_all(): bool
609
+ attr_writer match_all(): bool?
610
+ def has_match_all?: () -> bool
611
+ def clear_match_all: () -> void
612
+
613
+ # Update Activity options. Partial updates are accepted and controlled by update_mask.
614
+ attr_accessor activity_options(): ::Temporalio::Api::Activity::V1::ActivityOptions?
615
+ def has_activity_options?: () -> bool
616
+ def clear_activity_options: () -> void
617
+
618
+ # Controls which fields from `activity_options` will be applied
619
+ attr_accessor update_mask(): ::Google::Protobuf::FieldMask?
620
+ def has_update_mask?: () -> bool
621
+ def clear_update_mask: () -> void
622
+
623
+ # If set, the activity options will be restored to the default.
624
+ # Default options are then options activity was created with.
625
+ # They are part of the first ActivityTaskScheduled event.
626
+ # This flag cannot be combined with any other option; if you supply
627
+ # restore_original together with other options, the request will be rejected.
628
+ attr_accessor restore_original(): bool
629
+ def clear_restore_original: () -> void
630
+
631
+ # The activity to update. If match_all is set to true, all activities will be updated.
632
+ attr_reader activity(): (::String | bool)?
633
+ def has_activity?: () -> bool
634
+ def clear_activity: () -> void
635
+
636
+ type init_map = {
637
+ identity: (::String | ::Symbol)?,
638
+ "identity" => (::String | ::Symbol)?,
639
+ type: (::String | ::Symbol)?,
640
+ "type" => (::String | ::Symbol)?,
641
+ match_all: bool?,
642
+ "match_all" => bool?,
643
+ activity_options: (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?,
644
+ "activity_options" => (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?,
645
+ update_mask: (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?,
646
+ "update_mask" => (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?,
647
+ restore_original: bool?,
648
+ "restore_original" => bool?,
649
+ }
650
+
651
+ def initialize: (?init_map initial_value) -> void
652
+
653
+ def []:
654
+ ("identity" name) -> ::String
655
+ | ("type" name) -> ::String
656
+ | ("match_all" name) -> bool
657
+ | ("activity_options" name) -> ::Temporalio::Api::Activity::V1::ActivityOptions?
658
+ | ("update_mask" name) -> ::Google::Protobuf::FieldMask?
659
+ | ("restore_original" name) -> bool
660
+
661
+ def []=:
662
+ ("identity" name, (::String | ::Symbol) value) -> void
663
+ | ("type" name, ((::String | ::Symbol)?) value) -> void
664
+ | ("match_all" name, bool? value) -> void
665
+ | ("activity_options" name, ::Temporalio::Api::Activity::V1::ActivityOptions? value) -> void
666
+ | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void
667
+ | ("restore_original" name, bool value) -> void
668
+ end
669
+ end
670
+ end
671
+ end
672
+ end
673
+
674
+ module Google
675
+ module Protobuf
676
+ class DescriptorPool
677
+ def lookup: (::String name) -> ::Google::Protobuf::Descriptor
678
+ end
679
+ end
680
+ end