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,2377 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: temporal/api/schedule/v1/message.proto
3
+ # typed: strict
4
+
5
+ # CalendarSpec describes an event specification relative to the calendar,
6
+ # similar to a traditional cron specification, but with labeled fields. Each
7
+ # field can be one of:
8
+ # *: matches always
9
+ # x: matches when the field equals x
10
+ # x/y : matches when the field equals x+n*y where n is an integer
11
+ # x-z: matches when the field is between x and z inclusive
12
+ # w,x,y,...: matches when the field is one of the listed values
13
+ # Each x, y, z, ... is either a decimal integer, or a month or day of week name
14
+ # or abbreviation (in the appropriate fields).
15
+ # A timestamp matches if all fields match.
16
+ # Note that fields have different default values, for convenience.
17
+ # Note that the special case that some cron implementations have for treating
18
+ # day_of_month and day_of_week as "or" instead of "and" when both are set is
19
+ # not implemented.
20
+ # day_of_week can accept 0 or 7 as Sunday
21
+ # CalendarSpec gets compiled into StructuredCalendarSpec, which is what will be
22
+ # returned if you describe the schedule.
23
+ class Temporalio::Api::Schedule::V1::CalendarSpec
24
+ include ::Google::Protobuf::MessageExts
25
+ extend ::Google::Protobuf::MessageExts::ClassMethods
26
+
27
+ sig do
28
+ params(
29
+ second: T.nilable(String),
30
+ minute: T.nilable(String),
31
+ hour: T.nilable(String),
32
+ day_of_month: T.nilable(String),
33
+ month: T.nilable(String),
34
+ year: T.nilable(String),
35
+ day_of_week: T.nilable(String),
36
+ comment: T.nilable(String)
37
+ ).void
38
+ end
39
+ def initialize(
40
+ second: "",
41
+ minute: "",
42
+ hour: "",
43
+ day_of_month: "",
44
+ month: "",
45
+ year: "",
46
+ day_of_week: "",
47
+ comment: ""
48
+ )
49
+ end
50
+
51
+ # Expression to match seconds. Default: 0
52
+ sig { returns(String) }
53
+ def second
54
+ end
55
+
56
+ # Expression to match seconds. Default: 0
57
+ sig { params(value: String).void }
58
+ def second=(value)
59
+ end
60
+
61
+ # Expression to match seconds. Default: 0
62
+ sig { void }
63
+ def clear_second
64
+ end
65
+
66
+ # Expression to match minutes. Default: 0
67
+ sig { returns(String) }
68
+ def minute
69
+ end
70
+
71
+ # Expression to match minutes. Default: 0
72
+ sig { params(value: String).void }
73
+ def minute=(value)
74
+ end
75
+
76
+ # Expression to match minutes. Default: 0
77
+ sig { void }
78
+ def clear_minute
79
+ end
80
+
81
+ # Expression to match hours. Default: 0
82
+ sig { returns(String) }
83
+ def hour
84
+ end
85
+
86
+ # Expression to match hours. Default: 0
87
+ sig { params(value: String).void }
88
+ def hour=(value)
89
+ end
90
+
91
+ # Expression to match hours. Default: 0
92
+ sig { void }
93
+ def clear_hour
94
+ end
95
+
96
+ # Expression to match days of the month. Default: *
97
+ # (-- api-linter: core::0140::prepositions=disabled
98
+ # aip.dev/not-precedent: standard name of field --)
99
+ sig { returns(String) }
100
+ def day_of_month
101
+ end
102
+
103
+ # Expression to match days of the month. Default: *
104
+ # (-- api-linter: core::0140::prepositions=disabled
105
+ # aip.dev/not-precedent: standard name of field --)
106
+ sig { params(value: String).void }
107
+ def day_of_month=(value)
108
+ end
109
+
110
+ # Expression to match days of the month. Default: *
111
+ # (-- api-linter: core::0140::prepositions=disabled
112
+ # aip.dev/not-precedent: standard name of field --)
113
+ sig { void }
114
+ def clear_day_of_month
115
+ end
116
+
117
+ # Expression to match months. Default: *
118
+ sig { returns(String) }
119
+ def month
120
+ end
121
+
122
+ # Expression to match months. Default: *
123
+ sig { params(value: String).void }
124
+ def month=(value)
125
+ end
126
+
127
+ # Expression to match months. Default: *
128
+ sig { void }
129
+ def clear_month
130
+ end
131
+
132
+ # Expression to match years. Default: *
133
+ sig { returns(String) }
134
+ def year
135
+ end
136
+
137
+ # Expression to match years. Default: *
138
+ sig { params(value: String).void }
139
+ def year=(value)
140
+ end
141
+
142
+ # Expression to match years. Default: *
143
+ sig { void }
144
+ def clear_year
145
+ end
146
+
147
+ # Expression to match days of the week. Default: *
148
+ sig { returns(String) }
149
+ def day_of_week
150
+ end
151
+
152
+ # Expression to match days of the week. Default: *
153
+ sig { params(value: String).void }
154
+ def day_of_week=(value)
155
+ end
156
+
157
+ # Expression to match days of the week. Default: *
158
+ sig { void }
159
+ def clear_day_of_week
160
+ end
161
+
162
+ # Free-form comment describing the intention of this spec.
163
+ sig { returns(String) }
164
+ def comment
165
+ end
166
+
167
+ # Free-form comment describing the intention of this spec.
168
+ sig { params(value: String).void }
169
+ def comment=(value)
170
+ end
171
+
172
+ # Free-form comment describing the intention of this spec.
173
+ sig { void }
174
+ def clear_comment
175
+ end
176
+
177
+ sig { params(field: String).returns(T.untyped) }
178
+ def [](field)
179
+ end
180
+
181
+ sig { params(field: String, value: T.untyped).void }
182
+ def []=(field, value)
183
+ end
184
+
185
+ sig { returns(T::Hash[Symbol, T.untyped]) }
186
+ def to_h
187
+ end
188
+
189
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::CalendarSpec) }
190
+ def self.decode(str)
191
+ end
192
+
193
+ sig { params(msg: Temporalio::Api::Schedule::V1::CalendarSpec).returns(String) }
194
+ def self.encode(msg)
195
+ end
196
+
197
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::CalendarSpec) }
198
+ def self.decode_json(str, **kw)
199
+ end
200
+
201
+ sig { params(msg: Temporalio::Api::Schedule::V1::CalendarSpec, kw: T.untyped).returns(String) }
202
+ def self.encode_json(msg, **kw)
203
+ end
204
+
205
+ sig { returns(::Google::Protobuf::Descriptor) }
206
+ def self.descriptor
207
+ end
208
+ end
209
+
210
+ # Range represents a set of integer values, used to match fields of a calendar
211
+ # time in StructuredCalendarSpec. If end < start, then end is interpreted as
212
+ # equal to start. This means you can use a Range with start set to a value, and
213
+ # end and step unset (defaulting to 0) to represent a single value.
214
+ class Temporalio::Api::Schedule::V1::Range
215
+ include ::Google::Protobuf::MessageExts
216
+ extend ::Google::Protobuf::MessageExts::ClassMethods
217
+
218
+ sig do
219
+ params(
220
+ start: T.nilable(Integer),
221
+ end: T.nilable(Integer),
222
+ step: T.nilable(Integer)
223
+ ).void
224
+ end
225
+ def initialize(
226
+ start: 0,
227
+ end: 0,
228
+ step: 0
229
+ )
230
+ end
231
+
232
+ # Start of range (inclusive).
233
+ sig { returns(Integer) }
234
+ def start
235
+ end
236
+
237
+ # Start of range (inclusive).
238
+ sig { params(value: Integer).void }
239
+ def start=(value)
240
+ end
241
+
242
+ # Start of range (inclusive).
243
+ sig { void }
244
+ def clear_start
245
+ end
246
+
247
+ # End of range (inclusive).
248
+ sig { returns(Integer) }
249
+ def end
250
+ end
251
+
252
+ # End of range (inclusive).
253
+ sig { params(value: Integer).void }
254
+ def end=(value)
255
+ end
256
+
257
+ # End of range (inclusive).
258
+ sig { void }
259
+ def clear_end
260
+ end
261
+
262
+ # Step (optional, default 1).
263
+ sig { returns(Integer) }
264
+ def step
265
+ end
266
+
267
+ # Step (optional, default 1).
268
+ sig { params(value: Integer).void }
269
+ def step=(value)
270
+ end
271
+
272
+ # Step (optional, default 1).
273
+ sig { void }
274
+ def clear_step
275
+ end
276
+
277
+ sig { params(field: String).returns(T.untyped) }
278
+ def [](field)
279
+ end
280
+
281
+ sig { params(field: String, value: T.untyped).void }
282
+ def []=(field, value)
283
+ end
284
+
285
+ sig { returns(T::Hash[Symbol, T.untyped]) }
286
+ def to_h
287
+ end
288
+
289
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::Range) }
290
+ def self.decode(str)
291
+ end
292
+
293
+ sig { params(msg: Temporalio::Api::Schedule::V1::Range).returns(String) }
294
+ def self.encode(msg)
295
+ end
296
+
297
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::Range) }
298
+ def self.decode_json(str, **kw)
299
+ end
300
+
301
+ sig { params(msg: Temporalio::Api::Schedule::V1::Range, kw: T.untyped).returns(String) }
302
+ def self.encode_json(msg, **kw)
303
+ end
304
+
305
+ sig { returns(::Google::Protobuf::Descriptor) }
306
+ def self.descriptor
307
+ end
308
+ end
309
+
310
+ # StructuredCalendarSpec describes an event specification relative to the
311
+ # calendar, in a form that's easy to work with programmatically. Each field can
312
+ # be one or more ranges.
313
+ # A timestamp matches if at least one range of each field matches the
314
+ # corresponding fields of the timestamp, except for year: if year is missing,
315
+ # that means all years match. For all fields besides year, at least one Range
316
+ # must be present to match anything.
317
+ # Relative expressions such as "last day of the month" or "third Monday" are not currently
318
+ # representable; callers must enumerate the concrete days they require.
319
+ class Temporalio::Api::Schedule::V1::StructuredCalendarSpec
320
+ include ::Google::Protobuf::MessageExts
321
+ extend ::Google::Protobuf::MessageExts::ClassMethods
322
+
323
+ sig do
324
+ params(
325
+ second: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]),
326
+ minute: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]),
327
+ hour: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]),
328
+ day_of_month: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]),
329
+ month: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]),
330
+ year: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]),
331
+ day_of_week: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]),
332
+ comment: T.nilable(String)
333
+ ).void
334
+ end
335
+ def initialize(
336
+ second: [],
337
+ minute: [],
338
+ hour: [],
339
+ day_of_month: [],
340
+ month: [],
341
+ year: [],
342
+ day_of_week: [],
343
+ comment: ""
344
+ )
345
+ end
346
+
347
+ # Match seconds (0-59)
348
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]) }
349
+ def second
350
+ end
351
+
352
+ # Match seconds (0-59)
353
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
354
+ def second=(value)
355
+ end
356
+
357
+ # Match seconds (0-59)
358
+ sig { void }
359
+ def clear_second
360
+ end
361
+
362
+ # Match minutes (0-59)
363
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]) }
364
+ def minute
365
+ end
366
+
367
+ # Match minutes (0-59)
368
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
369
+ def minute=(value)
370
+ end
371
+
372
+ # Match minutes (0-59)
373
+ sig { void }
374
+ def clear_minute
375
+ end
376
+
377
+ # Match hours (0-23)
378
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]) }
379
+ def hour
380
+ end
381
+
382
+ # Match hours (0-23)
383
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
384
+ def hour=(value)
385
+ end
386
+
387
+ # Match hours (0-23)
388
+ sig { void }
389
+ def clear_hour
390
+ end
391
+
392
+ # Match days of the month (1-31)
393
+ # (-- api-linter: core::0140::prepositions=disabled
394
+ # aip.dev/not-precedent: standard name of field --)
395
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]) }
396
+ def day_of_month
397
+ end
398
+
399
+ # Match days of the month (1-31)
400
+ # (-- api-linter: core::0140::prepositions=disabled
401
+ # aip.dev/not-precedent: standard name of field --)
402
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
403
+ def day_of_month=(value)
404
+ end
405
+
406
+ # Match days of the month (1-31)
407
+ # (-- api-linter: core::0140::prepositions=disabled
408
+ # aip.dev/not-precedent: standard name of field --)
409
+ sig { void }
410
+ def clear_day_of_month
411
+ end
412
+
413
+ # Match months (1-12)
414
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]) }
415
+ def month
416
+ end
417
+
418
+ # Match months (1-12)
419
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
420
+ def month=(value)
421
+ end
422
+
423
+ # Match months (1-12)
424
+ sig { void }
425
+ def clear_month
426
+ end
427
+
428
+ # Match years.
429
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]) }
430
+ def year
431
+ end
432
+
433
+ # Match years.
434
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
435
+ def year=(value)
436
+ end
437
+
438
+ # Match years.
439
+ sig { void }
440
+ def clear_year
441
+ end
442
+
443
+ # Match days of the week (0-6; 0 is Sunday).
444
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::Range)]) }
445
+ def day_of_week
446
+ end
447
+
448
+ # Match days of the week (0-6; 0 is Sunday).
449
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
450
+ def day_of_week=(value)
451
+ end
452
+
453
+ # Match days of the week (0-6; 0 is Sunday).
454
+ sig { void }
455
+ def clear_day_of_week
456
+ end
457
+
458
+ # Free-form comment describing the intention of this spec.
459
+ sig { returns(String) }
460
+ def comment
461
+ end
462
+
463
+ # Free-form comment describing the intention of this spec.
464
+ sig { params(value: String).void }
465
+ def comment=(value)
466
+ end
467
+
468
+ # Free-form comment describing the intention of this spec.
469
+ sig { void }
470
+ def clear_comment
471
+ end
472
+
473
+ sig { params(field: String).returns(T.untyped) }
474
+ def [](field)
475
+ end
476
+
477
+ sig { params(field: String, value: T.untyped).void }
478
+ def []=(field, value)
479
+ end
480
+
481
+ sig { returns(T::Hash[Symbol, T.untyped]) }
482
+ def to_h
483
+ end
484
+
485
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::StructuredCalendarSpec) }
486
+ def self.decode(str)
487
+ end
488
+
489
+ sig { params(msg: Temporalio::Api::Schedule::V1::StructuredCalendarSpec).returns(String) }
490
+ def self.encode(msg)
491
+ end
492
+
493
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::StructuredCalendarSpec) }
494
+ def self.decode_json(str, **kw)
495
+ end
496
+
497
+ sig { params(msg: Temporalio::Api::Schedule::V1::StructuredCalendarSpec, kw: T.untyped).returns(String) }
498
+ def self.encode_json(msg, **kw)
499
+ end
500
+
501
+ sig { returns(::Google::Protobuf::Descriptor) }
502
+ def self.descriptor
503
+ end
504
+ end
505
+
506
+ # IntervalSpec matches times that can be expressed as:
507
+ # epoch + n * interval + phase
508
+ # where n is an integer.
509
+ # phase defaults to zero if missing. interval is required.
510
+ # Both interval and phase must be non-negative and are truncated to the nearest
511
+ # second before any calculations.
512
+ # For example, an interval of 1 hour with phase of zero would match every hour,
513
+ # on the hour. The same interval but a phase of 19 minutes would match every
514
+ # xx:19:00. An interval of 28 days with phase zero would match
515
+ # 2022-02-17T00:00:00Z (among other times). The same interval with a phase of 3
516
+ # days, 5 hours, and 23 minutes would match 2022-02-20T05:23:00Z instead.
517
+ class Temporalio::Api::Schedule::V1::IntervalSpec
518
+ include ::Google::Protobuf::MessageExts
519
+ extend ::Google::Protobuf::MessageExts::ClassMethods
520
+
521
+ sig do
522
+ params(
523
+ interval: T.nilable(Google::Protobuf::Duration),
524
+ phase: T.nilable(Google::Protobuf::Duration)
525
+ ).void
526
+ end
527
+ def initialize(
528
+ interval: nil,
529
+ phase: nil
530
+ )
531
+ end
532
+
533
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
534
+ def interval
535
+ end
536
+
537
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
538
+ def interval=(value)
539
+ end
540
+
541
+ sig { void }
542
+ def clear_interval
543
+ end
544
+
545
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
546
+ def phase
547
+ end
548
+
549
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
550
+ def phase=(value)
551
+ end
552
+
553
+ sig { void }
554
+ def clear_phase
555
+ end
556
+
557
+ sig { params(field: String).returns(T.untyped) }
558
+ def [](field)
559
+ end
560
+
561
+ sig { params(field: String, value: T.untyped).void }
562
+ def []=(field, value)
563
+ end
564
+
565
+ sig { returns(T::Hash[Symbol, T.untyped]) }
566
+ def to_h
567
+ end
568
+
569
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::IntervalSpec) }
570
+ def self.decode(str)
571
+ end
572
+
573
+ sig { params(msg: Temporalio::Api::Schedule::V1::IntervalSpec).returns(String) }
574
+ def self.encode(msg)
575
+ end
576
+
577
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::IntervalSpec) }
578
+ def self.decode_json(str, **kw)
579
+ end
580
+
581
+ sig { params(msg: Temporalio::Api::Schedule::V1::IntervalSpec, kw: T.untyped).returns(String) }
582
+ def self.encode_json(msg, **kw)
583
+ end
584
+
585
+ sig { returns(::Google::Protobuf::Descriptor) }
586
+ def self.descriptor
587
+ end
588
+ end
589
+
590
+ # ScheduleSpec is a complete description of a set of absolute timestamps
591
+ # (possibly infinite) that an action should occur at. The meaning of a
592
+ # ScheduleSpec depends only on its contents and never changes, except that the
593
+ # definition of a time zone can change over time (most commonly, when daylight
594
+ # saving time policy changes for an area). To create a totally self-contained
595
+ # ScheduleSpec, use UTC or include timezone_data.
596
+ #
597
+ # For input, you can provide zero or more of: structured_calendar, calendar,
598
+ # cron_string, interval, and exclude_structured_calendar, and all of them will
599
+ # be used (the schedule will take action at the union of all of their times,
600
+ # minus the ones that match exclude_structured_calendar).
601
+ #
602
+ # On input, calendar and cron_string fields will be compiled into
603
+ # structured_calendar (and maybe interval and timezone_name), so if you
604
+ # Describe a schedule, you'll see only structured_calendar, interval, etc.
605
+ #
606
+ # If a spec has no matching times after the current time, then the schedule
607
+ # will be subject to automatic deletion (after several days).
608
+ class Temporalio::Api::Schedule::V1::ScheduleSpec
609
+ include ::Google::Protobuf::MessageExts
610
+ extend ::Google::Protobuf::MessageExts::ClassMethods
611
+
612
+ sig do
613
+ params(
614
+ structured_calendar: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::StructuredCalendarSpec)]),
615
+ cron_string: T.nilable(T::Array[String]),
616
+ calendar: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::CalendarSpec)]),
617
+ interval: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::IntervalSpec)]),
618
+ exclude_calendar: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::CalendarSpec)]),
619
+ exclude_structured_calendar: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::StructuredCalendarSpec)]),
620
+ start_time: T.nilable(Google::Protobuf::Timestamp),
621
+ end_time: T.nilable(Google::Protobuf::Timestamp),
622
+ jitter: T.nilable(Google::Protobuf::Duration),
623
+ timezone_name: T.nilable(String),
624
+ timezone_data: T.nilable(String)
625
+ ).void
626
+ end
627
+ def initialize(
628
+ structured_calendar: [],
629
+ cron_string: [],
630
+ calendar: [],
631
+ interval: [],
632
+ exclude_calendar: [],
633
+ exclude_structured_calendar: [],
634
+ start_time: nil,
635
+ end_time: nil,
636
+ jitter: nil,
637
+ timezone_name: "",
638
+ timezone_data: ""
639
+ )
640
+ end
641
+
642
+ # Calendar-based specifications of times.
643
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::StructuredCalendarSpec)]) }
644
+ def structured_calendar
645
+ end
646
+
647
+ # Calendar-based specifications of times.
648
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
649
+ def structured_calendar=(value)
650
+ end
651
+
652
+ # Calendar-based specifications of times.
653
+ sig { void }
654
+ def clear_structured_calendar
655
+ end
656
+
657
+ # cron_string holds a traditional cron specification as a string. It
658
+ # accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
659
+ # same way as CalendarSpec.
660
+ # 5 fields: minute, hour, day_of_month, month, day_of_week
661
+ # 6 fields: minute, hour, day_of_month, month, day_of_week, year
662
+ # 7 fields: second, minute, hour, day_of_month, month, day_of_week, year
663
+ # If year is not given, it defaults to *. If second is not given, it
664
+ # defaults to 0.
665
+ # Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
666
+ # accepted instead of the 5-7 time fields.
667
+ # Optionally, the string can be preceded by CRON_TZ=<timezone name> or
668
+ # TZ=<timezone name>, which will get copied to timezone_name. (There must
669
+ # not also be a timezone_name present.)
670
+ # Optionally "#" followed by a comment can appear at the end of the string.
671
+ # Note that the special case that some cron implementations have for
672
+ # treating day_of_month and day_of_week as "or" instead of "and" when both
673
+ # are set is not implemented.
674
+ # @every <interval>[/<phase>] is accepted and gets compiled into an
675
+ # IntervalSpec instead. <interval> and <phase> should be a decimal integer
676
+ # with a unit suffix s, m, h, or d.
677
+ sig { returns(T::Array[String]) }
678
+ def cron_string
679
+ end
680
+
681
+ # cron_string holds a traditional cron specification as a string. It
682
+ # accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
683
+ # same way as CalendarSpec.
684
+ # 5 fields: minute, hour, day_of_month, month, day_of_week
685
+ # 6 fields: minute, hour, day_of_month, month, day_of_week, year
686
+ # 7 fields: second, minute, hour, day_of_month, month, day_of_week, year
687
+ # If year is not given, it defaults to *. If second is not given, it
688
+ # defaults to 0.
689
+ # Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
690
+ # accepted instead of the 5-7 time fields.
691
+ # Optionally, the string can be preceded by CRON_TZ=<timezone name> or
692
+ # TZ=<timezone name>, which will get copied to timezone_name. (There must
693
+ # not also be a timezone_name present.)
694
+ # Optionally "#" followed by a comment can appear at the end of the string.
695
+ # Note that the special case that some cron implementations have for
696
+ # treating day_of_month and day_of_week as "or" instead of "and" when both
697
+ # are set is not implemented.
698
+ # @every <interval>[/<phase>] is accepted and gets compiled into an
699
+ # IntervalSpec instead. <interval> and <phase> should be a decimal integer
700
+ # with a unit suffix s, m, h, or d.
701
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
702
+ def cron_string=(value)
703
+ end
704
+
705
+ # cron_string holds a traditional cron specification as a string. It
706
+ # accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
707
+ # same way as CalendarSpec.
708
+ # 5 fields: minute, hour, day_of_month, month, day_of_week
709
+ # 6 fields: minute, hour, day_of_month, month, day_of_week, year
710
+ # 7 fields: second, minute, hour, day_of_month, month, day_of_week, year
711
+ # If year is not given, it defaults to *. If second is not given, it
712
+ # defaults to 0.
713
+ # Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
714
+ # accepted instead of the 5-7 time fields.
715
+ # Optionally, the string can be preceded by CRON_TZ=<timezone name> or
716
+ # TZ=<timezone name>, which will get copied to timezone_name. (There must
717
+ # not also be a timezone_name present.)
718
+ # Optionally "#" followed by a comment can appear at the end of the string.
719
+ # Note that the special case that some cron implementations have for
720
+ # treating day_of_month and day_of_week as "or" instead of "and" when both
721
+ # are set is not implemented.
722
+ # @every <interval>[/<phase>] is accepted and gets compiled into an
723
+ # IntervalSpec instead. <interval> and <phase> should be a decimal integer
724
+ # with a unit suffix s, m, h, or d.
725
+ sig { void }
726
+ def clear_cron_string
727
+ end
728
+
729
+ # Calendar-based specifications of times.
730
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::CalendarSpec)]) }
731
+ def calendar
732
+ end
733
+
734
+ # Calendar-based specifications of times.
735
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
736
+ def calendar=(value)
737
+ end
738
+
739
+ # Calendar-based specifications of times.
740
+ sig { void }
741
+ def clear_calendar
742
+ end
743
+
744
+ # Interval-based specifications of times.
745
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::IntervalSpec)]) }
746
+ def interval
747
+ end
748
+
749
+ # Interval-based specifications of times.
750
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
751
+ def interval=(value)
752
+ end
753
+
754
+ # Interval-based specifications of times.
755
+ sig { void }
756
+ def clear_interval
757
+ end
758
+
759
+ # Any timestamps matching any of exclude_* will be skipped.
760
+ # Deprecated. Use exclude_structured_calendar.
761
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::CalendarSpec)]) }
762
+ def exclude_calendar
763
+ end
764
+
765
+ # Any timestamps matching any of exclude_* will be skipped.
766
+ # Deprecated. Use exclude_structured_calendar.
767
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
768
+ def exclude_calendar=(value)
769
+ end
770
+
771
+ # Any timestamps matching any of exclude_* will be skipped.
772
+ # Deprecated. Use exclude_structured_calendar.
773
+ sig { void }
774
+ def clear_exclude_calendar
775
+ end
776
+
777
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::StructuredCalendarSpec)]) }
778
+ def exclude_structured_calendar
779
+ end
780
+
781
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
782
+ def exclude_structured_calendar=(value)
783
+ end
784
+
785
+ sig { void }
786
+ def clear_exclude_structured_calendar
787
+ end
788
+
789
+ # If start_time is set, any timestamps before start_time will be skipped.
790
+ # (Together, start_time and end_time make an inclusive interval.)
791
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
792
+ def start_time
793
+ end
794
+
795
+ # If start_time is set, any timestamps before start_time will be skipped.
796
+ # (Together, start_time and end_time make an inclusive interval.)
797
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
798
+ def start_time=(value)
799
+ end
800
+
801
+ # If start_time is set, any timestamps before start_time will be skipped.
802
+ # (Together, start_time and end_time make an inclusive interval.)
803
+ sig { void }
804
+ def clear_start_time
805
+ end
806
+
807
+ # If end_time is set, any timestamps after end_time will be skipped.
808
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
809
+ def end_time
810
+ end
811
+
812
+ # If end_time is set, any timestamps after end_time will be skipped.
813
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
814
+ def end_time=(value)
815
+ end
816
+
817
+ # If end_time is set, any timestamps after end_time will be skipped.
818
+ sig { void }
819
+ def clear_end_time
820
+ end
821
+
822
+ # All timestamps will be incremented by a random value from 0 to this
823
+ # amount of jitter. Default: 0
824
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
825
+ def jitter
826
+ end
827
+
828
+ # All timestamps will be incremented by a random value from 0 to this
829
+ # amount of jitter. Default: 0
830
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
831
+ def jitter=(value)
832
+ end
833
+
834
+ # All timestamps will be incremented by a random value from 0 to this
835
+ # amount of jitter. Default: 0
836
+ sig { void }
837
+ def clear_jitter
838
+ end
839
+
840
+ # Time zone to interpret all calendar-based specs in.
841
+ #
842
+ # If unset, defaults to UTC. We recommend using UTC for your application if
843
+ # at all possible, to avoid various surprising properties of time zones.
844
+ #
845
+ # Time zones may be provided by name, corresponding to names in the IANA
846
+ # time zone database (see https://www.iana.org/time-zones). The definition
847
+ # will be loaded by the Temporal server from the environment it runs in.
848
+ #
849
+ # If your application requires more control over the time zone definition
850
+ # used, it may pass in a complete definition in the form of a TZif file
851
+ # from the time zone database. If present, this will be used instead of
852
+ # loading anything from the environment. You are then responsible for
853
+ # updating timezone_data when the definition changes.
854
+ #
855
+ # Calendar spec matching is based on literal matching of the clock time
856
+ # with no special handling of DST: if you write a calendar spec that fires
857
+ # at 2:30am and specify a time zone that follows DST, that action will not
858
+ # be triggered on the day that has no 2:30am. Similarly, an action that
859
+ # fires at 1:30am will be triggered twice on the day that has two 1:30s.
860
+ #
861
+ # Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
862
+ sig { returns(String) }
863
+ def timezone_name
864
+ end
865
+
866
+ # Time zone to interpret all calendar-based specs in.
867
+ #
868
+ # If unset, defaults to UTC. We recommend using UTC for your application if
869
+ # at all possible, to avoid various surprising properties of time zones.
870
+ #
871
+ # Time zones may be provided by name, corresponding to names in the IANA
872
+ # time zone database (see https://www.iana.org/time-zones). The definition
873
+ # will be loaded by the Temporal server from the environment it runs in.
874
+ #
875
+ # If your application requires more control over the time zone definition
876
+ # used, it may pass in a complete definition in the form of a TZif file
877
+ # from the time zone database. If present, this will be used instead of
878
+ # loading anything from the environment. You are then responsible for
879
+ # updating timezone_data when the definition changes.
880
+ #
881
+ # Calendar spec matching is based on literal matching of the clock time
882
+ # with no special handling of DST: if you write a calendar spec that fires
883
+ # at 2:30am and specify a time zone that follows DST, that action will not
884
+ # be triggered on the day that has no 2:30am. Similarly, an action that
885
+ # fires at 1:30am will be triggered twice on the day that has two 1:30s.
886
+ #
887
+ # Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
888
+ sig { params(value: String).void }
889
+ def timezone_name=(value)
890
+ end
891
+
892
+ # Time zone to interpret all calendar-based specs in.
893
+ #
894
+ # If unset, defaults to UTC. We recommend using UTC for your application if
895
+ # at all possible, to avoid various surprising properties of time zones.
896
+ #
897
+ # Time zones may be provided by name, corresponding to names in the IANA
898
+ # time zone database (see https://www.iana.org/time-zones). The definition
899
+ # will be loaded by the Temporal server from the environment it runs in.
900
+ #
901
+ # If your application requires more control over the time zone definition
902
+ # used, it may pass in a complete definition in the form of a TZif file
903
+ # from the time zone database. If present, this will be used instead of
904
+ # loading anything from the environment. You are then responsible for
905
+ # updating timezone_data when the definition changes.
906
+ #
907
+ # Calendar spec matching is based on literal matching of the clock time
908
+ # with no special handling of DST: if you write a calendar spec that fires
909
+ # at 2:30am and specify a time zone that follows DST, that action will not
910
+ # be triggered on the day that has no 2:30am. Similarly, an action that
911
+ # fires at 1:30am will be triggered twice on the day that has two 1:30s.
912
+ #
913
+ # Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
914
+ sig { void }
915
+ def clear_timezone_name
916
+ end
917
+
918
+ sig { returns(String) }
919
+ def timezone_data
920
+ end
921
+
922
+ sig { params(value: String).void }
923
+ def timezone_data=(value)
924
+ end
925
+
926
+ sig { void }
927
+ def clear_timezone_data
928
+ end
929
+
930
+ sig { params(field: String).returns(T.untyped) }
931
+ def [](field)
932
+ end
933
+
934
+ sig { params(field: String, value: T.untyped).void }
935
+ def []=(field, value)
936
+ end
937
+
938
+ sig { returns(T::Hash[Symbol, T.untyped]) }
939
+ def to_h
940
+ end
941
+
942
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::ScheduleSpec) }
943
+ def self.decode(str)
944
+ end
945
+
946
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleSpec).returns(String) }
947
+ def self.encode(msg)
948
+ end
949
+
950
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::ScheduleSpec) }
951
+ def self.decode_json(str, **kw)
952
+ end
953
+
954
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleSpec, kw: T.untyped).returns(String) }
955
+ def self.encode_json(msg, **kw)
956
+ end
957
+
958
+ sig { returns(::Google::Protobuf::Descriptor) }
959
+ def self.descriptor
960
+ end
961
+ end
962
+
963
+ class Temporalio::Api::Schedule::V1::SchedulePolicies
964
+ include ::Google::Protobuf::MessageExts
965
+ extend ::Google::Protobuf::MessageExts::ClassMethods
966
+
967
+ sig do
968
+ params(
969
+ overlap_policy: T.nilable(T.any(Symbol, String, Integer)),
970
+ catchup_window: T.nilable(Google::Protobuf::Duration),
971
+ pause_on_failure: T.nilable(T::Boolean),
972
+ keep_original_workflow_id: T.nilable(T::Boolean)
973
+ ).void
974
+ end
975
+ def initialize(
976
+ overlap_policy: :SCHEDULE_OVERLAP_POLICY_UNSPECIFIED,
977
+ catchup_window: nil,
978
+ pause_on_failure: false,
979
+ keep_original_workflow_id: false
980
+ )
981
+ end
982
+
983
+ # Policy for overlaps.
984
+ # Note that this can be changed after a schedule has taken some actions,
985
+ # and some changes might produce unintuitive results. In general, the later
986
+ # policy overrides the earlier policy.
987
+ sig { returns(T.any(Symbol, Integer)) }
988
+ def overlap_policy
989
+ end
990
+
991
+ # Policy for overlaps.
992
+ # Note that this can be changed after a schedule has taken some actions,
993
+ # and some changes might produce unintuitive results. In general, the later
994
+ # policy overrides the earlier policy.
995
+ sig { params(value: T.any(Symbol, String, Integer)).void }
996
+ def overlap_policy=(value)
997
+ end
998
+
999
+ # Policy for overlaps.
1000
+ # Note that this can be changed after a schedule has taken some actions,
1001
+ # and some changes might produce unintuitive results. In general, the later
1002
+ # policy overrides the earlier policy.
1003
+ sig { void }
1004
+ def clear_overlap_policy
1005
+ end
1006
+
1007
+ # Policy for catchups:
1008
+ # If the Temporal server misses an action due to one or more components
1009
+ # being down, and comes back up, the action will be run if the scheduled
1010
+ # time is within this window from the current time.
1011
+ # This value defaults to one year, and can't be less than 10 seconds.
1012
+ sig { returns(T.nilable(Google::Protobuf::Duration)) }
1013
+ def catchup_window
1014
+ end
1015
+
1016
+ # Policy for catchups:
1017
+ # If the Temporal server misses an action due to one or more components
1018
+ # being down, and comes back up, the action will be run if the scheduled
1019
+ # time is within this window from the current time.
1020
+ # This value defaults to one year, and can't be less than 10 seconds.
1021
+ sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1022
+ def catchup_window=(value)
1023
+ end
1024
+
1025
+ # Policy for catchups:
1026
+ # If the Temporal server misses an action due to one or more components
1027
+ # being down, and comes back up, the action will be run if the scheduled
1028
+ # time is within this window from the current time.
1029
+ # This value defaults to one year, and can't be less than 10 seconds.
1030
+ sig { void }
1031
+ def clear_catchup_window
1032
+ end
1033
+
1034
+ # If true, and a workflow run fails or times out, turn on "paused".
1035
+ # This applies after retry policies: the full chain of retries must fail to
1036
+ # trigger a pause here.
1037
+ sig { returns(T::Boolean) }
1038
+ def pause_on_failure
1039
+ end
1040
+
1041
+ # If true, and a workflow run fails or times out, turn on "paused".
1042
+ # This applies after retry policies: the full chain of retries must fail to
1043
+ # trigger a pause here.
1044
+ sig { params(value: T::Boolean).void }
1045
+ def pause_on_failure=(value)
1046
+ end
1047
+
1048
+ # If true, and a workflow run fails or times out, turn on "paused".
1049
+ # This applies after retry policies: the full chain of retries must fail to
1050
+ # trigger a pause here.
1051
+ sig { void }
1052
+ def clear_pause_on_failure
1053
+ end
1054
+
1055
+ # If true, and the action would start a workflow, a timestamp will not be
1056
+ # appended to the scheduled workflow id.
1057
+ sig { returns(T::Boolean) }
1058
+ def keep_original_workflow_id
1059
+ end
1060
+
1061
+ # If true, and the action would start a workflow, a timestamp will not be
1062
+ # appended to the scheduled workflow id.
1063
+ sig { params(value: T::Boolean).void }
1064
+ def keep_original_workflow_id=(value)
1065
+ end
1066
+
1067
+ # If true, and the action would start a workflow, a timestamp will not be
1068
+ # appended to the scheduled workflow id.
1069
+ sig { void }
1070
+ def clear_keep_original_workflow_id
1071
+ end
1072
+
1073
+ sig { params(field: String).returns(T.untyped) }
1074
+ def [](field)
1075
+ end
1076
+
1077
+ sig { params(field: String, value: T.untyped).void }
1078
+ def []=(field, value)
1079
+ end
1080
+
1081
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1082
+ def to_h
1083
+ end
1084
+
1085
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::SchedulePolicies) }
1086
+ def self.decode(str)
1087
+ end
1088
+
1089
+ sig { params(msg: Temporalio::Api::Schedule::V1::SchedulePolicies).returns(String) }
1090
+ def self.encode(msg)
1091
+ end
1092
+
1093
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::SchedulePolicies) }
1094
+ def self.decode_json(str, **kw)
1095
+ end
1096
+
1097
+ sig { params(msg: Temporalio::Api::Schedule::V1::SchedulePolicies, kw: T.untyped).returns(String) }
1098
+ def self.encode_json(msg, **kw)
1099
+ end
1100
+
1101
+ sig { returns(::Google::Protobuf::Descriptor) }
1102
+ def self.descriptor
1103
+ end
1104
+ end
1105
+
1106
+ class Temporalio::Api::Schedule::V1::ScheduleAction
1107
+ include ::Google::Protobuf::MessageExts
1108
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1109
+
1110
+ sig do
1111
+ params(
1112
+ start_workflow: T.nilable(Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo)
1113
+ ).void
1114
+ end
1115
+ def initialize(
1116
+ start_workflow: nil
1117
+ )
1118
+ end
1119
+
1120
+ # All fields of NewWorkflowExecutionInfo are valid except for:
1121
+ # - workflow_id_reuse_policy
1122
+ # - cron_schedule
1123
+ # The workflow id of the started workflow may not match this exactly,
1124
+ # it may have a timestamp appended for uniqueness.
1125
+ sig { returns(T.nilable(Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo)) }
1126
+ def start_workflow
1127
+ end
1128
+
1129
+ # All fields of NewWorkflowExecutionInfo are valid except for:
1130
+ # - workflow_id_reuse_policy
1131
+ # - cron_schedule
1132
+ # The workflow id of the started workflow may not match this exactly,
1133
+ # it may have a timestamp appended for uniqueness.
1134
+ sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo)).void }
1135
+ def start_workflow=(value)
1136
+ end
1137
+
1138
+ # All fields of NewWorkflowExecutionInfo are valid except for:
1139
+ # - workflow_id_reuse_policy
1140
+ # - cron_schedule
1141
+ # The workflow id of the started workflow may not match this exactly,
1142
+ # it may have a timestamp appended for uniqueness.
1143
+ sig { void }
1144
+ def clear_start_workflow
1145
+ end
1146
+
1147
+ sig { returns(T.nilable(Symbol)) }
1148
+ def action
1149
+ end
1150
+
1151
+ sig { params(field: String).returns(T.untyped) }
1152
+ def [](field)
1153
+ end
1154
+
1155
+ sig { params(field: String, value: T.untyped).void }
1156
+ def []=(field, value)
1157
+ end
1158
+
1159
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1160
+ def to_h
1161
+ end
1162
+
1163
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::ScheduleAction) }
1164
+ def self.decode(str)
1165
+ end
1166
+
1167
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleAction).returns(String) }
1168
+ def self.encode(msg)
1169
+ end
1170
+
1171
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::ScheduleAction) }
1172
+ def self.decode_json(str, **kw)
1173
+ end
1174
+
1175
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleAction, kw: T.untyped).returns(String) }
1176
+ def self.encode_json(msg, **kw)
1177
+ end
1178
+
1179
+ sig { returns(::Google::Protobuf::Descriptor) }
1180
+ def self.descriptor
1181
+ end
1182
+ end
1183
+
1184
+ class Temporalio::Api::Schedule::V1::ScheduleActionResult
1185
+ include ::Google::Protobuf::MessageExts
1186
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1187
+
1188
+ sig do
1189
+ params(
1190
+ schedule_time: T.nilable(Google::Protobuf::Timestamp),
1191
+ actual_time: T.nilable(Google::Protobuf::Timestamp),
1192
+ start_workflow_result: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution),
1193
+ start_workflow_status: T.nilable(T.any(Symbol, String, Integer))
1194
+ ).void
1195
+ end
1196
+ def initialize(
1197
+ schedule_time: nil,
1198
+ actual_time: nil,
1199
+ start_workflow_result: nil,
1200
+ start_workflow_status: :WORKFLOW_EXECUTION_STATUS_UNSPECIFIED
1201
+ )
1202
+ end
1203
+
1204
+ # Time that the action was taken (according to the schedule, including jitter).
1205
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1206
+ def schedule_time
1207
+ end
1208
+
1209
+ # Time that the action was taken (according to the schedule, including jitter).
1210
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1211
+ def schedule_time=(value)
1212
+ end
1213
+
1214
+ # Time that the action was taken (according to the schedule, including jitter).
1215
+ sig { void }
1216
+ def clear_schedule_time
1217
+ end
1218
+
1219
+ # Time that the action was taken (real time).
1220
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1221
+ def actual_time
1222
+ end
1223
+
1224
+ # Time that the action was taken (real time).
1225
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1226
+ def actual_time=(value)
1227
+ end
1228
+
1229
+ # Time that the action was taken (real time).
1230
+ sig { void }
1231
+ def clear_actual_time
1232
+ end
1233
+
1234
+ # If action was start_workflow:
1235
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)) }
1236
+ def start_workflow_result
1237
+ end
1238
+
1239
+ # If action was start_workflow:
1240
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)).void }
1241
+ def start_workflow_result=(value)
1242
+ end
1243
+
1244
+ # If action was start_workflow:
1245
+ sig { void }
1246
+ def clear_start_workflow_result
1247
+ end
1248
+
1249
+ # If the action was start_workflow, this field will reflect an
1250
+ # eventually-consistent view of the started workflow's status.
1251
+ sig { returns(T.any(Symbol, Integer)) }
1252
+ def start_workflow_status
1253
+ end
1254
+
1255
+ # If the action was start_workflow, this field will reflect an
1256
+ # eventually-consistent view of the started workflow's status.
1257
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1258
+ def start_workflow_status=(value)
1259
+ end
1260
+
1261
+ # If the action was start_workflow, this field will reflect an
1262
+ # eventually-consistent view of the started workflow's status.
1263
+ sig { void }
1264
+ def clear_start_workflow_status
1265
+ end
1266
+
1267
+ sig { params(field: String).returns(T.untyped) }
1268
+ def [](field)
1269
+ end
1270
+
1271
+ sig { params(field: String, value: T.untyped).void }
1272
+ def []=(field, value)
1273
+ end
1274
+
1275
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1276
+ def to_h
1277
+ end
1278
+
1279
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::ScheduleActionResult) }
1280
+ def self.decode(str)
1281
+ end
1282
+
1283
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleActionResult).returns(String) }
1284
+ def self.encode(msg)
1285
+ end
1286
+
1287
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::ScheduleActionResult) }
1288
+ def self.decode_json(str, **kw)
1289
+ end
1290
+
1291
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleActionResult, kw: T.untyped).returns(String) }
1292
+ def self.encode_json(msg, **kw)
1293
+ end
1294
+
1295
+ sig { returns(::Google::Protobuf::Descriptor) }
1296
+ def self.descriptor
1297
+ end
1298
+ end
1299
+
1300
+ class Temporalio::Api::Schedule::V1::ScheduleState
1301
+ include ::Google::Protobuf::MessageExts
1302
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1303
+
1304
+ sig do
1305
+ params(
1306
+ notes: T.nilable(String),
1307
+ paused: T.nilable(T::Boolean),
1308
+ limited_actions: T.nilable(T::Boolean),
1309
+ remaining_actions: T.nilable(Integer)
1310
+ ).void
1311
+ end
1312
+ def initialize(
1313
+ notes: "",
1314
+ paused: false,
1315
+ limited_actions: false,
1316
+ remaining_actions: 0
1317
+ )
1318
+ end
1319
+
1320
+ # Informative human-readable message with contextual notes, e.g. the reason
1321
+ # a schedule is paused. The system may overwrite this message on certain
1322
+ # conditions, e.g. when pause-on-failure happens.
1323
+ sig { returns(String) }
1324
+ def notes
1325
+ end
1326
+
1327
+ # Informative human-readable message with contextual notes, e.g. the reason
1328
+ # a schedule is paused. The system may overwrite this message on certain
1329
+ # conditions, e.g. when pause-on-failure happens.
1330
+ sig { params(value: String).void }
1331
+ def notes=(value)
1332
+ end
1333
+
1334
+ # Informative human-readable message with contextual notes, e.g. the reason
1335
+ # a schedule is paused. The system may overwrite this message on certain
1336
+ # conditions, e.g. when pause-on-failure happens.
1337
+ sig { void }
1338
+ def clear_notes
1339
+ end
1340
+
1341
+ # If true, do not take any actions based on the schedule spec.
1342
+ sig { returns(T::Boolean) }
1343
+ def paused
1344
+ end
1345
+
1346
+ # If true, do not take any actions based on the schedule spec.
1347
+ sig { params(value: T::Boolean).void }
1348
+ def paused=(value)
1349
+ end
1350
+
1351
+ # If true, do not take any actions based on the schedule spec.
1352
+ sig { void }
1353
+ def clear_paused
1354
+ end
1355
+
1356
+ # If limited_actions is true, decrement remaining_actions after each
1357
+ # action, and do not take any more scheduled actions if remaining_actions
1358
+ # is zero. Actions may still be taken by explicit request (i.e. trigger
1359
+ # immediately or backfill). Skipped actions (due to overlap policy) do not
1360
+ # count against remaining actions.
1361
+ # If a schedule has no more remaining actions, then the schedule will be
1362
+ # subject to automatic deletion (after several days).
1363
+ sig { returns(T::Boolean) }
1364
+ def limited_actions
1365
+ end
1366
+
1367
+ # If limited_actions is true, decrement remaining_actions after each
1368
+ # action, and do not take any more scheduled actions if remaining_actions
1369
+ # is zero. Actions may still be taken by explicit request (i.e. trigger
1370
+ # immediately or backfill). Skipped actions (due to overlap policy) do not
1371
+ # count against remaining actions.
1372
+ # If a schedule has no more remaining actions, then the schedule will be
1373
+ # subject to automatic deletion (after several days).
1374
+ sig { params(value: T::Boolean).void }
1375
+ def limited_actions=(value)
1376
+ end
1377
+
1378
+ # If limited_actions is true, decrement remaining_actions after each
1379
+ # action, and do not take any more scheduled actions if remaining_actions
1380
+ # is zero. Actions may still be taken by explicit request (i.e. trigger
1381
+ # immediately or backfill). Skipped actions (due to overlap policy) do not
1382
+ # count against remaining actions.
1383
+ # If a schedule has no more remaining actions, then the schedule will be
1384
+ # subject to automatic deletion (after several days).
1385
+ sig { void }
1386
+ def clear_limited_actions
1387
+ end
1388
+
1389
+ sig { returns(Integer) }
1390
+ def remaining_actions
1391
+ end
1392
+
1393
+ sig { params(value: Integer).void }
1394
+ def remaining_actions=(value)
1395
+ end
1396
+
1397
+ sig { void }
1398
+ def clear_remaining_actions
1399
+ end
1400
+
1401
+ sig { params(field: String).returns(T.untyped) }
1402
+ def [](field)
1403
+ end
1404
+
1405
+ sig { params(field: String, value: T.untyped).void }
1406
+ def []=(field, value)
1407
+ end
1408
+
1409
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1410
+ def to_h
1411
+ end
1412
+
1413
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::ScheduleState) }
1414
+ def self.decode(str)
1415
+ end
1416
+
1417
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleState).returns(String) }
1418
+ def self.encode(msg)
1419
+ end
1420
+
1421
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::ScheduleState) }
1422
+ def self.decode_json(str, **kw)
1423
+ end
1424
+
1425
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleState, kw: T.untyped).returns(String) }
1426
+ def self.encode_json(msg, **kw)
1427
+ end
1428
+
1429
+ sig { returns(::Google::Protobuf::Descriptor) }
1430
+ def self.descriptor
1431
+ end
1432
+ end
1433
+
1434
+ class Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest
1435
+ include ::Google::Protobuf::MessageExts
1436
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1437
+
1438
+ sig do
1439
+ params(
1440
+ overlap_policy: T.nilable(T.any(Symbol, String, Integer)),
1441
+ scheduled_time: T.nilable(Google::Protobuf::Timestamp)
1442
+ ).void
1443
+ end
1444
+ def initialize(
1445
+ overlap_policy: :SCHEDULE_OVERLAP_POLICY_UNSPECIFIED,
1446
+ scheduled_time: nil
1447
+ )
1448
+ end
1449
+
1450
+ # If set, override overlap policy for this one request.
1451
+ sig { returns(T.any(Symbol, Integer)) }
1452
+ def overlap_policy
1453
+ end
1454
+
1455
+ # If set, override overlap policy for this one request.
1456
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1457
+ def overlap_policy=(value)
1458
+ end
1459
+
1460
+ # If set, override overlap policy for this one request.
1461
+ sig { void }
1462
+ def clear_overlap_policy
1463
+ end
1464
+
1465
+ # Timestamp used for the identity of the target workflow.
1466
+ # If not set the default value is the current time.
1467
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1468
+ def scheduled_time
1469
+ end
1470
+
1471
+ # Timestamp used for the identity of the target workflow.
1472
+ # If not set the default value is the current time.
1473
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1474
+ def scheduled_time=(value)
1475
+ end
1476
+
1477
+ # Timestamp used for the identity of the target workflow.
1478
+ # If not set the default value is the current time.
1479
+ sig { void }
1480
+ def clear_scheduled_time
1481
+ end
1482
+
1483
+ sig { params(field: String).returns(T.untyped) }
1484
+ def [](field)
1485
+ end
1486
+
1487
+ sig { params(field: String, value: T.untyped).void }
1488
+ def []=(field, value)
1489
+ end
1490
+
1491
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1492
+ def to_h
1493
+ end
1494
+
1495
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest) }
1496
+ def self.decode(str)
1497
+ end
1498
+
1499
+ sig { params(msg: Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest).returns(String) }
1500
+ def self.encode(msg)
1501
+ end
1502
+
1503
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest) }
1504
+ def self.decode_json(str, **kw)
1505
+ end
1506
+
1507
+ sig { params(msg: Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest, kw: T.untyped).returns(String) }
1508
+ def self.encode_json(msg, **kw)
1509
+ end
1510
+
1511
+ sig { returns(::Google::Protobuf::Descriptor) }
1512
+ def self.descriptor
1513
+ end
1514
+ end
1515
+
1516
+ class Temporalio::Api::Schedule::V1::BackfillRequest
1517
+ include ::Google::Protobuf::MessageExts
1518
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1519
+
1520
+ sig do
1521
+ params(
1522
+ start_time: T.nilable(Google::Protobuf::Timestamp),
1523
+ end_time: T.nilable(Google::Protobuf::Timestamp),
1524
+ overlap_policy: T.nilable(T.any(Symbol, String, Integer))
1525
+ ).void
1526
+ end
1527
+ def initialize(
1528
+ start_time: nil,
1529
+ end_time: nil,
1530
+ overlap_policy: :SCHEDULE_OVERLAP_POLICY_UNSPECIFIED
1531
+ )
1532
+ end
1533
+
1534
+ # Time range to evaluate schedule in. Currently, this time range is
1535
+ # exclusive on start_time and inclusive on end_time. (This is admittedly
1536
+ # counterintuitive and it may change in the future, so to be safe, use a
1537
+ # start time strictly before a scheduled time.) Also note that an action
1538
+ # nominally scheduled in the interval but with jitter that pushes it after
1539
+ # end_time will not be included.
1540
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1541
+ def start_time
1542
+ end
1543
+
1544
+ # Time range to evaluate schedule in. Currently, this time range is
1545
+ # exclusive on start_time and inclusive on end_time. (This is admittedly
1546
+ # counterintuitive and it may change in the future, so to be safe, use a
1547
+ # start time strictly before a scheduled time.) Also note that an action
1548
+ # nominally scheduled in the interval but with jitter that pushes it after
1549
+ # end_time will not be included.
1550
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1551
+ def start_time=(value)
1552
+ end
1553
+
1554
+ # Time range to evaluate schedule in. Currently, this time range is
1555
+ # exclusive on start_time and inclusive on end_time. (This is admittedly
1556
+ # counterintuitive and it may change in the future, so to be safe, use a
1557
+ # start time strictly before a scheduled time.) Also note that an action
1558
+ # nominally scheduled in the interval but with jitter that pushes it after
1559
+ # end_time will not be included.
1560
+ sig { void }
1561
+ def clear_start_time
1562
+ end
1563
+
1564
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1565
+ def end_time
1566
+ end
1567
+
1568
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1569
+ def end_time=(value)
1570
+ end
1571
+
1572
+ sig { void }
1573
+ def clear_end_time
1574
+ end
1575
+
1576
+ # If set, override overlap policy for this request.
1577
+ sig { returns(T.any(Symbol, Integer)) }
1578
+ def overlap_policy
1579
+ end
1580
+
1581
+ # If set, override overlap policy for this request.
1582
+ sig { params(value: T.any(Symbol, String, Integer)).void }
1583
+ def overlap_policy=(value)
1584
+ end
1585
+
1586
+ # If set, override overlap policy for this request.
1587
+ sig { void }
1588
+ def clear_overlap_policy
1589
+ end
1590
+
1591
+ sig { params(field: String).returns(T.untyped) }
1592
+ def [](field)
1593
+ end
1594
+
1595
+ sig { params(field: String, value: T.untyped).void }
1596
+ def []=(field, value)
1597
+ end
1598
+
1599
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1600
+ def to_h
1601
+ end
1602
+
1603
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::BackfillRequest) }
1604
+ def self.decode(str)
1605
+ end
1606
+
1607
+ sig { params(msg: Temporalio::Api::Schedule::V1::BackfillRequest).returns(String) }
1608
+ def self.encode(msg)
1609
+ end
1610
+
1611
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::BackfillRequest) }
1612
+ def self.decode_json(str, **kw)
1613
+ end
1614
+
1615
+ sig { params(msg: Temporalio::Api::Schedule::V1::BackfillRequest, kw: T.untyped).returns(String) }
1616
+ def self.encode_json(msg, **kw)
1617
+ end
1618
+
1619
+ sig { returns(::Google::Protobuf::Descriptor) }
1620
+ def self.descriptor
1621
+ end
1622
+ end
1623
+
1624
+ class Temporalio::Api::Schedule::V1::SchedulePatch
1625
+ include ::Google::Protobuf::MessageExts
1626
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1627
+
1628
+ sig do
1629
+ params(
1630
+ trigger_immediately: T.nilable(Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest),
1631
+ backfill_request: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::BackfillRequest)]),
1632
+ pause: T.nilable(String),
1633
+ unpause: T.nilable(String)
1634
+ ).void
1635
+ end
1636
+ def initialize(
1637
+ trigger_immediately: nil,
1638
+ backfill_request: [],
1639
+ pause: "",
1640
+ unpause: ""
1641
+ )
1642
+ end
1643
+
1644
+ # If set, trigger one action immediately.
1645
+ sig { returns(T.nilable(Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest)) }
1646
+ def trigger_immediately
1647
+ end
1648
+
1649
+ # If set, trigger one action immediately.
1650
+ sig { params(value: T.nilable(Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest)).void }
1651
+ def trigger_immediately=(value)
1652
+ end
1653
+
1654
+ # If set, trigger one action immediately.
1655
+ sig { void }
1656
+ def clear_trigger_immediately
1657
+ end
1658
+
1659
+ # If set, runs though the specified time period(s) and takes actions as if that time
1660
+ # passed by right now, all at once. The overlap policy can be overridden for the
1661
+ # scope of the backfill.
1662
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::BackfillRequest)]) }
1663
+ def backfill_request
1664
+ end
1665
+
1666
+ # If set, runs though the specified time period(s) and takes actions as if that time
1667
+ # passed by right now, all at once. The overlap policy can be overridden for the
1668
+ # scope of the backfill.
1669
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
1670
+ def backfill_request=(value)
1671
+ end
1672
+
1673
+ # If set, runs though the specified time period(s) and takes actions as if that time
1674
+ # passed by right now, all at once. The overlap policy can be overridden for the
1675
+ # scope of the backfill.
1676
+ sig { void }
1677
+ def clear_backfill_request
1678
+ end
1679
+
1680
+ # If set, change the state to paused or unpaused (respectively) and set the
1681
+ # notes field to the value of the string.
1682
+ sig { returns(String) }
1683
+ def pause
1684
+ end
1685
+
1686
+ # If set, change the state to paused or unpaused (respectively) and set the
1687
+ # notes field to the value of the string.
1688
+ sig { params(value: String).void }
1689
+ def pause=(value)
1690
+ end
1691
+
1692
+ # If set, change the state to paused or unpaused (respectively) and set the
1693
+ # notes field to the value of the string.
1694
+ sig { void }
1695
+ def clear_pause
1696
+ end
1697
+
1698
+ sig { returns(String) }
1699
+ def unpause
1700
+ end
1701
+
1702
+ sig { params(value: String).void }
1703
+ def unpause=(value)
1704
+ end
1705
+
1706
+ sig { void }
1707
+ def clear_unpause
1708
+ end
1709
+
1710
+ sig { params(field: String).returns(T.untyped) }
1711
+ def [](field)
1712
+ end
1713
+
1714
+ sig { params(field: String, value: T.untyped).void }
1715
+ def []=(field, value)
1716
+ end
1717
+
1718
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1719
+ def to_h
1720
+ end
1721
+
1722
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::SchedulePatch) }
1723
+ def self.decode(str)
1724
+ end
1725
+
1726
+ sig { params(msg: Temporalio::Api::Schedule::V1::SchedulePatch).returns(String) }
1727
+ def self.encode(msg)
1728
+ end
1729
+
1730
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::SchedulePatch) }
1731
+ def self.decode_json(str, **kw)
1732
+ end
1733
+
1734
+ sig { params(msg: Temporalio::Api::Schedule::V1::SchedulePatch, kw: T.untyped).returns(String) }
1735
+ def self.encode_json(msg, **kw)
1736
+ end
1737
+
1738
+ sig { returns(::Google::Protobuf::Descriptor) }
1739
+ def self.descriptor
1740
+ end
1741
+ end
1742
+
1743
+ class Temporalio::Api::Schedule::V1::ScheduleInfo
1744
+ include ::Google::Protobuf::MessageExts
1745
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1746
+
1747
+ sig do
1748
+ params(
1749
+ action_count: T.nilable(Integer),
1750
+ missed_catchup_window: T.nilable(Integer),
1751
+ overlap_skipped: T.nilable(Integer),
1752
+ buffer_dropped: T.nilable(Integer),
1753
+ buffer_size: T.nilable(Integer),
1754
+ running_workflows: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)]),
1755
+ recent_actions: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::ScheduleActionResult)]),
1756
+ future_action_times: T.nilable(T::Array[T.nilable(Google::Protobuf::Timestamp)]),
1757
+ create_time: T.nilable(Google::Protobuf::Timestamp),
1758
+ update_time: T.nilable(Google::Protobuf::Timestamp),
1759
+ invalid_schedule_error: T.nilable(String),
1760
+ state_size_bytes: T.nilable(Integer)
1761
+ ).void
1762
+ end
1763
+ def initialize(
1764
+ action_count: 0,
1765
+ missed_catchup_window: 0,
1766
+ overlap_skipped: 0,
1767
+ buffer_dropped: 0,
1768
+ buffer_size: 0,
1769
+ running_workflows: [],
1770
+ recent_actions: [],
1771
+ future_action_times: [],
1772
+ create_time: nil,
1773
+ update_time: nil,
1774
+ invalid_schedule_error: "",
1775
+ state_size_bytes: 0
1776
+ )
1777
+ end
1778
+
1779
+ # Number of actions taken so far.
1780
+ sig { returns(Integer) }
1781
+ def action_count
1782
+ end
1783
+
1784
+ # Number of actions taken so far.
1785
+ sig { params(value: Integer).void }
1786
+ def action_count=(value)
1787
+ end
1788
+
1789
+ # Number of actions taken so far.
1790
+ sig { void }
1791
+ def clear_action_count
1792
+ end
1793
+
1794
+ # Number of times a scheduled action was skipped due to missing the catchup window.
1795
+ sig { returns(Integer) }
1796
+ def missed_catchup_window
1797
+ end
1798
+
1799
+ # Number of times a scheduled action was skipped due to missing the catchup window.
1800
+ sig { params(value: Integer).void }
1801
+ def missed_catchup_window=(value)
1802
+ end
1803
+
1804
+ # Number of times a scheduled action was skipped due to missing the catchup window.
1805
+ sig { void }
1806
+ def clear_missed_catchup_window
1807
+ end
1808
+
1809
+ # Number of skipped actions due to overlap.
1810
+ sig { returns(Integer) }
1811
+ def overlap_skipped
1812
+ end
1813
+
1814
+ # Number of skipped actions due to overlap.
1815
+ sig { params(value: Integer).void }
1816
+ def overlap_skipped=(value)
1817
+ end
1818
+
1819
+ # Number of skipped actions due to overlap.
1820
+ sig { void }
1821
+ def clear_overlap_skipped
1822
+ end
1823
+
1824
+ # Number of dropped actions due to buffer limit.
1825
+ sig { returns(Integer) }
1826
+ def buffer_dropped
1827
+ end
1828
+
1829
+ # Number of dropped actions due to buffer limit.
1830
+ sig { params(value: Integer).void }
1831
+ def buffer_dropped=(value)
1832
+ end
1833
+
1834
+ # Number of dropped actions due to buffer limit.
1835
+ sig { void }
1836
+ def clear_buffer_dropped
1837
+ end
1838
+
1839
+ # Number of actions in the buffer. The buffer holds the actions that cannot
1840
+ # be immediately triggered (due to the overlap policy). These actions can be a result of
1841
+ # the normal schedule or a backfill.
1842
+ sig { returns(Integer) }
1843
+ def buffer_size
1844
+ end
1845
+
1846
+ # Number of actions in the buffer. The buffer holds the actions that cannot
1847
+ # be immediately triggered (due to the overlap policy). These actions can be a result of
1848
+ # the normal schedule or a backfill.
1849
+ sig { params(value: Integer).void }
1850
+ def buffer_size=(value)
1851
+ end
1852
+
1853
+ # Number of actions in the buffer. The buffer holds the actions that cannot
1854
+ # be immediately triggered (due to the overlap policy). These actions can be a result of
1855
+ # the normal schedule or a backfill.
1856
+ sig { void }
1857
+ def clear_buffer_size
1858
+ end
1859
+
1860
+ # Currently-running workflows started by this schedule. (There might be
1861
+ # more than one if the overlap policy allows overlaps.)
1862
+ # Note that the run_ids in here are the original execution run ids as
1863
+ # started by the schedule. If the workflows retried, did continue-as-new,
1864
+ # or were reset, they might still be running but with a different run_id.
1865
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)]) }
1866
+ def running_workflows
1867
+ end
1868
+
1869
+ # Currently-running workflows started by this schedule. (There might be
1870
+ # more than one if the overlap policy allows overlaps.)
1871
+ # Note that the run_ids in here are the original execution run ids as
1872
+ # started by the schedule. If the workflows retried, did continue-as-new,
1873
+ # or were reset, they might still be running but with a different run_id.
1874
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
1875
+ def running_workflows=(value)
1876
+ end
1877
+
1878
+ # Currently-running workflows started by this schedule. (There might be
1879
+ # more than one if the overlap policy allows overlaps.)
1880
+ # Note that the run_ids in here are the original execution run ids as
1881
+ # started by the schedule. If the workflows retried, did continue-as-new,
1882
+ # or were reset, they might still be running but with a different run_id.
1883
+ sig { void }
1884
+ def clear_running_workflows
1885
+ end
1886
+
1887
+ # Most recent ten actual action times (including manual triggers).
1888
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::ScheduleActionResult)]) }
1889
+ def recent_actions
1890
+ end
1891
+
1892
+ # Most recent ten actual action times (including manual triggers).
1893
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
1894
+ def recent_actions=(value)
1895
+ end
1896
+
1897
+ # Most recent ten actual action times (including manual triggers).
1898
+ sig { void }
1899
+ def clear_recent_actions
1900
+ end
1901
+
1902
+ # Next ten scheduled action times.
1903
+ sig { returns(T::Array[T.nilable(Google::Protobuf::Timestamp)]) }
1904
+ def future_action_times
1905
+ end
1906
+
1907
+ # Next ten scheduled action times.
1908
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
1909
+ def future_action_times=(value)
1910
+ end
1911
+
1912
+ # Next ten scheduled action times.
1913
+ sig { void }
1914
+ def clear_future_action_times
1915
+ end
1916
+
1917
+ # Timestamps of schedule creation and last update.
1918
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1919
+ def create_time
1920
+ end
1921
+
1922
+ # Timestamps of schedule creation and last update.
1923
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1924
+ def create_time=(value)
1925
+ end
1926
+
1927
+ # Timestamps of schedule creation and last update.
1928
+ sig { void }
1929
+ def clear_create_time
1930
+ end
1931
+
1932
+ sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
1933
+ def update_time
1934
+ end
1935
+
1936
+ sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
1937
+ def update_time=(value)
1938
+ end
1939
+
1940
+ sig { void }
1941
+ def clear_update_time
1942
+ end
1943
+
1944
+ # Deprecated.
1945
+ sig { returns(String) }
1946
+ def invalid_schedule_error
1947
+ end
1948
+
1949
+ # Deprecated.
1950
+ sig { params(value: String).void }
1951
+ def invalid_schedule_error=(value)
1952
+ end
1953
+
1954
+ # Deprecated.
1955
+ sig { void }
1956
+ def clear_invalid_schedule_error
1957
+ end
1958
+
1959
+ # Size of the schedule's internal state (including payloads) in bytes.
1960
+ sig { returns(Integer) }
1961
+ def state_size_bytes
1962
+ end
1963
+
1964
+ # Size of the schedule's internal state (including payloads) in bytes.
1965
+ sig { params(value: Integer).void }
1966
+ def state_size_bytes=(value)
1967
+ end
1968
+
1969
+ # Size of the schedule's internal state (including payloads) in bytes.
1970
+ sig { void }
1971
+ def clear_state_size_bytes
1972
+ end
1973
+
1974
+ sig { params(field: String).returns(T.untyped) }
1975
+ def [](field)
1976
+ end
1977
+
1978
+ sig { params(field: String, value: T.untyped).void }
1979
+ def []=(field, value)
1980
+ end
1981
+
1982
+ sig { returns(T::Hash[Symbol, T.untyped]) }
1983
+ def to_h
1984
+ end
1985
+
1986
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::ScheduleInfo) }
1987
+ def self.decode(str)
1988
+ end
1989
+
1990
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleInfo).returns(String) }
1991
+ def self.encode(msg)
1992
+ end
1993
+
1994
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::ScheduleInfo) }
1995
+ def self.decode_json(str, **kw)
1996
+ end
1997
+
1998
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleInfo, kw: T.untyped).returns(String) }
1999
+ def self.encode_json(msg, **kw)
2000
+ end
2001
+
2002
+ sig { returns(::Google::Protobuf::Descriptor) }
2003
+ def self.descriptor
2004
+ end
2005
+ end
2006
+
2007
+ class Temporalio::Api::Schedule::V1::Schedule
2008
+ include ::Google::Protobuf::MessageExts
2009
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2010
+
2011
+ sig do
2012
+ params(
2013
+ spec: T.nilable(Temporalio::Api::Schedule::V1::ScheduleSpec),
2014
+ action: T.nilable(Temporalio::Api::Schedule::V1::ScheduleAction),
2015
+ policies: T.nilable(Temporalio::Api::Schedule::V1::SchedulePolicies),
2016
+ state: T.nilable(Temporalio::Api::Schedule::V1::ScheduleState)
2017
+ ).void
2018
+ end
2019
+ def initialize(
2020
+ spec: nil,
2021
+ action: nil,
2022
+ policies: nil,
2023
+ state: nil
2024
+ )
2025
+ end
2026
+
2027
+ sig { returns(T.nilable(Temporalio::Api::Schedule::V1::ScheduleSpec)) }
2028
+ def spec
2029
+ end
2030
+
2031
+ sig { params(value: T.nilable(Temporalio::Api::Schedule::V1::ScheduleSpec)).void }
2032
+ def spec=(value)
2033
+ end
2034
+
2035
+ sig { void }
2036
+ def clear_spec
2037
+ end
2038
+
2039
+ sig { returns(T.nilable(Temporalio::Api::Schedule::V1::ScheduleAction)) }
2040
+ def action
2041
+ end
2042
+
2043
+ sig { params(value: T.nilable(Temporalio::Api::Schedule::V1::ScheduleAction)).void }
2044
+ def action=(value)
2045
+ end
2046
+
2047
+ sig { void }
2048
+ def clear_action
2049
+ end
2050
+
2051
+ sig { returns(T.nilable(Temporalio::Api::Schedule::V1::SchedulePolicies)) }
2052
+ def policies
2053
+ end
2054
+
2055
+ sig { params(value: T.nilable(Temporalio::Api::Schedule::V1::SchedulePolicies)).void }
2056
+ def policies=(value)
2057
+ end
2058
+
2059
+ sig { void }
2060
+ def clear_policies
2061
+ end
2062
+
2063
+ sig { returns(T.nilable(Temporalio::Api::Schedule::V1::ScheduleState)) }
2064
+ def state
2065
+ end
2066
+
2067
+ sig { params(value: T.nilable(Temporalio::Api::Schedule::V1::ScheduleState)).void }
2068
+ def state=(value)
2069
+ end
2070
+
2071
+ sig { void }
2072
+ def clear_state
2073
+ end
2074
+
2075
+ sig { params(field: String).returns(T.untyped) }
2076
+ def [](field)
2077
+ end
2078
+
2079
+ sig { params(field: String, value: T.untyped).void }
2080
+ def []=(field, value)
2081
+ end
2082
+
2083
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2084
+ def to_h
2085
+ end
2086
+
2087
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::Schedule) }
2088
+ def self.decode(str)
2089
+ end
2090
+
2091
+ sig { params(msg: Temporalio::Api::Schedule::V1::Schedule).returns(String) }
2092
+ def self.encode(msg)
2093
+ end
2094
+
2095
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::Schedule) }
2096
+ def self.decode_json(str, **kw)
2097
+ end
2098
+
2099
+ sig { params(msg: Temporalio::Api::Schedule::V1::Schedule, kw: T.untyped).returns(String) }
2100
+ def self.encode_json(msg, **kw)
2101
+ end
2102
+
2103
+ sig { returns(::Google::Protobuf::Descriptor) }
2104
+ def self.descriptor
2105
+ end
2106
+ end
2107
+
2108
+ # ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo
2109
+ # that's returned in ListSchedules.
2110
+ class Temporalio::Api::Schedule::V1::ScheduleListInfo
2111
+ include ::Google::Protobuf::MessageExts
2112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2113
+
2114
+ sig do
2115
+ params(
2116
+ spec: T.nilable(Temporalio::Api::Schedule::V1::ScheduleSpec),
2117
+ workflow_type: T.nilable(Temporalio::Api::Common::V1::WorkflowType),
2118
+ notes: T.nilable(String),
2119
+ paused: T.nilable(T::Boolean),
2120
+ recent_actions: T.nilable(T::Array[T.nilable(Temporalio::Api::Schedule::V1::ScheduleActionResult)]),
2121
+ future_action_times: T.nilable(T::Array[T.nilable(Google::Protobuf::Timestamp)]),
2122
+ state_size_bytes: T.nilable(Integer)
2123
+ ).void
2124
+ end
2125
+ def initialize(
2126
+ spec: nil,
2127
+ workflow_type: nil,
2128
+ notes: "",
2129
+ paused: false,
2130
+ recent_actions: [],
2131
+ future_action_times: [],
2132
+ state_size_bytes: 0
2133
+ )
2134
+ end
2135
+
2136
+ # From spec:
2137
+ # Some fields are dropped from this copy of spec: timezone_data
2138
+ sig { returns(T.nilable(Temporalio::Api::Schedule::V1::ScheduleSpec)) }
2139
+ def spec
2140
+ end
2141
+
2142
+ # From spec:
2143
+ # Some fields are dropped from this copy of spec: timezone_data
2144
+ sig { params(value: T.nilable(Temporalio::Api::Schedule::V1::ScheduleSpec)).void }
2145
+ def spec=(value)
2146
+ end
2147
+
2148
+ # From spec:
2149
+ # Some fields are dropped from this copy of spec: timezone_data
2150
+ sig { void }
2151
+ def clear_spec
2152
+ end
2153
+
2154
+ # From action:
2155
+ # Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
2156
+ # well with JSON. If action is start_workflow, this is set:
2157
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkflowType)) }
2158
+ def workflow_type
2159
+ end
2160
+
2161
+ # From action:
2162
+ # Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
2163
+ # well with JSON. If action is start_workflow, this is set:
2164
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkflowType)).void }
2165
+ def workflow_type=(value)
2166
+ end
2167
+
2168
+ # From action:
2169
+ # Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
2170
+ # well with JSON. If action is start_workflow, this is set:
2171
+ sig { void }
2172
+ def clear_workflow_type
2173
+ end
2174
+
2175
+ # From state:
2176
+ sig { returns(String) }
2177
+ def notes
2178
+ end
2179
+
2180
+ # From state:
2181
+ sig { params(value: String).void }
2182
+ def notes=(value)
2183
+ end
2184
+
2185
+ # From state:
2186
+ sig { void }
2187
+ def clear_notes
2188
+ end
2189
+
2190
+ sig { returns(T::Boolean) }
2191
+ def paused
2192
+ end
2193
+
2194
+ sig { params(value: T::Boolean).void }
2195
+ def paused=(value)
2196
+ end
2197
+
2198
+ sig { void }
2199
+ def clear_paused
2200
+ end
2201
+
2202
+ # From info (maybe fewer entries):
2203
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Schedule::V1::ScheduleActionResult)]) }
2204
+ def recent_actions
2205
+ end
2206
+
2207
+ # From info (maybe fewer entries):
2208
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2209
+ def recent_actions=(value)
2210
+ end
2211
+
2212
+ # From info (maybe fewer entries):
2213
+ sig { void }
2214
+ def clear_recent_actions
2215
+ end
2216
+
2217
+ sig { returns(T::Array[T.nilable(Google::Protobuf::Timestamp)]) }
2218
+ def future_action_times
2219
+ end
2220
+
2221
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
2222
+ def future_action_times=(value)
2223
+ end
2224
+
2225
+ sig { void }
2226
+ def clear_future_action_times
2227
+ end
2228
+
2229
+ # Size of the schedule's internal state (including payloads) in bytes.
2230
+ sig { returns(Integer) }
2231
+ def state_size_bytes
2232
+ end
2233
+
2234
+ # Size of the schedule's internal state (including payloads) in bytes.
2235
+ sig { params(value: Integer).void }
2236
+ def state_size_bytes=(value)
2237
+ end
2238
+
2239
+ # Size of the schedule's internal state (including payloads) in bytes.
2240
+ sig { void }
2241
+ def clear_state_size_bytes
2242
+ end
2243
+
2244
+ sig { params(field: String).returns(T.untyped) }
2245
+ def [](field)
2246
+ end
2247
+
2248
+ sig { params(field: String, value: T.untyped).void }
2249
+ def []=(field, value)
2250
+ end
2251
+
2252
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2253
+ def to_h
2254
+ end
2255
+
2256
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::ScheduleListInfo) }
2257
+ def self.decode(str)
2258
+ end
2259
+
2260
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleListInfo).returns(String) }
2261
+ def self.encode(msg)
2262
+ end
2263
+
2264
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::ScheduleListInfo) }
2265
+ def self.decode_json(str, **kw)
2266
+ end
2267
+
2268
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleListInfo, kw: T.untyped).returns(String) }
2269
+ def self.encode_json(msg, **kw)
2270
+ end
2271
+
2272
+ sig { returns(::Google::Protobuf::Descriptor) }
2273
+ def self.descriptor
2274
+ end
2275
+ end
2276
+
2277
+ # ScheduleListEntry is returned by ListSchedules.
2278
+ class Temporalio::Api::Schedule::V1::ScheduleListEntry
2279
+ include ::Google::Protobuf::MessageExts
2280
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2281
+
2282
+ sig do
2283
+ params(
2284
+ schedule_id: T.nilable(String),
2285
+ memo: T.nilable(Temporalio::Api::Common::V1::Memo),
2286
+ search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
2287
+ info: T.nilable(Temporalio::Api::Schedule::V1::ScheduleListInfo)
2288
+ ).void
2289
+ end
2290
+ def initialize(
2291
+ schedule_id: "",
2292
+ memo: nil,
2293
+ search_attributes: nil,
2294
+ info: nil
2295
+ )
2296
+ end
2297
+
2298
+ sig { returns(String) }
2299
+ def schedule_id
2300
+ end
2301
+
2302
+ sig { params(value: String).void }
2303
+ def schedule_id=(value)
2304
+ end
2305
+
2306
+ sig { void }
2307
+ def clear_schedule_id
2308
+ end
2309
+
2310
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Memo)) }
2311
+ def memo
2312
+ end
2313
+
2314
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Memo)).void }
2315
+ def memo=(value)
2316
+ end
2317
+
2318
+ sig { void }
2319
+ def clear_memo
2320
+ end
2321
+
2322
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
2323
+ def search_attributes
2324
+ end
2325
+
2326
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
2327
+ def search_attributes=(value)
2328
+ end
2329
+
2330
+ sig { void }
2331
+ def clear_search_attributes
2332
+ end
2333
+
2334
+ sig { returns(T.nilable(Temporalio::Api::Schedule::V1::ScheduleListInfo)) }
2335
+ def info
2336
+ end
2337
+
2338
+ sig { params(value: T.nilable(Temporalio::Api::Schedule::V1::ScheduleListInfo)).void }
2339
+ def info=(value)
2340
+ end
2341
+
2342
+ sig { void }
2343
+ def clear_info
2344
+ end
2345
+
2346
+ sig { params(field: String).returns(T.untyped) }
2347
+ def [](field)
2348
+ end
2349
+
2350
+ sig { params(field: String, value: T.untyped).void }
2351
+ def []=(field, value)
2352
+ end
2353
+
2354
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2355
+ def to_h
2356
+ end
2357
+
2358
+ sig { params(str: String).returns(Temporalio::Api::Schedule::V1::ScheduleListEntry) }
2359
+ def self.decode(str)
2360
+ end
2361
+
2362
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleListEntry).returns(String) }
2363
+ def self.encode(msg)
2364
+ end
2365
+
2366
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Schedule::V1::ScheduleListEntry) }
2367
+ def self.decode_json(str, **kw)
2368
+ end
2369
+
2370
+ sig { params(msg: Temporalio::Api::Schedule::V1::ScheduleListEntry, kw: T.untyped).returns(String) }
2371
+ def self.encode_json(msg, **kw)
2372
+ end
2373
+
2374
+ sig { returns(::Google::Protobuf::Descriptor) }
2375
+ def self.descriptor
2376
+ end
2377
+ end