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,1126 @@
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/worker/v1/message.proto
7
+
8
+ module Temporalio
9
+ module Api
10
+ module Worker
11
+ module V1
12
+ class WorkerPollerInfo < ::Google::Protobuf::AbstractMessage
13
+
14
+ # Number of polling RPCs that are currently in flight.
15
+ attr_reader current_pollers(): ::Integer
16
+ attr_writer current_pollers(): ::Integer | ::Float
17
+ def clear_current_pollers: () -> void
18
+
19
+ attr_reader last_successful_poll_time(): ::Google::Protobuf::Timestamp?
20
+ attr_writer last_successful_poll_time(): (::Google::Protobuf::Timestamp | ::Time)?
21
+ def has_last_successful_poll_time?: () -> bool
22
+ def clear_last_successful_poll_time: () -> void
23
+
24
+ # Set true if the number of concurrent pollers is auto-scaled
25
+ attr_accessor is_autoscaling(): bool
26
+ def clear_is_autoscaling: () -> void
27
+
28
+ type init_map = {
29
+ current_pollers: (::Integer | ::Float)?,
30
+ "current_pollers" => (::Integer | ::Float)?,
31
+ last_successful_poll_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
32
+ "last_successful_poll_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
33
+ is_autoscaling: bool?,
34
+ "is_autoscaling" => bool?,
35
+ }
36
+
37
+ def initialize: (?init_map initial_value) -> void
38
+
39
+ def []:
40
+ ("current_pollers" name) -> ::Integer
41
+ | ("last_successful_poll_time" name) -> ::Google::Protobuf::Timestamp?
42
+ | ("is_autoscaling" name) -> bool
43
+
44
+ def []=:
45
+ ("current_pollers" name, (::Integer | ::Float) value) -> void
46
+ | ("last_successful_poll_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
47
+ | ("is_autoscaling" name, bool value) -> void
48
+ end
49
+
50
+ class WorkerSlotsInfo < ::Google::Protobuf::AbstractMessage
51
+
52
+ # Number of slots available for the worker to specific tasks.
53
+ # May be -1 if the upper bound is not known.
54
+ attr_reader current_available_slots(): ::Integer
55
+ attr_writer current_available_slots(): ::Integer | ::Float
56
+ def clear_current_available_slots: () -> void
57
+
58
+ # Number of slots used by the worker for specific tasks.
59
+ attr_reader current_used_slots(): ::Integer
60
+ attr_writer current_used_slots(): ::Integer | ::Float
61
+ def clear_current_used_slots: () -> void
62
+
63
+ # Kind of the slot supplier, which is used to determine how the slots are allocated.
64
+ # Possible values: "Fixed | ResourceBased | Custom String"
65
+ attr_reader slot_supplier_kind(): ::String
66
+ attr_writer slot_supplier_kind(): ::String | ::Symbol
67
+ def clear_slot_supplier_kind: () -> void
68
+
69
+ # Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
70
+ # by the worker since the worker started. This is a cumulative counter.
71
+ attr_reader total_processed_tasks(): ::Integer
72
+ attr_writer total_processed_tasks(): ::Integer | ::Float
73
+ def clear_total_processed_tasks: () -> void
74
+
75
+ # Total number of failed tasks processed by the worker so far.
76
+ attr_reader total_failed_tasks(): ::Integer
77
+ attr_writer total_failed_tasks(): ::Integer | ::Float
78
+ def clear_total_failed_tasks: () -> void
79
+
80
+ # Number of tasks processed in since the last heartbeat from the worker.
81
+ # This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
82
+ # Contains both successful and failed tasks.
83
+ attr_reader last_interval_processed_tasks(): ::Integer
84
+ attr_writer last_interval_processed_tasks(): ::Integer | ::Float
85
+ def clear_last_interval_processed_tasks: () -> void
86
+
87
+ # Number of failed tasks processed since the last heartbeat from the worker.
88
+ attr_reader last_interval_failure_tasks(): ::Integer
89
+ attr_writer last_interval_failure_tasks(): ::Integer | ::Float
90
+ def clear_last_interval_failure_tasks: () -> void
91
+
92
+ type init_map = {
93
+ current_available_slots: (::Integer | ::Float)?,
94
+ "current_available_slots" => (::Integer | ::Float)?,
95
+ current_used_slots: (::Integer | ::Float)?,
96
+ "current_used_slots" => (::Integer | ::Float)?,
97
+ slot_supplier_kind: (::String | ::Symbol)?,
98
+ "slot_supplier_kind" => (::String | ::Symbol)?,
99
+ total_processed_tasks: (::Integer | ::Float)?,
100
+ "total_processed_tasks" => (::Integer | ::Float)?,
101
+ total_failed_tasks: (::Integer | ::Float)?,
102
+ "total_failed_tasks" => (::Integer | ::Float)?,
103
+ last_interval_processed_tasks: (::Integer | ::Float)?,
104
+ "last_interval_processed_tasks" => (::Integer | ::Float)?,
105
+ last_interval_failure_tasks: (::Integer | ::Float)?,
106
+ "last_interval_failure_tasks" => (::Integer | ::Float)?,
107
+ }
108
+
109
+ def initialize: (?init_map initial_value) -> void
110
+
111
+ def []:
112
+ ("current_available_slots" name) -> ::Integer
113
+ | ("current_used_slots" name) -> ::Integer
114
+ | ("slot_supplier_kind" name) -> ::String
115
+ | ("total_processed_tasks" name) -> ::Integer
116
+ | ("total_failed_tasks" name) -> ::Integer
117
+ | ("last_interval_processed_tasks" name) -> ::Integer
118
+ | ("last_interval_failure_tasks" name) -> ::Integer
119
+
120
+ def []=:
121
+ ("current_available_slots" name, (::Integer | ::Float) value) -> void
122
+ | ("current_used_slots" name, (::Integer | ::Float) value) -> void
123
+ | ("slot_supplier_kind" name, (::String | ::Symbol) value) -> void
124
+ | ("total_processed_tasks" name, (::Integer | ::Float) value) -> void
125
+ | ("total_failed_tasks" name, (::Integer | ::Float) value) -> void
126
+ | ("last_interval_processed_tasks" name, (::Integer | ::Float) value) -> void
127
+ | ("last_interval_failure_tasks" name, (::Integer | ::Float) value) -> void
128
+ end
129
+
130
+ # Holds everything needed to identify the worker host/process context
131
+ class WorkerHostInfo < ::Google::Protobuf::AbstractMessage
132
+
133
+ # Worker host identifier.
134
+ attr_reader host_name(): ::String
135
+ attr_writer host_name(): ::String | ::Symbol
136
+ def clear_host_name: () -> void
137
+
138
+ # Worker grouping identifier. A key to group workers that share the same client+namespace+process.
139
+ # This will be used to build the worker command nexus task queue name:
140
+ # "temporal-sys/worker-commands/{worker_grouping_key}"
141
+ attr_reader worker_grouping_key(): ::String
142
+ attr_writer worker_grouping_key(): ::String | ::Symbol
143
+ def clear_worker_grouping_key: () -> void
144
+
145
+ # Worker process identifier. This id only needs to be unique
146
+ # within one host (so using e.g. a unix pid would be appropriate).
147
+ attr_reader process_id(): ::String
148
+ attr_writer process_id(): ::String | ::Symbol
149
+ def clear_process_id: () -> void
150
+
151
+ # System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
152
+ # cores on the host pegged.
153
+ attr_reader current_host_cpu_usage(): ::Float
154
+ attr_writer current_host_cpu_usage(): ::Float | ::Integer
155
+ def clear_current_host_cpu_usage: () -> void
156
+
157
+ # System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
158
+ # all available memory on the host is used.
159
+ attr_reader current_host_mem_usage(): ::Float
160
+ attr_writer current_host_mem_usage(): ::Float | ::Integer
161
+ def clear_current_host_mem_usage: () -> void
162
+
163
+ type init_map = {
164
+ host_name: (::String | ::Symbol)?,
165
+ "host_name" => (::String | ::Symbol)?,
166
+ worker_grouping_key: (::String | ::Symbol)?,
167
+ "worker_grouping_key" => (::String | ::Symbol)?,
168
+ process_id: (::String | ::Symbol)?,
169
+ "process_id" => (::String | ::Symbol)?,
170
+ current_host_cpu_usage: (::Float | ::Integer)?,
171
+ "current_host_cpu_usage" => (::Float | ::Integer)?,
172
+ current_host_mem_usage: (::Float | ::Integer)?,
173
+ "current_host_mem_usage" => (::Float | ::Integer)?,
174
+ }
175
+
176
+ def initialize: (?init_map initial_value) -> void
177
+
178
+ def []:
179
+ ("host_name" name) -> ::String
180
+ | ("worker_grouping_key" name) -> ::String
181
+ | ("process_id" name) -> ::String
182
+ | ("current_host_cpu_usage" name) -> ::Float
183
+ | ("current_host_mem_usage" name) -> ::Float
184
+
185
+ def []=:
186
+ ("host_name" name, (::String | ::Symbol) value) -> void
187
+ | ("worker_grouping_key" name, (::String | ::Symbol) value) -> void
188
+ | ("process_id" name, (::String | ::Symbol) value) -> void
189
+ | ("current_host_cpu_usage" name, (::Float | ::Integer) value) -> void
190
+ | ("current_host_mem_usage" name, (::Float | ::Integer) value) -> void
191
+ end
192
+
193
+ # Worker info message, contains information about the worker and its current state.
194
+ # All information is provided by the worker itself.
195
+ # (-- api-linter: core::0140::prepositions=disabled
196
+ # aip.dev/not-precedent: Removing those words make names less clear. --)
197
+ class WorkerHeartbeat < ::Google::Protobuf::AbstractMessage
198
+
199
+ # Worker identifier, should be unique for the namespace.
200
+ # It is distinct from worker identity, which is not necessarily namespace-unique.
201
+ attr_reader worker_instance_key(): ::String
202
+ attr_writer worker_instance_key(): ::String | ::Symbol
203
+ def clear_worker_instance_key: () -> void
204
+
205
+ # Worker identity, set by the client, may not be unique.
206
+ # Usually host_name+(user group name)+process_id, but can be overwritten by the user.
207
+ attr_reader worker_identity(): ::String
208
+ attr_writer worker_identity(): ::String | ::Symbol
209
+ def clear_worker_identity: () -> void
210
+
211
+ # Worker host information.
212
+ attr_accessor host_info(): ::Temporalio::Api::Worker::V1::WorkerHostInfo?
213
+ def has_host_info?: () -> bool
214
+ def clear_host_info: () -> void
215
+
216
+ # Task queue this worker is polling for tasks.
217
+ attr_reader task_queue(): ::String
218
+ attr_writer task_queue(): ::String | ::Symbol
219
+ def clear_task_queue: () -> void
220
+
221
+ attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
222
+ def has_deployment_version?: () -> bool
223
+ def clear_deployment_version: () -> void
224
+
225
+ attr_reader sdk_name(): ::String
226
+ attr_writer sdk_name(): ::String | ::Symbol
227
+ def clear_sdk_name: () -> void
228
+
229
+ attr_reader sdk_version(): ::String
230
+ attr_writer sdk_version(): ::String | ::Symbol
231
+ def clear_sdk_version: () -> void
232
+
233
+ # Worker status. Defined by SDK.
234
+ attr_reader status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer
235
+ attr_writer status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float
236
+ attr_reader status_const(): ::Integer
237
+ def clear_status: () -> void
238
+
239
+ # Worker start time.
240
+ # It can be used to determine worker uptime. (current time - start time)
241
+ attr_reader start_time(): ::Google::Protobuf::Timestamp?
242
+ attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
243
+ def has_start_time?: () -> bool
244
+ def clear_start_time: () -> void
245
+
246
+ # Timestamp of this heartbeat, coming from the worker. Worker should set it to "now".
247
+ # Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
248
+ attr_reader heartbeat_time(): ::Google::Protobuf::Timestamp?
249
+ attr_writer heartbeat_time(): (::Google::Protobuf::Timestamp | ::Time)?
250
+ def has_heartbeat_time?: () -> bool
251
+ def clear_heartbeat_time: () -> void
252
+
253
+ # Elapsed time since the last heartbeat from the worker.
254
+ attr_reader elapsed_since_last_heartbeat(): ::Google::Protobuf::Duration?
255
+ attr_writer elapsed_since_last_heartbeat(): (::Google::Protobuf::Duration | ::int)?
256
+ def has_elapsed_since_last_heartbeat?: () -> bool
257
+ def clear_elapsed_since_last_heartbeat: () -> void
258
+
259
+ attr_accessor workflow_task_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
260
+ def has_workflow_task_slots_info?: () -> bool
261
+ def clear_workflow_task_slots_info: () -> void
262
+
263
+ attr_accessor activity_task_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
264
+ def has_activity_task_slots_info?: () -> bool
265
+ def clear_activity_task_slots_info: () -> void
266
+
267
+ attr_accessor nexus_task_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
268
+ def has_nexus_task_slots_info?: () -> bool
269
+ def clear_nexus_task_slots_info: () -> void
270
+
271
+ attr_accessor local_activity_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
272
+ def has_local_activity_slots_info?: () -> bool
273
+ def clear_local_activity_slots_info: () -> void
274
+
275
+ attr_accessor workflow_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
276
+ def has_workflow_poller_info?: () -> bool
277
+ def clear_workflow_poller_info: () -> void
278
+
279
+ attr_accessor workflow_sticky_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
280
+ def has_workflow_sticky_poller_info?: () -> bool
281
+ def clear_workflow_sticky_poller_info: () -> void
282
+
283
+ attr_accessor activity_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
284
+ def has_activity_poller_info?: () -> bool
285
+ def clear_activity_poller_info: () -> void
286
+
287
+ attr_accessor nexus_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
288
+ def has_nexus_poller_info?: () -> bool
289
+ def clear_nexus_poller_info: () -> void
290
+
291
+ # A Workflow Task found a cached Workflow Execution to run against.
292
+ attr_reader total_sticky_cache_hit(): ::Integer
293
+ attr_writer total_sticky_cache_hit(): ::Integer | ::Float
294
+ def clear_total_sticky_cache_hit: () -> void
295
+
296
+ # A Workflow Task did not find a cached Workflow execution to run against.
297
+ attr_reader total_sticky_cache_miss(): ::Integer
298
+ attr_writer total_sticky_cache_miss(): ::Integer | ::Float
299
+ def clear_total_sticky_cache_miss: () -> void
300
+
301
+ # Current cache size, expressed in number of Workflow Executions.
302
+ attr_reader current_sticky_cache_size(): ::Integer
303
+ attr_writer current_sticky_cache_size(): ::Integer | ::Float
304
+ def clear_current_sticky_cache_size: () -> void
305
+
306
+ # Plugins currently in use by this SDK.
307
+ attr_accessor plugins(): ::Google::Protobuf::RepeatedField
308
+ def clear_plugins: () -> void
309
+
310
+ # Storage drivers in use by this SDK.
311
+ attr_accessor drivers(): ::Google::Protobuf::RepeatedField
312
+ def clear_drivers: () -> void
313
+
314
+ # Information about the environment this SDK is running in.
315
+ attr_accessor environment(): ::Temporalio::Api::Worker::V1::EnvironmentInfo?
316
+ def has_environment?: () -> bool
317
+ def clear_environment: () -> void
318
+
319
+ type init_map = {
320
+ worker_instance_key: (::String | ::Symbol)?,
321
+ "worker_instance_key" => (::String | ::Symbol)?,
322
+ worker_identity: (::String | ::Symbol)?,
323
+ "worker_identity" => (::String | ::Symbol)?,
324
+ host_info: (::Temporalio::Api::Worker::V1::WorkerHostInfo | ::Temporalio::Api::Worker::V1::WorkerHostInfo::init_map)?,
325
+ "host_info" => (::Temporalio::Api::Worker::V1::WorkerHostInfo | ::Temporalio::Api::Worker::V1::WorkerHostInfo::init_map)?,
326
+ task_queue: (::String | ::Symbol)?,
327
+ "task_queue" => (::String | ::Symbol)?,
328
+ deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
329
+ "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
330
+ sdk_name: (::String | ::Symbol)?,
331
+ "sdk_name" => (::String | ::Symbol)?,
332
+ sdk_version: (::String | ::Symbol)?,
333
+ "sdk_version" => (::String | ::Symbol)?,
334
+ status: (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?,
335
+ "status" => (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?,
336
+ start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
337
+ "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
338
+ heartbeat_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
339
+ "heartbeat_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
340
+ elapsed_since_last_heartbeat: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
341
+ "elapsed_since_last_heartbeat" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
342
+ workflow_task_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
343
+ "workflow_task_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
344
+ activity_task_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
345
+ "activity_task_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
346
+ nexus_task_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
347
+ "nexus_task_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
348
+ local_activity_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
349
+ "local_activity_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
350
+ workflow_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
351
+ "workflow_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
352
+ workflow_sticky_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
353
+ "workflow_sticky_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
354
+ activity_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
355
+ "activity_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
356
+ nexus_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
357
+ "nexus_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
358
+ total_sticky_cache_hit: (::Integer | ::Float)?,
359
+ "total_sticky_cache_hit" => (::Integer | ::Float)?,
360
+ total_sticky_cache_miss: (::Integer | ::Float)?,
361
+ "total_sticky_cache_miss" => (::Integer | ::Float)?,
362
+ current_sticky_cache_size: (::Integer | ::Float)?,
363
+ "current_sticky_cache_size" => (::Integer | ::Float)?,
364
+ plugins: ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?,
365
+ "plugins" => ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?,
366
+ drivers: ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
367
+ "drivers" => ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
368
+ environment: (::Temporalio::Api::Worker::V1::EnvironmentInfo | ::Temporalio::Api::Worker::V1::EnvironmentInfo::init_map)?,
369
+ "environment" => (::Temporalio::Api::Worker::V1::EnvironmentInfo | ::Temporalio::Api::Worker::V1::EnvironmentInfo::init_map)?,
370
+ }
371
+
372
+ def initialize: (?init_map initial_value) -> void
373
+
374
+ def []:
375
+ ("worker_instance_key" name) -> ::String
376
+ | ("worker_identity" name) -> ::String
377
+ | ("host_info" name) -> ::Temporalio::Api::Worker::V1::WorkerHostInfo?
378
+ | ("task_queue" name) -> ::String
379
+ | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
380
+ | ("sdk_name" name) -> ::String
381
+ | ("sdk_version" name) -> ::String
382
+ | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer)
383
+ | ("start_time" name) -> ::Google::Protobuf::Timestamp?
384
+ | ("heartbeat_time" name) -> ::Google::Protobuf::Timestamp?
385
+ | ("elapsed_since_last_heartbeat" name) -> ::Google::Protobuf::Duration?
386
+ | ("workflow_task_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
387
+ | ("activity_task_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
388
+ | ("nexus_task_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
389
+ | ("local_activity_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
390
+ | ("workflow_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
391
+ | ("workflow_sticky_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
392
+ | ("activity_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
393
+ | ("nexus_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
394
+ | ("total_sticky_cache_hit" name) -> ::Integer
395
+ | ("total_sticky_cache_miss" name) -> ::Integer
396
+ | ("current_sticky_cache_size" name) -> ::Integer
397
+ | ("plugins" name) -> ::Google::Protobuf::RepeatedField
398
+ | ("drivers" name) -> ::Google::Protobuf::RepeatedField
399
+ | ("environment" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo?
400
+
401
+ def []=:
402
+ ("worker_instance_key" name, (::String | ::Symbol) value) -> void
403
+ | ("worker_identity" name, (::String | ::Symbol) value) -> void
404
+ | ("host_info" name, ::Temporalio::Api::Worker::V1::WorkerHostInfo? value) -> void
405
+ | ("task_queue" name, (::String | ::Symbol) value) -> void
406
+ | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
407
+ | ("sdk_name" name, (::String | ::Symbol) value) -> void
408
+ | ("sdk_version" name, (::String | ::Symbol) value) -> void
409
+ | ("status" name, (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float) value) -> void
410
+ | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
411
+ | ("heartbeat_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
412
+ | ("elapsed_since_last_heartbeat" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
413
+ | ("workflow_task_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void
414
+ | ("activity_task_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void
415
+ | ("nexus_task_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void
416
+ | ("local_activity_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void
417
+ | ("workflow_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void
418
+ | ("workflow_sticky_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void
419
+ | ("activity_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void
420
+ | ("nexus_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void
421
+ | ("total_sticky_cache_hit" name, (::Integer | ::Float) value) -> void
422
+ | ("total_sticky_cache_miss" name, (::Integer | ::Float) value) -> void
423
+ | ("current_sticky_cache_size" name, (::Integer | ::Float) value) -> void
424
+ | ("plugins" name, ::Google::Protobuf::RepeatedField value) -> void
425
+ | ("drivers" name, ::Google::Protobuf::RepeatedField value) -> void
426
+ | ("environment" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo? value) -> void
427
+ end
428
+
429
+ # Detailed worker information.
430
+ class WorkerInfo < ::Google::Protobuf::AbstractMessage
431
+
432
+ attr_accessor worker_heartbeat(): ::Temporalio::Api::Worker::V1::WorkerHeartbeat?
433
+ def has_worker_heartbeat?: () -> bool
434
+ def clear_worker_heartbeat: () -> void
435
+
436
+ type init_map = {
437
+ worker_heartbeat: (::Temporalio::Api::Worker::V1::WorkerHeartbeat | ::Temporalio::Api::Worker::V1::WorkerHeartbeat::init_map)?,
438
+ "worker_heartbeat" => (::Temporalio::Api::Worker::V1::WorkerHeartbeat | ::Temporalio::Api::Worker::V1::WorkerHeartbeat::init_map)?,
439
+ }
440
+
441
+ def initialize: (?init_map initial_value) -> void
442
+
443
+ def []:
444
+ ("worker_heartbeat" name) -> ::Temporalio::Api::Worker::V1::WorkerHeartbeat?
445
+
446
+ def []=:
447
+ ("worker_heartbeat" name, ::Temporalio::Api::Worker::V1::WorkerHeartbeat? value) -> void
448
+ end
449
+
450
+ # Limited worker information returned in the list response.
451
+ # When adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information).
452
+ class WorkerListInfo < ::Google::Protobuf::AbstractMessage
453
+
454
+ # Worker identifier, should be unique for the namespace.
455
+ # It is distinct from worker identity, which is not necessarily namespace-unique.
456
+ attr_reader worker_instance_key(): ::String
457
+ attr_writer worker_instance_key(): ::String | ::Symbol
458
+ def clear_worker_instance_key: () -> void
459
+
460
+ # Worker identity, set by the client, may not be unique.
461
+ # Usually host_name+(user group name)+process_id, but can be overwritten by the user.
462
+ attr_reader worker_identity(): ::String
463
+ attr_writer worker_identity(): ::String | ::Symbol
464
+ def clear_worker_identity: () -> void
465
+
466
+ # Task queue this worker is polling for tasks.
467
+ attr_reader task_queue(): ::String
468
+ attr_writer task_queue(): ::String | ::Symbol
469
+ def clear_task_queue: () -> void
470
+
471
+ attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
472
+ def has_deployment_version?: () -> bool
473
+ def clear_deployment_version: () -> void
474
+
475
+ attr_reader sdk_name(): ::String
476
+ attr_writer sdk_name(): ::String | ::Symbol
477
+ def clear_sdk_name: () -> void
478
+
479
+ attr_reader sdk_version(): ::String
480
+ attr_writer sdk_version(): ::String | ::Symbol
481
+ def clear_sdk_version: () -> void
482
+
483
+ # Worker status. Defined by SDK.
484
+ attr_reader status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer
485
+ attr_writer status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float
486
+ attr_reader status_const(): ::Integer
487
+ def clear_status: () -> void
488
+
489
+ # Worker start time.
490
+ # It can be used to determine worker uptime. (current time - start time)
491
+ attr_reader start_time(): ::Google::Protobuf::Timestamp?
492
+ attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
493
+ def has_start_time?: () -> bool
494
+ def clear_start_time: () -> void
495
+
496
+ # Worker host identifier.
497
+ attr_reader host_name(): ::String
498
+ attr_writer host_name(): ::String | ::Symbol
499
+ def clear_host_name: () -> void
500
+
501
+ # Worker grouping identifier. A key to group workers that share the same client+namespace+process.
502
+ # This will be used to build the worker command nexus task queue name:
503
+ # "temporal-sys/worker-commands/{worker_grouping_key}"
504
+ attr_reader worker_grouping_key(): ::String
505
+ attr_writer worker_grouping_key(): ::String | ::Symbol
506
+ def clear_worker_grouping_key: () -> void
507
+
508
+ # Worker process identifier. This id only needs to be unique
509
+ # within one host (so using e.g. a unix pid would be appropriate).
510
+ attr_reader process_id(): ::String
511
+ attr_writer process_id(): ::String | ::Symbol
512
+ def clear_process_id: () -> void
513
+
514
+ # Plugins currently in use by this SDK.
515
+ attr_accessor plugins(): ::Google::Protobuf::RepeatedField
516
+ def clear_plugins: () -> void
517
+
518
+ # Storage drivers in use by this SDK.
519
+ attr_accessor drivers(): ::Google::Protobuf::RepeatedField
520
+ def clear_drivers: () -> void
521
+
522
+ type init_map = {
523
+ worker_instance_key: (::String | ::Symbol)?,
524
+ "worker_instance_key" => (::String | ::Symbol)?,
525
+ worker_identity: (::String | ::Symbol)?,
526
+ "worker_identity" => (::String | ::Symbol)?,
527
+ task_queue: (::String | ::Symbol)?,
528
+ "task_queue" => (::String | ::Symbol)?,
529
+ deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
530
+ "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
531
+ sdk_name: (::String | ::Symbol)?,
532
+ "sdk_name" => (::String | ::Symbol)?,
533
+ sdk_version: (::String | ::Symbol)?,
534
+ "sdk_version" => (::String | ::Symbol)?,
535
+ status: (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?,
536
+ "status" => (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?,
537
+ start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
538
+ "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
539
+ host_name: (::String | ::Symbol)?,
540
+ "host_name" => (::String | ::Symbol)?,
541
+ worker_grouping_key: (::String | ::Symbol)?,
542
+ "worker_grouping_key" => (::String | ::Symbol)?,
543
+ process_id: (::String | ::Symbol)?,
544
+ "process_id" => (::String | ::Symbol)?,
545
+ plugins: ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?,
546
+ "plugins" => ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?,
547
+ drivers: ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
548
+ "drivers" => ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
549
+ }
550
+
551
+ def initialize: (?init_map initial_value) -> void
552
+
553
+ def []:
554
+ ("worker_instance_key" name) -> ::String
555
+ | ("worker_identity" name) -> ::String
556
+ | ("task_queue" name) -> ::String
557
+ | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
558
+ | ("sdk_name" name) -> ::String
559
+ | ("sdk_version" name) -> ::String
560
+ | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer)
561
+ | ("start_time" name) -> ::Google::Protobuf::Timestamp?
562
+ | ("host_name" name) -> ::String
563
+ | ("worker_grouping_key" name) -> ::String
564
+ | ("process_id" name) -> ::String
565
+ | ("plugins" name) -> ::Google::Protobuf::RepeatedField
566
+ | ("drivers" name) -> ::Google::Protobuf::RepeatedField
567
+
568
+ def []=:
569
+ ("worker_instance_key" name, (::String | ::Symbol) value) -> void
570
+ | ("worker_identity" name, (::String | ::Symbol) value) -> void
571
+ | ("task_queue" name, (::String | ::Symbol) value) -> void
572
+ | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
573
+ | ("sdk_name" name, (::String | ::Symbol) value) -> void
574
+ | ("sdk_version" name, (::String | ::Symbol) value) -> void
575
+ | ("status" name, (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float) value) -> void
576
+ | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
577
+ | ("host_name" name, (::String | ::Symbol) value) -> void
578
+ | ("worker_grouping_key" name, (::String | ::Symbol) value) -> void
579
+ | ("process_id" name, (::String | ::Symbol) value) -> void
580
+ | ("plugins" name, ::Google::Protobuf::RepeatedField value) -> void
581
+ | ("drivers" name, ::Google::Protobuf::RepeatedField value) -> void
582
+ end
583
+
584
+ class PluginInfo < ::Google::Protobuf::AbstractMessage
585
+
586
+ # The name of the plugin, required.
587
+ attr_reader name(): ::String
588
+ attr_writer name(): ::String | ::Symbol
589
+ def clear_name: () -> void
590
+
591
+ # The version of the plugin, may be empty.
592
+ attr_reader version(): ::String
593
+ attr_writer version(): ::String | ::Symbol
594
+ def clear_version: () -> void
595
+
596
+ type init_map = {
597
+ name: (::String | ::Symbol)?,
598
+ "name" => (::String | ::Symbol)?,
599
+ version: (::String | ::Symbol)?,
600
+ "version" => (::String | ::Symbol)?,
601
+ }
602
+
603
+ def initialize: (?init_map initial_value) -> void
604
+
605
+ def []:
606
+ ("name" name) -> ::String
607
+ | ("version" name) -> ::String
608
+
609
+ def []=:
610
+ ("name" name, (::String | ::Symbol) value) -> void
611
+ | ("version" name, (::String | ::Symbol) value) -> void
612
+ end
613
+
614
+ class StorageDriverInfo < ::Google::Protobuf::AbstractMessage
615
+
616
+ # The type of the driver, required.
617
+ attr_reader type(): ::String
618
+ attr_writer type(): ::String | ::Symbol
619
+ def clear_type: () -> void
620
+
621
+ type init_map = {
622
+ type: (::String | ::Symbol)?,
623
+ "type" => (::String | ::Symbol)?,
624
+ }
625
+
626
+ def initialize: (?init_map initial_value) -> void
627
+
628
+ def []:
629
+ ("type" name) -> ::String
630
+
631
+ def []=:
632
+ ("type" name, (::String | ::Symbol) value) -> void
633
+ end
634
+
635
+ class EnvironmentInfo < ::Google::Protobuf::AbstractMessage
636
+ class Runtime < ::Google::Protobuf::AbstractMessage
637
+ module RuntimeType
638
+
639
+ # Should never actually be set, exists to follow convention of having a default.
640
+ # SDKs should just leave `runtimes` empty if none can be determined.
641
+ RUNTIME_TYPE_UNSPECIFIED: 0
642
+
643
+ RUNTIME_TYPE_JVM: 1
644
+
645
+ RUNTIME_TYPE_CPYTHON: 2
646
+
647
+ RUNTIME_TYPE_NODE: 3
648
+
649
+ RUNTIME_TYPE_BUN: 4
650
+
651
+ RUNTIME_TYPE_CRUBY: 5
652
+
653
+ RUNTIME_TYPE_GO: 6
654
+
655
+ RUNTIME_TYPE_DOTNET_FRAMEWORK: 7
656
+
657
+ RUNTIME_TYPE_DOTNET_CORE: 8
658
+
659
+ RUNTIME_TYPE_NATIVE: 9
660
+
661
+ RUNTIME_TYPE_ROADRUNNER: 10
662
+
663
+ def self.lookup: (::Integer number) -> ::Symbol
664
+
665
+
666
+ def self.resolve: (::Symbol name) -> ::Integer
667
+
668
+
669
+ type names = :RUNTIME_TYPE_UNSPECIFIED | :RUNTIME_TYPE_JVM | :RUNTIME_TYPE_CPYTHON | :RUNTIME_TYPE_NODE | :RUNTIME_TYPE_BUN | :RUNTIME_TYPE_CRUBY | :RUNTIME_TYPE_GO | :RUNTIME_TYPE_DOTNET_FRAMEWORK | :RUNTIME_TYPE_DOTNET_CORE | :RUNTIME_TYPE_NATIVE | :RUNTIME_TYPE_ROADRUNNER
670
+
671
+ type strings = "RUNTIME_TYPE_UNSPECIFIED" | "RUNTIME_TYPE_JVM" | "RUNTIME_TYPE_CPYTHON" | "RUNTIME_TYPE_NODE" | "RUNTIME_TYPE_BUN" | "RUNTIME_TYPE_CRUBY" | "RUNTIME_TYPE_GO" | "RUNTIME_TYPE_DOTNET_FRAMEWORK" | "RUNTIME_TYPE_DOTNET_CORE" | "RUNTIME_TYPE_NATIVE" | "RUNTIME_TYPE_ROADRUNNER"
672
+
673
+ type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
674
+ end
675
+
676
+ # The type of the runtime.
677
+ attr_reader type(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Integer
678
+ attr_writer type(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::strings | ::Integer | ::Float
679
+ attr_reader type_const(): ::Integer
680
+ def clear_type: () -> void
681
+
682
+ # The version of the runtime, if obtainable.
683
+ attr_reader version(): ::String
684
+ attr_writer version(): ::String | ::Symbol
685
+ def clear_version: () -> void
686
+
687
+ type init_map = {
688
+ type: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::strings | ::Integer | ::Float)?,
689
+ "type" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::strings | ::Integer | ::Float)?,
690
+ version: (::String | ::Symbol)?,
691
+ "version" => (::String | ::Symbol)?,
692
+ }
693
+
694
+ def initialize: (?init_map initial_value) -> void
695
+
696
+ def []:
697
+ ("type" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Integer)
698
+ | ("version" name) -> ::String
699
+
700
+ def []=:
701
+ ("type" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::strings | ::Integer | ::Float) value) -> void
702
+ | ("version" name, (::String | ::Symbol) value) -> void
703
+ end
704
+
705
+ class HostingEnvironment < ::Google::Protobuf::AbstractMessage
706
+ # What kind of hosting environment we're running in. This list is about what can actually be
707
+ # detected reliably and is unrelated to what SDKs can actually run in.
708
+ module HostingEnvironmentType
709
+
710
+ # Should never actually be set, exists to follow convention of having a default.
711
+ # SDKs should just leave `hosting_environments` empty if none can be determined.
712
+ HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED: 0
713
+
714
+ # Should always be in the list if we're running inside a docker container
715
+ HOSTING_ENVIRONMENT_TYPE_DOCKER: 1
716
+
717
+ # Should always be in the list if we're running inside any k8s environment
718
+ HOSTING_ENVIRONMENT_TYPE_K8S: 2
719
+
720
+ # Detect via `AWS_LAMBDA_FUNCTION_NAME`
721
+ HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA: 3
722
+
723
+ # Detect via `ECS_CONTAINER_METADATA_URI_V4` or `ECS_CONTAINER_METADATA_URI`
724
+ HOSTING_ENVIRONMENT_TYPE_AWS_ECS: 4
725
+
726
+ # Detect via `K_SERVICE`
727
+ HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN: 6
728
+
729
+ # Detect via `GAE_SERVICE`
730
+ HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE: 7
731
+
732
+ # Detect via `WEBSITE_SITE_NAME`
733
+ HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE: 8
734
+
735
+ # Detect via `FUNCTIONS_EXTENSION_VERSION`
736
+ HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS: 9
737
+
738
+ # Detect via `CONTAINER_APP_NAME`
739
+ HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS: 10
740
+
741
+ def self.lookup: (::Integer number) -> ::Symbol
742
+
743
+
744
+ def self.resolve: (::Symbol name) -> ::Integer
745
+
746
+
747
+ type names = :HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED | :HOSTING_ENVIRONMENT_TYPE_DOCKER | :HOSTING_ENVIRONMENT_TYPE_K8S | :HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA | :HOSTING_ENVIRONMENT_TYPE_AWS_ECS | :HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN | :HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE | :HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE | :HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS | :HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS
748
+
749
+ type strings = "HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED" | "HOSTING_ENVIRONMENT_TYPE_DOCKER" | "HOSTING_ENVIRONMENT_TYPE_K8S" | "HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA" | "HOSTING_ENVIRONMENT_TYPE_AWS_ECS" | "HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN" | "HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE" | "HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE" | "HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS" | "HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS"
750
+
751
+ type numbers = 0 | 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10
752
+ end
753
+
754
+ # The type of hosting environment.
755
+ attr_reader type(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Integer
756
+ attr_writer type(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::strings | ::Integer | ::Float
757
+ attr_reader type_const(): ::Integer
758
+ def clear_type: () -> void
759
+
760
+ # The version of the hosting environment, if obtainable.
761
+ attr_reader version(): ::String
762
+ attr_writer version(): ::String | ::Symbol
763
+ def clear_version: () -> void
764
+
765
+ type init_map = {
766
+ type: (::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::strings | ::Integer | ::Float)?,
767
+ "type" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::strings | ::Integer | ::Float)?,
768
+ version: (::String | ::Symbol)?,
769
+ "version" => (::String | ::Symbol)?,
770
+ }
771
+
772
+ def initialize: (?init_map initial_value) -> void
773
+
774
+ def []:
775
+ ("type" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Integer)
776
+ | ("version" name) -> ::String
777
+
778
+ def []=:
779
+ ("type" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::strings | ::Integer | ::Float) value) -> void
780
+ | ("version" name, (::String | ::Symbol) value) -> void
781
+ end
782
+
783
+ class Platform < ::Google::Protobuf::AbstractMessage
784
+
785
+ attr_accessor linux(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform?
786
+ def has_linux?: () -> bool
787
+ def clear_linux: () -> void
788
+
789
+ attr_accessor macos(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform?
790
+ def has_macos?: () -> bool
791
+ def clear_macos: () -> void
792
+
793
+ attr_accessor windows(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform?
794
+ def has_windows?: () -> bool
795
+ def clear_windows: () -> void
796
+
797
+ attr_reader variant(): (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform)?
798
+ def has_variant?: () -> bool
799
+ def clear_variant: () -> void
800
+
801
+ type init_map = {
802
+ linux: (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::init_map)?,
803
+ "linux" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::init_map)?,
804
+ macos: (::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform::init_map)?,
805
+ "macos" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform::init_map)?,
806
+ windows: (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::init_map)?,
807
+ "windows" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::init_map)?,
808
+ }
809
+
810
+ def initialize: (?init_map initial_value) -> void
811
+
812
+ def []:
813
+ ("linux" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform?
814
+ | ("macos" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform?
815
+ | ("windows" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform?
816
+
817
+ def []=:
818
+ ("linux" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform? value) -> void
819
+ | ("macos" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform? value) -> void
820
+ | ("windows" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform? value) -> void
821
+ end
822
+
823
+ class LinuxPlatform < ::Google::Protobuf::AbstractMessage
824
+ module Libc
825
+
826
+ LIBC_UNSPECIFIED: 0
827
+
828
+ LIBC_GLIBC: 1
829
+
830
+ LIBC_MUSL: 2
831
+
832
+ def self.lookup: (::Integer number) -> ::Symbol
833
+
834
+
835
+ def self.resolve: (::Symbol name) -> ::Integer
836
+
837
+
838
+ type names = :LIBC_UNSPECIFIED | :LIBC_GLIBC | :LIBC_MUSL
839
+
840
+ type strings = "LIBC_UNSPECIFIED" | "LIBC_GLIBC" | "LIBC_MUSL"
841
+
842
+ type numbers = 0 | 1 | 2
843
+ end
844
+
845
+ # The Linux kernel or distribution version, if obtainable.
846
+ attr_reader version(): ::String
847
+ attr_writer version(): ::String | ::Symbol
848
+ def clear_version: () -> void
849
+
850
+ # The architecture of the worker process.
851
+ attr_reader architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer
852
+ attr_writer architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float
853
+ attr_reader architecture_const(): ::Integer
854
+ def clear_architecture: () -> void
855
+
856
+ # The libc used by the worker process.
857
+ attr_reader libc(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Integer
858
+ attr_writer libc(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::strings | ::Integer | ::Float
859
+ attr_reader libc_const(): ::Integer
860
+ def clear_libc: () -> void
861
+
862
+ type init_map = {
863
+ version: (::String | ::Symbol)?,
864
+ "version" => (::String | ::Symbol)?,
865
+ architecture: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
866
+ "architecture" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
867
+ libc: (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::strings | ::Integer | ::Float)?,
868
+ "libc" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::strings | ::Integer | ::Float)?,
869
+ }
870
+
871
+ def initialize: (?init_map initial_value) -> void
872
+
873
+ def []:
874
+ ("version" name) -> ::String
875
+ | ("architecture" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer)
876
+ | ("libc" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Integer)
877
+
878
+ def []=:
879
+ ("version" name, (::String | ::Symbol) value) -> void
880
+ | ("architecture" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float) value) -> void
881
+ | ("libc" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::strings | ::Integer | ::Float) value) -> void
882
+ end
883
+
884
+ class MacOSPlatform < ::Google::Protobuf::AbstractMessage
885
+
886
+ # The macOS version, if obtainable.
887
+ attr_reader version(): ::String
888
+ attr_writer version(): ::String | ::Symbol
889
+ def clear_version: () -> void
890
+
891
+ # The architecture of the worker process.
892
+ attr_reader architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer
893
+ attr_writer architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float
894
+ attr_reader architecture_const(): ::Integer
895
+ def clear_architecture: () -> void
896
+
897
+ type init_map = {
898
+ version: (::String | ::Symbol)?,
899
+ "version" => (::String | ::Symbol)?,
900
+ architecture: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
901
+ "architecture" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
902
+ }
903
+
904
+ def initialize: (?init_map initial_value) -> void
905
+
906
+ def []:
907
+ ("version" name) -> ::String
908
+ | ("architecture" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer)
909
+
910
+ def []=:
911
+ ("version" name, (::String | ::Symbol) value) -> void
912
+ | ("architecture" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float) value) -> void
913
+ end
914
+
915
+ class WindowsPlatform < ::Google::Protobuf::AbstractMessage
916
+ module Crt
917
+
918
+ CRT_UNSPECIFIED: 0
919
+
920
+ CRT_UCRT: 1
921
+
922
+ CRT_MSVCRT: 2
923
+
924
+ CRT_MINGW: 3
925
+
926
+ CRT_CYGWIN: 4
927
+
928
+ def self.lookup: (::Integer number) -> ::Symbol
929
+
930
+
931
+ def self.resolve: (::Symbol name) -> ::Integer
932
+
933
+
934
+ type names = :CRT_UNSPECIFIED | :CRT_UCRT | :CRT_MSVCRT | :CRT_MINGW | :CRT_CYGWIN
935
+
936
+ type strings = "CRT_UNSPECIFIED" | "CRT_UCRT" | "CRT_MSVCRT" | "CRT_MINGW" | "CRT_CYGWIN"
937
+
938
+ type numbers = 0 | 1 | 2 | 3 | 4
939
+ end
940
+
941
+ # The Windows version, if obtainable.
942
+ attr_reader version(): ::String
943
+ attr_writer version(): ::String | ::Symbol
944
+ def clear_version: () -> void
945
+
946
+ # The architecture of the worker process.
947
+ attr_reader architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer
948
+ attr_writer architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float
949
+ attr_reader architecture_const(): ::Integer
950
+ def clear_architecture: () -> void
951
+
952
+ # The C runtime used by the worker process, if obtainable.
953
+ attr_reader crt(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Integer
954
+ attr_writer crt(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::strings | ::Integer | ::Float
955
+ attr_reader crt_const(): ::Integer
956
+ def clear_crt: () -> void
957
+
958
+ type init_map = {
959
+ version: (::String | ::Symbol)?,
960
+ "version" => (::String | ::Symbol)?,
961
+ architecture: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
962
+ "architecture" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
963
+ crt: (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::strings | ::Integer | ::Float)?,
964
+ "crt" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::strings | ::Integer | ::Float)?,
965
+ }
966
+
967
+ def initialize: (?init_map initial_value) -> void
968
+
969
+ def []:
970
+ ("version" name) -> ::String
971
+ | ("architecture" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer)
972
+ | ("crt" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Integer)
973
+
974
+ def []=:
975
+ ("version" name, (::String | ::Symbol) value) -> void
976
+ | ("architecture" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float) value) -> void
977
+ | ("crt" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::strings | ::Integer | ::Float) value) -> void
978
+ end
979
+
980
+ module Architecture
981
+
982
+ ARCHITECTURE_UNSPECIFIED: 0
983
+
984
+ ARCHITECTURE_AMD64: 1
985
+
986
+ ARCHITECTURE_ARM64: 2
987
+
988
+ def self.lookup: (::Integer number) -> ::Symbol
989
+
990
+
991
+ def self.resolve: (::Symbol name) -> ::Integer
992
+
993
+
994
+ type names = :ARCHITECTURE_UNSPECIFIED | :ARCHITECTURE_AMD64 | :ARCHITECTURE_ARM64
995
+
996
+ type strings = "ARCHITECTURE_UNSPECIFIED" | "ARCHITECTURE_AMD64" | "ARCHITECTURE_ARM64"
997
+
998
+ type numbers = 0 | 1 | 2
999
+ end
1000
+
1001
+ # The runtime(s) the SDK is operating in.
1002
+ attr_accessor runtimes(): ::Google::Protobuf::RepeatedField
1003
+ def clear_runtimes: () -> void
1004
+
1005
+ # The hosting environment(s) the SDK is operating in. Repeated to allow for layering (ex: Docker inside k8s).
1006
+ attr_accessor hosting_environments(): ::Google::Protobuf::RepeatedField
1007
+ def clear_hosting_environments: () -> void
1008
+
1009
+ # The platform the SDK is operating on.
1010
+ attr_accessor platform(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform?
1011
+ def has_platform?: () -> bool
1012
+ def clear_platform: () -> void
1013
+
1014
+ type init_map = {
1015
+ runtimes: ::Array[::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime]?,
1016
+ "runtimes" => ::Array[::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime]?,
1017
+ hosting_environments: ::Array[::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment]?,
1018
+ "hosting_environments" => ::Array[::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment]?,
1019
+ platform: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform::init_map)?,
1020
+ "platform" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform::init_map)?,
1021
+ }
1022
+
1023
+ def initialize: (?init_map initial_value) -> void
1024
+
1025
+ def []:
1026
+ ("runtimes" name) -> ::Google::Protobuf::RepeatedField
1027
+ | ("hosting_environments" name) -> ::Google::Protobuf::RepeatedField
1028
+ | ("platform" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform?
1029
+
1030
+ def []=:
1031
+ ("runtimes" name, ::Google::Protobuf::RepeatedField value) -> void
1032
+ | ("hosting_environments" name, ::Google::Protobuf::RepeatedField value) -> void
1033
+ | ("platform" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform? value) -> void
1034
+ end
1035
+
1036
+ # A command sent from the server to a worker.
1037
+ class WorkerCommand < ::Google::Protobuf::AbstractMessage
1038
+
1039
+ attr_accessor cancel_activity(): ::Temporalio::Api::Worker::V1::CancelActivityCommand?
1040
+ def has_cancel_activity?: () -> bool
1041
+ def clear_cancel_activity: () -> void
1042
+
1043
+ attr_reader type(): ::Temporalio::Api::Worker::V1::CancelActivityCommand?
1044
+ def has_type?: () -> bool
1045
+ def clear_type: () -> void
1046
+
1047
+ type init_map = {
1048
+ cancel_activity: (::Temporalio::Api::Worker::V1::CancelActivityCommand | ::Temporalio::Api::Worker::V1::CancelActivityCommand::init_map)?,
1049
+ "cancel_activity" => (::Temporalio::Api::Worker::V1::CancelActivityCommand | ::Temporalio::Api::Worker::V1::CancelActivityCommand::init_map)?,
1050
+ }
1051
+
1052
+ def initialize: (?init_map initial_value) -> void
1053
+
1054
+ def []:
1055
+ ("cancel_activity" name) -> ::Temporalio::Api::Worker::V1::CancelActivityCommand?
1056
+
1057
+ def []=:
1058
+ ("cancel_activity" name, ::Temporalio::Api::Worker::V1::CancelActivityCommand? value) -> void
1059
+ end
1060
+
1061
+ # Cancel an activity if it is still running. Otherwise, do nothing.
1062
+ class CancelActivityCommand < ::Google::Protobuf::AbstractMessage
1063
+
1064
+ attr_accessor task_token(): ::String
1065
+ def clear_task_token: () -> void
1066
+
1067
+ type init_map = {
1068
+ task_token: ::String?,
1069
+ "task_token" => ::String?,
1070
+ }
1071
+
1072
+ def initialize: (?init_map initial_value) -> void
1073
+
1074
+ def []:
1075
+ ("task_token" name) -> ::String
1076
+
1077
+ def []=:
1078
+ ("task_token" name, ::String value) -> void
1079
+ end
1080
+
1081
+ # The result of executing a WorkerCommand.
1082
+ class WorkerCommandResult < ::Google::Protobuf::AbstractMessage
1083
+
1084
+ attr_accessor cancel_activity(): ::Temporalio::Api::Worker::V1::CancelActivityResult?
1085
+ def has_cancel_activity?: () -> bool
1086
+ def clear_cancel_activity: () -> void
1087
+
1088
+ attr_reader type(): ::Temporalio::Api::Worker::V1::CancelActivityResult?
1089
+ def has_type?: () -> bool
1090
+ def clear_type: () -> void
1091
+
1092
+ type init_map = {
1093
+ cancel_activity: (::Temporalio::Api::Worker::V1::CancelActivityResult | ::Temporalio::Api::Worker::V1::CancelActivityResult::init_map)?,
1094
+ "cancel_activity" => (::Temporalio::Api::Worker::V1::CancelActivityResult | ::Temporalio::Api::Worker::V1::CancelActivityResult::init_map)?,
1095
+ }
1096
+
1097
+ def initialize: (?init_map initial_value) -> void
1098
+
1099
+ def []:
1100
+ ("cancel_activity" name) -> ::Temporalio::Api::Worker::V1::CancelActivityResult?
1101
+
1102
+ def []=:
1103
+ ("cancel_activity" name, ::Temporalio::Api::Worker::V1::CancelActivityResult? value) -> void
1104
+ end
1105
+
1106
+ # Result of a CancelActivityCommand.
1107
+ # Treat both successful cancellation and no-op (activity is no longer running) as success.
1108
+ class CancelActivityResult < ::Google::Protobuf::AbstractMessage
1109
+
1110
+ type init_map = {
1111
+ }
1112
+
1113
+ def initialize: (?init_map initial_value) -> void
1114
+ end
1115
+ end
1116
+ end
1117
+ end
1118
+ end
1119
+
1120
+ module Google
1121
+ module Protobuf
1122
+ class DescriptorPool
1123
+ def lookup: (::String name) -> ::Google::Protobuf::Descriptor
1124
+ end
1125
+ end
1126
+ end