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,1066 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # This RBS interface is provided for convenience, on a best-effort basis.
3
+ # The library is the definitive source for the API contract; if the RBS file
4
+ # and the library's behavior differ, the library behavior is authoritative.
5
+ # We welcome fixes to change the RBS file to match.
6
+ # source: temporal/api/schedule/v1/message.proto
7
+
8
+ module Temporalio
9
+ module Api
10
+ module Schedule
11
+ module V1
12
+ # CalendarSpec describes an event specification relative to the calendar,
13
+ # similar to a traditional cron specification, but with labeled fields. Each
14
+ # field can be one of:
15
+ # *: matches always
16
+ # x: matches when the field equals x
17
+ # x/y : matches when the field equals x+n*y where n is an integer
18
+ # x-z: matches when the field is between x and z inclusive
19
+ # w,x,y,...: matches when the field is one of the listed values
20
+ # Each x, y, z, ... is either a decimal integer, or a month or day of week name
21
+ # or abbreviation (in the appropriate fields).
22
+ # A timestamp matches if all fields match.
23
+ # Note that fields have different default values, for convenience.
24
+ # Note that the special case that some cron implementations have for treating
25
+ # day_of_month and day_of_week as "or" instead of "and" when both are set is
26
+ # not implemented.
27
+ # day_of_week can accept 0 or 7 as Sunday
28
+ # CalendarSpec gets compiled into StructuredCalendarSpec, which is what will be
29
+ # returned if you describe the schedule.
30
+ class CalendarSpec < ::Google::Protobuf::AbstractMessage
31
+
32
+ # Expression to match seconds. Default: 0
33
+ attr_reader second(): ::String
34
+ attr_writer second(): ::String | ::Symbol
35
+ def clear_second: () -> void
36
+
37
+ # Expression to match minutes. Default: 0
38
+ attr_reader minute(): ::String
39
+ attr_writer minute(): ::String | ::Symbol
40
+ def clear_minute: () -> void
41
+
42
+ # Expression to match hours. Default: 0
43
+ attr_reader hour(): ::String
44
+ attr_writer hour(): ::String | ::Symbol
45
+ def clear_hour: () -> void
46
+
47
+ # Expression to match days of the month. Default: *
48
+ # (-- api-linter: core::0140::prepositions=disabled
49
+ # aip.dev/not-precedent: standard name of field --)
50
+ attr_reader day_of_month(): ::String
51
+ attr_writer day_of_month(): ::String | ::Symbol
52
+ def clear_day_of_month: () -> void
53
+
54
+ # Expression to match months. Default: *
55
+ attr_reader month(): ::String
56
+ attr_writer month(): ::String | ::Symbol
57
+ def clear_month: () -> void
58
+
59
+ # Expression to match years. Default: *
60
+ attr_reader year(): ::String
61
+ attr_writer year(): ::String | ::Symbol
62
+ def clear_year: () -> void
63
+
64
+ # Expression to match days of the week. Default: *
65
+ attr_reader day_of_week(): ::String
66
+ attr_writer day_of_week(): ::String | ::Symbol
67
+ def clear_day_of_week: () -> void
68
+
69
+ # Free-form comment describing the intention of this spec.
70
+ attr_reader comment(): ::String
71
+ attr_writer comment(): ::String | ::Symbol
72
+ def clear_comment: () -> void
73
+
74
+ type init_map = {
75
+ second: (::String | ::Symbol)?,
76
+ "second" => (::String | ::Symbol)?,
77
+ minute: (::String | ::Symbol)?,
78
+ "minute" => (::String | ::Symbol)?,
79
+ hour: (::String | ::Symbol)?,
80
+ "hour" => (::String | ::Symbol)?,
81
+ day_of_month: (::String | ::Symbol)?,
82
+ "day_of_month" => (::String | ::Symbol)?,
83
+ month: (::String | ::Symbol)?,
84
+ "month" => (::String | ::Symbol)?,
85
+ year: (::String | ::Symbol)?,
86
+ "year" => (::String | ::Symbol)?,
87
+ day_of_week: (::String | ::Symbol)?,
88
+ "day_of_week" => (::String | ::Symbol)?,
89
+ comment: (::String | ::Symbol)?,
90
+ "comment" => (::String | ::Symbol)?,
91
+ }
92
+
93
+ def initialize: (?init_map initial_value) -> void
94
+
95
+ def []:
96
+ ("second" name) -> ::String
97
+ | ("minute" name) -> ::String
98
+ | ("hour" name) -> ::String
99
+ | ("day_of_month" name) -> ::String
100
+ | ("month" name) -> ::String
101
+ | ("year" name) -> ::String
102
+ | ("day_of_week" name) -> ::String
103
+ | ("comment" name) -> ::String
104
+
105
+ def []=:
106
+ ("second" name, (::String | ::Symbol) value) -> void
107
+ | ("minute" name, (::String | ::Symbol) value) -> void
108
+ | ("hour" name, (::String | ::Symbol) value) -> void
109
+ | ("day_of_month" name, (::String | ::Symbol) value) -> void
110
+ | ("month" name, (::String | ::Symbol) value) -> void
111
+ | ("year" name, (::String | ::Symbol) value) -> void
112
+ | ("day_of_week" name, (::String | ::Symbol) value) -> void
113
+ | ("comment" name, (::String | ::Symbol) value) -> void
114
+ end
115
+
116
+ # Range represents a set of integer values, used to match fields of a calendar
117
+ # time in StructuredCalendarSpec. If end < start, then end is interpreted as
118
+ # equal to start. This means you can use a Range with start set to a value, and
119
+ # end and step unset (defaulting to 0) to represent a single value.
120
+ class Range < ::Google::Protobuf::AbstractMessage
121
+
122
+ # Start of range (inclusive).
123
+ attr_reader start(): ::Integer
124
+ attr_writer start(): ::Integer | ::Float
125
+ def clear_start: () -> void
126
+
127
+ # End of range (inclusive).
128
+ attr_reader end(): ::Integer
129
+ attr_writer end(): ::Integer | ::Float
130
+ def clear_end: () -> void
131
+
132
+ # Step (optional, default 1).
133
+ attr_reader step(): ::Integer
134
+ attr_writer step(): ::Integer | ::Float
135
+ def clear_step: () -> void
136
+
137
+ type init_map = {
138
+ start: (::Integer | ::Float)?,
139
+ "start" => (::Integer | ::Float)?,
140
+ end: (::Integer | ::Float)?,
141
+ "end" => (::Integer | ::Float)?,
142
+ step: (::Integer | ::Float)?,
143
+ "step" => (::Integer | ::Float)?,
144
+ }
145
+
146
+ def initialize: (?init_map initial_value) -> void
147
+
148
+ def []:
149
+ ("start" name) -> ::Integer
150
+ | ("end" name) -> ::Integer
151
+ | ("step" name) -> ::Integer
152
+
153
+ def []=:
154
+ ("start" name, (::Integer | ::Float) value) -> void
155
+ | ("end" name, (::Integer | ::Float) value) -> void
156
+ | ("step" name, (::Integer | ::Float) value) -> void
157
+ end
158
+
159
+ # StructuredCalendarSpec describes an event specification relative to the
160
+ # calendar, in a form that's easy to work with programmatically. Each field can
161
+ # be one or more ranges.
162
+ # A timestamp matches if at least one range of each field matches the
163
+ # corresponding fields of the timestamp, except for year: if year is missing,
164
+ # that means all years match. For all fields besides year, at least one Range
165
+ # must be present to match anything.
166
+ # Relative expressions such as "last day of the month" or "third Monday" are not currently
167
+ # representable; callers must enumerate the concrete days they require.
168
+ class StructuredCalendarSpec < ::Google::Protobuf::AbstractMessage
169
+
170
+ # Match seconds (0-59)
171
+ attr_accessor second(): ::Google::Protobuf::RepeatedField
172
+ def clear_second: () -> void
173
+
174
+ # Match minutes (0-59)
175
+ attr_accessor minute(): ::Google::Protobuf::RepeatedField
176
+ def clear_minute: () -> void
177
+
178
+ # Match hours (0-23)
179
+ attr_accessor hour(): ::Google::Protobuf::RepeatedField
180
+ def clear_hour: () -> void
181
+
182
+ # Match days of the month (1-31)
183
+ # (-- api-linter: core::0140::prepositions=disabled
184
+ # aip.dev/not-precedent: standard name of field --)
185
+ attr_accessor day_of_month(): ::Google::Protobuf::RepeatedField
186
+ def clear_day_of_month: () -> void
187
+
188
+ # Match months (1-12)
189
+ attr_accessor month(): ::Google::Protobuf::RepeatedField
190
+ def clear_month: () -> void
191
+
192
+ # Match years.
193
+ attr_accessor year(): ::Google::Protobuf::RepeatedField
194
+ def clear_year: () -> void
195
+
196
+ # Match days of the week (0-6; 0 is Sunday).
197
+ attr_accessor day_of_week(): ::Google::Protobuf::RepeatedField
198
+ def clear_day_of_week: () -> void
199
+
200
+ # Free-form comment describing the intention of this spec.
201
+ attr_reader comment(): ::String
202
+ attr_writer comment(): ::String | ::Symbol
203
+ def clear_comment: () -> void
204
+
205
+ type init_map = {
206
+ second: ::Array[::Temporalio::Api::Schedule::V1::Range]?,
207
+ "second" => ::Array[::Temporalio::Api::Schedule::V1::Range]?,
208
+ minute: ::Array[::Temporalio::Api::Schedule::V1::Range]?,
209
+ "minute" => ::Array[::Temporalio::Api::Schedule::V1::Range]?,
210
+ hour: ::Array[::Temporalio::Api::Schedule::V1::Range]?,
211
+ "hour" => ::Array[::Temporalio::Api::Schedule::V1::Range]?,
212
+ day_of_month: ::Array[::Temporalio::Api::Schedule::V1::Range]?,
213
+ "day_of_month" => ::Array[::Temporalio::Api::Schedule::V1::Range]?,
214
+ month: ::Array[::Temporalio::Api::Schedule::V1::Range]?,
215
+ "month" => ::Array[::Temporalio::Api::Schedule::V1::Range]?,
216
+ year: ::Array[::Temporalio::Api::Schedule::V1::Range]?,
217
+ "year" => ::Array[::Temporalio::Api::Schedule::V1::Range]?,
218
+ day_of_week: ::Array[::Temporalio::Api::Schedule::V1::Range]?,
219
+ "day_of_week" => ::Array[::Temporalio::Api::Schedule::V1::Range]?,
220
+ comment: (::String | ::Symbol)?,
221
+ "comment" => (::String | ::Symbol)?,
222
+ }
223
+
224
+ def initialize: (?init_map initial_value) -> void
225
+
226
+ def []:
227
+ ("second" name) -> ::Google::Protobuf::RepeatedField
228
+ | ("minute" name) -> ::Google::Protobuf::RepeatedField
229
+ | ("hour" name) -> ::Google::Protobuf::RepeatedField
230
+ | ("day_of_month" name) -> ::Google::Protobuf::RepeatedField
231
+ | ("month" name) -> ::Google::Protobuf::RepeatedField
232
+ | ("year" name) -> ::Google::Protobuf::RepeatedField
233
+ | ("day_of_week" name) -> ::Google::Protobuf::RepeatedField
234
+ | ("comment" name) -> ::String
235
+
236
+ def []=:
237
+ ("second" name, ::Google::Protobuf::RepeatedField value) -> void
238
+ | ("minute" name, ::Google::Protobuf::RepeatedField value) -> void
239
+ | ("hour" name, ::Google::Protobuf::RepeatedField value) -> void
240
+ | ("day_of_month" name, ::Google::Protobuf::RepeatedField value) -> void
241
+ | ("month" name, ::Google::Protobuf::RepeatedField value) -> void
242
+ | ("year" name, ::Google::Protobuf::RepeatedField value) -> void
243
+ | ("day_of_week" name, ::Google::Protobuf::RepeatedField value) -> void
244
+ | ("comment" name, (::String | ::Symbol) value) -> void
245
+ end
246
+
247
+ # IntervalSpec matches times that can be expressed as:
248
+ # epoch + n * interval + phase
249
+ # where n is an integer.
250
+ # phase defaults to zero if missing. interval is required.
251
+ # Both interval and phase must be non-negative and are truncated to the nearest
252
+ # second before any calculations.
253
+ # For example, an interval of 1 hour with phase of zero would match every hour,
254
+ # on the hour. The same interval but a phase of 19 minutes would match every
255
+ # xx:19:00. An interval of 28 days with phase zero would match
256
+ # 2022-02-17T00:00:00Z (among other times). The same interval with a phase of 3
257
+ # days, 5 hours, and 23 minutes would match 2022-02-20T05:23:00Z instead.
258
+ class IntervalSpec < ::Google::Protobuf::AbstractMessage
259
+
260
+ attr_reader interval(): ::Google::Protobuf::Duration?
261
+ attr_writer interval(): (::Google::Protobuf::Duration | ::int)?
262
+ def has_interval?: () -> bool
263
+ def clear_interval: () -> void
264
+
265
+ attr_reader phase(): ::Google::Protobuf::Duration?
266
+ attr_writer phase(): (::Google::Protobuf::Duration | ::int)?
267
+ def has_phase?: () -> bool
268
+ def clear_phase: () -> void
269
+
270
+ type init_map = {
271
+ interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
272
+ "interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
273
+ phase: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
274
+ "phase" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
275
+ }
276
+
277
+ def initialize: (?init_map initial_value) -> void
278
+
279
+ def []:
280
+ ("interval" name) -> ::Google::Protobuf::Duration?
281
+ | ("phase" name) -> ::Google::Protobuf::Duration?
282
+
283
+ def []=:
284
+ ("interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
285
+ | ("phase" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
286
+ end
287
+
288
+ # ScheduleSpec is a complete description of a set of absolute timestamps
289
+ # (possibly infinite) that an action should occur at. The meaning of a
290
+ # ScheduleSpec depends only on its contents and never changes, except that the
291
+ # definition of a time zone can change over time (most commonly, when daylight
292
+ # saving time policy changes for an area). To create a totally self-contained
293
+ # ScheduleSpec, use UTC or include timezone_data.
294
+ # For input, you can provide zero or more of: structured_calendar, calendar,
295
+ # cron_string, interval, and exclude_structured_calendar, and all of them will
296
+ # be used (the schedule will take action at the union of all of their times,
297
+ # minus the ones that match exclude_structured_calendar).
298
+ # On input, calendar and cron_string fields will be compiled into
299
+ # structured_calendar (and maybe interval and timezone_name), so if you
300
+ # Describe a schedule, you'll see only structured_calendar, interval, etc.
301
+ # If a spec has no matching times after the current time, then the schedule
302
+ # will be subject to automatic deletion (after several days).
303
+ class ScheduleSpec < ::Google::Protobuf::AbstractMessage
304
+
305
+ # Calendar-based specifications of times.
306
+ attr_accessor structured_calendar(): ::Google::Protobuf::RepeatedField
307
+ def clear_structured_calendar: () -> void
308
+
309
+ # cron_string holds a traditional cron specification as a string. It
310
+ # accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
311
+ # same way as CalendarSpec.
312
+ # 5 fields: minute, hour, day_of_month, month, day_of_week
313
+ # 6 fields: minute, hour, day_of_month, month, day_of_week, year
314
+ # 7 fields: second, minute, hour, day_of_month, month, day_of_week, year
315
+ # If year is not given, it defaults to *. If second is not given, it
316
+ # defaults to 0.
317
+ # Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
318
+ # accepted instead of the 5-7 time fields.
319
+ # Optionally, the string can be preceded by CRON_TZ=<timezone name> or
320
+ # TZ=<timezone name>, which will get copied to timezone_name. (There must
321
+ # not also be a timezone_name present.)
322
+ # Optionally "#" followed by a comment can appear at the end of the string.
323
+ # Note that the special case that some cron implementations have for
324
+ # treating day_of_month and day_of_week as "or" instead of "and" when both
325
+ # are set is not implemented.
326
+ # @every <interval>[/<phase>] is accepted and gets compiled into an
327
+ # IntervalSpec instead. <interval> and <phase> should be a decimal integer
328
+ # with a unit suffix s, m, h, or d.
329
+ attr_accessor cron_string(): ::Google::Protobuf::RepeatedField
330
+ def clear_cron_string: () -> void
331
+
332
+ # Calendar-based specifications of times.
333
+ attr_accessor calendar(): ::Google::Protobuf::RepeatedField
334
+ def clear_calendar: () -> void
335
+
336
+ # Interval-based specifications of times.
337
+ attr_accessor interval(): ::Google::Protobuf::RepeatedField
338
+ def clear_interval: () -> void
339
+
340
+ # Any timestamps matching any of exclude_* will be skipped.
341
+ # Deprecated. Use exclude_structured_calendar.
342
+ # @deprecated
343
+ attr_accessor exclude_calendar(): ::Google::Protobuf::RepeatedField
344
+ def clear_exclude_calendar: () -> void
345
+
346
+ attr_accessor exclude_structured_calendar(): ::Google::Protobuf::RepeatedField
347
+ def clear_exclude_structured_calendar: () -> void
348
+
349
+ # If start_time is set, any timestamps before start_time will be skipped.
350
+ # (Together, start_time and end_time make an inclusive interval.)
351
+ attr_reader start_time(): ::Google::Protobuf::Timestamp?
352
+ attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
353
+ def has_start_time?: () -> bool
354
+ def clear_start_time: () -> void
355
+
356
+ # If end_time is set, any timestamps after end_time will be skipped.
357
+ attr_reader end_time(): ::Google::Protobuf::Timestamp?
358
+ attr_writer end_time(): (::Google::Protobuf::Timestamp | ::Time)?
359
+ def has_end_time?: () -> bool
360
+ def clear_end_time: () -> void
361
+
362
+ # All timestamps will be incremented by a random value from 0 to this
363
+ # amount of jitter. Default: 0
364
+ attr_reader jitter(): ::Google::Protobuf::Duration?
365
+ attr_writer jitter(): (::Google::Protobuf::Duration | ::int)?
366
+ def has_jitter?: () -> bool
367
+ def clear_jitter: () -> void
368
+
369
+ # Time zone to interpret all calendar-based specs in.
370
+ # If unset, defaults to UTC. We recommend using UTC for your application if
371
+ # at all possible, to avoid various surprising properties of time zones.
372
+ # Time zones may be provided by name, corresponding to names in the IANA
373
+ # time zone database (see https://www.iana.org/time-zones). The definition
374
+ # will be loaded by the Temporal server from the environment it runs in.
375
+ # If your application requires more control over the time zone definition
376
+ # used, it may pass in a complete definition in the form of a TZif file
377
+ # from the time zone database. If present, this will be used instead of
378
+ # loading anything from the environment. You are then responsible for
379
+ # updating timezone_data when the definition changes.
380
+ # Calendar spec matching is based on literal matching of the clock time
381
+ # with no special handling of DST: if you write a calendar spec that fires
382
+ # at 2:30am and specify a time zone that follows DST, that action will not
383
+ # be triggered on the day that has no 2:30am. Similarly, an action that
384
+ # fires at 1:30am will be triggered twice on the day that has two 1:30s.
385
+ # Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
386
+ attr_reader timezone_name(): ::String
387
+ attr_writer timezone_name(): ::String | ::Symbol
388
+ def clear_timezone_name: () -> void
389
+
390
+ attr_accessor timezone_data(): ::String
391
+ def clear_timezone_data: () -> void
392
+
393
+ type init_map = {
394
+ structured_calendar: ::Array[::Temporalio::Api::Schedule::V1::StructuredCalendarSpec]?,
395
+ "structured_calendar" => ::Array[::Temporalio::Api::Schedule::V1::StructuredCalendarSpec]?,
396
+ cron_string: ::Array[::String | ::Symbol]?,
397
+ "cron_string" => ::Array[::String | ::Symbol]?,
398
+ calendar: ::Array[::Temporalio::Api::Schedule::V1::CalendarSpec]?,
399
+ "calendar" => ::Array[::Temporalio::Api::Schedule::V1::CalendarSpec]?,
400
+ interval: ::Array[::Temporalio::Api::Schedule::V1::IntervalSpec]?,
401
+ "interval" => ::Array[::Temporalio::Api::Schedule::V1::IntervalSpec]?,
402
+ exclude_calendar: ::Array[::Temporalio::Api::Schedule::V1::CalendarSpec]?,
403
+ "exclude_calendar" => ::Array[::Temporalio::Api::Schedule::V1::CalendarSpec]?,
404
+ exclude_structured_calendar: ::Array[::Temporalio::Api::Schedule::V1::StructuredCalendarSpec]?,
405
+ "exclude_structured_calendar" => ::Array[::Temporalio::Api::Schedule::V1::StructuredCalendarSpec]?,
406
+ start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
407
+ "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
408
+ end_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
409
+ "end_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
410
+ jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
411
+ "jitter" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
412
+ timezone_name: (::String | ::Symbol)?,
413
+ "timezone_name" => (::String | ::Symbol)?,
414
+ timezone_data: ::String?,
415
+ "timezone_data" => ::String?,
416
+ }
417
+
418
+ def initialize: (?init_map initial_value) -> void
419
+
420
+ def []:
421
+ ("structured_calendar" name) -> ::Google::Protobuf::RepeatedField
422
+ | ("cron_string" name) -> (::Google::Protobuf::RepeatedField)
423
+ | ("calendar" name) -> ::Google::Protobuf::RepeatedField
424
+ | ("interval" name) -> ::Google::Protobuf::RepeatedField
425
+ | ("exclude_calendar" name) -> ::Google::Protobuf::RepeatedField
426
+ | ("exclude_structured_calendar" name) -> ::Google::Protobuf::RepeatedField
427
+ | ("start_time" name) -> ::Google::Protobuf::Timestamp?
428
+ | ("end_time" name) -> ::Google::Protobuf::Timestamp?
429
+ | ("jitter" name) -> ::Google::Protobuf::Duration?
430
+ | ("timezone_name" name) -> ::String
431
+ | ("timezone_data" name) -> ::String
432
+
433
+ def []=:
434
+ ("structured_calendar" name, ::Google::Protobuf::RepeatedField value) -> void
435
+ | ("cron_string" name, (::Google::Protobuf::RepeatedField) value) -> void
436
+ | ("calendar" name, ::Google::Protobuf::RepeatedField value) -> void
437
+ | ("interval" name, ::Google::Protobuf::RepeatedField value) -> void
438
+ | ("exclude_calendar" name, ::Google::Protobuf::RepeatedField value) -> void
439
+ | ("exclude_structured_calendar" name, ::Google::Protobuf::RepeatedField value) -> void
440
+ | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
441
+ | ("end_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
442
+ | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
443
+ | ("timezone_name" name, (::String | ::Symbol) value) -> void
444
+ | ("timezone_data" name, ::String value) -> void
445
+ end
446
+
447
+ class SchedulePolicies < ::Google::Protobuf::AbstractMessage
448
+
449
+ # Policy for overlaps.
450
+ # Note that this can be changed after a schedule has taken some actions,
451
+ # and some changes might produce unintuitive results. In general, the later
452
+ # policy overrides the earlier policy.
453
+ attr_reader overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer
454
+ attr_writer overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float
455
+ attr_reader overlap_policy_const(): ::Integer
456
+ def clear_overlap_policy: () -> void
457
+
458
+ # Policy for catchups:
459
+ # If the Temporal server misses an action due to one or more components
460
+ # being down, and comes back up, the action will be run if the scheduled
461
+ # time is within this window from the current time.
462
+ # This value defaults to one year, and can't be less than 10 seconds.
463
+ attr_reader catchup_window(): ::Google::Protobuf::Duration?
464
+ attr_writer catchup_window(): (::Google::Protobuf::Duration | ::int)?
465
+ def has_catchup_window?: () -> bool
466
+ def clear_catchup_window: () -> void
467
+
468
+ # If true, and a workflow run fails or times out, turn on "paused".
469
+ # This applies after retry policies: the full chain of retries must fail to
470
+ # trigger a pause here.
471
+ attr_accessor pause_on_failure(): bool
472
+ def clear_pause_on_failure: () -> void
473
+
474
+ # If true, and the action would start a workflow, a timestamp will not be
475
+ # appended to the scheduled workflow id.
476
+ attr_accessor keep_original_workflow_id(): bool
477
+ def clear_keep_original_workflow_id: () -> void
478
+
479
+ type init_map = {
480
+ overlap_policy: (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?,
481
+ "overlap_policy" => (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?,
482
+ catchup_window: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
483
+ "catchup_window" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
484
+ pause_on_failure: bool?,
485
+ "pause_on_failure" => bool?,
486
+ keep_original_workflow_id: bool?,
487
+ "keep_original_workflow_id" => bool?,
488
+ }
489
+
490
+ def initialize: (?init_map initial_value) -> void
491
+
492
+ def []:
493
+ ("overlap_policy" name) -> (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer)
494
+ | ("catchup_window" name) -> ::Google::Protobuf::Duration?
495
+ | ("pause_on_failure" name) -> bool
496
+ | ("keep_original_workflow_id" name) -> bool
497
+
498
+ def []=:
499
+ ("overlap_policy" name, (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float) value) -> void
500
+ | ("catchup_window" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
501
+ | ("pause_on_failure" name, bool value) -> void
502
+ | ("keep_original_workflow_id" name, bool value) -> void
503
+ end
504
+
505
+ class ScheduleAction < ::Google::Protobuf::AbstractMessage
506
+
507
+ # All fields of NewWorkflowExecutionInfo are valid except for:
508
+ # - workflow_id_reuse_policy
509
+ # - cron_schedule
510
+ # The workflow id of the started workflow may not match this exactly,
511
+ # it may have a timestamp appended for uniqueness.
512
+ attr_accessor start_workflow(): ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo?
513
+ def has_start_workflow?: () -> bool
514
+ def clear_start_workflow: () -> void
515
+
516
+ attr_reader action(): ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo?
517
+ def has_action?: () -> bool
518
+ def clear_action: () -> void
519
+
520
+ type init_map = {
521
+ start_workflow: (::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo | ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo::init_map)?,
522
+ "start_workflow" => (::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo | ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo::init_map)?,
523
+ }
524
+
525
+ def initialize: (?init_map initial_value) -> void
526
+
527
+ def []:
528
+ ("start_workflow" name) -> ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo?
529
+
530
+ def []=:
531
+ ("start_workflow" name, ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo? value) -> void
532
+ end
533
+
534
+ class ScheduleActionResult < ::Google::Protobuf::AbstractMessage
535
+
536
+ # Time that the action was taken (according to the schedule, including jitter).
537
+ attr_reader schedule_time(): ::Google::Protobuf::Timestamp?
538
+ attr_writer schedule_time(): (::Google::Protobuf::Timestamp | ::Time)?
539
+ def has_schedule_time?: () -> bool
540
+ def clear_schedule_time: () -> void
541
+
542
+ # Time that the action was taken (real time).
543
+ attr_reader actual_time(): ::Google::Protobuf::Timestamp?
544
+ attr_writer actual_time(): (::Google::Protobuf::Timestamp | ::Time)?
545
+ def has_actual_time?: () -> bool
546
+ def clear_actual_time: () -> void
547
+
548
+ # If action was start_workflow:
549
+ attr_accessor start_workflow_result(): ::Temporalio::Api::Common::V1::WorkflowExecution?
550
+ def has_start_workflow_result?: () -> bool
551
+ def clear_start_workflow_result: () -> void
552
+
553
+ # If the action was start_workflow, this field will reflect an
554
+ # eventually-consistent view of the started workflow's status.
555
+ attr_reader start_workflow_status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer
556
+ attr_writer start_workflow_status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float
557
+ attr_reader start_workflow_status_const(): ::Integer
558
+ def clear_start_workflow_status: () -> void
559
+
560
+ type init_map = {
561
+ schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
562
+ "schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
563
+ actual_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
564
+ "actual_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
565
+ start_workflow_result: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
566
+ "start_workflow_result" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
567
+ start_workflow_status: (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?,
568
+ "start_workflow_status" => (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?,
569
+ }
570
+
571
+ def initialize: (?init_map initial_value) -> void
572
+
573
+ def []:
574
+ ("schedule_time" name) -> ::Google::Protobuf::Timestamp?
575
+ | ("actual_time" name) -> ::Google::Protobuf::Timestamp?
576
+ | ("start_workflow_result" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution?
577
+ | ("start_workflow_status" name) -> (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer)
578
+
579
+ def []=:
580
+ ("schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
581
+ | ("actual_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
582
+ | ("start_workflow_result" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void
583
+ | ("start_workflow_status" name, (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float) value) -> void
584
+ end
585
+
586
+ class ScheduleState < ::Google::Protobuf::AbstractMessage
587
+
588
+ # Informative human-readable message with contextual notes, e.g. the reason
589
+ # a schedule is paused. The system may overwrite this message on certain
590
+ # conditions, e.g. when pause-on-failure happens.
591
+ attr_reader notes(): ::String
592
+ attr_writer notes(): ::String | ::Symbol
593
+ def clear_notes: () -> void
594
+
595
+ # If true, do not take any actions based on the schedule spec.
596
+ attr_accessor paused(): bool
597
+ def clear_paused: () -> void
598
+
599
+ # If limited_actions is true, decrement remaining_actions after each
600
+ # action, and do not take any more scheduled actions if remaining_actions
601
+ # is zero. Actions may still be taken by explicit request (i.e. trigger
602
+ # immediately or backfill). Skipped actions (due to overlap policy) do not
603
+ # count against remaining actions.
604
+ # If a schedule has no more remaining actions, then the schedule will be
605
+ # subject to automatic deletion (after several days).
606
+ attr_accessor limited_actions(): bool
607
+ def clear_limited_actions: () -> void
608
+
609
+ attr_reader remaining_actions(): ::Integer
610
+ attr_writer remaining_actions(): ::Integer | ::Float
611
+ def clear_remaining_actions: () -> void
612
+
613
+ type init_map = {
614
+ notes: (::String | ::Symbol)?,
615
+ "notes" => (::String | ::Symbol)?,
616
+ paused: bool?,
617
+ "paused" => bool?,
618
+ limited_actions: bool?,
619
+ "limited_actions" => bool?,
620
+ remaining_actions: (::Integer | ::Float)?,
621
+ "remaining_actions" => (::Integer | ::Float)?,
622
+ }
623
+
624
+ def initialize: (?init_map initial_value) -> void
625
+
626
+ def []:
627
+ ("notes" name) -> ::String
628
+ | ("paused" name) -> bool
629
+ | ("limited_actions" name) -> bool
630
+ | ("remaining_actions" name) -> ::Integer
631
+
632
+ def []=:
633
+ ("notes" name, (::String | ::Symbol) value) -> void
634
+ | ("paused" name, bool value) -> void
635
+ | ("limited_actions" name, bool value) -> void
636
+ | ("remaining_actions" name, (::Integer | ::Float) value) -> void
637
+ end
638
+
639
+ class TriggerImmediatelyRequest < ::Google::Protobuf::AbstractMessage
640
+
641
+ # If set, override overlap policy for this one request.
642
+ attr_reader overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer
643
+ attr_writer overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float
644
+ attr_reader overlap_policy_const(): ::Integer
645
+ def clear_overlap_policy: () -> void
646
+
647
+ # Timestamp used for the identity of the target workflow.
648
+ # If not set the default value is the current time.
649
+ attr_reader scheduled_time(): ::Google::Protobuf::Timestamp?
650
+ attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)?
651
+ def has_scheduled_time?: () -> bool
652
+ def clear_scheduled_time: () -> void
653
+
654
+ type init_map = {
655
+ overlap_policy: (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?,
656
+ "overlap_policy" => (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?,
657
+ scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
658
+ "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
659
+ }
660
+
661
+ def initialize: (?init_map initial_value) -> void
662
+
663
+ def []:
664
+ ("overlap_policy" name) -> (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer)
665
+ | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp?
666
+
667
+ def []=:
668
+ ("overlap_policy" name, (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float) value) -> void
669
+ | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
670
+ end
671
+
672
+ class BackfillRequest < ::Google::Protobuf::AbstractMessage
673
+
674
+ # Time range to evaluate schedule in. Currently, this time range is
675
+ # exclusive on start_time and inclusive on end_time. (This is admittedly
676
+ # counterintuitive and it may change in the future, so to be safe, use a
677
+ # start time strictly before a scheduled time.) Also note that an action
678
+ # nominally scheduled in the interval but with jitter that pushes it after
679
+ # end_time will not be included.
680
+ attr_reader start_time(): ::Google::Protobuf::Timestamp?
681
+ attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
682
+ def has_start_time?: () -> bool
683
+ def clear_start_time: () -> void
684
+
685
+ attr_reader end_time(): ::Google::Protobuf::Timestamp?
686
+ attr_writer end_time(): (::Google::Protobuf::Timestamp | ::Time)?
687
+ def has_end_time?: () -> bool
688
+ def clear_end_time: () -> void
689
+
690
+ # If set, override overlap policy for this request.
691
+ attr_reader overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer
692
+ attr_writer overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float
693
+ attr_reader overlap_policy_const(): ::Integer
694
+ def clear_overlap_policy: () -> void
695
+
696
+ type init_map = {
697
+ start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
698
+ "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
699
+ end_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
700
+ "end_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
701
+ overlap_policy: (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?,
702
+ "overlap_policy" => (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?,
703
+ }
704
+
705
+ def initialize: (?init_map initial_value) -> void
706
+
707
+ def []:
708
+ ("start_time" name) -> ::Google::Protobuf::Timestamp?
709
+ | ("end_time" name) -> ::Google::Protobuf::Timestamp?
710
+ | ("overlap_policy" name) -> (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer)
711
+
712
+ def []=:
713
+ ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
714
+ | ("end_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
715
+ | ("overlap_policy" name, (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float) value) -> void
716
+ end
717
+
718
+ class SchedulePatch < ::Google::Protobuf::AbstractMessage
719
+
720
+ # If set, trigger one action immediately.
721
+ attr_accessor trigger_immediately(): ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest?
722
+ def has_trigger_immediately?: () -> bool
723
+ def clear_trigger_immediately: () -> void
724
+
725
+ # If set, runs though the specified time period(s) and takes actions as if that time
726
+ # passed by right now, all at once. The overlap policy can be overridden for the
727
+ # scope of the backfill.
728
+ attr_accessor backfill_request(): ::Google::Protobuf::RepeatedField
729
+ def clear_backfill_request: () -> void
730
+
731
+ # If set, change the state to paused or unpaused (respectively) and set the
732
+ # notes field to the value of the string.
733
+ attr_reader pause(): ::String
734
+ attr_writer pause(): ::String | ::Symbol
735
+ def clear_pause: () -> void
736
+
737
+ attr_reader unpause(): ::String
738
+ attr_writer unpause(): ::String | ::Symbol
739
+ def clear_unpause: () -> void
740
+
741
+ type init_map = {
742
+ trigger_immediately: (::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest | ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest::init_map)?,
743
+ "trigger_immediately" => (::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest | ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest::init_map)?,
744
+ backfill_request: ::Array[::Temporalio::Api::Schedule::V1::BackfillRequest]?,
745
+ "backfill_request" => ::Array[::Temporalio::Api::Schedule::V1::BackfillRequest]?,
746
+ pause: (::String | ::Symbol)?,
747
+ "pause" => (::String | ::Symbol)?,
748
+ unpause: (::String | ::Symbol)?,
749
+ "unpause" => (::String | ::Symbol)?,
750
+ }
751
+
752
+ def initialize: (?init_map initial_value) -> void
753
+
754
+ def []:
755
+ ("trigger_immediately" name) -> ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest?
756
+ | ("backfill_request" name) -> ::Google::Protobuf::RepeatedField
757
+ | ("pause" name) -> ::String
758
+ | ("unpause" name) -> ::String
759
+
760
+ def []=:
761
+ ("trigger_immediately" name, ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest? value) -> void
762
+ | ("backfill_request" name, ::Google::Protobuf::RepeatedField value) -> void
763
+ | ("pause" name, (::String | ::Symbol) value) -> void
764
+ | ("unpause" name, (::String | ::Symbol) value) -> void
765
+ end
766
+
767
+ class ScheduleInfo < ::Google::Protobuf::AbstractMessage
768
+
769
+ # Number of actions taken so far.
770
+ attr_reader action_count(): ::Integer
771
+ attr_writer action_count(): ::Integer | ::Float
772
+ def clear_action_count: () -> void
773
+
774
+ # Number of times a scheduled action was skipped due to missing the catchup window.
775
+ attr_reader missed_catchup_window(): ::Integer
776
+ attr_writer missed_catchup_window(): ::Integer | ::Float
777
+ def clear_missed_catchup_window: () -> void
778
+
779
+ # Number of skipped actions due to overlap.
780
+ attr_reader overlap_skipped(): ::Integer
781
+ attr_writer overlap_skipped(): ::Integer | ::Float
782
+ def clear_overlap_skipped: () -> void
783
+
784
+ # Number of dropped actions due to buffer limit.
785
+ attr_reader buffer_dropped(): ::Integer
786
+ attr_writer buffer_dropped(): ::Integer | ::Float
787
+ def clear_buffer_dropped: () -> void
788
+
789
+ # Number of actions in the buffer. The buffer holds the actions that cannot
790
+ # be immediately triggered (due to the overlap policy). These actions can be a result of
791
+ # the normal schedule or a backfill.
792
+ attr_reader buffer_size(): ::Integer
793
+ attr_writer buffer_size(): ::Integer | ::Float
794
+ def clear_buffer_size: () -> void
795
+
796
+ # Currently-running workflows started by this schedule. (There might be
797
+ # more than one if the overlap policy allows overlaps.)
798
+ # Note that the run_ids in here are the original execution run ids as
799
+ # started by the schedule. If the workflows retried, did continue-as-new,
800
+ # or were reset, they might still be running but with a different run_id.
801
+ attr_accessor running_workflows(): ::Google::Protobuf::RepeatedField
802
+ def clear_running_workflows: () -> void
803
+
804
+ # Most recent ten actual action times (including manual triggers).
805
+ attr_accessor recent_actions(): ::Google::Protobuf::RepeatedField
806
+ def clear_recent_actions: () -> void
807
+
808
+ # Next ten scheduled action times.
809
+ attr_accessor future_action_times(): ::Google::Protobuf::RepeatedField
810
+ def clear_future_action_times: () -> void
811
+
812
+ # Timestamps of schedule creation and last update.
813
+ attr_reader create_time(): ::Google::Protobuf::Timestamp?
814
+ attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)?
815
+ def has_create_time?: () -> bool
816
+ def clear_create_time: () -> void
817
+
818
+ attr_reader update_time(): ::Google::Protobuf::Timestamp?
819
+ attr_writer update_time(): (::Google::Protobuf::Timestamp | ::Time)?
820
+ def has_update_time?: () -> bool
821
+ def clear_update_time: () -> void
822
+
823
+ # Deprecated.
824
+ # @deprecated
825
+ attr_reader invalid_schedule_error(): ::String
826
+ attr_writer invalid_schedule_error(): ::String | ::Symbol
827
+ def clear_invalid_schedule_error: () -> void
828
+
829
+ # Size of the schedule's internal state (including payloads) in bytes.
830
+ attr_reader state_size_bytes(): ::Integer
831
+ attr_writer state_size_bytes(): ::Integer | ::Float
832
+ def clear_state_size_bytes: () -> void
833
+
834
+ type init_map = {
835
+ action_count: (::Integer | ::Float)?,
836
+ "action_count" => (::Integer | ::Float)?,
837
+ missed_catchup_window: (::Integer | ::Float)?,
838
+ "missed_catchup_window" => (::Integer | ::Float)?,
839
+ overlap_skipped: (::Integer | ::Float)?,
840
+ "overlap_skipped" => (::Integer | ::Float)?,
841
+ buffer_dropped: (::Integer | ::Float)?,
842
+ "buffer_dropped" => (::Integer | ::Float)?,
843
+ buffer_size: (::Integer | ::Float)?,
844
+ "buffer_size" => (::Integer | ::Float)?,
845
+ running_workflows: ::Array[::Temporalio::Api::Common::V1::WorkflowExecution]?,
846
+ "running_workflows" => ::Array[::Temporalio::Api::Common::V1::WorkflowExecution]?,
847
+ recent_actions: ::Array[::Temporalio::Api::Schedule::V1::ScheduleActionResult]?,
848
+ "recent_actions" => ::Array[::Temporalio::Api::Schedule::V1::ScheduleActionResult]?,
849
+ future_action_times: ::Array[::Google::Protobuf::Timestamp | ::Time]?,
850
+ "future_action_times" => ::Array[::Google::Protobuf::Timestamp | ::Time]?,
851
+ create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
852
+ "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
853
+ update_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
854
+ "update_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
855
+ invalid_schedule_error: (::String | ::Symbol)?,
856
+ "invalid_schedule_error" => (::String | ::Symbol)?,
857
+ state_size_bytes: (::Integer | ::Float)?,
858
+ "state_size_bytes" => (::Integer | ::Float)?,
859
+ }
860
+
861
+ def initialize: (?init_map initial_value) -> void
862
+
863
+ def []:
864
+ ("action_count" name) -> ::Integer
865
+ | ("missed_catchup_window" name) -> ::Integer
866
+ | ("overlap_skipped" name) -> ::Integer
867
+ | ("buffer_dropped" name) -> ::Integer
868
+ | ("buffer_size" name) -> ::Integer
869
+ | ("running_workflows" name) -> ::Google::Protobuf::RepeatedField
870
+ | ("recent_actions" name) -> ::Google::Protobuf::RepeatedField
871
+ | ("future_action_times" name) -> (::Google::Protobuf::RepeatedField)
872
+ | ("create_time" name) -> ::Google::Protobuf::Timestamp?
873
+ | ("update_time" name) -> ::Google::Protobuf::Timestamp?
874
+ | ("invalid_schedule_error" name) -> ::String
875
+ | ("state_size_bytes" name) -> ::Integer
876
+
877
+ def []=:
878
+ ("action_count" name, (::Integer | ::Float) value) -> void
879
+ | ("missed_catchup_window" name, (::Integer | ::Float) value) -> void
880
+ | ("overlap_skipped" name, (::Integer | ::Float) value) -> void
881
+ | ("buffer_dropped" name, (::Integer | ::Float) value) -> void
882
+ | ("buffer_size" name, (::Integer | ::Float) value) -> void
883
+ | ("running_workflows" name, ::Google::Protobuf::RepeatedField value) -> void
884
+ | ("recent_actions" name, ::Google::Protobuf::RepeatedField value) -> void
885
+ | ("future_action_times" name, (::Google::Protobuf::RepeatedField) value) -> void
886
+ | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
887
+ | ("update_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
888
+ | ("invalid_schedule_error" name, (::String | ::Symbol) value) -> void
889
+ | ("state_size_bytes" name, (::Integer | ::Float) value) -> void
890
+ end
891
+
892
+ class Schedule < ::Google::Protobuf::AbstractMessage
893
+
894
+ attr_accessor spec(): ::Temporalio::Api::Schedule::V1::ScheduleSpec?
895
+ def has_spec?: () -> bool
896
+ def clear_spec: () -> void
897
+
898
+ attr_accessor action(): ::Temporalio::Api::Schedule::V1::ScheduleAction?
899
+ def has_action?: () -> bool
900
+ def clear_action: () -> void
901
+
902
+ attr_accessor policies(): ::Temporalio::Api::Schedule::V1::SchedulePolicies?
903
+ def has_policies?: () -> bool
904
+ def clear_policies: () -> void
905
+
906
+ attr_accessor state(): ::Temporalio::Api::Schedule::V1::ScheduleState?
907
+ def has_state?: () -> bool
908
+ def clear_state: () -> void
909
+
910
+ type init_map = {
911
+ spec: (::Temporalio::Api::Schedule::V1::ScheduleSpec | ::Temporalio::Api::Schedule::V1::ScheduleSpec::init_map)?,
912
+ "spec" => (::Temporalio::Api::Schedule::V1::ScheduleSpec | ::Temporalio::Api::Schedule::V1::ScheduleSpec::init_map)?,
913
+ action: (::Temporalio::Api::Schedule::V1::ScheduleAction | ::Temporalio::Api::Schedule::V1::ScheduleAction::init_map)?,
914
+ "action" => (::Temporalio::Api::Schedule::V1::ScheduleAction | ::Temporalio::Api::Schedule::V1::ScheduleAction::init_map)?,
915
+ policies: (::Temporalio::Api::Schedule::V1::SchedulePolicies | ::Temporalio::Api::Schedule::V1::SchedulePolicies::init_map)?,
916
+ "policies" => (::Temporalio::Api::Schedule::V1::SchedulePolicies | ::Temporalio::Api::Schedule::V1::SchedulePolicies::init_map)?,
917
+ state: (::Temporalio::Api::Schedule::V1::ScheduleState | ::Temporalio::Api::Schedule::V1::ScheduleState::init_map)?,
918
+ "state" => (::Temporalio::Api::Schedule::V1::ScheduleState | ::Temporalio::Api::Schedule::V1::ScheduleState::init_map)?,
919
+ }
920
+
921
+ def initialize: (?init_map initial_value) -> void
922
+
923
+ def []:
924
+ ("spec" name) -> ::Temporalio::Api::Schedule::V1::ScheduleSpec?
925
+ | ("action" name) -> ::Temporalio::Api::Schedule::V1::ScheduleAction?
926
+ | ("policies" name) -> ::Temporalio::Api::Schedule::V1::SchedulePolicies?
927
+ | ("state" name) -> ::Temporalio::Api::Schedule::V1::ScheduleState?
928
+
929
+ def []=:
930
+ ("spec" name, ::Temporalio::Api::Schedule::V1::ScheduleSpec? value) -> void
931
+ | ("action" name, ::Temporalio::Api::Schedule::V1::ScheduleAction? value) -> void
932
+ | ("policies" name, ::Temporalio::Api::Schedule::V1::SchedulePolicies? value) -> void
933
+ | ("state" name, ::Temporalio::Api::Schedule::V1::ScheduleState? value) -> void
934
+ end
935
+
936
+ # ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo
937
+ # that's returned in ListSchedules.
938
+ class ScheduleListInfo < ::Google::Protobuf::AbstractMessage
939
+
940
+ # From spec:
941
+ # Some fields are dropped from this copy of spec: timezone_data
942
+ attr_accessor spec(): ::Temporalio::Api::Schedule::V1::ScheduleSpec?
943
+ def has_spec?: () -> bool
944
+ def clear_spec: () -> void
945
+
946
+ # From action:
947
+ # Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
948
+ # well with JSON. If action is start_workflow, this is set:
949
+ attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType?
950
+ def has_workflow_type?: () -> bool
951
+ def clear_workflow_type: () -> void
952
+
953
+ # From state:
954
+ attr_reader notes(): ::String
955
+ attr_writer notes(): ::String | ::Symbol
956
+ def clear_notes: () -> void
957
+
958
+ attr_accessor paused(): bool
959
+ def clear_paused: () -> void
960
+
961
+ # From info (maybe fewer entries):
962
+ attr_accessor recent_actions(): ::Google::Protobuf::RepeatedField
963
+ def clear_recent_actions: () -> void
964
+
965
+ attr_accessor future_action_times(): ::Google::Protobuf::RepeatedField
966
+ def clear_future_action_times: () -> void
967
+
968
+ # Size of the schedule's internal state (including payloads) in bytes.
969
+ attr_reader state_size_bytes(): ::Integer
970
+ attr_writer state_size_bytes(): ::Integer | ::Float
971
+ def clear_state_size_bytes: () -> void
972
+
973
+ type init_map = {
974
+ spec: (::Temporalio::Api::Schedule::V1::ScheduleSpec | ::Temporalio::Api::Schedule::V1::ScheduleSpec::init_map)?,
975
+ "spec" => (::Temporalio::Api::Schedule::V1::ScheduleSpec | ::Temporalio::Api::Schedule::V1::ScheduleSpec::init_map)?,
976
+ workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?,
977
+ "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?,
978
+ notes: (::String | ::Symbol)?,
979
+ "notes" => (::String | ::Symbol)?,
980
+ paused: bool?,
981
+ "paused" => bool?,
982
+ recent_actions: ::Array[::Temporalio::Api::Schedule::V1::ScheduleActionResult]?,
983
+ "recent_actions" => ::Array[::Temporalio::Api::Schedule::V1::ScheduleActionResult]?,
984
+ future_action_times: ::Array[::Google::Protobuf::Timestamp | ::Time]?,
985
+ "future_action_times" => ::Array[::Google::Protobuf::Timestamp | ::Time]?,
986
+ state_size_bytes: (::Integer | ::Float)?,
987
+ "state_size_bytes" => (::Integer | ::Float)?,
988
+ }
989
+
990
+ def initialize: (?init_map initial_value) -> void
991
+
992
+ def []:
993
+ ("spec" name) -> ::Temporalio::Api::Schedule::V1::ScheduleSpec?
994
+ | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType?
995
+ | ("notes" name) -> ::String
996
+ | ("paused" name) -> bool
997
+ | ("recent_actions" name) -> ::Google::Protobuf::RepeatedField
998
+ | ("future_action_times" name) -> (::Google::Protobuf::RepeatedField)
999
+ | ("state_size_bytes" name) -> ::Integer
1000
+
1001
+ def []=:
1002
+ ("spec" name, ::Temporalio::Api::Schedule::V1::ScheduleSpec? value) -> void
1003
+ | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void
1004
+ | ("notes" name, (::String | ::Symbol) value) -> void
1005
+ | ("paused" name, bool value) -> void
1006
+ | ("recent_actions" name, ::Google::Protobuf::RepeatedField value) -> void
1007
+ | ("future_action_times" name, (::Google::Protobuf::RepeatedField) value) -> void
1008
+ | ("state_size_bytes" name, (::Integer | ::Float) value) -> void
1009
+ end
1010
+
1011
+ # ScheduleListEntry is returned by ListSchedules.
1012
+ class ScheduleListEntry < ::Google::Protobuf::AbstractMessage
1013
+
1014
+ attr_reader schedule_id(): ::String
1015
+ attr_writer schedule_id(): ::String | ::Symbol
1016
+ def clear_schedule_id: () -> void
1017
+
1018
+ attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo?
1019
+ def has_memo?: () -> bool
1020
+ def clear_memo: () -> void
1021
+
1022
+ attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes?
1023
+ def has_search_attributes?: () -> bool
1024
+ def clear_search_attributes: () -> void
1025
+
1026
+ attr_accessor info(): ::Temporalio::Api::Schedule::V1::ScheduleListInfo?
1027
+ def has_info?: () -> bool
1028
+ def clear_info: () -> void
1029
+
1030
+ type init_map = {
1031
+ schedule_id: (::String | ::Symbol)?,
1032
+ "schedule_id" => (::String | ::Symbol)?,
1033
+ memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?,
1034
+ "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?,
1035
+ search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
1036
+ "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
1037
+ info: (::Temporalio::Api::Schedule::V1::ScheduleListInfo | ::Temporalio::Api::Schedule::V1::ScheduleListInfo::init_map)?,
1038
+ "info" => (::Temporalio::Api::Schedule::V1::ScheduleListInfo | ::Temporalio::Api::Schedule::V1::ScheduleListInfo::init_map)?,
1039
+ }
1040
+
1041
+ def initialize: (?init_map initial_value) -> void
1042
+
1043
+ def []:
1044
+ ("schedule_id" name) -> ::String
1045
+ | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo?
1046
+ | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes?
1047
+ | ("info" name) -> ::Temporalio::Api::Schedule::V1::ScheduleListInfo?
1048
+
1049
+ def []=:
1050
+ ("schedule_id" name, (::String | ::Symbol) value) -> void
1051
+ | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void
1052
+ | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void
1053
+ | ("info" name, ::Temporalio::Api::Schedule::V1::ScheduleListInfo? value) -> void
1054
+ end
1055
+ end
1056
+ end
1057
+ end
1058
+ end
1059
+
1060
+ module Google
1061
+ module Protobuf
1062
+ class DescriptorPool
1063
+ def lookup: (::String name) -> ::Google::Protobuf::Descriptor
1064
+ end
1065
+ end
1066
+ end