temporalio 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (492) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +1461 -621
  3. data/Cargo.toml +1 -1
  4. data/Gemfile +6 -5
  5. data/README.md +42 -1
  6. data/ext/Cargo.toml +9 -3
  7. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  8. data/lib/temporalio/api/cloud/billing/v1/message.rb +2 -1
  9. data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +17 -1
  10. data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
  11. data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
  12. data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
  13. data/lib/temporalio/api/cloud/namespace/v1/message.rb +5 -1
  14. data/lib/temporalio/api/command/v1/message.rb +2 -1
  15. data/lib/temporalio/api/common/v1/message.rb +5 -1
  16. data/lib/temporalio/api/deployment/v1/message.rb +3 -1
  17. data/lib/temporalio/api/history/v1/message.rb +3 -1
  18. data/lib/temporalio/api/namespace/v1/message.rb +1 -1
  19. data/lib/temporalio/api/nexus/v1/message.rb +1 -1
  20. data/lib/temporalio/api/nexusannotations/v1/options.rb +20 -0
  21. data/lib/temporalio/api/payload_visitor.rb +32 -0
  22. data/lib/temporalio/api/schedule/v1/message.rb +1 -1
  23. data/lib/temporalio/api/sdk/v1/event_group_marker.rb +26 -0
  24. data/lib/temporalio/api/update/v1/message.rb +1 -1
  25. data/lib/temporalio/api/workflow/v1/message.rb +3 -2
  26. data/lib/temporalio/api/workflowservice/v1/request_response.rb +11 -1
  27. data/lib/temporalio/api/workflowservice/v1/service.rb +3 -2
  28. data/lib/temporalio/client/connection/cloud_service.rb +120 -0
  29. data/lib/temporalio/client/connection/workflow_service.rb +75 -0
  30. data/lib/temporalio/client/connection.rb +37 -2
  31. data/lib/temporalio/client.rb +10 -5
  32. data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
  33. data/lib/temporalio/internal/bridge/client.rb +6 -1
  34. data/lib/temporalio/internal/bridge.rb +20 -0
  35. data/lib/temporalio/internal/google_protobuf.rb +11 -0
  36. data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
  37. data/lib/temporalio/internal/worker/workflow_instance/details.rb +3 -1
  38. data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +73 -2
  39. data/lib/temporalio/internal/worker/workflow_instance.rb +36 -6
  40. data/lib/temporalio/internal/worker/workflow_worker.rb +10 -2
  41. data/lib/temporalio/internal/workflow_task_failure_error.rb +9 -0
  42. data/lib/temporalio/version.rb +1 -1
  43. data/lib/temporalio/worker/activity_executor/fiber.rb +1 -1
  44. data/lib/temporalio/worker/activity_executor/thread_pool.rb +1 -1
  45. data/lib/temporalio/worker/illegal_workflow_call_validator.rb +3 -1
  46. data/lib/temporalio/worker/workflow_executor/thread_pool.rb +5 -1
  47. data/lib/temporalio/worker/workflow_replayer.rb +17 -4
  48. data/lib/temporalio/worker.rb +30 -5
  49. data/lib/temporalio/workflow/future.rb +5 -0
  50. data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
  51. data/lib/temporalio/workflow.rb +8 -0
  52. data/rbi/google/protobuf.rbi +25 -0
  53. data/rbi/temporalio/activity/cancellation_details.rbi +33 -0
  54. data/rbi/temporalio/activity/complete_async_error.rbi +3 -0
  55. data/rbi/temporalio/activity/context.rbi +42 -0
  56. data/rbi/temporalio/activity/definition.rbi +74 -0
  57. data/rbi/temporalio/activity/info.rbi +112 -0
  58. data/rbi/temporalio/activity.rbi +3 -0
  59. data/rbi/temporalio/api/activity/v1/message.rbi +1453 -0
  60. data/rbi/temporalio/api/batch/v1/message.rbi +1283 -0
  61. data/rbi/temporalio/api/callback/v1/message.rbi +188 -0
  62. data/rbi/temporalio/api/cloud/account/v1/message.rbi +650 -0
  63. data/rbi/temporalio/api/cloud/auditlog/v1/message.rbi +318 -0
  64. data/rbi/temporalio/api/cloud/billing/v1/message.rbi +480 -0
  65. data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +12454 -0
  66. data/rbi/temporalio/api/cloud/cloudservice/v1/service.rbi +3 -0
  67. data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +709 -0
  68. data/rbi/temporalio/api/cloud/cloudservice.rbi +5 -0
  69. data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +403 -0
  70. data/rbi/temporalio/api/cloud/identity/v1/message.rbi +3072 -0
  71. data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +3659 -0
  72. data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +595 -0
  73. data/rbi/temporalio/api/cloud/operation/v1/message.rbi +244 -0
  74. data/rbi/temporalio/api/cloud/region/v1/message.rbi +166 -0
  75. data/rbi/temporalio/api/cloud/resource/v1/message.rbi +29 -0
  76. data/rbi/temporalio/api/cloud/sink/v1/message.rbi +438 -0
  77. data/rbi/temporalio/api/cloud/usage/v1/message.rbi +409 -0
  78. data/rbi/temporalio/api/command/v1/message.rbi +2655 -0
  79. data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
  80. data/rbi/temporalio/api/common/v1/message.rbi +2983 -0
  81. data/rbi/temporalio/api/compute/v1/config.rbi +421 -0
  82. data/rbi/temporalio/api/compute/v1/provider.rbi +125 -0
  83. data/rbi/temporalio/api/compute/v1/scaler.rbi +102 -0
  84. data/rbi/temporalio/api/deployment/v1/message.rbi +2340 -0
  85. data/rbi/temporalio/api/enums/v1/activity.rbi +62 -0
  86. data/rbi/temporalio/api/enums/v1/batch_operation.rbi +47 -0
  87. data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
  88. data/rbi/temporalio/api/enums/v1/common.rbi +181 -0
  89. data/rbi/temporalio/api/enums/v1/deployment.rbi +80 -0
  90. data/rbi/temporalio/api/enums/v1/event_type.rbi +79 -0
  91. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +155 -0
  92. data/rbi/temporalio/api/enums/v1/namespace.rbi +58 -0
  93. data/rbi/temporalio/api/enums/v1/nexus.rbi +98 -0
  94. data/rbi/temporalio/api/enums/v1/query.rbi +40 -0
  95. data/rbi/temporalio/api/enums/v1/reset.rbi +60 -0
  96. data/rbi/temporalio/api/enums/v1/schedule.rbi +25 -0
  97. data/rbi/temporalio/api/enums/v1/task_queue.rbi +134 -0
  98. data/rbi/temporalio/api/enums/v1/update.rbi +39 -0
  99. data/rbi/temporalio/api/enums/v1/workflow.rbi +259 -0
  100. data/rbi/temporalio/api/errordetails/v1/message.rbi +1389 -0
  101. data/rbi/temporalio/api/export/v1/message.rbi +123 -0
  102. data/rbi/temporalio/api/failure/v1/message.rbi +1303 -0
  103. data/rbi/temporalio/api/filter/v1/message.rbi +267 -0
  104. data/rbi/temporalio/api/history/v1/message.rbi +10737 -0
  105. data/rbi/temporalio/api/namespace/v1/message.rbi +1044 -0
  106. data/rbi/temporalio/api/nexus/v1/message.rbi +2780 -0
  107. data/rbi/temporalio/api/nexusannotations/v1/options.rbi +161 -0
  108. data/rbi/temporalio/api/nexusservices/workerservice/v1/request_response.rbi +124 -0
  109. data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +1836 -0
  110. data/rbi/temporalio/api/operatorservice/v1/service.rbi +3 -0
  111. data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +143 -0
  112. data/rbi/temporalio/api/operatorservice.rbi +5 -0
  113. data/rbi/temporalio/api/payload_visitor.rbi +876 -0
  114. data/rbi/temporalio/api/protoc_gen_openapiv2/options/annotations.rbi +3 -0
  115. data/rbi/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbi +3482 -0
  116. data/rbi/temporalio/api/protocol/v1/message.rbi +139 -0
  117. data/rbi/temporalio/api/protometa/v1/annotations.rbi +97 -0
  118. data/rbi/temporalio/api/query/v1/message.rbi +288 -0
  119. data/rbi/temporalio/api/replication/v1/message.rbi +226 -0
  120. data/rbi/temporalio/api/rules/v1/message.rbi +492 -0
  121. data/rbi/temporalio/api/schedule/v1/message.rbi +2377 -0
  122. data/rbi/temporalio/api/sdk/v1/enhanced_stack_trace.rbi +478 -0
  123. data/rbi/temporalio/api/sdk/v1/event_group_marker.rbi +337 -0
  124. data/rbi/temporalio/api/sdk/v1/external_storage.rbi +85 -0
  125. data/rbi/temporalio/api/sdk/v1/task_complete_metadata.rbi +206 -0
  126. data/rbi/temporalio/api/sdk/v1/user_metadata.rbi +98 -0
  127. data/rbi/temporalio/api/sdk/v1/worker_config.rbi +255 -0
  128. data/rbi/temporalio/api/sdk/v1/workflow_metadata.rbi +297 -0
  129. data/rbi/temporalio/api/taskqueue/v1/message.rbi +2460 -0
  130. data/rbi/temporalio/api/testservice/v1/request_response.rbi +380 -0
  131. data/rbi/temporalio/api/testservice/v1/service.rbi +3 -0
  132. data/rbi/temporalio/api/testservice/v1/service_services.rbi +100 -0
  133. data/rbi/temporalio/api/update/v1/message.rbi +800 -0
  134. data/rbi/temporalio/api/version/v1/message.rbi +281 -0
  135. data/rbi/temporalio/api/worker/v1/message.rbi +1565 -0
  136. data/rbi/temporalio/api/workflow/v1/message.rbi +5011 -0
  137. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +30477 -0
  138. data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
  139. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1571 -0
  140. data/rbi/temporalio/api/workflowservice.rbi +5 -0
  141. data/rbi/temporalio/api.rbi +7 -0
  142. data/rbi/temporalio/cancellation.rbi +40 -0
  143. data/rbi/temporalio/client/activity_execution.rbi +134 -0
  144. data/rbi/temporalio/client/activity_execution_count.rbi +23 -0
  145. data/rbi/temporalio/client/activity_execution_status.rbi +11 -0
  146. data/rbi/temporalio/client/activity_handle.rbi +49 -0
  147. data/rbi/temporalio/client/activity_id_reference.rbi +24 -0
  148. data/rbi/temporalio/client/async_activity_handle.rbi +49 -0
  149. data/rbi/temporalio/client/connection/cloud_service.rbi +239 -0
  150. data/rbi/temporalio/client/connection/operator_service.rbi +47 -0
  151. data/rbi/temporalio/client/connection/service.rbi +19 -0
  152. data/rbi/temporalio/client/connection/test_service.rbi +29 -0
  153. data/rbi/temporalio/client/connection/workflow_service.rbi +377 -0
  154. data/rbi/temporalio/client/connection.rbi +284 -0
  155. data/rbi/temporalio/client/interceptor.rbi +1067 -0
  156. data/rbi/temporalio/client/pending_activity_state.rbi +9 -0
  157. data/rbi/temporalio/client/plugin.rbi +17 -0
  158. data/rbi/temporalio/client/schedule.rbi +677 -0
  159. data/rbi/temporalio/client/schedule_handle.rbi +40 -0
  160. data/rbi/temporalio/client/with_start_workflow_operation.rbi +126 -0
  161. data/rbi/temporalio/client/workflow_execution.rbi +62 -0
  162. data/rbi/temporalio/client/workflow_execution_count.rbi +23 -0
  163. data/rbi/temporalio/client/workflow_execution_status.rbi +11 -0
  164. data/rbi/temporalio/client/workflow_handle.rbi +148 -0
  165. data/rbi/temporalio/client/workflow_query_reject_condition.rbi +7 -0
  166. data/rbi/temporalio/client/workflow_update_handle.rbi +38 -0
  167. data/rbi/temporalio/client/workflow_update_wait_stage.rbi +7 -0
  168. data/rbi/temporalio/client.rbi +534 -0
  169. data/rbi/temporalio/common_enums.rbi +45 -0
  170. data/rbi/temporalio/contrib/open_telemetry.rbi +73 -0
  171. data/rbi/temporalio/converters/data_converter.rbi +44 -0
  172. data/rbi/temporalio/converters/failure_converter.rbi +20 -0
  173. data/rbi/temporalio/converters/payload_codec.rbi +11 -0
  174. data/rbi/temporalio/converters/payload_converter/binary_null.rbi +5 -0
  175. data/rbi/temporalio/converters/payload_converter/binary_plain.rbi +5 -0
  176. data/rbi/temporalio/converters/payload_converter/binary_protobuf.rbi +5 -0
  177. data/rbi/temporalio/converters/payload_converter/composite.rbi +20 -0
  178. data/rbi/temporalio/converters/payload_converter/encoding.rbi +14 -0
  179. data/rbi/temporalio/converters/payload_converter/json_plain.rbi +10 -0
  180. data/rbi/temporalio/converters/payload_converter/json_protobuf.rbi +5 -0
  181. data/rbi/temporalio/converters/payload_converter.rbi +28 -0
  182. data/rbi/temporalio/converters/raw_value.rbi +11 -0
  183. data/rbi/temporalio/converters.rbi +3 -0
  184. data/rbi/temporalio/env_config.rbi +156 -0
  185. data/rbi/temporalio/error/failure.rbi +3 -0
  186. data/rbi/temporalio/error.rbi +313 -0
  187. data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +547 -0
  188. data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +705 -0
  189. data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +332 -0
  190. data/rbi/temporalio/internal/bridge/api/common/common.rbi +191 -0
  191. data/rbi/temporalio/internal/bridge/api/core_interface.rbi +567 -0
  192. data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +255 -0
  193. data/rbi/temporalio/internal/bridge/api/nexus/nexus.rbi +527 -0
  194. data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +2808 -0
  195. data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +3309 -0
  196. data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +272 -0
  197. data/rbi/temporalio/internal/bridge/api.rbi +3 -0
  198. data/rbi/temporalio/internal/bridge/client.rbi +346 -0
  199. data/rbi/temporalio/internal/bridge/runtime.rbi +231 -0
  200. data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
  201. data/rbi/temporalio/internal/bridge/worker.rbi +250 -0
  202. data/rbi/temporalio/internal/bridge.rbi +47 -0
  203. data/rbi/temporalio/internal/client/implementation.rbi +53 -0
  204. data/rbi/temporalio/internal/google_protobuf.rbi +8 -0
  205. data/rbi/temporalio/internal/metric.rbi +55 -0
  206. data/rbi/temporalio/internal/proto_utils.rbi +148 -0
  207. data/rbi/temporalio/internal/worker/activity_worker.rbi +108 -0
  208. data/rbi/temporalio/internal/worker/multi_runner.rbi +175 -0
  209. data/rbi/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbi +20 -0
  210. data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +290 -0
  211. data/rbi/temporalio/internal/worker/workflow_instance/details.rbi +87 -0
  212. data/rbi/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbi +14 -0
  213. data/rbi/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbi +17 -0
  214. data/rbi/temporalio/internal/worker/workflow_instance/handler_execution.rbi +17 -0
  215. data/rbi/temporalio/internal/worker/workflow_instance/handler_hash.rbi +24 -0
  216. data/rbi/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbi +17 -0
  217. data/rbi/temporalio/internal/worker/workflow_instance/inbound_implementation.rbi +21 -0
  218. data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +47 -0
  219. data/rbi/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbi +19 -0
  220. data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +43 -0
  221. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbi +11 -0
  222. data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbi +15 -0
  223. data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +36 -0
  224. data/rbi/temporalio/internal/worker/workflow_instance.rbi +231 -0
  225. data/rbi/temporalio/internal/worker/workflow_worker.rbi +199 -0
  226. data/rbi/temporalio/internal/workflow_task_failure_error.rbi +3 -0
  227. data/rbi/temporalio/internal.rbi +3 -0
  228. data/rbi/temporalio/metric.rbi +56 -0
  229. data/rbi/temporalio/priority.rbi +38 -0
  230. data/rbi/temporalio/retry_policy.rbi +40 -0
  231. data/rbi/temporalio/runtime/metric_buffer.rbi +45 -0
  232. data/rbi/temporalio/runtime.rbi +185 -0
  233. data/rbi/temporalio/scoped_logger.rbi +50 -0
  234. data/rbi/temporalio/search_attributes.rbi +94 -0
  235. data/rbi/temporalio/simple_plugin.rbi +41 -0
  236. data/rbi/temporalio/testing/activity_environment.rbi +43 -0
  237. data/rbi/temporalio/testing/workflow_environment.rbi +116 -0
  238. data/rbi/temporalio/testing.rbi +3 -0
  239. data/rbi/temporalio/version.rbi +5 -0
  240. data/rbi/temporalio/versioning_override.rbi +13 -0
  241. data/rbi/temporalio/worker/activity_executor/fiber.rbi +20 -0
  242. data/rbi/temporalio/worker/activity_executor/thread_pool.rbi +20 -0
  243. data/rbi/temporalio/worker/activity_executor.rbi +20 -0
  244. data/rbi/temporalio/worker/deployment_options.rbi +23 -0
  245. data/rbi/temporalio/worker/illegal_workflow_call_validator.rbi +33 -0
  246. data/rbi/temporalio/worker/interceptor.rbi +489 -0
  247. data/rbi/temporalio/worker/plugin.rbi +49 -0
  248. data/rbi/temporalio/worker/poller_behavior.rbi +29 -0
  249. data/rbi/temporalio/worker/thread_pool.rbi +38 -0
  250. data/rbi/temporalio/worker/tuner.rbi +221 -0
  251. data/rbi/temporalio/worker/workflow_executor/thread_pool.rbi +15 -0
  252. data/rbi/temporalio/worker/workflow_executor.rbi +8 -0
  253. data/rbi/temporalio/worker/workflow_replayer.rbi +152 -0
  254. data/rbi/temporalio/worker.rbi +258 -0
  255. data/rbi/temporalio/worker_deployment_version.rbi +29 -0
  256. data/rbi/temporalio/workflow/activity_cancellation_type.rbi +7 -0
  257. data/rbi/temporalio/workflow/child_workflow_cancellation_type.rbi +8 -0
  258. data/rbi/temporalio/workflow/child_workflow_handle.rbi +27 -0
  259. data/rbi/temporalio/workflow/definition.rbi +305 -0
  260. data/rbi/temporalio/workflow/external_workflow_handle.rbi +24 -0
  261. data/rbi/temporalio/workflow/future.rbi +62 -0
  262. data/rbi/temporalio/workflow/handler_unfinished_policy.rbi +6 -0
  263. data/rbi/temporalio/workflow/info.rbi +100 -0
  264. data/rbi/temporalio/workflow/nexus_client.rbi +65 -0
  265. data/rbi/temporalio/workflow/nexus_operation_cancellation_type.rbi +8 -0
  266. data/rbi/temporalio/workflow/nexus_operation_handle.rbi +14 -0
  267. data/rbi/temporalio/workflow/parent_close_policy.rbi +8 -0
  268. data/rbi/temporalio/workflow/update_info.rbi +14 -0
  269. data/rbi/temporalio/workflow.rbi +393 -0
  270. data/rbi/temporalio/workflow_history.rbi +21 -0
  271. data/rbi/temporalio.rbi +5 -0
  272. data/sig/common.rbs +1 -0
  273. data/sig/google/protobuf_compat.rbs +17 -0
  274. data/sig/open_telemetry.rbs +47 -0
  275. data/sig/temporalio/activity/cancellation_details.rbs +21 -0
  276. data/sig/temporalio/activity/complete_async_error.rbs +6 -0
  277. data/sig/temporalio/activity/context.rbs +26 -0
  278. data/sig/temporalio/activity/definition.rbs +60 -0
  279. data/sig/temporalio/activity/info.rbs +57 -0
  280. data/sig/temporalio/activity.rbs +4 -0
  281. data/sig/temporalio/api/activity/v1/message.rbs +708 -0
  282. data/sig/temporalio/api/batch/v1/message.rbs +594 -0
  283. data/sig/temporalio/api/callback/v1/message.rbs +112 -0
  284. data/sig/temporalio/api/cloud/account/v1/message.rbs +314 -0
  285. data/sig/temporalio/api/cloud/auditlog/v1/message.rbs +168 -0
  286. data/sig/temporalio/api/cloud/billing/v1/message.rbs +279 -0
  287. data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +4726 -0
  288. data/sig/temporalio/api/cloud/cloudservice/v1/service.rbs +25 -0
  289. data/sig/temporalio/api/cloud/cloudservice.rbs +8 -0
  290. data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +191 -0
  291. data/sig/temporalio/api/cloud/identity/v1/message.rbs +1372 -0
  292. data/sig/temporalio/api/cloud/namespace/v1/message.rbs +1571 -0
  293. data/sig/temporalio/api/cloud/nexus/v1/message.rbs +269 -0
  294. data/sig/temporalio/api/cloud/operation/v1/message.rbs +156 -0
  295. data/sig/temporalio/api/cloud/region/v1/message.rbs +109 -0
  296. data/sig/temporalio/api/cloud/resource/v1/message.rbs +61 -0
  297. data/sig/temporalio/api/cloud/sink/v1/message.rbs +207 -0
  298. data/sig/temporalio/api/cloud/usage/v1/message.rbs +230 -0
  299. data/sig/temporalio/api/command/v1/message.rbs +1211 -0
  300. data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
  301. data/sig/temporalio/api/common/v1/message.rbs +1238 -0
  302. data/sig/temporalio/api/compute/v1/config.rbs +176 -0
  303. data/sig/temporalio/api/compute/v1/provider.rbs +73 -0
  304. data/sig/temporalio/api/compute/v1/scaler.rbs +60 -0
  305. data/sig/temporalio/api/deployment/v1/message.rbs +1063 -0
  306. data/sig/temporalio/api/enums/v1/activity.rbs +134 -0
  307. data/sig/temporalio/api/enums/v1/batch_operation.rbs +80 -0
  308. data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
  309. data/sig/temporalio/api/enums/v1/common.rbs +271 -0
  310. data/sig/temporalio/api/enums/v1/deployment.rbs +177 -0
  311. data/sig/temporalio/api/enums/v1/event_type.rbs +263 -0
  312. data/sig/temporalio/api/enums/v1/failed_cause.rbs +281 -0
  313. data/sig/temporalio/api/enums/v1/namespace.rbs +87 -0
  314. data/sig/temporalio/api/enums/v1/nexus.rbs +172 -0
  315. data/sig/temporalio/api/enums/v1/query.rbs +69 -0
  316. data/sig/temporalio/api/enums/v1/reset.rbs +106 -0
  317. data/sig/temporalio/api/enums/v1/schedule.rbs +68 -0
  318. data/sig/temporalio/api/enums/v1/task_queue.rbs +238 -0
  319. data/sig/temporalio/api/enums/v1/update.rbs +87 -0
  320. data/sig/temporalio/api/enums/v1/workflow.rbs +435 -0
  321. data/sig/temporalio/api/errordetails/v1/message.rbs +532 -0
  322. data/sig/temporalio/api/export/v1/message.rbs +63 -0
  323. data/sig/temporalio/api/failure/v1/message.rbs +579 -0
  324. data/sig/temporalio/api/filter/v1/message.rbs +121 -0
  325. data/sig/temporalio/api/history/v1/message.rbs +4928 -0
  326. data/sig/temporalio/api/namespace/v1/message.rbs +465 -0
  327. data/sig/temporalio/api/nexus/v1/message.rbs +1268 -0
  328. data/sig/temporalio/api/nexusannotations/v1/options.rbs +76 -0
  329. data/sig/temporalio/api/nexusservices/workerservice/v1/request_response.rbs +65 -0
  330. data/sig/temporalio/api/operatorservice/v1/request_response.rbs +679 -0
  331. data/sig/temporalio/api/operatorservice/v1/service.rbs +23 -0
  332. data/sig/temporalio/api/operatorservice.rbs +6 -0
  333. data/sig/temporalio/api/payload_visitor.rbs +298 -0
  334. data/sig/temporalio/api/protoc_gen_openapiv2/options/annotations.rbs +23 -0
  335. data/sig/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbs +1691 -0
  336. data/sig/temporalio/api/protocol/v1/message.rbs +90 -0
  337. data/sig/temporalio/api/protometa/v1/annotations.rbs +62 -0
  338. data/sig/temporalio/api/query/v1/message.rbs +138 -0
  339. data/sig/temporalio/api/replication/v1/message.rbs +109 -0
  340. data/sig/temporalio/api/rules/v1/message.rbs +213 -0
  341. data/sig/temporalio/api/schedule/v1/message.rbs +1066 -0
  342. data/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs +210 -0
  343. data/sig/temporalio/api/sdk/v1/event_group_marker.rbs +154 -0
  344. data/sig/temporalio/api/sdk/v1/external_storage.rbs +54 -0
  345. data/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs +92 -0
  346. data/sig/temporalio/api/sdk/v1/user_metadata.rbs +58 -0
  347. data/sig/temporalio/api/sdk/v1/worker_config.rbs +122 -0
  348. data/sig/temporalio/api/sdk/v1/workflow_metadata.rbs +138 -0
  349. data/sig/temporalio/api/taskqueue/v1/message.rbs +1013 -0
  350. data/sig/temporalio/api/testservice/v1/request_response.rbs +125 -0
  351. data/sig/temporalio/api/testservice/v1/service.rbs +23 -0
  352. data/sig/temporalio/api/update/v1/message.rbs +349 -0
  353. data/sig/temporalio/api/version/v1/message.rbs +143 -0
  354. data/sig/temporalio/api/worker/v1/message.rbs +716 -0
  355. data/sig/temporalio/api/workflow/v1/message.rbs +2322 -0
  356. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +12735 -0
  357. data/sig/temporalio/api/workflowservice/v1/service.rbs +23 -0
  358. data/sig/temporalio/api/workflowservice.rbs +6 -0
  359. data/sig/temporalio/api.rbs +4 -0
  360. data/sig/temporalio/cancellation.rbs +20 -0
  361. data/sig/temporalio/client/activity_execution.rbs +50 -0
  362. data/sig/temporalio/client/activity_execution_count.rbs +17 -0
  363. data/sig/temporalio/client/activity_execution_status.rbs +15 -0
  364. data/sig/temporalio/client/activity_handle.rbs +26 -0
  365. data/sig/temporalio/client/activity_id_reference.rbs +16 -0
  366. data/sig/temporalio/client/async_activity_handle.rbs +41 -0
  367. data/sig/temporalio/client/connection/cloud_service.rbs +315 -0
  368. data/sig/temporalio/client/connection/operator_service.rbs +59 -0
  369. data/sig/temporalio/client/connection/service.rbs +17 -0
  370. data/sig/temporalio/client/connection/test_service.rbs +35 -0
  371. data/sig/temporalio/client/connection/workflow_service.rbs +499 -0
  372. data/sig/temporalio/client/connection.rbs +143 -0
  373. data/sig/temporalio/client/interceptor.rbs +622 -0
  374. data/sig/temporalio/client/pending_activity_state.rbs +14 -0
  375. data/sig/temporalio/client/plugin.rbs +14 -0
  376. data/sig/temporalio/client/schedule.rbs +337 -0
  377. data/sig/temporalio/client/schedule_handle.rbs +44 -0
  378. data/sig/temporalio/client/with_start_workflow_operation.rbs +82 -0
  379. data/sig/temporalio/client/workflow_execution.rbs +37 -0
  380. data/sig/temporalio/client/workflow_execution_count.rbs +17 -0
  381. data/sig/temporalio/client/workflow_execution_status.rbs +16 -0
  382. data/sig/temporalio/client/workflow_handle.rbs +95 -0
  383. data/sig/temporalio/client/workflow_query_reject_condition.rbs +12 -0
  384. data/sig/temporalio/client/workflow_update_handle.rbs +26 -0
  385. data/sig/temporalio/client/workflow_update_wait_stage.rbs +12 -0
  386. data/sig/temporalio/client.rbs +271 -0
  387. data/sig/temporalio/common_enums.rbs +60 -0
  388. data/sig/temporalio/contrib/open_telemetry.rbs +74 -0
  389. data/sig/temporalio/converters/data_converter.rbs +32 -0
  390. data/sig/temporalio/converters/failure_converter.rbs +12 -0
  391. data/sig/temporalio/converters/payload_codec.rbs +8 -0
  392. data/sig/temporalio/converters/payload_converter/binary_null.rbs +9 -0
  393. data/sig/temporalio/converters/payload_converter/binary_plain.rbs +9 -0
  394. data/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +9 -0
  395. data/sig/temporalio/converters/payload_converter/composite.rbs +16 -0
  396. data/sig/temporalio/converters/payload_converter/encoding.rbs +13 -0
  397. data/sig/temporalio/converters/payload_converter/json_plain.rbs +14 -0
  398. data/sig/temporalio/converters/payload_converter/json_protobuf.rbs +9 -0
  399. data/sig/temporalio/converters/payload_converter.rbs +24 -0
  400. data/sig/temporalio/converters/raw_value.rbs +9 -0
  401. data/sig/temporalio/converters.rbs +4 -0
  402. data/sig/temporalio/env_config.rbs +86 -0
  403. data/sig/temporalio/error/failure.rbs +170 -0
  404. data/sig/temporalio/error.rbs +88 -0
  405. data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +247 -0
  406. data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +372 -0
  407. data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +207 -0
  408. data/sig/temporalio/internal/bridge/api/common/common.rbs +123 -0
  409. data/sig/temporalio/internal/bridge/api/core_interface.rbs +231 -0
  410. data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +134 -0
  411. data/sig/temporalio/internal/bridge/api/nexus/nexus.rbs +285 -0
  412. data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +1304 -0
  413. data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +1526 -0
  414. data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +136 -0
  415. data/sig/temporalio/internal/bridge/api.rbs +8 -0
  416. data/sig/temporalio/internal/bridge/client.rbs +144 -0
  417. data/sig/temporalio/internal/bridge/metric.rbs +28 -0
  418. data/sig/temporalio/internal/bridge/runtime.rbs +97 -0
  419. data/sig/temporalio/internal/bridge/testing.rbs +91 -0
  420. data/sig/temporalio/internal/bridge/worker.rbs +199 -0
  421. data/sig/temporalio/internal/bridge.rbs +36 -0
  422. data/sig/temporalio/internal/client/implementation.rbs +33 -0
  423. data/sig/temporalio/internal/google_protobuf.rbs +7 -0
  424. data/sig/temporalio/internal/metric.rbs +35 -0
  425. data/sig/temporalio/internal/proto_utils.rbs +94 -0
  426. data/sig/temporalio/internal/worker/activity_worker.rbs +64 -0
  427. data/sig/temporalio/internal/worker/multi_runner.rbs +132 -0
  428. data/sig/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbs +22 -0
  429. data/sig/temporalio/internal/worker/workflow_instance/context.rbs +172 -0
  430. data/sig/temporalio/internal/worker/workflow_instance/details.rbs +43 -0
  431. data/sig/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbs +15 -0
  432. data/sig/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbs +16 -0
  433. data/sig/temporalio/internal/worker/workflow_instance/handler_execution.rbs +19 -0
  434. data/sig/temporalio/internal/worker/workflow_instance/handler_hash.rbs +14 -0
  435. data/sig/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbs +20 -0
  436. data/sig/temporalio/internal/worker/workflow_instance/inbound_implementation.rbs +19 -0
  437. data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +25 -0
  438. data/sig/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbs +19 -0
  439. data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +35 -0
  440. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbs +16 -0
  441. data/sig/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbs +15 -0
  442. data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +52 -0
  443. data/sig/temporalio/internal/worker/workflow_instance.rbs +111 -0
  444. data/sig/temporalio/internal/worker/workflow_worker.rbs +99 -0
  445. data/sig/temporalio/internal/workflow_task_failure_error.rbs +6 -0
  446. data/sig/temporalio/internal.rbs +4 -0
  447. data/sig/temporalio/metric.rbs +55 -0
  448. data/sig/temporalio/priority.rbs +17 -0
  449. data/sig/temporalio/retry_policy.rbs +21 -0
  450. data/sig/temporalio/runtime/metric_buffer.rbs +49 -0
  451. data/sig/temporalio/runtime.rbs +118 -0
  452. data/sig/temporalio/scoped_logger.rbs +15 -0
  453. data/sig/temporalio/search_attributes.rbs +82 -0
  454. data/sig/temporalio/simple_plugin.rbs +65 -0
  455. data/sig/temporalio/testing/activity_environment.rbs +52 -0
  456. data/sig/temporalio/testing/workflow_environment.rbs +141 -0
  457. data/sig/temporalio/testing.rbs +4 -0
  458. data/sig/temporalio/version.rbs +3 -0
  459. data/sig/temporalio/versioning_override.rbs +17 -0
  460. data/sig/temporalio/worker/activity_executor/fiber.rbs +9 -0
  461. data/sig/temporalio/worker/activity_executor/thread_pool.rbs +11 -0
  462. data/sig/temporalio/worker/activity_executor.rbs +12 -0
  463. data/sig/temporalio/worker/deployment_options.rbs +17 -0
  464. data/sig/temporalio/worker/illegal_workflow_call_validator.rbs +25 -0
  465. data/sig/temporalio/worker/interceptor.rbs +373 -0
  466. data/sig/temporalio/worker/plugin.rbs +47 -0
  467. data/sig/temporalio/worker/poller_behavior.rbs +23 -0
  468. data/sig/temporalio/worker/thread_pool.rbs +44 -0
  469. data/sig/temporalio/worker/tuner.rbs +121 -0
  470. data/sig/temporalio/worker/workflow_executor/thread_pool.rbs +58 -0
  471. data/sig/temporalio/worker/workflow_executor.rbs +15 -0
  472. data/sig/temporalio/worker/workflow_replayer.rbs +105 -0
  473. data/sig/temporalio/worker.rbs +168 -0
  474. data/sig/temporalio/worker_deployment_version.rbs +17 -0
  475. data/sig/temporalio/workflow/activity_cancellation_type.rbs +11 -0
  476. data/sig/temporalio/workflow/child_workflow_cancellation_type.rbs +12 -0
  477. data/sig/temporalio/workflow/child_workflow_handle.rbs +18 -0
  478. data/sig/temporalio/workflow/definition.rbs +181 -0
  479. data/sig/temporalio/workflow/external_workflow_handle.rbs +17 -0
  480. data/sig/temporalio/workflow/future.rbs +24 -0
  481. data/sig/temporalio/workflow/handler_unfinished_policy.rbs +10 -0
  482. data/sig/temporalio/workflow/info.rbs +79 -0
  483. data/sig/temporalio/workflow/nexus_client.rbs +34 -0
  484. data/sig/temporalio/workflow/nexus_operation_cancellation_type.rbs +12 -0
  485. data/sig/temporalio/workflow/nexus_operation_handle.rbs +10 -0
  486. data/sig/temporalio/workflow/parent_close_policy.rbs +12 -0
  487. data/sig/temporalio/workflow/update_info.rbs +15 -0
  488. data/sig/temporalio/workflow.rbs +215 -0
  489. data/sig/temporalio/workflow_history.rbs +13 -0
  490. data/sig/temporalio.rbs +3 -0
  491. data/temporalio.gemspec +1 -1
  492. metadata +445 -2
@@ -0,0 +1,2780 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: temporal/api/nexus/v1/message.proto
3
+ # typed: strict
4
+
5
+ # A general purpose failure message.
6
+ # See: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure
7
+ class Temporalio::Api::Nexus::V1::Failure
8
+ include ::Google::Protobuf::MessageExts
9
+ extend ::Google::Protobuf::MessageExts::ClassMethods
10
+
11
+ sig do
12
+ params(
13
+ message: T.nilable(String),
14
+ stack_trace: T.nilable(String),
15
+ metadata: T.nilable(T::Hash[String, String]),
16
+ details: T.nilable(String),
17
+ cause: T.nilable(Temporalio::Api::Nexus::V1::Failure)
18
+ ).void
19
+ end
20
+ def initialize(
21
+ message: "",
22
+ stack_trace: "",
23
+ metadata: ::Google::Protobuf::Map.new(:string, :string),
24
+ details: "",
25
+ cause: nil
26
+ )
27
+ end
28
+
29
+ sig { returns(String) }
30
+ def message
31
+ end
32
+
33
+ sig { params(value: String).void }
34
+ def message=(value)
35
+ end
36
+
37
+ sig { void }
38
+ def clear_message
39
+ end
40
+
41
+ sig { returns(String) }
42
+ def stack_trace
43
+ end
44
+
45
+ sig { params(value: String).void }
46
+ def stack_trace=(value)
47
+ end
48
+
49
+ sig { void }
50
+ def clear_stack_trace
51
+ end
52
+
53
+ sig { returns(T::Hash[String, String]) }
54
+ def metadata
55
+ end
56
+
57
+ sig { params(value: ::Google::Protobuf::Map).void }
58
+ def metadata=(value)
59
+ end
60
+
61
+ sig { void }
62
+ def clear_metadata
63
+ end
64
+
65
+ # UTF-8 encoded JSON serializable details.
66
+ sig { returns(String) }
67
+ def details
68
+ end
69
+
70
+ # UTF-8 encoded JSON serializable details.
71
+ sig { params(value: String).void }
72
+ def details=(value)
73
+ end
74
+
75
+ # UTF-8 encoded JSON serializable details.
76
+ sig { void }
77
+ def clear_details
78
+ end
79
+
80
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::Failure)) }
81
+ def cause
82
+ end
83
+
84
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::Failure)).void }
85
+ def cause=(value)
86
+ end
87
+
88
+ sig { void }
89
+ def clear_cause
90
+ end
91
+
92
+ sig { params(field: String).returns(T.untyped) }
93
+ def [](field)
94
+ end
95
+
96
+ sig { params(field: String, value: T.untyped).void }
97
+ def []=(field, value)
98
+ end
99
+
100
+ sig { returns(T::Hash[Symbol, T.untyped]) }
101
+ def to_h
102
+ end
103
+
104
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::Failure) }
105
+ def self.decode(str)
106
+ end
107
+
108
+ sig { params(msg: Temporalio::Api::Nexus::V1::Failure).returns(String) }
109
+ def self.encode(msg)
110
+ end
111
+
112
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::Failure) }
113
+ def self.decode_json(str, **kw)
114
+ end
115
+
116
+ sig { params(msg: Temporalio::Api::Nexus::V1::Failure, kw: T.untyped).returns(String) }
117
+ def self.encode_json(msg, **kw)
118
+ end
119
+
120
+ sig { returns(::Google::Protobuf::Descriptor) }
121
+ def self.descriptor
122
+ end
123
+ end
124
+
125
+ class Temporalio::Api::Nexus::V1::HandlerError
126
+ include ::Google::Protobuf::MessageExts
127
+ extend ::Google::Protobuf::MessageExts::ClassMethods
128
+
129
+ sig do
130
+ params(
131
+ error_type: T.nilable(String),
132
+ failure: T.nilable(Temporalio::Api::Nexus::V1::Failure),
133
+ retry_behavior: T.nilable(T.any(Symbol, String, Integer))
134
+ ).void
135
+ end
136
+ def initialize(
137
+ error_type: "",
138
+ failure: nil,
139
+ retry_behavior: :NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED
140
+ )
141
+ end
142
+
143
+ # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.
144
+ sig { returns(String) }
145
+ def error_type
146
+ end
147
+
148
+ # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.
149
+ sig { params(value: String).void }
150
+ def error_type=(value)
151
+ end
152
+
153
+ # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.
154
+ sig { void }
155
+ def clear_error_type
156
+ end
157
+
158
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::Failure)) }
159
+ def failure
160
+ end
161
+
162
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::Failure)).void }
163
+ def failure=(value)
164
+ end
165
+
166
+ sig { void }
167
+ def clear_failure
168
+ end
169
+
170
+ # Retry behavior, defaults to the retry behavior of the error type as defined in the spec.
171
+ sig { returns(T.any(Symbol, Integer)) }
172
+ def retry_behavior
173
+ end
174
+
175
+ # Retry behavior, defaults to the retry behavior of the error type as defined in the spec.
176
+ sig { params(value: T.any(Symbol, String, Integer)).void }
177
+ def retry_behavior=(value)
178
+ end
179
+
180
+ # Retry behavior, defaults to the retry behavior of the error type as defined in the spec.
181
+ sig { void }
182
+ def clear_retry_behavior
183
+ end
184
+
185
+ sig { params(field: String).returns(T.untyped) }
186
+ def [](field)
187
+ end
188
+
189
+ sig { params(field: String, value: T.untyped).void }
190
+ def []=(field, value)
191
+ end
192
+
193
+ sig { returns(T::Hash[Symbol, T.untyped]) }
194
+ def to_h
195
+ end
196
+
197
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::HandlerError) }
198
+ def self.decode(str)
199
+ end
200
+
201
+ sig { params(msg: Temporalio::Api::Nexus::V1::HandlerError).returns(String) }
202
+ def self.encode(msg)
203
+ end
204
+
205
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::HandlerError) }
206
+ def self.decode_json(str, **kw)
207
+ end
208
+
209
+ sig { params(msg: Temporalio::Api::Nexus::V1::HandlerError, kw: T.untyped).returns(String) }
210
+ def self.encode_json(msg, **kw)
211
+ end
212
+
213
+ sig { returns(::Google::Protobuf::Descriptor) }
214
+ def self.descriptor
215
+ end
216
+ end
217
+
218
+ class Temporalio::Api::Nexus::V1::UnsuccessfulOperationError
219
+ include ::Google::Protobuf::MessageExts
220
+ extend ::Google::Protobuf::MessageExts::ClassMethods
221
+
222
+ sig do
223
+ params(
224
+ operation_state: T.nilable(String),
225
+ failure: T.nilable(Temporalio::Api::Nexus::V1::Failure)
226
+ ).void
227
+ end
228
+ def initialize(
229
+ operation_state: "",
230
+ failure: nil
231
+ )
232
+ end
233
+
234
+ # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo.
235
+ sig { returns(String) }
236
+ def operation_state
237
+ end
238
+
239
+ # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo.
240
+ sig { params(value: String).void }
241
+ def operation_state=(value)
242
+ end
243
+
244
+ # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo.
245
+ sig { void }
246
+ def clear_operation_state
247
+ end
248
+
249
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::Failure)) }
250
+ def failure
251
+ end
252
+
253
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::Failure)).void }
254
+ def failure=(value)
255
+ end
256
+
257
+ sig { void }
258
+ def clear_failure
259
+ end
260
+
261
+ sig { params(field: String).returns(T.untyped) }
262
+ def [](field)
263
+ end
264
+
265
+ sig { params(field: String, value: T.untyped).void }
266
+ def []=(field, value)
267
+ end
268
+
269
+ sig { returns(T::Hash[Symbol, T.untyped]) }
270
+ def to_h
271
+ end
272
+
273
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::UnsuccessfulOperationError) }
274
+ def self.decode(str)
275
+ end
276
+
277
+ sig { params(msg: Temporalio::Api::Nexus::V1::UnsuccessfulOperationError).returns(String) }
278
+ def self.encode(msg)
279
+ end
280
+
281
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::UnsuccessfulOperationError) }
282
+ def self.decode_json(str, **kw)
283
+ end
284
+
285
+ sig { params(msg: Temporalio::Api::Nexus::V1::UnsuccessfulOperationError, kw: T.untyped).returns(String) }
286
+ def self.encode_json(msg, **kw)
287
+ end
288
+
289
+ sig { returns(::Google::Protobuf::Descriptor) }
290
+ def self.descriptor
291
+ end
292
+ end
293
+
294
+ class Temporalio::Api::Nexus::V1::Link
295
+ include ::Google::Protobuf::MessageExts
296
+ extend ::Google::Protobuf::MessageExts::ClassMethods
297
+
298
+ sig do
299
+ params(
300
+ url: T.nilable(String),
301
+ type: T.nilable(String)
302
+ ).void
303
+ end
304
+ def initialize(
305
+ url: "",
306
+ type: ""
307
+ )
308
+ end
309
+
310
+ # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#links.
311
+ sig { returns(String) }
312
+ def url
313
+ end
314
+
315
+ # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#links.
316
+ sig { params(value: String).void }
317
+ def url=(value)
318
+ end
319
+
320
+ # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#links.
321
+ sig { void }
322
+ def clear_url
323
+ end
324
+
325
+ sig { returns(String) }
326
+ def type
327
+ end
328
+
329
+ sig { params(value: String).void }
330
+ def type=(value)
331
+ end
332
+
333
+ sig { void }
334
+ def clear_type
335
+ end
336
+
337
+ sig { params(field: String).returns(T.untyped) }
338
+ def [](field)
339
+ end
340
+
341
+ sig { params(field: String, value: T.untyped).void }
342
+ def []=(field, value)
343
+ end
344
+
345
+ sig { returns(T::Hash[Symbol, T.untyped]) }
346
+ def to_h
347
+ end
348
+
349
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::Link) }
350
+ def self.decode(str)
351
+ end
352
+
353
+ sig { params(msg: Temporalio::Api::Nexus::V1::Link).returns(String) }
354
+ def self.encode(msg)
355
+ end
356
+
357
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::Link) }
358
+ def self.decode_json(str, **kw)
359
+ end
360
+
361
+ sig { params(msg: Temporalio::Api::Nexus::V1::Link, kw: T.untyped).returns(String) }
362
+ def self.encode_json(msg, **kw)
363
+ end
364
+
365
+ sig { returns(::Google::Protobuf::Descriptor) }
366
+ def self.descriptor
367
+ end
368
+ end
369
+
370
+ # A request to start an operation.
371
+ class Temporalio::Api::Nexus::V1::StartOperationRequest
372
+ include ::Google::Protobuf::MessageExts
373
+ extend ::Google::Protobuf::MessageExts::ClassMethods
374
+
375
+ sig do
376
+ params(
377
+ service: T.nilable(String),
378
+ operation: T.nilable(String),
379
+ request_id: T.nilable(String),
380
+ callback: T.nilable(String),
381
+ payload: T.nilable(Temporalio::Api::Common::V1::Payload),
382
+ callback_header: T.nilable(T::Hash[String, String]),
383
+ links: T.nilable(T::Array[T.nilable(Temporalio::Api::Nexus::V1::Link)])
384
+ ).void
385
+ end
386
+ def initialize(
387
+ service: "",
388
+ operation: "",
389
+ request_id: "",
390
+ callback: "",
391
+ payload: nil,
392
+ callback_header: ::Google::Protobuf::Map.new(:string, :string),
393
+ links: []
394
+ )
395
+ end
396
+
397
+ # Name of service to start the operation in.
398
+ sig { returns(String) }
399
+ def service
400
+ end
401
+
402
+ # Name of service to start the operation in.
403
+ sig { params(value: String).void }
404
+ def service=(value)
405
+ end
406
+
407
+ # Name of service to start the operation in.
408
+ sig { void }
409
+ def clear_service
410
+ end
411
+
412
+ # Type of operation to start.
413
+ sig { returns(String) }
414
+ def operation
415
+ end
416
+
417
+ # Type of operation to start.
418
+ sig { params(value: String).void }
419
+ def operation=(value)
420
+ end
421
+
422
+ # Type of operation to start.
423
+ sig { void }
424
+ def clear_operation
425
+ end
426
+
427
+ # A request ID that can be used as an idempotentency key.
428
+ sig { returns(String) }
429
+ def request_id
430
+ end
431
+
432
+ # A request ID that can be used as an idempotentency key.
433
+ sig { params(value: String).void }
434
+ def request_id=(value)
435
+ end
436
+
437
+ # A request ID that can be used as an idempotentency key.
438
+ sig { void }
439
+ def clear_request_id
440
+ end
441
+
442
+ # Callback URL to call upon completion if the started operation is async.
443
+ sig { returns(String) }
444
+ def callback
445
+ end
446
+
447
+ # Callback URL to call upon completion if the started operation is async.
448
+ sig { params(value: String).void }
449
+ def callback=(value)
450
+ end
451
+
452
+ # Callback URL to call upon completion if the started operation is async.
453
+ sig { void }
454
+ def clear_callback
455
+ end
456
+
457
+ # Full request body from the incoming HTTP request.
458
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
459
+ def payload
460
+ end
461
+
462
+ # Full request body from the incoming HTTP request.
463
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
464
+ def payload=(value)
465
+ end
466
+
467
+ # Full request body from the incoming HTTP request.
468
+ sig { void }
469
+ def clear_payload
470
+ end
471
+
472
+ # Header that is expected to be attached to the callback request when the operation completes.
473
+ sig { returns(T::Hash[String, String]) }
474
+ def callback_header
475
+ end
476
+
477
+ # Header that is expected to be attached to the callback request when the operation completes.
478
+ sig { params(value: ::Google::Protobuf::Map).void }
479
+ def callback_header=(value)
480
+ end
481
+
482
+ # Header that is expected to be attached to the callback request when the operation completes.
483
+ sig { void }
484
+ def clear_callback_header
485
+ end
486
+
487
+ # Links contain caller information and can be attached to the operations started by the handler.
488
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Nexus::V1::Link)]) }
489
+ def links
490
+ end
491
+
492
+ # Links contain caller information and can be attached to the operations started by the handler.
493
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
494
+ def links=(value)
495
+ end
496
+
497
+ # Links contain caller information and can be attached to the operations started by the handler.
498
+ sig { void }
499
+ def clear_links
500
+ end
501
+
502
+ sig { params(field: String).returns(T.untyped) }
503
+ def [](field)
504
+ end
505
+
506
+ sig { params(field: String, value: T.untyped).void }
507
+ def []=(field, value)
508
+ end
509
+
510
+ sig { returns(T::Hash[Symbol, T.untyped]) }
511
+ def to_h
512
+ end
513
+
514
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::StartOperationRequest) }
515
+ def self.decode(str)
516
+ end
517
+
518
+ sig { params(msg: Temporalio::Api::Nexus::V1::StartOperationRequest).returns(String) }
519
+ def self.encode(msg)
520
+ end
521
+
522
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::StartOperationRequest) }
523
+ def self.decode_json(str, **kw)
524
+ end
525
+
526
+ sig { params(msg: Temporalio::Api::Nexus::V1::StartOperationRequest, kw: T.untyped).returns(String) }
527
+ def self.encode_json(msg, **kw)
528
+ end
529
+
530
+ sig { returns(::Google::Protobuf::Descriptor) }
531
+ def self.descriptor
532
+ end
533
+ end
534
+
535
+ # A request to cancel an operation.
536
+ class Temporalio::Api::Nexus::V1::CancelOperationRequest
537
+ include ::Google::Protobuf::MessageExts
538
+ extend ::Google::Protobuf::MessageExts::ClassMethods
539
+
540
+ sig do
541
+ params(
542
+ service: T.nilable(String),
543
+ operation: T.nilable(String),
544
+ operation_id: T.nilable(String),
545
+ operation_token: T.nilable(String)
546
+ ).void
547
+ end
548
+ def initialize(
549
+ service: "",
550
+ operation: "",
551
+ operation_id: "",
552
+ operation_token: ""
553
+ )
554
+ end
555
+
556
+ # Service name.
557
+ sig { returns(String) }
558
+ def service
559
+ end
560
+
561
+ # Service name.
562
+ sig { params(value: String).void }
563
+ def service=(value)
564
+ end
565
+
566
+ # Service name.
567
+ sig { void }
568
+ def clear_service
569
+ end
570
+
571
+ # Type of operation to cancel.
572
+ sig { returns(String) }
573
+ def operation
574
+ end
575
+
576
+ # Type of operation to cancel.
577
+ sig { params(value: String).void }
578
+ def operation=(value)
579
+ end
580
+
581
+ # Type of operation to cancel.
582
+ sig { void }
583
+ def clear_operation
584
+ end
585
+
586
+ # Operation ID as originally generated by a Handler.
587
+ #
588
+ # Deprecated. Renamed to operation_token.
589
+ sig { returns(String) }
590
+ def operation_id
591
+ end
592
+
593
+ # Operation ID as originally generated by a Handler.
594
+ #
595
+ # Deprecated. Renamed to operation_token.
596
+ sig { params(value: String).void }
597
+ def operation_id=(value)
598
+ end
599
+
600
+ # Operation ID as originally generated by a Handler.
601
+ #
602
+ # Deprecated. Renamed to operation_token.
603
+ sig { void }
604
+ def clear_operation_id
605
+ end
606
+
607
+ # Operation token as originally generated by a Handler.
608
+ sig { returns(String) }
609
+ def operation_token
610
+ end
611
+
612
+ # Operation token as originally generated by a Handler.
613
+ sig { params(value: String).void }
614
+ def operation_token=(value)
615
+ end
616
+
617
+ # Operation token as originally generated by a Handler.
618
+ sig { void }
619
+ def clear_operation_token
620
+ end
621
+
622
+ sig { params(field: String).returns(T.untyped) }
623
+ def [](field)
624
+ end
625
+
626
+ sig { params(field: String, value: T.untyped).void }
627
+ def []=(field, value)
628
+ end
629
+
630
+ sig { returns(T::Hash[Symbol, T.untyped]) }
631
+ def to_h
632
+ end
633
+
634
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::CancelOperationRequest) }
635
+ def self.decode(str)
636
+ end
637
+
638
+ sig { params(msg: Temporalio::Api::Nexus::V1::CancelOperationRequest).returns(String) }
639
+ def self.encode(msg)
640
+ end
641
+
642
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::CancelOperationRequest) }
643
+ def self.decode_json(str, **kw)
644
+ end
645
+
646
+ sig { params(msg: Temporalio::Api::Nexus::V1::CancelOperationRequest, kw: T.untyped).returns(String) }
647
+ def self.encode_json(msg, **kw)
648
+ end
649
+
650
+ sig { returns(::Google::Protobuf::Descriptor) }
651
+ def self.descriptor
652
+ end
653
+ end
654
+
655
+ # A Nexus request.
656
+ class Temporalio::Api::Nexus::V1::Request
657
+ include ::Google::Protobuf::MessageExts
658
+ extend ::Google::Protobuf::MessageExts::ClassMethods
659
+
660
+ sig do
661
+ params(
662
+ header: T.nilable(T::Hash[String, String]),
663
+ scheduled_time: T.nilable(Google::Protobuf::Timestamp),
664
+ capabilities: T.nilable(Temporalio::Api::Nexus::V1::Request::Capabilities),
665
+ start_operation: T.nilable(Temporalio::Api::Nexus::V1::StartOperationRequest),
666
+ cancel_operation: T.nilable(Temporalio::Api::Nexus::V1::CancelOperationRequest),
667
+ endpoint: T.nilable(String)
668
+ ).void
669
+ end
670
+ def initialize(
671
+ header: ::Google::Protobuf::Map.new(:string, :string),
672
+ scheduled_time: nil,
673
+ capabilities: nil,
674
+ start_operation: nil,
675
+ cancel_operation: nil,
676
+ endpoint: ""
677
+ )
678
+ end
679
+
680
+ # Headers extracted from the original request in the Temporal frontend.
681
+ # When using Nexus over HTTP, this includes the request's HTTP headers ignoring multiple values.
682
+ sig { returns(T::Hash[String, String]) }
683
+ def header
684
+ end
685
+
686
+ # Headers extracted from the original request in the Temporal frontend.
687
+ # When using Nexus over HTTP, this includes the request's HTTP headers ignoring multiple values.
688
+ sig { params(value: ::Google::Protobuf::Map).void }
689
+ def header=(value)
690
+ end
691
+
692
+ # Headers extracted from the original request in the Temporal frontend.
693
+ # When using Nexus over HTTP, this includes the request's HTTP headers ignoring multiple values.
694
+ sig { void }
695
+ def clear_header
696
+ end
697
+
698
+ # The timestamp when the request was scheduled in the frontend.
699
+ # (-- api-linter: core::0142::time-field-names=disabled
700
+ # aip.dev/not-precedent: Not following linter rules. --)
701
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
702
+ def scheduled_time
703
+ end
704
+
705
+ # The timestamp when the request was scheduled in the frontend.
706
+ # (-- api-linter: core::0142::time-field-names=disabled
707
+ # aip.dev/not-precedent: Not following linter rules. --)
708
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
709
+ def scheduled_time=(value)
710
+ end
711
+
712
+ # The timestamp when the request was scheduled in the frontend.
713
+ # (-- api-linter: core::0142::time-field-names=disabled
714
+ # aip.dev/not-precedent: Not following linter rules. --)
715
+ sig { void }
716
+ def clear_scheduled_time
717
+ end
718
+
719
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::Request::Capabilities)) }
720
+ def capabilities
721
+ end
722
+
723
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::Request::Capabilities)).void }
724
+ def capabilities=(value)
725
+ end
726
+
727
+ sig { void }
728
+ def clear_capabilities
729
+ end
730
+
731
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::StartOperationRequest)) }
732
+ def start_operation
733
+ end
734
+
735
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::StartOperationRequest)).void }
736
+ def start_operation=(value)
737
+ end
738
+
739
+ sig { void }
740
+ def clear_start_operation
741
+ end
742
+
743
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::CancelOperationRequest)) }
744
+ def cancel_operation
745
+ end
746
+
747
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::CancelOperationRequest)).void }
748
+ def cancel_operation=(value)
749
+ end
750
+
751
+ sig { void }
752
+ def clear_cancel_operation
753
+ end
754
+
755
+ # The endpoint this request was addressed to before forwarding to the worker.
756
+ # Supported from server version 1.30.0.
757
+ sig { returns(String) }
758
+ def endpoint
759
+ end
760
+
761
+ # The endpoint this request was addressed to before forwarding to the worker.
762
+ # Supported from server version 1.30.0.
763
+ sig { params(value: String).void }
764
+ def endpoint=(value)
765
+ end
766
+
767
+ # The endpoint this request was addressed to before forwarding to the worker.
768
+ # Supported from server version 1.30.0.
769
+ sig { void }
770
+ def clear_endpoint
771
+ end
772
+
773
+ sig { returns(T.nilable(Symbol)) }
774
+ def variant
775
+ end
776
+
777
+ sig { params(field: String).returns(T.untyped) }
778
+ def [](field)
779
+ end
780
+
781
+ sig { params(field: String, value: T.untyped).void }
782
+ def []=(field, value)
783
+ end
784
+
785
+ sig { returns(T::Hash[Symbol, T.untyped]) }
786
+ def to_h
787
+ end
788
+
789
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::Request) }
790
+ def self.decode(str)
791
+ end
792
+
793
+ sig { params(msg: Temporalio::Api::Nexus::V1::Request).returns(String) }
794
+ def self.encode(msg)
795
+ end
796
+
797
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::Request) }
798
+ def self.decode_json(str, **kw)
799
+ end
800
+
801
+ sig { params(msg: Temporalio::Api::Nexus::V1::Request, kw: T.untyped).returns(String) }
802
+ def self.encode_json(msg, **kw)
803
+ end
804
+
805
+ sig { returns(::Google::Protobuf::Descriptor) }
806
+ def self.descriptor
807
+ end
808
+ end
809
+
810
+ # Response variant for StartOperationRequest.
811
+ class Temporalio::Api::Nexus::V1::StartOperationResponse
812
+ include ::Google::Protobuf::MessageExts
813
+ extend ::Google::Protobuf::MessageExts::ClassMethods
814
+
815
+ sig do
816
+ params(
817
+ sync_success: T.nilable(Temporalio::Api::Nexus::V1::StartOperationResponse::Sync),
818
+ async_success: T.nilable(Temporalio::Api::Nexus::V1::StartOperationResponse::Async),
819
+ operation_error: T.nilable(Temporalio::Api::Nexus::V1::UnsuccessfulOperationError),
820
+ failure: T.nilable(Temporalio::Api::Failure::V1::Failure)
821
+ ).void
822
+ end
823
+ def initialize(
824
+ sync_success: nil,
825
+ async_success: nil,
826
+ operation_error: nil,
827
+ failure: nil
828
+ )
829
+ end
830
+
831
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::StartOperationResponse::Sync)) }
832
+ def sync_success
833
+ end
834
+
835
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::StartOperationResponse::Sync)).void }
836
+ def sync_success=(value)
837
+ end
838
+
839
+ sig { void }
840
+ def clear_sync_success
841
+ end
842
+
843
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::StartOperationResponse::Async)) }
844
+ def async_success
845
+ end
846
+
847
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::StartOperationResponse::Async)).void }
848
+ def async_success=(value)
849
+ end
850
+
851
+ sig { void }
852
+ def clear_async_success
853
+ end
854
+
855
+ # The operation completed unsuccessfully (failed or canceled).
856
+ # Deprecated. Use the failure variant instead.
857
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::UnsuccessfulOperationError)) }
858
+ def operation_error
859
+ end
860
+
861
+ # The operation completed unsuccessfully (failed or canceled).
862
+ # Deprecated. Use the failure variant instead.
863
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::UnsuccessfulOperationError)).void }
864
+ def operation_error=(value)
865
+ end
866
+
867
+ # The operation completed unsuccessfully (failed or canceled).
868
+ # Deprecated. Use the failure variant instead.
869
+ sig { void }
870
+ def clear_operation_error
871
+ end
872
+
873
+ # The operation completed unsuccessfully (failed or canceled).
874
+ # Failure object must contain an ApplicationFailureInfo or CanceledFailureInfo object.
875
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
876
+ def failure
877
+ end
878
+
879
+ # The operation completed unsuccessfully (failed or canceled).
880
+ # Failure object must contain an ApplicationFailureInfo or CanceledFailureInfo object.
881
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
882
+ def failure=(value)
883
+ end
884
+
885
+ # The operation completed unsuccessfully (failed or canceled).
886
+ # Failure object must contain an ApplicationFailureInfo or CanceledFailureInfo object.
887
+ sig { void }
888
+ def clear_failure
889
+ end
890
+
891
+ sig { returns(T.nilable(Symbol)) }
892
+ def variant
893
+ end
894
+
895
+ sig { params(field: String).returns(T.untyped) }
896
+ def [](field)
897
+ end
898
+
899
+ sig { params(field: String, value: T.untyped).void }
900
+ def []=(field, value)
901
+ end
902
+
903
+ sig { returns(T::Hash[Symbol, T.untyped]) }
904
+ def to_h
905
+ end
906
+
907
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::StartOperationResponse) }
908
+ def self.decode(str)
909
+ end
910
+
911
+ sig { params(msg: Temporalio::Api::Nexus::V1::StartOperationResponse).returns(String) }
912
+ def self.encode(msg)
913
+ end
914
+
915
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::StartOperationResponse) }
916
+ def self.decode_json(str, **kw)
917
+ end
918
+
919
+ sig { params(msg: Temporalio::Api::Nexus::V1::StartOperationResponse, kw: T.untyped).returns(String) }
920
+ def self.encode_json(msg, **kw)
921
+ end
922
+
923
+ sig { returns(::Google::Protobuf::Descriptor) }
924
+ def self.descriptor
925
+ end
926
+ end
927
+
928
+ # Response variant for CancelOperationRequest.
929
+ class Temporalio::Api::Nexus::V1::CancelOperationResponse
930
+ include ::Google::Protobuf::MessageExts
931
+ extend ::Google::Protobuf::MessageExts::ClassMethods
932
+
933
+ sig {void}
934
+ def initialize; end
935
+
936
+ sig { params(field: String).returns(T.untyped) }
937
+ def [](field)
938
+ end
939
+
940
+ sig { params(field: String, value: T.untyped).void }
941
+ def []=(field, value)
942
+ end
943
+
944
+ sig { returns(T::Hash[Symbol, T.untyped]) }
945
+ def to_h
946
+ end
947
+
948
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::CancelOperationResponse) }
949
+ def self.decode(str)
950
+ end
951
+
952
+ sig { params(msg: Temporalio::Api::Nexus::V1::CancelOperationResponse).returns(String) }
953
+ def self.encode(msg)
954
+ end
955
+
956
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::CancelOperationResponse) }
957
+ def self.decode_json(str, **kw)
958
+ end
959
+
960
+ sig { params(msg: Temporalio::Api::Nexus::V1::CancelOperationResponse, kw: T.untyped).returns(String) }
961
+ def self.encode_json(msg, **kw)
962
+ end
963
+
964
+ sig { returns(::Google::Protobuf::Descriptor) }
965
+ def self.descriptor
966
+ end
967
+ end
968
+
969
+ # A response indicating that the handler has successfully processed a request.
970
+ class Temporalio::Api::Nexus::V1::Response
971
+ include ::Google::Protobuf::MessageExts
972
+ extend ::Google::Protobuf::MessageExts::ClassMethods
973
+
974
+ sig do
975
+ params(
976
+ start_operation: T.nilable(Temporalio::Api::Nexus::V1::StartOperationResponse),
977
+ cancel_operation: T.nilable(Temporalio::Api::Nexus::V1::CancelOperationResponse)
978
+ ).void
979
+ end
980
+ def initialize(
981
+ start_operation: nil,
982
+ cancel_operation: nil
983
+ )
984
+ end
985
+
986
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::StartOperationResponse)) }
987
+ def start_operation
988
+ end
989
+
990
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::StartOperationResponse)).void }
991
+ def start_operation=(value)
992
+ end
993
+
994
+ sig { void }
995
+ def clear_start_operation
996
+ end
997
+
998
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::CancelOperationResponse)) }
999
+ def cancel_operation
1000
+ end
1001
+
1002
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::CancelOperationResponse)).void }
1003
+ def cancel_operation=(value)
1004
+ end
1005
+
1006
+ sig { void }
1007
+ def clear_cancel_operation
1008
+ end
1009
+
1010
+ sig { returns(T.nilable(Symbol)) }
1011
+ def variant
1012
+ end
1013
+
1014
+ sig { params(field: String).returns(T.untyped) }
1015
+ def [](field)
1016
+ end
1017
+
1018
+ sig { params(field: String, value: T.untyped).void }
1019
+ def []=(field, value)
1020
+ end
1021
+
1022
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1023
+ def to_h
1024
+ end
1025
+
1026
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::Response) }
1027
+ def self.decode(str)
1028
+ end
1029
+
1030
+ sig { params(msg: Temporalio::Api::Nexus::V1::Response).returns(String) }
1031
+ def self.encode(msg)
1032
+ end
1033
+
1034
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::Response) }
1035
+ def self.decode_json(str, **kw)
1036
+ end
1037
+
1038
+ sig { params(msg: Temporalio::Api::Nexus::V1::Response, kw: T.untyped).returns(String) }
1039
+ def self.encode_json(msg, **kw)
1040
+ end
1041
+
1042
+ sig { returns(::Google::Protobuf::Descriptor) }
1043
+ def self.descriptor
1044
+ end
1045
+ end
1046
+
1047
+ # A cluster-global binding from an endpoint ID to a target for dispatching incoming Nexus requests.
1048
+ class Temporalio::Api::Nexus::V1::Endpoint
1049
+ include ::Google::Protobuf::MessageExts
1050
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1051
+
1052
+ sig do
1053
+ params(
1054
+ version: T.nilable(Integer),
1055
+ id: T.nilable(String),
1056
+ spec: T.nilable(Temporalio::Api::Nexus::V1::EndpointSpec),
1057
+ created_time: T.nilable(Google::Protobuf::Timestamp),
1058
+ last_modified_time: T.nilable(Google::Protobuf::Timestamp),
1059
+ url_prefix: T.nilable(String)
1060
+ ).void
1061
+ end
1062
+ def initialize(
1063
+ version: 0,
1064
+ id: "",
1065
+ spec: nil,
1066
+ created_time: nil,
1067
+ last_modified_time: nil,
1068
+ url_prefix: ""
1069
+ )
1070
+ end
1071
+
1072
+ # Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API.
1073
+ sig { returns(Integer) }
1074
+ def version
1075
+ end
1076
+
1077
+ # Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API.
1078
+ sig { params(value: Integer).void }
1079
+ def version=(value)
1080
+ end
1081
+
1082
+ # Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API.
1083
+ sig { void }
1084
+ def clear_version
1085
+ end
1086
+
1087
+ # Unique server-generated endpoint ID.
1088
+ sig { returns(String) }
1089
+ def id
1090
+ end
1091
+
1092
+ # Unique server-generated endpoint ID.
1093
+ sig { params(value: String).void }
1094
+ def id=(value)
1095
+ end
1096
+
1097
+ # Unique server-generated endpoint ID.
1098
+ sig { void }
1099
+ def clear_id
1100
+ end
1101
+
1102
+ # Spec for the endpoint.
1103
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::EndpointSpec)) }
1104
+ def spec
1105
+ end
1106
+
1107
+ # Spec for the endpoint.
1108
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::EndpointSpec)).void }
1109
+ def spec=(value)
1110
+ end
1111
+
1112
+ # Spec for the endpoint.
1113
+ sig { void }
1114
+ def clear_spec
1115
+ end
1116
+
1117
+ # The date and time when the endpoint was created.
1118
+ # (-- api-linter: core::0142::time-field-names=disabled
1119
+ # aip.dev/not-precedent: Not following linter rules. --)
1120
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1121
+ def created_time
1122
+ end
1123
+
1124
+ # The date and time when the endpoint was created.
1125
+ # (-- api-linter: core::0142::time-field-names=disabled
1126
+ # aip.dev/not-precedent: Not following linter rules. --)
1127
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1128
+ def created_time=(value)
1129
+ end
1130
+
1131
+ # The date and time when the endpoint was created.
1132
+ # (-- api-linter: core::0142::time-field-names=disabled
1133
+ # aip.dev/not-precedent: Not following linter rules. --)
1134
+ sig { void }
1135
+ def clear_created_time
1136
+ end
1137
+
1138
+ # The date and time when the endpoint was last modified.
1139
+ # Will not be set if the endpoint has never been modified.
1140
+ # (-- api-linter: core::0142::time-field-names=disabled
1141
+ # aip.dev/not-precedent: Not following linter rules. --)
1142
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1143
+ def last_modified_time
1144
+ end
1145
+
1146
+ # The date and time when the endpoint was last modified.
1147
+ # Will not be set if the endpoint has never been modified.
1148
+ # (-- api-linter: core::0142::time-field-names=disabled
1149
+ # aip.dev/not-precedent: Not following linter rules. --)
1150
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1151
+ def last_modified_time=(value)
1152
+ end
1153
+
1154
+ # The date and time when the endpoint was last modified.
1155
+ # Will not be set if the endpoint has never been modified.
1156
+ # (-- api-linter: core::0142::time-field-names=disabled
1157
+ # aip.dev/not-precedent: Not following linter rules. --)
1158
+ sig { void }
1159
+ def clear_last_modified_time
1160
+ end
1161
+
1162
+ # Server exposed URL prefix for invocation of operations on this endpoint.
1163
+ # This doesn't include the protocol, hostname or port as the server does not know how it should be accessed
1164
+ # publicly. The URL is stable in the face of endpoint renames.
1165
+ sig { returns(String) }
1166
+ def url_prefix
1167
+ end
1168
+
1169
+ # Server exposed URL prefix for invocation of operations on this endpoint.
1170
+ # This doesn't include the protocol, hostname or port as the server does not know how it should be accessed
1171
+ # publicly. The URL is stable in the face of endpoint renames.
1172
+ sig { params(value: String).void }
1173
+ def url_prefix=(value)
1174
+ end
1175
+
1176
+ # Server exposed URL prefix for invocation of operations on this endpoint.
1177
+ # This doesn't include the protocol, hostname or port as the server does not know how it should be accessed
1178
+ # publicly. The URL is stable in the face of endpoint renames.
1179
+ sig { void }
1180
+ def clear_url_prefix
1181
+ end
1182
+
1183
+ sig { params(field: String).returns(T.untyped) }
1184
+ def [](field)
1185
+ end
1186
+
1187
+ sig { params(field: String, value: T.untyped).void }
1188
+ def []=(field, value)
1189
+ end
1190
+
1191
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1192
+ def to_h
1193
+ end
1194
+
1195
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::Endpoint) }
1196
+ def self.decode(str)
1197
+ end
1198
+
1199
+ sig { params(msg: Temporalio::Api::Nexus::V1::Endpoint).returns(String) }
1200
+ def self.encode(msg)
1201
+ end
1202
+
1203
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::Endpoint) }
1204
+ def self.decode_json(str, **kw)
1205
+ end
1206
+
1207
+ sig { params(msg: Temporalio::Api::Nexus::V1::Endpoint, kw: T.untyped).returns(String) }
1208
+ def self.encode_json(msg, **kw)
1209
+ end
1210
+
1211
+ sig { returns(::Google::Protobuf::Descriptor) }
1212
+ def self.descriptor
1213
+ end
1214
+ end
1215
+
1216
+ # Contains mutable fields for an Endpoint.
1217
+ class Temporalio::Api::Nexus::V1::EndpointSpec
1218
+ include ::Google::Protobuf::MessageExts
1219
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1220
+
1221
+ sig do
1222
+ params(
1223
+ name: T.nilable(String),
1224
+ description: T.nilable(Temporalio::Api::Common::V1::Payload),
1225
+ target: T.nilable(Temporalio::Api::Nexus::V1::EndpointTarget)
1226
+ ).void
1227
+ end
1228
+ def initialize(
1229
+ name: "",
1230
+ description: nil,
1231
+ target: nil
1232
+ )
1233
+ end
1234
+
1235
+ # Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
1236
+ # Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
1237
+ sig { returns(String) }
1238
+ def name
1239
+ end
1240
+
1241
+ # Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
1242
+ # Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
1243
+ sig { params(value: String).void }
1244
+ def name=(value)
1245
+ end
1246
+
1247
+ # Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
1248
+ # Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
1249
+ sig { void }
1250
+ def clear_name
1251
+ end
1252
+
1253
+ # Markdown description serialized as a single JSON string.
1254
+ # If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
1255
+ # By default, the server enforces a limit of 20,000 bytes for this entire payload.
1256
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
1257
+ def description
1258
+ end
1259
+
1260
+ # Markdown description serialized as a single JSON string.
1261
+ # If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
1262
+ # By default, the server enforces a limit of 20,000 bytes for this entire payload.
1263
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
1264
+ def description=(value)
1265
+ end
1266
+
1267
+ # Markdown description serialized as a single JSON string.
1268
+ # If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
1269
+ # By default, the server enforces a limit of 20,000 bytes for this entire payload.
1270
+ sig { void }
1271
+ def clear_description
1272
+ end
1273
+
1274
+ # Target to route requests to.
1275
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::EndpointTarget)) }
1276
+ def target
1277
+ end
1278
+
1279
+ # Target to route requests to.
1280
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::EndpointTarget)).void }
1281
+ def target=(value)
1282
+ end
1283
+
1284
+ # Target to route requests to.
1285
+ sig { void }
1286
+ def clear_target
1287
+ end
1288
+
1289
+ sig { params(field: String).returns(T.untyped) }
1290
+ def [](field)
1291
+ end
1292
+
1293
+ sig { params(field: String, value: T.untyped).void }
1294
+ def []=(field, value)
1295
+ end
1296
+
1297
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1298
+ def to_h
1299
+ end
1300
+
1301
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::EndpointSpec) }
1302
+ def self.decode(str)
1303
+ end
1304
+
1305
+ sig { params(msg: Temporalio::Api::Nexus::V1::EndpointSpec).returns(String) }
1306
+ def self.encode(msg)
1307
+ end
1308
+
1309
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::EndpointSpec) }
1310
+ def self.decode_json(str, **kw)
1311
+ end
1312
+
1313
+ sig { params(msg: Temporalio::Api::Nexus::V1::EndpointSpec, kw: T.untyped).returns(String) }
1314
+ def self.encode_json(msg, **kw)
1315
+ end
1316
+
1317
+ sig { returns(::Google::Protobuf::Descriptor) }
1318
+ def self.descriptor
1319
+ end
1320
+ end
1321
+
1322
+ # Target to route requests to.
1323
+ class Temporalio::Api::Nexus::V1::EndpointTarget
1324
+ include ::Google::Protobuf::MessageExts
1325
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1326
+
1327
+ sig do
1328
+ params(
1329
+ worker: T.nilable(Temporalio::Api::Nexus::V1::EndpointTarget::Worker),
1330
+ external: T.nilable(Temporalio::Api::Nexus::V1::EndpointTarget::External)
1331
+ ).void
1332
+ end
1333
+ def initialize(
1334
+ worker: nil,
1335
+ external: nil
1336
+ )
1337
+ end
1338
+
1339
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::EndpointTarget::Worker)) }
1340
+ def worker
1341
+ end
1342
+
1343
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::EndpointTarget::Worker)).void }
1344
+ def worker=(value)
1345
+ end
1346
+
1347
+ sig { void }
1348
+ def clear_worker
1349
+ end
1350
+
1351
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::EndpointTarget::External)) }
1352
+ def external
1353
+ end
1354
+
1355
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::EndpointTarget::External)).void }
1356
+ def external=(value)
1357
+ end
1358
+
1359
+ sig { void }
1360
+ def clear_external
1361
+ end
1362
+
1363
+ sig { returns(T.nilable(Symbol)) }
1364
+ def variant
1365
+ end
1366
+
1367
+ sig { params(field: String).returns(T.untyped) }
1368
+ def [](field)
1369
+ end
1370
+
1371
+ sig { params(field: String, value: T.untyped).void }
1372
+ def []=(field, value)
1373
+ end
1374
+
1375
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1376
+ def to_h
1377
+ end
1378
+
1379
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::EndpointTarget) }
1380
+ def self.decode(str)
1381
+ end
1382
+
1383
+ sig { params(msg: Temporalio::Api::Nexus::V1::EndpointTarget).returns(String) }
1384
+ def self.encode(msg)
1385
+ end
1386
+
1387
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::EndpointTarget) }
1388
+ def self.decode_json(str, **kw)
1389
+ end
1390
+
1391
+ sig { params(msg: Temporalio::Api::Nexus::V1::EndpointTarget, kw: T.untyped).returns(String) }
1392
+ def self.encode_json(msg, **kw)
1393
+ end
1394
+
1395
+ sig { returns(::Google::Protobuf::Descriptor) }
1396
+ def self.descriptor
1397
+ end
1398
+ end
1399
+
1400
+ # NexusOperationExecutionCancellationInfo contains the state of a Nexus operation cancellation.
1401
+ class Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo
1402
+ include ::Google::Protobuf::MessageExts
1403
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1404
+
1405
+ sig do
1406
+ params(
1407
+ requested_time: T.nilable(Google::Protobuf::Timestamp),
1408
+ state: T.nilable(T.any(Symbol, String, Integer)),
1409
+ attempt: T.nilable(Integer),
1410
+ last_attempt_complete_time: T.nilable(Google::Protobuf::Timestamp),
1411
+ last_attempt_failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
1412
+ next_attempt_schedule_time: T.nilable(Google::Protobuf::Timestamp),
1413
+ blocked_reason: T.nilable(String),
1414
+ reason: T.nilable(String)
1415
+ ).void
1416
+ end
1417
+ def initialize(
1418
+ requested_time: nil,
1419
+ state: :NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED,
1420
+ attempt: 0,
1421
+ last_attempt_complete_time: nil,
1422
+ last_attempt_failure: nil,
1423
+ next_attempt_schedule_time: nil,
1424
+ blocked_reason: "",
1425
+ reason: ""
1426
+ )
1427
+ end
1428
+
1429
+ # The time when cancellation was requested.
1430
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1431
+ def requested_time
1432
+ end
1433
+
1434
+ # The time when cancellation was requested.
1435
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1436
+ def requested_time=(value)
1437
+ end
1438
+
1439
+ # The time when cancellation was requested.
1440
+ sig { void }
1441
+ def clear_requested_time
1442
+ end
1443
+
1444
+ sig { returns(T.any(Symbol, Integer)) }
1445
+ def state
1446
+ end
1447
+
1448
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1449
+ def state=(value)
1450
+ end
1451
+
1452
+ sig { void }
1453
+ def clear_state
1454
+ end
1455
+
1456
+ # The number of attempts made to deliver the cancel operation request.
1457
+ # This number represents a minimum bound since the attempt is incremented after the request completes.
1458
+ sig { returns(Integer) }
1459
+ def attempt
1460
+ end
1461
+
1462
+ # The number of attempts made to deliver the cancel operation request.
1463
+ # This number represents a minimum bound since the attempt is incremented after the request completes.
1464
+ sig { params(value: Integer).void }
1465
+ def attempt=(value)
1466
+ end
1467
+
1468
+ # The number of attempts made to deliver the cancel operation request.
1469
+ # This number represents a minimum bound since the attempt is incremented after the request completes.
1470
+ sig { void }
1471
+ def clear_attempt
1472
+ end
1473
+
1474
+ # The time when the last attempt completed.
1475
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1476
+ def last_attempt_complete_time
1477
+ end
1478
+
1479
+ # The time when the last attempt completed.
1480
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1481
+ def last_attempt_complete_time=(value)
1482
+ end
1483
+
1484
+ # The time when the last attempt completed.
1485
+ sig { void }
1486
+ def clear_last_attempt_complete_time
1487
+ end
1488
+
1489
+ # The last attempt's failure, if any.
1490
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
1491
+ def last_attempt_failure
1492
+ end
1493
+
1494
+ # The last attempt's failure, if any.
1495
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
1496
+ def last_attempt_failure=(value)
1497
+ end
1498
+
1499
+ # The last attempt's failure, if any.
1500
+ sig { void }
1501
+ def clear_last_attempt_failure
1502
+ end
1503
+
1504
+ # The time when the next attempt is scheduled.
1505
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1506
+ def next_attempt_schedule_time
1507
+ end
1508
+
1509
+ # The time when the next attempt is scheduled.
1510
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1511
+ def next_attempt_schedule_time=(value)
1512
+ end
1513
+
1514
+ # The time when the next attempt is scheduled.
1515
+ sig { void }
1516
+ def clear_next_attempt_schedule_time
1517
+ end
1518
+
1519
+ # If the state is BLOCKED, blocked reason provides additional information.
1520
+ sig { returns(String) }
1521
+ def blocked_reason
1522
+ end
1523
+
1524
+ # If the state is BLOCKED, blocked reason provides additional information.
1525
+ sig { params(value: String).void }
1526
+ def blocked_reason=(value)
1527
+ end
1528
+
1529
+ # If the state is BLOCKED, blocked reason provides additional information.
1530
+ sig { void }
1531
+ def clear_blocked_reason
1532
+ end
1533
+
1534
+ # A reason that may be specified in the CancelNexusOperationRequest.
1535
+ sig { returns(String) }
1536
+ def reason
1537
+ end
1538
+
1539
+ # A reason that may be specified in the CancelNexusOperationRequest.
1540
+ sig { params(value: String).void }
1541
+ def reason=(value)
1542
+ end
1543
+
1544
+ # A reason that may be specified in the CancelNexusOperationRequest.
1545
+ sig { void }
1546
+ def clear_reason
1547
+ end
1548
+
1549
+ sig { params(field: String).returns(T.untyped) }
1550
+ def [](field)
1551
+ end
1552
+
1553
+ sig { params(field: String, value: T.untyped).void }
1554
+ def []=(field, value)
1555
+ end
1556
+
1557
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1558
+ def to_h
1559
+ end
1560
+
1561
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo) }
1562
+ def self.decode(str)
1563
+ end
1564
+
1565
+ sig { params(msg: Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo).returns(String) }
1566
+ def self.encode(msg)
1567
+ end
1568
+
1569
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo) }
1570
+ def self.decode_json(str, **kw)
1571
+ end
1572
+
1573
+ sig { params(msg: Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo, kw: T.untyped).returns(String) }
1574
+ def self.encode_json(msg, **kw)
1575
+ end
1576
+
1577
+ sig { returns(::Google::Protobuf::Descriptor) }
1578
+ def self.descriptor
1579
+ end
1580
+ end
1581
+
1582
+ # Full current state of a standalone Nexus operation, as of the time of the request.
1583
+ class Temporalio::Api::Nexus::V1::NexusOperationExecutionInfo
1584
+ include ::Google::Protobuf::MessageExts
1585
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1586
+
1587
+ sig do
1588
+ params(
1589
+ operation_id: T.nilable(String),
1590
+ run_id: T.nilable(String),
1591
+ endpoint: T.nilable(String),
1592
+ service: T.nilable(String),
1593
+ operation: T.nilable(String),
1594
+ status: T.nilable(T.any(Symbol, String, Integer)),
1595
+ state: T.nilable(T.any(Symbol, String, Integer)),
1596
+ schedule_to_close_timeout: T.nilable(Google::Protobuf::Duration),
1597
+ schedule_to_start_timeout: T.nilable(Google::Protobuf::Duration),
1598
+ start_to_close_timeout: T.nilable(Google::Protobuf::Duration),
1599
+ attempt: T.nilable(Integer),
1600
+ schedule_time: T.nilable(Google::Protobuf::Timestamp),
1601
+ expiration_time: T.nilable(Google::Protobuf::Timestamp),
1602
+ close_time: T.nilable(Google::Protobuf::Timestamp),
1603
+ last_attempt_complete_time: T.nilable(Google::Protobuf::Timestamp),
1604
+ last_attempt_failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
1605
+ next_attempt_schedule_time: T.nilable(Google::Protobuf::Timestamp),
1606
+ execution_duration: T.nilable(Google::Protobuf::Duration),
1607
+ cancellation_info: T.nilable(Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo),
1608
+ blocked_reason: T.nilable(String),
1609
+ request_id: T.nilable(String),
1610
+ operation_token: T.nilable(String),
1611
+ state_transition_count: T.nilable(Integer),
1612
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
1613
+ nexus_header: T.nilable(T::Hash[String, String]),
1614
+ user_metadata: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata),
1615
+ links: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]),
1616
+ identity: T.nilable(String),
1617
+ state_size_bytes: T.nilable(Integer)
1618
+ ).void
1619
+ end
1620
+ def initialize(
1621
+ operation_id: "",
1622
+ run_id: "",
1623
+ endpoint: "",
1624
+ service: "",
1625
+ operation: "",
1626
+ status: :NEXUS_OPERATION_EXECUTION_STATUS_UNSPECIFIED,
1627
+ state: :PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED,
1628
+ schedule_to_close_timeout: nil,
1629
+ schedule_to_start_timeout: nil,
1630
+ start_to_close_timeout: nil,
1631
+ attempt: 0,
1632
+ schedule_time: nil,
1633
+ expiration_time: nil,
1634
+ close_time: nil,
1635
+ last_attempt_complete_time: nil,
1636
+ last_attempt_failure: nil,
1637
+ next_attempt_schedule_time: nil,
1638
+ execution_duration: nil,
1639
+ cancellation_info: nil,
1640
+ blocked_reason: "",
1641
+ request_id: "",
1642
+ operation_token: "",
1643
+ state_transition_count: 0,
1644
+ search_attributes: nil,
1645
+ nexus_header: ::Google::Protobuf::Map.new(:string, :string),
1646
+ user_metadata: nil,
1647
+ links: [],
1648
+ identity: "",
1649
+ state_size_bytes: 0
1650
+ )
1651
+ end
1652
+
1653
+ # Unique identifier of this Nexus operation within its namespace along with run ID (below).
1654
+ sig { returns(String) }
1655
+ def operation_id
1656
+ end
1657
+
1658
+ # Unique identifier of this Nexus operation within its namespace along with run ID (below).
1659
+ sig { params(value: String).void }
1660
+ def operation_id=(value)
1661
+ end
1662
+
1663
+ # Unique identifier of this Nexus operation within its namespace along with run ID (below).
1664
+ sig { void }
1665
+ def clear_operation_id
1666
+ end
1667
+
1668
+ sig { returns(String) }
1669
+ def run_id
1670
+ end
1671
+
1672
+ sig { params(value: String).void }
1673
+ def run_id=(value)
1674
+ end
1675
+
1676
+ sig { void }
1677
+ def clear_run_id
1678
+ end
1679
+
1680
+ # Endpoint name, resolved to a URL via the cluster's endpoint registry.
1681
+ sig { returns(String) }
1682
+ def endpoint
1683
+ end
1684
+
1685
+ # Endpoint name, resolved to a URL via the cluster's endpoint registry.
1686
+ sig { params(value: String).void }
1687
+ def endpoint=(value)
1688
+ end
1689
+
1690
+ # Endpoint name, resolved to a URL via the cluster's endpoint registry.
1691
+ sig { void }
1692
+ def clear_endpoint
1693
+ end
1694
+
1695
+ # Service name.
1696
+ sig { returns(String) }
1697
+ def service
1698
+ end
1699
+
1700
+ # Service name.
1701
+ sig { params(value: String).void }
1702
+ def service=(value)
1703
+ end
1704
+
1705
+ # Service name.
1706
+ sig { void }
1707
+ def clear_service
1708
+ end
1709
+
1710
+ # Operation name.
1711
+ sig { returns(String) }
1712
+ def operation
1713
+ end
1714
+
1715
+ # Operation name.
1716
+ sig { params(value: String).void }
1717
+ def operation=(value)
1718
+ end
1719
+
1720
+ # Operation name.
1721
+ sig { void }
1722
+ def clear_operation
1723
+ end
1724
+
1725
+ # A general status for this operation, indicates whether it is currently running or in one of the terminal statuses.
1726
+ # Updated once when the operation is originally scheduled, and again when it reaches a terminal status.
1727
+ sig { returns(T.any(Symbol, Integer)) }
1728
+ def status
1729
+ end
1730
+
1731
+ # A general status for this operation, indicates whether it is currently running or in one of the terminal statuses.
1732
+ # Updated once when the operation is originally scheduled, and again when it reaches a terminal status.
1733
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1734
+ def status=(value)
1735
+ end
1736
+
1737
+ # A general status for this operation, indicates whether it is currently running or in one of the terminal statuses.
1738
+ # Updated once when the operation is originally scheduled, and again when it reaches a terminal status.
1739
+ sig { void }
1740
+ def clear_status
1741
+ end
1742
+
1743
+ # More detailed breakdown of NEXUS_OPERATION_EXECUTION_STATUS_RUNNING.
1744
+ sig { returns(T.any(Symbol, Integer)) }
1745
+ def state
1746
+ end
1747
+
1748
+ # More detailed breakdown of NEXUS_OPERATION_EXECUTION_STATUS_RUNNING.
1749
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1750
+ def state=(value)
1751
+ end
1752
+
1753
+ # More detailed breakdown of NEXUS_OPERATION_EXECUTION_STATUS_RUNNING.
1754
+ sig { void }
1755
+ def clear_state
1756
+ end
1757
+
1758
+ # Schedule-to-close timeout for this operation.
1759
+ # (-- api-linter: core::0140::prepositions=disabled
1760
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1761
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1762
+ def schedule_to_close_timeout
1763
+ end
1764
+
1765
+ # Schedule-to-close timeout for this operation.
1766
+ # (-- api-linter: core::0140::prepositions=disabled
1767
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1768
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1769
+ def schedule_to_close_timeout=(value)
1770
+ end
1771
+
1772
+ # Schedule-to-close timeout for this operation.
1773
+ # (-- api-linter: core::0140::prepositions=disabled
1774
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1775
+ sig { void }
1776
+ def clear_schedule_to_close_timeout
1777
+ end
1778
+
1779
+ # Schedule-to-start timeout for this operation.
1780
+ # (-- api-linter: core::0140::prepositions=disabled
1781
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1782
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1783
+ def schedule_to_start_timeout
1784
+ end
1785
+
1786
+ # Schedule-to-start timeout for this operation.
1787
+ # (-- api-linter: core::0140::prepositions=disabled
1788
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1789
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1790
+ def schedule_to_start_timeout=(value)
1791
+ end
1792
+
1793
+ # Schedule-to-start timeout for this operation.
1794
+ # (-- api-linter: core::0140::prepositions=disabled
1795
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1796
+ sig { void }
1797
+ def clear_schedule_to_start_timeout
1798
+ end
1799
+
1800
+ # Start-to-close timeout for this operation.
1801
+ # (-- api-linter: core::0140::prepositions=disabled
1802
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1803
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1804
+ def start_to_close_timeout
1805
+ end
1806
+
1807
+ # Start-to-close timeout for this operation.
1808
+ # (-- api-linter: core::0140::prepositions=disabled
1809
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1810
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1811
+ def start_to_close_timeout=(value)
1812
+ end
1813
+
1814
+ # Start-to-close timeout for this operation.
1815
+ # (-- api-linter: core::0140::prepositions=disabled
1816
+ # aip.dev/not-precedent: "to" is used to indicate interval. --)
1817
+ sig { void }
1818
+ def clear_start_to_close_timeout
1819
+ end
1820
+
1821
+ # The number of attempts made to deliver the start operation request.
1822
+ # This number is approximate, it is incremented when a task is added to the history queue.
1823
+ # In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task
1824
+ # was never executed.
1825
+ sig { returns(Integer) }
1826
+ def attempt
1827
+ end
1828
+
1829
+ # The number of attempts made to deliver the start operation request.
1830
+ # This number is approximate, it is incremented when a task is added to the history queue.
1831
+ # In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task
1832
+ # was never executed.
1833
+ sig { params(value: Integer).void }
1834
+ def attempt=(value)
1835
+ end
1836
+
1837
+ # The number of attempts made to deliver the start operation request.
1838
+ # This number is approximate, it is incremented when a task is added to the history queue.
1839
+ # In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task
1840
+ # was never executed.
1841
+ sig { void }
1842
+ def clear_attempt
1843
+ end
1844
+
1845
+ # Time the operation was originally scheduled via a StartNexusOperation request.
1846
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1847
+ def schedule_time
1848
+ end
1849
+
1850
+ # Time the operation was originally scheduled via a StartNexusOperation request.
1851
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1852
+ def schedule_time=(value)
1853
+ end
1854
+
1855
+ # Time the operation was originally scheduled via a StartNexusOperation request.
1856
+ sig { void }
1857
+ def clear_schedule_time
1858
+ end
1859
+
1860
+ # Scheduled time + schedule to close timeout.
1861
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1862
+ def expiration_time
1863
+ end
1864
+
1865
+ # Scheduled time + schedule to close timeout.
1866
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1867
+ def expiration_time=(value)
1868
+ end
1869
+
1870
+ # Scheduled time + schedule to close timeout.
1871
+ sig { void }
1872
+ def clear_expiration_time
1873
+ end
1874
+
1875
+ # Time when the operation transitioned to a closed state.
1876
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1877
+ def close_time
1878
+ end
1879
+
1880
+ # Time when the operation transitioned to a closed state.
1881
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1882
+ def close_time=(value)
1883
+ end
1884
+
1885
+ # Time when the operation transitioned to a closed state.
1886
+ sig { void }
1887
+ def clear_close_time
1888
+ end
1889
+
1890
+ # The time when the last attempt completed.
1891
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1892
+ def last_attempt_complete_time
1893
+ end
1894
+
1895
+ # The time when the last attempt completed.
1896
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1897
+ def last_attempt_complete_time=(value)
1898
+ end
1899
+
1900
+ # The time when the last attempt completed.
1901
+ sig { void }
1902
+ def clear_last_attempt_complete_time
1903
+ end
1904
+
1905
+ # The last attempt's failure, if any.
1906
+ sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
1907
+ def last_attempt_failure
1908
+ end
1909
+
1910
+ # The last attempt's failure, if any.
1911
+ sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
1912
+ def last_attempt_failure=(value)
1913
+ end
1914
+
1915
+ # The last attempt's failure, if any.
1916
+ sig { void }
1917
+ def clear_last_attempt_failure
1918
+ end
1919
+
1920
+ # The time when the next attempt is scheduled.
1921
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1922
+ def next_attempt_schedule_time
1923
+ end
1924
+
1925
+ # The time when the next attempt is scheduled.
1926
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1927
+ def next_attempt_schedule_time=(value)
1928
+ end
1929
+
1930
+ # The time when the next attempt is scheduled.
1931
+ sig { void }
1932
+ def clear_next_attempt_schedule_time
1933
+ end
1934
+
1935
+ # Elapsed time from schedule_time to now for running operations or to close_time for closed
1936
+ # operations, including all attempts and backoff between attempts.
1937
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1938
+ def execution_duration
1939
+ end
1940
+
1941
+ # Elapsed time from schedule_time to now for running operations or to close_time for closed
1942
+ # operations, including all attempts and backoff between attempts.
1943
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1944
+ def execution_duration=(value)
1945
+ end
1946
+
1947
+ # Elapsed time from schedule_time to now for running operations or to close_time for closed
1948
+ # operations, including all attempts and backoff between attempts.
1949
+ sig { void }
1950
+ def clear_execution_duration
1951
+ end
1952
+
1953
+ sig { returns(T.nilable(Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo)) }
1954
+ def cancellation_info
1955
+ end
1956
+
1957
+ sig { params(value: T.nilable(Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo)).void }
1958
+ def cancellation_info=(value)
1959
+ end
1960
+
1961
+ sig { void }
1962
+ def clear_cancellation_info
1963
+ end
1964
+
1965
+ # If the state is BLOCKED, blocked reason provides additional information.
1966
+ sig { returns(String) }
1967
+ def blocked_reason
1968
+ end
1969
+
1970
+ # If the state is BLOCKED, blocked reason provides additional information.
1971
+ sig { params(value: String).void }
1972
+ def blocked_reason=(value)
1973
+ end
1974
+
1975
+ # If the state is BLOCKED, blocked reason provides additional information.
1976
+ sig { void }
1977
+ def clear_blocked_reason
1978
+ end
1979
+
1980
+ # Server-generated request ID used as an idempotency token when submitting start requests to
1981
+ # the handler. Distinct from the request_id in StartNexusOperationRequest, which is the
1982
+ # caller-side idempotency key for the StartNexusOperation RPC itself.
1983
+ sig { returns(String) }
1984
+ def request_id
1985
+ end
1986
+
1987
+ # Server-generated request ID used as an idempotency token when submitting start requests to
1988
+ # the handler. Distinct from the request_id in StartNexusOperationRequest, which is the
1989
+ # caller-side idempotency key for the StartNexusOperation RPC itself.
1990
+ sig { params(value: String).void }
1991
+ def request_id=(value)
1992
+ end
1993
+
1994
+ # Server-generated request ID used as an idempotency token when submitting start requests to
1995
+ # the handler. Distinct from the request_id in StartNexusOperationRequest, which is the
1996
+ # caller-side idempotency key for the StartNexusOperation RPC itself.
1997
+ sig { void }
1998
+ def clear_request_id
1999
+ end
2000
+
2001
+ # Operation token. Only set for asynchronous operations after a successful StartOperation call.
2002
+ sig { returns(String) }
2003
+ def operation_token
2004
+ end
2005
+
2006
+ # Operation token. Only set for asynchronous operations after a successful StartOperation call.
2007
+ sig { params(value: String).void }
2008
+ def operation_token=(value)
2009
+ end
2010
+
2011
+ # Operation token. Only set for asynchronous operations after a successful StartOperation call.
2012
+ sig { void }
2013
+ def clear_operation_token
2014
+ end
2015
+
2016
+ # Incremented each time the operation's state is mutated in persistence.
2017
+ sig { returns(Integer) }
2018
+ def state_transition_count
2019
+ end
2020
+
2021
+ # Incremented each time the operation's state is mutated in persistence.
2022
+ sig { params(value: Integer).void }
2023
+ def state_transition_count=(value)
2024
+ end
2025
+
2026
+ # Incremented each time the operation's state is mutated in persistence.
2027
+ sig { void }
2028
+ def clear_state_transition_count
2029
+ end
2030
+
2031
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
2032
+ def search_attributes
2033
+ end
2034
+
2035
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
2036
+ def search_attributes=(value)
2037
+ end
2038
+
2039
+ sig { void }
2040
+ def clear_search_attributes
2041
+ end
2042
+
2043
+ # Header for context propagation and tracing purposes.
2044
+ sig { returns(T::Hash[String, String]) }
2045
+ def nexus_header
2046
+ end
2047
+
2048
+ # Header for context propagation and tracing purposes.
2049
+ sig { params(value: ::Google::Protobuf::Map).void }
2050
+ def nexus_header=(value)
2051
+ end
2052
+
2053
+ # Header for context propagation and tracing purposes.
2054
+ sig { void }
2055
+ def clear_nexus_header
2056
+ end
2057
+
2058
+ # Metadata for use by user interfaces to display the fixed as-of-start summary and details of the operation.
2059
+ sig { returns(T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)) }
2060
+ def user_metadata
2061
+ end
2062
+
2063
+ # Metadata for use by user interfaces to display the fixed as-of-start summary and details of the operation.
2064
+ sig { params(value: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)).void }
2065
+ def user_metadata=(value)
2066
+ end
2067
+
2068
+ # Metadata for use by user interfaces to display the fixed as-of-start summary and details of the operation.
2069
+ sig { void }
2070
+ def clear_user_metadata
2071
+ end
2072
+
2073
+ # Links attached by the handler of this operation on start or completion.
2074
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]) }
2075
+ def links
2076
+ end
2077
+
2078
+ # Links attached by the handler of this operation on start or completion.
2079
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2080
+ def links=(value)
2081
+ end
2082
+
2083
+ # Links attached by the handler of this operation on start or completion.
2084
+ sig { void }
2085
+ def clear_links
2086
+ end
2087
+
2088
+ # The identity of the client who started this operation.
2089
+ sig { returns(String) }
2090
+ def identity
2091
+ end
2092
+
2093
+ # The identity of the client who started this operation.
2094
+ sig { params(value: String).void }
2095
+ def identity=(value)
2096
+ end
2097
+
2098
+ # The identity of the client who started this operation.
2099
+ sig { void }
2100
+ def clear_identity
2101
+ end
2102
+
2103
+ # Updated once on scheduled and once on terminal status.
2104
+ sig { returns(Integer) }
2105
+ def state_size_bytes
2106
+ end
2107
+
2108
+ # Updated once on scheduled and once on terminal status.
2109
+ sig { params(value: Integer).void }
2110
+ def state_size_bytes=(value)
2111
+ end
2112
+
2113
+ # Updated once on scheduled and once on terminal status.
2114
+ sig { void }
2115
+ def clear_state_size_bytes
2116
+ end
2117
+
2118
+ sig { params(field: String).returns(T.untyped) }
2119
+ def [](field)
2120
+ end
2121
+
2122
+ sig { params(field: String, value: T.untyped).void }
2123
+ def []=(field, value)
2124
+ end
2125
+
2126
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2127
+ def to_h
2128
+ end
2129
+
2130
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::NexusOperationExecutionInfo) }
2131
+ def self.decode(str)
2132
+ end
2133
+
2134
+ sig { params(msg: Temporalio::Api::Nexus::V1::NexusOperationExecutionInfo).returns(String) }
2135
+ def self.encode(msg)
2136
+ end
2137
+
2138
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::NexusOperationExecutionInfo) }
2139
+ def self.decode_json(str, **kw)
2140
+ end
2141
+
2142
+ sig { params(msg: Temporalio::Api::Nexus::V1::NexusOperationExecutionInfo, kw: T.untyped).returns(String) }
2143
+ def self.encode_json(msg, **kw)
2144
+ end
2145
+
2146
+ sig { returns(::Google::Protobuf::Descriptor) }
2147
+ def self.descriptor
2148
+ end
2149
+ end
2150
+
2151
+ # Limited Nexus operation information returned in the list response.
2152
+ # When adding fields here, ensure that it is also present in NexusOperationExecutionInfo (note that it may already be present in
2153
+ # NexusOperationExecutionInfo but not at the top-level).
2154
+ class Temporalio::Api::Nexus::V1::NexusOperationExecutionListInfo
2155
+ include ::Google::Protobuf::MessageExts
2156
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2157
+
2158
+ sig do
2159
+ params(
2160
+ operation_id: T.nilable(String),
2161
+ run_id: T.nilable(String),
2162
+ endpoint: T.nilable(String),
2163
+ service: T.nilable(String),
2164
+ operation: T.nilable(String),
2165
+ schedule_time: T.nilable(Google::Protobuf::Timestamp),
2166
+ close_time: T.nilable(Google::Protobuf::Timestamp),
2167
+ status: T.nilable(T.any(Symbol, String, Integer)),
2168
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
2169
+ state_transition_count: T.nilable(Integer),
2170
+ execution_duration: T.nilable(Google::Protobuf::Duration),
2171
+ state_size_bytes: T.nilable(Integer)
2172
+ ).void
2173
+ end
2174
+ def initialize(
2175
+ operation_id: "",
2176
+ run_id: "",
2177
+ endpoint: "",
2178
+ service: "",
2179
+ operation: "",
2180
+ schedule_time: nil,
2181
+ close_time: nil,
2182
+ status: :NEXUS_OPERATION_EXECUTION_STATUS_UNSPECIFIED,
2183
+ search_attributes: nil,
2184
+ state_transition_count: 0,
2185
+ execution_duration: nil,
2186
+ state_size_bytes: 0
2187
+ )
2188
+ end
2189
+
2190
+ # A unique identifier of this operation within its namespace along with run ID (below).
2191
+ sig { returns(String) }
2192
+ def operation_id
2193
+ end
2194
+
2195
+ # A unique identifier of this operation within its namespace along with run ID (below).
2196
+ sig { params(value: String).void }
2197
+ def operation_id=(value)
2198
+ end
2199
+
2200
+ # A unique identifier of this operation within its namespace along with run ID (below).
2201
+ sig { void }
2202
+ def clear_operation_id
2203
+ end
2204
+
2205
+ # The run ID of the standalone Nexus operation.
2206
+ sig { returns(String) }
2207
+ def run_id
2208
+ end
2209
+
2210
+ # The run ID of the standalone Nexus operation.
2211
+ sig { params(value: String).void }
2212
+ def run_id=(value)
2213
+ end
2214
+
2215
+ # The run ID of the standalone Nexus operation.
2216
+ sig { void }
2217
+ def clear_run_id
2218
+ end
2219
+
2220
+ # Endpoint name.
2221
+ sig { returns(String) }
2222
+ def endpoint
2223
+ end
2224
+
2225
+ # Endpoint name.
2226
+ sig { params(value: String).void }
2227
+ def endpoint=(value)
2228
+ end
2229
+
2230
+ # Endpoint name.
2231
+ sig { void }
2232
+ def clear_endpoint
2233
+ end
2234
+
2235
+ # Service name.
2236
+ sig { returns(String) }
2237
+ def service
2238
+ end
2239
+
2240
+ # Service name.
2241
+ sig { params(value: String).void }
2242
+ def service=(value)
2243
+ end
2244
+
2245
+ # Service name.
2246
+ sig { void }
2247
+ def clear_service
2248
+ end
2249
+
2250
+ # Operation name.
2251
+ sig { returns(String) }
2252
+ def operation
2253
+ end
2254
+
2255
+ # Operation name.
2256
+ sig { params(value: String).void }
2257
+ def operation=(value)
2258
+ end
2259
+
2260
+ # Operation name.
2261
+ sig { void }
2262
+ def clear_operation
2263
+ end
2264
+
2265
+ # Time the operation was originally scheduled via a StartNexusOperation request.
2266
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2267
+ def schedule_time
2268
+ end
2269
+
2270
+ # Time the operation was originally scheduled via a StartNexusOperation request.
2271
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2272
+ def schedule_time=(value)
2273
+ end
2274
+
2275
+ # Time the operation was originally scheduled via a StartNexusOperation request.
2276
+ sig { void }
2277
+ def clear_schedule_time
2278
+ end
2279
+
2280
+ # If the operation is in a terminal status, this field represents the time the operation transitioned to that status.
2281
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
2282
+ def close_time
2283
+ end
2284
+
2285
+ # If the operation is in a terminal status, this field represents the time the operation transitioned to that status.
2286
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
2287
+ def close_time=(value)
2288
+ end
2289
+
2290
+ # If the operation is in a terminal status, this field represents the time the operation transitioned to that status.
2291
+ sig { void }
2292
+ def clear_close_time
2293
+ end
2294
+
2295
+ # The status is updated once, when the operation is originally scheduled, and again when the operation reaches a terminal status.
2296
+ sig { returns(T.any(Symbol, Integer)) }
2297
+ def status
2298
+ end
2299
+
2300
+ # The status is updated once, when the operation is originally scheduled, and again when the operation reaches a terminal status.
2301
+ sig { params(value: T.any(Symbol, String, Integer)).void }
2302
+ def status=(value)
2303
+ end
2304
+
2305
+ # The status is updated once, when the operation is originally scheduled, and again when the operation reaches a terminal status.
2306
+ sig { void }
2307
+ def clear_status
2308
+ end
2309
+
2310
+ # Search attributes from the start request.
2311
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
2312
+ def search_attributes
2313
+ end
2314
+
2315
+ # Search attributes from the start request.
2316
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
2317
+ def search_attributes=(value)
2318
+ end
2319
+
2320
+ # Search attributes from the start request.
2321
+ sig { void }
2322
+ def clear_search_attributes
2323
+ end
2324
+
2325
+ # Updated on terminal status.
2326
+ sig { returns(Integer) }
2327
+ def state_transition_count
2328
+ end
2329
+
2330
+ # Updated on terminal status.
2331
+ sig { params(value: Integer).void }
2332
+ def state_transition_count=(value)
2333
+ end
2334
+
2335
+ # Updated on terminal status.
2336
+ sig { void }
2337
+ def clear_state_transition_count
2338
+ end
2339
+
2340
+ # The difference between close time and scheduled time.
2341
+ # This field is only populated if the operation is closed.
2342
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
2343
+ def execution_duration
2344
+ end
2345
+
2346
+ # The difference between close time and scheduled time.
2347
+ # This field is only populated if the operation is closed.
2348
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
2349
+ def execution_duration=(value)
2350
+ end
2351
+
2352
+ # The difference between close time and scheduled time.
2353
+ # This field is only populated if the operation is closed.
2354
+ sig { void }
2355
+ def clear_execution_duration
2356
+ end
2357
+
2358
+ # Updated once on scheduled and once on terminal status.
2359
+ sig { returns(Integer) }
2360
+ def state_size_bytes
2361
+ end
2362
+
2363
+ # Updated once on scheduled and once on terminal status.
2364
+ sig { params(value: Integer).void }
2365
+ def state_size_bytes=(value)
2366
+ end
2367
+
2368
+ # Updated once on scheduled and once on terminal status.
2369
+ sig { void }
2370
+ def clear_state_size_bytes
2371
+ end
2372
+
2373
+ sig { params(field: String).returns(T.untyped) }
2374
+ def [](field)
2375
+ end
2376
+
2377
+ sig { params(field: String, value: T.untyped).void }
2378
+ def []=(field, value)
2379
+ end
2380
+
2381
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2382
+ def to_h
2383
+ end
2384
+
2385
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::NexusOperationExecutionListInfo) }
2386
+ def self.decode(str)
2387
+ end
2388
+
2389
+ sig { params(msg: Temporalio::Api::Nexus::V1::NexusOperationExecutionListInfo).returns(String) }
2390
+ def self.encode(msg)
2391
+ end
2392
+
2393
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::NexusOperationExecutionListInfo) }
2394
+ def self.decode_json(str, **kw)
2395
+ end
2396
+
2397
+ sig { params(msg: Temporalio::Api::Nexus::V1::NexusOperationExecutionListInfo, kw: T.untyped).returns(String) }
2398
+ def self.encode_json(msg, **kw)
2399
+ end
2400
+
2401
+ sig { returns(::Google::Protobuf::Descriptor) }
2402
+ def self.descriptor
2403
+ end
2404
+ end
2405
+
2406
+ class Temporalio::Api::Nexus::V1::Request::Capabilities
2407
+ include ::Google::Protobuf::MessageExts
2408
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2409
+
2410
+ sig do
2411
+ params(
2412
+ temporal_failure_responses: T.nilable(T::Boolean)
2413
+ ).void
2414
+ end
2415
+ def initialize(
2416
+ temporal_failure_responses: false
2417
+ )
2418
+ end
2419
+
2420
+ # If set, handlers may use temporal.api.failure.v1.Failure instances to return failures to the server.
2421
+ # This also allows handler and operation errors to have their own messages and stack traces.
2422
+ sig { returns(T::Boolean) }
2423
+ def temporal_failure_responses
2424
+ end
2425
+
2426
+ # If set, handlers may use temporal.api.failure.v1.Failure instances to return failures to the server.
2427
+ # This also allows handler and operation errors to have their own messages and stack traces.
2428
+ sig { params(value: T::Boolean).void }
2429
+ def temporal_failure_responses=(value)
2430
+ end
2431
+
2432
+ # If set, handlers may use temporal.api.failure.v1.Failure instances to return failures to the server.
2433
+ # This also allows handler and operation errors to have their own messages and stack traces.
2434
+ sig { void }
2435
+ def clear_temporal_failure_responses
2436
+ end
2437
+
2438
+ sig { params(field: String).returns(T.untyped) }
2439
+ def [](field)
2440
+ end
2441
+
2442
+ sig { params(field: String, value: T.untyped).void }
2443
+ def []=(field, value)
2444
+ end
2445
+
2446
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2447
+ def to_h
2448
+ end
2449
+
2450
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::Request::Capabilities) }
2451
+ def self.decode(str)
2452
+ end
2453
+
2454
+ sig { params(msg: Temporalio::Api::Nexus::V1::Request::Capabilities).returns(String) }
2455
+ def self.encode(msg)
2456
+ end
2457
+
2458
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::Request::Capabilities) }
2459
+ def self.decode_json(str, **kw)
2460
+ end
2461
+
2462
+ sig { params(msg: Temporalio::Api::Nexus::V1::Request::Capabilities, kw: T.untyped).returns(String) }
2463
+ def self.encode_json(msg, **kw)
2464
+ end
2465
+
2466
+ sig { returns(::Google::Protobuf::Descriptor) }
2467
+ def self.descriptor
2468
+ end
2469
+ end
2470
+
2471
+ # An operation completed successfully.
2472
+ class Temporalio::Api::Nexus::V1::StartOperationResponse::Sync
2473
+ include ::Google::Protobuf::MessageExts
2474
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2475
+
2476
+ sig do
2477
+ params(
2478
+ payload: T.nilable(Temporalio::Api::Common::V1::Payload),
2479
+ links: T.nilable(T::Array[T.nilable(Temporalio::Api::Nexus::V1::Link)])
2480
+ ).void
2481
+ end
2482
+ def initialize(
2483
+ payload: nil,
2484
+ links: []
2485
+ )
2486
+ end
2487
+
2488
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
2489
+ def payload
2490
+ end
2491
+
2492
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
2493
+ def payload=(value)
2494
+ end
2495
+
2496
+ sig { void }
2497
+ def clear_payload
2498
+ end
2499
+
2500
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Nexus::V1::Link)]) }
2501
+ def links
2502
+ end
2503
+
2504
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2505
+ def links=(value)
2506
+ end
2507
+
2508
+ sig { void }
2509
+ def clear_links
2510
+ end
2511
+
2512
+ sig { params(field: String).returns(T.untyped) }
2513
+ def [](field)
2514
+ end
2515
+
2516
+ sig { params(field: String, value: T.untyped).void }
2517
+ def []=(field, value)
2518
+ end
2519
+
2520
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2521
+ def to_h
2522
+ end
2523
+
2524
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::StartOperationResponse::Sync) }
2525
+ def self.decode(str)
2526
+ end
2527
+
2528
+ sig { params(msg: Temporalio::Api::Nexus::V1::StartOperationResponse::Sync).returns(String) }
2529
+ def self.encode(msg)
2530
+ end
2531
+
2532
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::StartOperationResponse::Sync) }
2533
+ def self.decode_json(str, **kw)
2534
+ end
2535
+
2536
+ sig { params(msg: Temporalio::Api::Nexus::V1::StartOperationResponse::Sync, kw: T.untyped).returns(String) }
2537
+ def self.encode_json(msg, **kw)
2538
+ end
2539
+
2540
+ sig { returns(::Google::Protobuf::Descriptor) }
2541
+ def self.descriptor
2542
+ end
2543
+ end
2544
+
2545
+ # The operation will complete asynchronously.
2546
+ # The returned ID can be used to reference this operation.
2547
+ class Temporalio::Api::Nexus::V1::StartOperationResponse::Async
2548
+ include ::Google::Protobuf::MessageExts
2549
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2550
+
2551
+ sig do
2552
+ params(
2553
+ operation_id: T.nilable(String),
2554
+ links: T.nilable(T::Array[T.nilable(Temporalio::Api::Nexus::V1::Link)]),
2555
+ operation_token: T.nilable(String)
2556
+ ).void
2557
+ end
2558
+ def initialize(
2559
+ operation_id: "",
2560
+ links: [],
2561
+ operation_token: ""
2562
+ )
2563
+ end
2564
+
2565
+ # Deprecated. Renamed to operation_token.
2566
+ sig { returns(String) }
2567
+ def operation_id
2568
+ end
2569
+
2570
+ # Deprecated. Renamed to operation_token.
2571
+ sig { params(value: String).void }
2572
+ def operation_id=(value)
2573
+ end
2574
+
2575
+ # Deprecated. Renamed to operation_token.
2576
+ sig { void }
2577
+ def clear_operation_id
2578
+ end
2579
+
2580
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Nexus::V1::Link)]) }
2581
+ def links
2582
+ end
2583
+
2584
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2585
+ def links=(value)
2586
+ end
2587
+
2588
+ sig { void }
2589
+ def clear_links
2590
+ end
2591
+
2592
+ sig { returns(String) }
2593
+ def operation_token
2594
+ end
2595
+
2596
+ sig { params(value: String).void }
2597
+ def operation_token=(value)
2598
+ end
2599
+
2600
+ sig { void }
2601
+ def clear_operation_token
2602
+ end
2603
+
2604
+ sig { params(field: String).returns(T.untyped) }
2605
+ def [](field)
2606
+ end
2607
+
2608
+ sig { params(field: String, value: T.untyped).void }
2609
+ def []=(field, value)
2610
+ end
2611
+
2612
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2613
+ def to_h
2614
+ end
2615
+
2616
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::StartOperationResponse::Async) }
2617
+ def self.decode(str)
2618
+ end
2619
+
2620
+ sig { params(msg: Temporalio::Api::Nexus::V1::StartOperationResponse::Async).returns(String) }
2621
+ def self.encode(msg)
2622
+ end
2623
+
2624
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::StartOperationResponse::Async) }
2625
+ def self.decode_json(str, **kw)
2626
+ end
2627
+
2628
+ sig { params(msg: Temporalio::Api::Nexus::V1::StartOperationResponse::Async, kw: T.untyped).returns(String) }
2629
+ def self.encode_json(msg, **kw)
2630
+ end
2631
+
2632
+ sig { returns(::Google::Protobuf::Descriptor) }
2633
+ def self.descriptor
2634
+ end
2635
+ end
2636
+
2637
+ # Target a worker polling on a Nexus task queue in a specific namespace.
2638
+ class Temporalio::Api::Nexus::V1::EndpointTarget::Worker
2639
+ include ::Google::Protobuf::MessageExts
2640
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2641
+
2642
+ sig do
2643
+ params(
2644
+ namespace: T.nilable(String),
2645
+ task_queue: T.nilable(String)
2646
+ ).void
2647
+ end
2648
+ def initialize(
2649
+ namespace: "",
2650
+ task_queue: ""
2651
+ )
2652
+ end
2653
+
2654
+ # Namespace to route requests to.
2655
+ sig { returns(String) }
2656
+ def namespace
2657
+ end
2658
+
2659
+ # Namespace to route requests to.
2660
+ sig { params(value: String).void }
2661
+ def namespace=(value)
2662
+ end
2663
+
2664
+ # Namespace to route requests to.
2665
+ sig { void }
2666
+ def clear_namespace
2667
+ end
2668
+
2669
+ # Nexus task queue to route requests to.
2670
+ sig { returns(String) }
2671
+ def task_queue
2672
+ end
2673
+
2674
+ # Nexus task queue to route requests to.
2675
+ sig { params(value: String).void }
2676
+ def task_queue=(value)
2677
+ end
2678
+
2679
+ # Nexus task queue to route requests to.
2680
+ sig { void }
2681
+ def clear_task_queue
2682
+ end
2683
+
2684
+ sig { params(field: String).returns(T.untyped) }
2685
+ def [](field)
2686
+ end
2687
+
2688
+ sig { params(field: String, value: T.untyped).void }
2689
+ def []=(field, value)
2690
+ end
2691
+
2692
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2693
+ def to_h
2694
+ end
2695
+
2696
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::EndpointTarget::Worker) }
2697
+ def self.decode(str)
2698
+ end
2699
+
2700
+ sig { params(msg: Temporalio::Api::Nexus::V1::EndpointTarget::Worker).returns(String) }
2701
+ def self.encode(msg)
2702
+ end
2703
+
2704
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::EndpointTarget::Worker) }
2705
+ def self.decode_json(str, **kw)
2706
+ end
2707
+
2708
+ sig { params(msg: Temporalio::Api::Nexus::V1::EndpointTarget::Worker, kw: T.untyped).returns(String) }
2709
+ def self.encode_json(msg, **kw)
2710
+ end
2711
+
2712
+ sig { returns(::Google::Protobuf::Descriptor) }
2713
+ def self.descriptor
2714
+ end
2715
+ end
2716
+
2717
+ # Target an external server by URL.
2718
+ # At a later point, this will support providing credentials, in the meantime, an http.RoundTripper can be injected
2719
+ # into the server to modify the request.
2720
+ class Temporalio::Api::Nexus::V1::EndpointTarget::External
2721
+ include ::Google::Protobuf::MessageExts
2722
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2723
+
2724
+ sig do
2725
+ params(
2726
+ url: T.nilable(String)
2727
+ ).void
2728
+ end
2729
+ def initialize(
2730
+ url: ""
2731
+ )
2732
+ end
2733
+
2734
+ # URL to call.
2735
+ sig { returns(String) }
2736
+ def url
2737
+ end
2738
+
2739
+ # URL to call.
2740
+ sig { params(value: String).void }
2741
+ def url=(value)
2742
+ end
2743
+
2744
+ # URL to call.
2745
+ sig { void }
2746
+ def clear_url
2747
+ end
2748
+
2749
+ sig { params(field: String).returns(T.untyped) }
2750
+ def [](field)
2751
+ end
2752
+
2753
+ sig { params(field: String, value: T.untyped).void }
2754
+ def []=(field, value)
2755
+ end
2756
+
2757
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2758
+ def to_h
2759
+ end
2760
+
2761
+ sig { params(str: String).returns(Temporalio::Api::Nexus::V1::EndpointTarget::External) }
2762
+ def self.decode(str)
2763
+ end
2764
+
2765
+ sig { params(msg: Temporalio::Api::Nexus::V1::EndpointTarget::External).returns(String) }
2766
+ def self.encode(msg)
2767
+ end
2768
+
2769
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Nexus::V1::EndpointTarget::External) }
2770
+ def self.decode_json(str, **kw)
2771
+ end
2772
+
2773
+ sig { params(msg: Temporalio::Api::Nexus::V1::EndpointTarget::External, kw: T.untyped).returns(String) }
2774
+ def self.encode_json(msg, **kw)
2775
+ end
2776
+
2777
+ sig { returns(::Google::Protobuf::Descriptor) }
2778
+ def self.descriptor
2779
+ end
2780
+ end