temporalio 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/bridge/Cargo.lock +20 -20
  3. data/bridge/Cargo.toml +3 -3
  4. data/lib/temporalio/bridge.rb +1 -1
  5. data/lib/temporalio/version.rb +1 -1
  6. data/lib/thermite_patch.rb +10 -0
  7. data/sig/async.rbs +17 -0
  8. data/sig/protobuf.rbs +16 -0
  9. data/sig/protos/dependencies/gogoproto/gogo.rbs +914 -0
  10. data/sig/protos/google/protobuf/any.rbs +157 -0
  11. data/sig/protos/google/protobuf/descriptor.rbs +2825 -0
  12. data/sig/protos/google/protobuf/duration.rbs +114 -0
  13. data/sig/protos/google/protobuf/empty.rbs +36 -0
  14. data/sig/protos/google/protobuf/timestamp.rbs +145 -0
  15. data/sig/protos/google/protobuf/wrappers.rbs +358 -0
  16. data/sig/protos/temporal/api/batch/v1/message.rbs +300 -0
  17. data/sig/protos/temporal/api/command/v1/message.rbs +1399 -0
  18. data/sig/protos/temporal/api/common/v1/message.rbs +528 -0
  19. data/sig/protos/temporal/api/enums/v1/batch_operation.rbs +79 -0
  20. data/sig/protos/temporal/api/enums/v1/command_type.rbs +68 -0
  21. data/sig/protos/temporal/api/enums/v1/common.rbs +118 -0
  22. data/sig/protos/temporal/api/enums/v1/event_type.rbs +264 -0
  23. data/sig/protos/temporal/api/enums/v1/failed_cause.rbs +277 -0
  24. data/sig/protos/temporal/api/enums/v1/namespace.rbs +108 -0
  25. data/sig/protos/temporal/api/enums/v1/query.rbs +81 -0
  26. data/sig/protos/temporal/api/enums/v1/reset.rbs +44 -0
  27. data/sig/protos/temporal/api/enums/v1/schedule.rbs +72 -0
  28. data/sig/protos/temporal/api/enums/v1/task_queue.rbs +92 -0
  29. data/sig/protos/temporal/api/enums/v1/update.rbs +64 -0
  30. data/sig/protos/temporal/api/enums/v1/workflow.rbs +371 -0
  31. data/sig/protos/temporal/api/errordetails/v1/message.rbs +551 -0
  32. data/sig/protos/temporal/api/failure/v1/message.rbs +581 -0
  33. data/sig/protos/temporal/api/filter/v1/message.rbs +171 -0
  34. data/sig/protos/temporal/api/history/v1/message.rbs +4609 -0
  35. data/sig/protos/temporal/api/namespace/v1/message.rbs +410 -0
  36. data/sig/protos/temporal/api/operatorservice/v1/request_response.rbs +643 -0
  37. data/sig/protos/temporal/api/operatorservice/v1/service.rbs +17 -0
  38. data/sig/protos/temporal/api/protocol/v1/message.rbs +84 -0
  39. data/sig/protos/temporal/api/query/v1/message.rbs +182 -0
  40. data/sig/protos/temporal/api/replication/v1/message.rbs +148 -0
  41. data/sig/protos/temporal/api/schedule/v1/message.rbs +1488 -0
  42. data/sig/protos/temporal/api/sdk/v1/task_complete_metadata.rbs +110 -0
  43. data/sig/protos/temporal/api/taskqueue/v1/message.rbs +486 -0
  44. data/sig/protos/temporal/api/testservice/v1/request_response.rbs +249 -0
  45. data/sig/protos/temporal/api/testservice/v1/service.rbs +15 -0
  46. data/sig/protos/temporal/api/update/v1/message.rbs +489 -0
  47. data/sig/protos/temporal/api/version/v1/message.rbs +184 -0
  48. data/sig/protos/temporal/api/workflow/v1/message.rbs +824 -0
  49. data/sig/protos/temporal/api/workflowservice/v1/request_response.rbs +7250 -0
  50. data/sig/protos/temporal/api/workflowservice/v1/service.rbs +22 -0
  51. data/sig/protos/temporal/sdk/core/activity_result/activity_result.rbs +380 -0
  52. data/sig/protos/temporal/sdk/core/activity_task/activity_task.rbs +386 -0
  53. data/sig/protos/temporal/sdk/core/child_workflow/child_workflow.rbs +323 -0
  54. data/sig/protos/temporal/sdk/core/common/common.rbs +62 -0
  55. data/sig/protos/temporal/sdk/core/core_interface.rbs +101 -0
  56. data/sig/protos/temporal/sdk/core/external_data/external_data.rbs +119 -0
  57. data/sig/protos/temporal/sdk/core/workflow_activation/workflow_activation.rbs +1473 -0
  58. data/sig/protos/temporal/sdk/core/workflow_commands/workflow_commands.rbs +1784 -0
  59. data/sig/protos/temporal/sdk/core/workflow_completion/workflow_completion.rbs +180 -0
  60. data/sig/ruby.rbs +12 -0
  61. data/sig/temporalio/activity/context.rbs +29 -0
  62. data/sig/temporalio/activity/info.rbs +43 -0
  63. data/sig/temporalio/activity.rbs +19 -0
  64. data/sig/temporalio/bridge/connect_options.rbs +19 -0
  65. data/sig/temporalio/bridge/error.rbs +8 -0
  66. data/sig/temporalio/bridge/retry_config.rbs +21 -0
  67. data/sig/temporalio/bridge/tls_options.rbs +17 -0
  68. data/sig/temporalio/bridge.rbs +71 -0
  69. data/sig/temporalio/client/implementation.rbs +38 -0
  70. data/sig/temporalio/client/workflow_handle.rbs +41 -0
  71. data/sig/temporalio/client.rbs +35 -0
  72. data/sig/temporalio/connection/retry_config.rbs +37 -0
  73. data/sig/temporalio/connection/service.rbs +14 -0
  74. data/sig/temporalio/connection/test_service.rbs +13 -0
  75. data/sig/temporalio/connection/tls_options.rbs +43 -0
  76. data/sig/temporalio/connection/workflow_service.rbs +48 -0
  77. data/sig/temporalio/connection.rbs +30 -0
  78. data/sig/temporalio/data_converter.rbs +35 -0
  79. data/sig/temporalio/error/failure.rbs +121 -0
  80. data/sig/temporalio/error/workflow_failure.rbs +9 -0
  81. data/sig/temporalio/errors.rbs +36 -0
  82. data/sig/temporalio/failure_converter/base.rbs +12 -0
  83. data/sig/temporalio/failure_converter/basic.rbs +86 -0
  84. data/sig/temporalio/failure_converter.rbs +5 -0
  85. data/sig/temporalio/interceptor/activity_inbound.rbs +21 -0
  86. data/sig/temporalio/interceptor/activity_outbound.rbs +10 -0
  87. data/sig/temporalio/interceptor/chain.rbs +24 -0
  88. data/sig/temporalio/interceptor/client.rbs +148 -0
  89. data/sig/temporalio/interceptor.rbs +6 -0
  90. data/sig/temporalio/payload_codec/base.rbs +12 -0
  91. data/sig/temporalio/payload_converter/base.rbs +12 -0
  92. data/sig/temporalio/payload_converter/bytes.rbs +9 -0
  93. data/sig/temporalio/payload_converter/composite.rbs +19 -0
  94. data/sig/temporalio/payload_converter/encoding_base.rbs +14 -0
  95. data/sig/temporalio/payload_converter/json.rbs +9 -0
  96. data/sig/temporalio/payload_converter/nil.rbs +9 -0
  97. data/sig/temporalio/payload_converter.rbs +5 -0
  98. data/sig/temporalio/retry_policy.rbs +25 -0
  99. data/sig/temporalio/retry_state.rbs +20 -0
  100. data/sig/temporalio/runtime.rbs +12 -0
  101. data/sig/temporalio/testing/time_skipping_handle.rbs +15 -0
  102. data/sig/temporalio/testing/time_skipping_interceptor.rbs +13 -0
  103. data/sig/temporalio/testing/workflow_environment.rbs +22 -0
  104. data/sig/temporalio/testing.rbs +35 -0
  105. data/sig/temporalio/timeout_type.rbs +15 -0
  106. data/sig/temporalio/version.rbs +3 -0
  107. data/sig/temporalio/worker/activity_runner.rbs +35 -0
  108. data/sig/temporalio/worker/activity_worker.rbs +44 -0
  109. data/sig/temporalio/worker/reactor.rbs +22 -0
  110. data/sig/temporalio/worker/runner.rbs +21 -0
  111. data/sig/temporalio/worker/sync_worker.rbs +23 -0
  112. data/sig/temporalio/worker/thread_pool_executor.rbs +23 -0
  113. data/sig/temporalio/worker.rbs +46 -0
  114. data/sig/temporalio/workflow/async.rbs +9 -0
  115. data/sig/temporalio/workflow/execution_info.rbs +55 -0
  116. data/sig/temporalio/workflow/execution_status.rbs +21 -0
  117. data/sig/temporalio/workflow/future.rbs +40 -0
  118. data/sig/temporalio/workflow/id_reuse_policy.rbs +15 -0
  119. data/sig/temporalio/workflow/info.rbs +55 -0
  120. data/sig/temporalio/workflow/query_reject_condition.rbs +14 -0
  121. data/sig/temporalio.rbs +2 -0
  122. data/sig/thermite_patch.rbs +15 -0
  123. data/temporalio.gemspec +2 -1
  124. metadata +118 -2
@@ -0,0 +1,1784 @@
1
+ module Temporalio
2
+ module Bridge
3
+ module Api
4
+ module WorkflowCommands
5
+ class ActivityCancellationType < ::Protobuf::Enum
6
+ type names = :TRY_CANCEL | :WAIT_CANCELLATION_COMPLETED | :ABANDON
7
+
8
+ type strings = "TRY_CANCEL" | "WAIT_CANCELLATION_COMPLETED" | "ABANDON"
9
+
10
+ type tags = 0 | 1 | 2
11
+
12
+ type values = names | strings | tags
13
+
14
+ attr_reader name(): names
15
+
16
+ attr_reader tag(): tags
17
+
18
+ # / Initiate a cancellation request and immediately report cancellation to the workflow.
19
+ #
20
+ TRY_CANCEL: ActivityCancellationType
21
+
22
+ # / Wait for activity cancellation completion. Note that activity must heartbeat to receive a
23
+ # / cancellation notification. This can block the cancellation for a long time if activity
24
+ # / doesn't heartbeat or chooses to ignore the cancellation request.
25
+ #
26
+ WAIT_CANCELLATION_COMPLETED: ActivityCancellationType
27
+
28
+ # / Do not request cancellation of the activity and immediately report cancellation to the
29
+ # / workflow
30
+ #
31
+ ABANDON: ActivityCancellationType
32
+
33
+ # The type of `#initialize` parameter.
34
+ type init = ActivityCancellationType | values
35
+
36
+ # The type of `repeated` field.
37
+ type field_array = ::Protobuf::Field::FieldArray[ActivityCancellationType, ActivityCancellationType | values]
38
+
39
+ # The type of `map` field.
40
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ActivityCancellationType, ActivityCancellationType | values]
41
+
42
+ type array = ::Array[ActivityCancellationType | values]
43
+
44
+ type hash[KEY] = ::Hash[KEY, ActivityCancellationType | values]
45
+ end
46
+
47
+ class WorkflowCommand < ::Protobuf::Message
48
+ # Encode the message to a binary string
49
+ #
50
+ def self.encode: (WorkflowCommand) -> String
51
+
52
+ attr_accessor start_timer(): ::Temporalio::Bridge::Api::WorkflowCommands::StartTimer?
53
+
54
+ def start_timer=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::StartTimer::_ToProto] (M?) -> M?
55
+ | ...
56
+
57
+ def start_timer!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::StartTimer?
58
+
59
+ attr_accessor schedule_activity(): ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleActivity?
60
+
61
+ def schedule_activity=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleActivity::_ToProto] (M?) -> M?
62
+ | ...
63
+
64
+ def schedule_activity!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleActivity?
65
+
66
+ attr_accessor respond_to_query(): ::Temporalio::Bridge::Api::WorkflowCommands::QueryResult?
67
+
68
+ def respond_to_query=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::QueryResult::_ToProto] (M?) -> M?
69
+ | ...
70
+
71
+ def respond_to_query!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::QueryResult?
72
+
73
+ attr_accessor request_cancel_activity(): ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelActivity?
74
+
75
+ def request_cancel_activity=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelActivity::_ToProto] (M?) -> M?
76
+ | ...
77
+
78
+ def request_cancel_activity!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelActivity?
79
+
80
+ attr_accessor cancel_timer(): ::Temporalio::Bridge::Api::WorkflowCommands::CancelTimer?
81
+
82
+ def cancel_timer=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::CancelTimer::_ToProto] (M?) -> M?
83
+ | ...
84
+
85
+ def cancel_timer!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelTimer?
86
+
87
+ attr_accessor complete_workflow_execution(): ::Temporalio::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution?
88
+
89
+ def complete_workflow_execution=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution::_ToProto] (M?) -> M?
90
+ | ...
91
+
92
+ def complete_workflow_execution!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution?
93
+
94
+ attr_accessor fail_workflow_execution(): ::Temporalio::Bridge::Api::WorkflowCommands::FailWorkflowExecution?
95
+
96
+ def fail_workflow_execution=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::FailWorkflowExecution::_ToProto] (M?) -> M?
97
+ | ...
98
+
99
+ def fail_workflow_execution!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::FailWorkflowExecution?
100
+
101
+ attr_accessor continue_as_new_workflow_execution(): ::Temporalio::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution?
102
+
103
+ def continue_as_new_workflow_execution=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution::_ToProto] (M?) -> M?
104
+ | ...
105
+
106
+ def continue_as_new_workflow_execution!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution?
107
+
108
+ attr_accessor cancel_workflow_execution(): ::Temporalio::Bridge::Api::WorkflowCommands::CancelWorkflowExecution?
109
+
110
+ def cancel_workflow_execution=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::CancelWorkflowExecution::_ToProto] (M?) -> M?
111
+ | ...
112
+
113
+ def cancel_workflow_execution!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelWorkflowExecution?
114
+
115
+ attr_accessor set_patch_marker(): ::Temporalio::Bridge::Api::WorkflowCommands::SetPatchMarker?
116
+
117
+ def set_patch_marker=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::SetPatchMarker::_ToProto] (M?) -> M?
118
+ | ...
119
+
120
+ def set_patch_marker!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::SetPatchMarker?
121
+
122
+ attr_accessor start_child_workflow_execution(): ::Temporalio::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution?
123
+
124
+ def start_child_workflow_execution=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution::_ToProto] (M?) -> M?
125
+ | ...
126
+
127
+ def start_child_workflow_execution!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution?
128
+
129
+ attr_accessor cancel_child_workflow_execution(): ::Temporalio::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution?
130
+
131
+ def cancel_child_workflow_execution=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution::_ToProto] (M?) -> M?
132
+ | ...
133
+
134
+ def cancel_child_workflow_execution!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution?
135
+
136
+ attr_accessor request_cancel_external_workflow_execution(): ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution?
137
+
138
+ def request_cancel_external_workflow_execution=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution::_ToProto] (M?) -> M?
139
+ | ...
140
+
141
+ def request_cancel_external_workflow_execution!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution?
142
+
143
+ attr_accessor signal_external_workflow_execution(): ::Temporalio::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution?
144
+
145
+ def signal_external_workflow_execution=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution::_ToProto] (M?) -> M?
146
+ | ...
147
+
148
+ def signal_external_workflow_execution!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution?
149
+
150
+ attr_accessor cancel_signal_workflow(): ::Temporalio::Bridge::Api::WorkflowCommands::CancelSignalWorkflow?
151
+
152
+ def cancel_signal_workflow=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::CancelSignalWorkflow::_ToProto] (M?) -> M?
153
+ | ...
154
+
155
+ def cancel_signal_workflow!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelSignalWorkflow?
156
+
157
+ attr_accessor schedule_local_activity(): ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleLocalActivity?
158
+
159
+ def schedule_local_activity=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleLocalActivity::_ToProto] (M?) -> M?
160
+ | ...
161
+
162
+ def schedule_local_activity!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleLocalActivity?
163
+
164
+ attr_accessor request_cancel_local_activity(): ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity?
165
+
166
+ def request_cancel_local_activity=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity::_ToProto] (M?) -> M?
167
+ | ...
168
+
169
+ def request_cancel_local_activity!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity?
170
+
171
+ attr_accessor upsert_workflow_search_attributes(): ::Temporalio::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes?
172
+
173
+ def upsert_workflow_search_attributes=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes::_ToProto] (M?) -> M?
174
+ | ...
175
+
176
+ def upsert_workflow_search_attributes!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes?
177
+
178
+ attr_accessor modify_workflow_properties(): ::Temporalio::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties?
179
+
180
+ def modify_workflow_properties=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties::_ToProto] (M?) -> M?
181
+ | ...
182
+
183
+ def modify_workflow_properties!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties?
184
+
185
+ def initialize: (?start_timer: ::Temporalio::Bridge::Api::WorkflowCommands::StartTimer::init?, ?schedule_activity: ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleActivity::init?, ?respond_to_query: ::Temporalio::Bridge::Api::WorkflowCommands::QueryResult::init?, ?request_cancel_activity: ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelActivity::init?, ?cancel_timer: ::Temporalio::Bridge::Api::WorkflowCommands::CancelTimer::init?, ?complete_workflow_execution: ::Temporalio::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution::init?, ?fail_workflow_execution: ::Temporalio::Bridge::Api::WorkflowCommands::FailWorkflowExecution::init?, ?continue_as_new_workflow_execution: ::Temporalio::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution::init?, ?cancel_workflow_execution: ::Temporalio::Bridge::Api::WorkflowCommands::CancelWorkflowExecution::init?, ?set_patch_marker: ::Temporalio::Bridge::Api::WorkflowCommands::SetPatchMarker::init?, ?start_child_workflow_execution: ::Temporalio::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution::init?, ?cancel_child_workflow_execution: ::Temporalio::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution::init?, ?request_cancel_external_workflow_execution: ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution::init?, ?signal_external_workflow_execution: ::Temporalio::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution::init?, ?cancel_signal_workflow: ::Temporalio::Bridge::Api::WorkflowCommands::CancelSignalWorkflow::init?, ?schedule_local_activity: ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleLocalActivity::init?, ?request_cancel_local_activity: ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity::init?, ?upsert_workflow_search_attributes: ::Temporalio::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes::init?, ?modify_workflow_properties: ::Temporalio::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties::init?) -> void
186
+
187
+ def []: (:start_timer) -> ::Temporalio::Bridge::Api::WorkflowCommands::StartTimer?
188
+ | (:schedule_activity) -> ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleActivity?
189
+ | (:respond_to_query) -> ::Temporalio::Bridge::Api::WorkflowCommands::QueryResult?
190
+ | (:request_cancel_activity) -> ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelActivity?
191
+ | (:cancel_timer) -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelTimer?
192
+ | (:complete_workflow_execution) -> ::Temporalio::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution?
193
+ | (:fail_workflow_execution) -> ::Temporalio::Bridge::Api::WorkflowCommands::FailWorkflowExecution?
194
+ | (:continue_as_new_workflow_execution) -> ::Temporalio::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution?
195
+ | (:cancel_workflow_execution) -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelWorkflowExecution?
196
+ | (:set_patch_marker) -> ::Temporalio::Bridge::Api::WorkflowCommands::SetPatchMarker?
197
+ | (:start_child_workflow_execution) -> ::Temporalio::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution?
198
+ | (:cancel_child_workflow_execution) -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution?
199
+ | (:request_cancel_external_workflow_execution) -> ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution?
200
+ | (:signal_external_workflow_execution) -> ::Temporalio::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution?
201
+ | (:cancel_signal_workflow) -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelSignalWorkflow?
202
+ | (:schedule_local_activity) -> ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleLocalActivity?
203
+ | (:request_cancel_local_activity) -> ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity?
204
+ | (:upsert_workflow_search_attributes) -> ::Temporalio::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes?
205
+ | (:modify_workflow_properties) -> ::Temporalio::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties?
206
+ | (::Symbol) -> untyped
207
+
208
+ def []=: (:start_timer, ::Temporalio::Bridge::Api::WorkflowCommands::StartTimer?) -> ::Temporalio::Bridge::Api::WorkflowCommands::StartTimer?
209
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::StartTimer::_ToProto] (:start_timer, M?) -> M?
210
+ | (:schedule_activity, ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleActivity?) -> ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleActivity?
211
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleActivity::_ToProto] (:schedule_activity, M?) -> M?
212
+ | (:respond_to_query, ::Temporalio::Bridge::Api::WorkflowCommands::QueryResult?) -> ::Temporalio::Bridge::Api::WorkflowCommands::QueryResult?
213
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::QueryResult::_ToProto] (:respond_to_query, M?) -> M?
214
+ | (:request_cancel_activity, ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelActivity?) -> ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelActivity?
215
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelActivity::_ToProto] (:request_cancel_activity, M?) -> M?
216
+ | (:cancel_timer, ::Temporalio::Bridge::Api::WorkflowCommands::CancelTimer?) -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelTimer?
217
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::CancelTimer::_ToProto] (:cancel_timer, M?) -> M?
218
+ | (:complete_workflow_execution, ::Temporalio::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution?) -> ::Temporalio::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution?
219
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution::_ToProto] (:complete_workflow_execution, M?) -> M?
220
+ | (:fail_workflow_execution, ::Temporalio::Bridge::Api::WorkflowCommands::FailWorkflowExecution?) -> ::Temporalio::Bridge::Api::WorkflowCommands::FailWorkflowExecution?
221
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::FailWorkflowExecution::_ToProto] (:fail_workflow_execution, M?) -> M?
222
+ | (:continue_as_new_workflow_execution, ::Temporalio::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution?) -> ::Temporalio::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution?
223
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution::_ToProto] (:continue_as_new_workflow_execution, M?) -> M?
224
+ | (:cancel_workflow_execution, ::Temporalio::Bridge::Api::WorkflowCommands::CancelWorkflowExecution?) -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelWorkflowExecution?
225
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::CancelWorkflowExecution::_ToProto] (:cancel_workflow_execution, M?) -> M?
226
+ | (:set_patch_marker, ::Temporalio::Bridge::Api::WorkflowCommands::SetPatchMarker?) -> ::Temporalio::Bridge::Api::WorkflowCommands::SetPatchMarker?
227
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::SetPatchMarker::_ToProto] (:set_patch_marker, M?) -> M?
228
+ | (:start_child_workflow_execution, ::Temporalio::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution?) -> ::Temporalio::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution?
229
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution::_ToProto] (:start_child_workflow_execution, M?) -> M?
230
+ | (:cancel_child_workflow_execution, ::Temporalio::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution?) -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution?
231
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution::_ToProto] (:cancel_child_workflow_execution, M?) -> M?
232
+ | (:request_cancel_external_workflow_execution, ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution?) -> ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution?
233
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution::_ToProto] (:request_cancel_external_workflow_execution, M?) -> M?
234
+ | (:signal_external_workflow_execution, ::Temporalio::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution?) -> ::Temporalio::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution?
235
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution::_ToProto] (:signal_external_workflow_execution, M?) -> M?
236
+ | (:cancel_signal_workflow, ::Temporalio::Bridge::Api::WorkflowCommands::CancelSignalWorkflow?) -> ::Temporalio::Bridge::Api::WorkflowCommands::CancelSignalWorkflow?
237
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::CancelSignalWorkflow::_ToProto] (:cancel_signal_workflow, M?) -> M?
238
+ | (:schedule_local_activity, ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleLocalActivity?) -> ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleLocalActivity?
239
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::ScheduleLocalActivity::_ToProto] (:schedule_local_activity, M?) -> M?
240
+ | (:request_cancel_local_activity, ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity?) -> ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity?
241
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity::_ToProto] (:request_cancel_local_activity, M?) -> M?
242
+ | (:upsert_workflow_search_attributes, ::Temporalio::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes?) -> ::Temporalio::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes?
243
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes::_ToProto] (:upsert_workflow_search_attributes, M?) -> M?
244
+ | (:modify_workflow_properties, ::Temporalio::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties?) -> ::Temporalio::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties?
245
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties::_ToProto] (:modify_workflow_properties, M?) -> M?
246
+ | (::Symbol, untyped) -> untyped
247
+
248
+ interface _ToProto
249
+ def to_proto: () -> WorkflowCommand
250
+ end
251
+
252
+ # The type of `#initialize` parameter.
253
+ type init = WorkflowCommand | _ToProto
254
+
255
+ # The type of `repeated` field.
256
+ type field_array = ::Protobuf::Field::FieldArray[WorkflowCommand, WorkflowCommand | _ToProto]
257
+
258
+ # The type of `map` field.
259
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, WorkflowCommand, WorkflowCommand | _ToProto]
260
+
261
+ type array = ::Array[WorkflowCommand | _ToProto]
262
+
263
+ type hash[KEY] = ::Hash[KEY, WorkflowCommand | _ToProto]
264
+ end
265
+
266
+ class StartTimer < ::Protobuf::Message
267
+ # Encode the message to a binary string
268
+ #
269
+ def self.encode: (StartTimer) -> String
270
+
271
+ # / Lang's incremental sequence number, used as the operation identifier
272
+ #
273
+ attr_accessor seq(): ::Integer
274
+
275
+ def seq!: () -> ::Integer?
276
+
277
+ attr_accessor start_to_fire_timeout(): ::Google::Protobuf::Duration?
278
+
279
+ def start_to_fire_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
280
+ | ...
281
+
282
+ def start_to_fire_timeout!: () -> ::Google::Protobuf::Duration?
283
+
284
+ def initialize: (?seq: ::Integer, ?start_to_fire_timeout: ::Google::Protobuf::Duration::init?) -> void
285
+
286
+ def []: (:seq) -> ::Integer
287
+ | (:start_to_fire_timeout) -> ::Google::Protobuf::Duration?
288
+ | (::Symbol) -> untyped
289
+
290
+ def []=: (:seq, ::Integer) -> ::Integer
291
+ | (:start_to_fire_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
292
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:start_to_fire_timeout, M?) -> M?
293
+ | (::Symbol, untyped) -> untyped
294
+
295
+ interface _ToProto
296
+ def to_proto: () -> StartTimer
297
+ end
298
+
299
+ # The type of `#initialize` parameter.
300
+ type init = StartTimer | _ToProto
301
+
302
+ # The type of `repeated` field.
303
+ type field_array = ::Protobuf::Field::FieldArray[StartTimer, StartTimer | _ToProto]
304
+
305
+ # The type of `map` field.
306
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, StartTimer, StartTimer | _ToProto]
307
+
308
+ type array = ::Array[StartTimer | _ToProto]
309
+
310
+ type hash[KEY] = ::Hash[KEY, StartTimer | _ToProto]
311
+ end
312
+
313
+ class CancelTimer < ::Protobuf::Message
314
+ # Encode the message to a binary string
315
+ #
316
+ def self.encode: (CancelTimer) -> String
317
+
318
+ # / Lang's incremental sequence number as passed to `StartTimer`
319
+ #
320
+ attr_accessor seq(): ::Integer
321
+
322
+ def seq!: () -> ::Integer?
323
+
324
+ def initialize: (?seq: ::Integer) -> void
325
+
326
+ def []: (:seq) -> ::Integer
327
+ | (::Symbol) -> untyped
328
+
329
+ def []=: (:seq, ::Integer) -> ::Integer
330
+ | (::Symbol, untyped) -> untyped
331
+
332
+ interface _ToProto
333
+ def to_proto: () -> CancelTimer
334
+ end
335
+
336
+ # The type of `#initialize` parameter.
337
+ type init = CancelTimer | _ToProto
338
+
339
+ # The type of `repeated` field.
340
+ type field_array = ::Protobuf::Field::FieldArray[CancelTimer, CancelTimer | _ToProto]
341
+
342
+ # The type of `map` field.
343
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, CancelTimer, CancelTimer | _ToProto]
344
+
345
+ type array = ::Array[CancelTimer | _ToProto]
346
+
347
+ type hash[KEY] = ::Hash[KEY, CancelTimer | _ToProto]
348
+ end
349
+
350
+ class ScheduleActivity < ::Protobuf::Message
351
+ # Encode the message to a binary string
352
+ #
353
+ def self.encode: (ScheduleActivity) -> String
354
+
355
+ # / Lang's incremental sequence number, used as the operation identifier
356
+ #
357
+ attr_accessor seq(): ::Integer
358
+
359
+ def seq!: () -> ::Integer?
360
+
361
+ attr_accessor activity_id(): ::String
362
+
363
+ def activity_id!: () -> ::String?
364
+
365
+ attr_accessor activity_type(): ::String
366
+
367
+ def activity_type!: () -> ::String?
368
+
369
+ # The name of the task queue to place this activity request in
370
+ #
371
+ attr_accessor task_queue(): ::String
372
+
373
+ def task_queue!: () -> ::String?
374
+
375
+ attr_accessor headers(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
376
+
377
+ def headers=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
378
+ | ...
379
+
380
+ def headers!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
381
+
382
+ # / Arguments/input to the activity. Called "input" upstream.
383
+ #
384
+ attr_accessor arguments(): ::Temporalio::Api::Common::V1::Payload::field_array
385
+
386
+ # / Arguments/input to the activity. Called "input" upstream.
387
+ #
388
+ def arguments=: (::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
389
+ | ...
390
+
391
+ def arguments!: () -> ::Temporalio::Api::Common::V1::Payload::field_array?
392
+
393
+ # / Indicates how long the caller is willing to wait for an activity completion. Limits how long
394
+ # / retries will be attempted. Either this or start_to_close_timeout_seconds must be specified.
395
+ # / When not specified defaults to the workflow execution timeout.
396
+ #
397
+ attr_accessor schedule_to_close_timeout(): ::Google::Protobuf::Duration?
398
+
399
+ # / Indicates how long the caller is willing to wait for an activity completion. Limits how long
400
+ # / retries will be attempted. Either this or start_to_close_timeout_seconds must be specified.
401
+ # / When not specified defaults to the workflow execution timeout.
402
+ #
403
+ def schedule_to_close_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
404
+ | ...
405
+
406
+ def schedule_to_close_timeout!: () -> ::Google::Protobuf::Duration?
407
+
408
+ # / Limits time an activity task can stay in a task queue before a worker picks it up. This
409
+ # / timeout is always non retryable as all a retry would achieve is to put it back into the same
410
+ # / queue. Defaults to schedule_to_close_timeout or workflow execution timeout if not specified.
411
+ #
412
+ attr_accessor schedule_to_start_timeout(): ::Google::Protobuf::Duration?
413
+
414
+ # / Limits time an activity task can stay in a task queue before a worker picks it up. This
415
+ # / timeout is always non retryable as all a retry would achieve is to put it back into the same
416
+ # / queue. Defaults to schedule_to_close_timeout or workflow execution timeout if not specified.
417
+ #
418
+ def schedule_to_start_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
419
+ | ...
420
+
421
+ def schedule_to_start_timeout!: () -> ::Google::Protobuf::Duration?
422
+
423
+ # / Maximum time an activity is allowed to execute after a pick up by a worker. This timeout is
424
+ # / always retryable. Either this or schedule_to_close_timeout must be specified.
425
+ #
426
+ attr_accessor start_to_close_timeout(): ::Google::Protobuf::Duration?
427
+
428
+ # / Maximum time an activity is allowed to execute after a pick up by a worker. This timeout is
429
+ # / always retryable. Either this or schedule_to_close_timeout must be specified.
430
+ #
431
+ def start_to_close_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
432
+ | ...
433
+
434
+ def start_to_close_timeout!: () -> ::Google::Protobuf::Duration?
435
+
436
+ # / Maximum time allowed between successful worker heartbeats.
437
+ #
438
+ attr_accessor heartbeat_timeout(): ::Google::Protobuf::Duration?
439
+
440
+ # / Maximum time allowed between successful worker heartbeats.
441
+ #
442
+ def heartbeat_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
443
+ | ...
444
+
445
+ def heartbeat_timeout!: () -> ::Google::Protobuf::Duration?
446
+
447
+ # / Activities are provided by a default retry policy controlled through the service dynamic
448
+ # / configuration. Retries are happening up to schedule_to_close_timeout. To disable retries set
449
+ # / retry_policy.maximum_attempts to 1.
450
+ #
451
+ attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy?
452
+
453
+ # / Activities are provided by a default retry policy controlled through the service dynamic
454
+ # / configuration. Retries are happening up to schedule_to_close_timeout. To disable retries set
455
+ # / retry_policy.maximum_attempts to 1.
456
+ #
457
+ def retry_policy=: [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (M?) -> M?
458
+ | ...
459
+
460
+ def retry_policy!: () -> ::Temporalio::Api::Common::V1::RetryPolicy?
461
+
462
+ # / Defines how the workflow will wait (or not) for cancellation of the activity to be confirmed
463
+ #
464
+ attr_accessor cancellation_type(): ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType
465
+
466
+ # / Defines how the workflow will wait (or not) for cancellation of the activity to be confirmed
467
+ #
468
+ def cancellation_type=: (::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::values) -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::values
469
+ | ...
470
+
471
+ def cancellation_type!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType?
472
+
473
+ # / If set, the worker will not tell the service that it can immediately start executing this
474
+ # / activity. When unset/default, workers will always attempt to do so if activity execution
475
+ # / slots are available.
476
+ #
477
+ attr_accessor do_not_eagerly_execute(): bool
478
+
479
+ def do_not_eagerly_execute!: () -> bool?
480
+
481
+ def initialize: (?seq: ::Integer, ?activity_id: ::String, ?activity_type: ::String, ?task_queue: ::String, ?headers: ::Temporalio::Api::Common::V1::Payload::hash[::String], ?arguments: ::Temporalio::Api::Common::V1::Payload::array, ?schedule_to_close_timeout: ::Google::Protobuf::Duration::init?, ?schedule_to_start_timeout: ::Google::Protobuf::Duration::init?, ?start_to_close_timeout: ::Google::Protobuf::Duration::init?, ?heartbeat_timeout: ::Google::Protobuf::Duration::init?, ?retry_policy: ::Temporalio::Api::Common::V1::RetryPolicy::init?, ?cancellation_type: ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::init, ?do_not_eagerly_execute: bool) -> void
482
+
483
+ def []: (:seq) -> ::Integer
484
+ | (:activity_id) -> ::String
485
+ | (:activity_type) -> ::String
486
+ | (:task_queue) -> ::String
487
+ | (:headers) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
488
+ | (:arguments) -> ::Temporalio::Api::Common::V1::Payload::field_array
489
+ | (:schedule_to_close_timeout) -> ::Google::Protobuf::Duration?
490
+ | (:schedule_to_start_timeout) -> ::Google::Protobuf::Duration?
491
+ | (:start_to_close_timeout) -> ::Google::Protobuf::Duration?
492
+ | (:heartbeat_timeout) -> ::Google::Protobuf::Duration?
493
+ | (:retry_policy) -> ::Temporalio::Api::Common::V1::RetryPolicy?
494
+ | (:cancellation_type) -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType
495
+ | (:do_not_eagerly_execute) -> bool
496
+ | (::Symbol) -> untyped
497
+
498
+ def []=: (:seq, ::Integer) -> ::Integer
499
+ | (:activity_id, ::String) -> ::String
500
+ | (:activity_type, ::String) -> ::String
501
+ | (:task_queue, ::String) -> ::String
502
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
503
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
504
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::field_array) -> ::Temporalio::Api::Common::V1::Payload::field_array
505
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
506
+ | (:schedule_to_close_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
507
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:schedule_to_close_timeout, M?) -> M?
508
+ | (:schedule_to_start_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
509
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:schedule_to_start_timeout, M?) -> M?
510
+ | (:start_to_close_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
511
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:start_to_close_timeout, M?) -> M?
512
+ | (:heartbeat_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
513
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:heartbeat_timeout, M?) -> M?
514
+ | (:retry_policy, ::Temporalio::Api::Common::V1::RetryPolicy?) -> ::Temporalio::Api::Common::V1::RetryPolicy?
515
+ | [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (:retry_policy, M?) -> M?
516
+ | (:cancellation_type, ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType) -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType
517
+ | (:cancellation_type, ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::values) -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::values
518
+ | (:do_not_eagerly_execute, bool) -> bool
519
+ | (::Symbol, untyped) -> untyped
520
+
521
+ def do_not_eagerly_execute?: () -> bool
522
+
523
+ interface _ToProto
524
+ def to_proto: () -> ScheduleActivity
525
+ end
526
+
527
+ # The type of `#initialize` parameter.
528
+ type init = ScheduleActivity | _ToProto
529
+
530
+ # The type of `repeated` field.
531
+ type field_array = ::Protobuf::Field::FieldArray[ScheduleActivity, ScheduleActivity | _ToProto]
532
+
533
+ # The type of `map` field.
534
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ScheduleActivity, ScheduleActivity | _ToProto]
535
+
536
+ type array = ::Array[ScheduleActivity | _ToProto]
537
+
538
+ type hash[KEY] = ::Hash[KEY, ScheduleActivity | _ToProto]
539
+ end
540
+
541
+ class ScheduleLocalActivity < ::Protobuf::Message
542
+ # Encode the message to a binary string
543
+ #
544
+ def self.encode: (ScheduleLocalActivity) -> String
545
+
546
+ # / Lang's incremental sequence number, used as the operation identifier
547
+ #
548
+ attr_accessor seq(): ::Integer
549
+
550
+ def seq!: () -> ::Integer?
551
+
552
+ attr_accessor activity_id(): ::String
553
+
554
+ def activity_id!: () -> ::String?
555
+
556
+ attr_accessor activity_type(): ::String
557
+
558
+ def activity_type!: () -> ::String?
559
+
560
+ # / Local activities can start with a non-1 attempt, if lang has been told to backoff using
561
+ # / a timer before retrying. It should pass the attempt number from a `DoBackoff` activity
562
+ # / resolution.
563
+ #
564
+ attr_accessor attempt(): ::Integer
565
+
566
+ def attempt!: () -> ::Integer?
567
+
568
+ # / If this local activity is a retry (as per the attempt field) this needs to be the original
569
+ # / scheduling time (as provided in `DoBackoff`)
570
+ #
571
+ attr_accessor original_schedule_time(): ::Google::Protobuf::Timestamp?
572
+
573
+ # / If this local activity is a retry (as per the attempt field) this needs to be the original
574
+ # / scheduling time (as provided in `DoBackoff`)
575
+ #
576
+ def original_schedule_time=: [M < ::Google::Protobuf::Timestamp::_ToProto] (M?) -> M?
577
+ | ...
578
+
579
+ def original_schedule_time!: () -> ::Google::Protobuf::Timestamp?
580
+
581
+ attr_accessor headers(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
582
+
583
+ def headers=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
584
+ | ...
585
+
586
+ def headers!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
587
+
588
+ # / Arguments/input to the activity.
589
+ #
590
+ attr_accessor arguments(): ::Temporalio::Api::Common::V1::Payload::field_array
591
+
592
+ # / Arguments/input to the activity.
593
+ #
594
+ def arguments=: (::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
595
+ | ...
596
+
597
+ def arguments!: () -> ::Temporalio::Api::Common::V1::Payload::field_array?
598
+
599
+ # / Indicates how long the caller is willing to wait for local activity completion. Limits how
600
+ # / long retries will be attempted. When not specified defaults to the workflow execution
601
+ # / timeout (which may be unset).
602
+ #
603
+ attr_accessor schedule_to_close_timeout(): ::Google::Protobuf::Duration?
604
+
605
+ # / Indicates how long the caller is willing to wait for local activity completion. Limits how
606
+ # / long retries will be attempted. When not specified defaults to the workflow execution
607
+ # / timeout (which may be unset).
608
+ #
609
+ def schedule_to_close_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
610
+ | ...
611
+
612
+ def schedule_to_close_timeout!: () -> ::Google::Protobuf::Duration?
613
+
614
+ # / Limits time the local activity can idle internally before being executed. That can happen if
615
+ # / the worker is currently at max concurrent local activity executions. This timeout is always
616
+ # / non retryable as all a retry would achieve is to put it back into the same queue. Defaults
617
+ # / to `schedule_to_close_timeout` if not specified and that is set. Must be <=
618
+ # / `schedule_to_close_timeout` when set, otherwise, it will be clamped down.
619
+ #
620
+ attr_accessor schedule_to_start_timeout(): ::Google::Protobuf::Duration?
621
+
622
+ # / Limits time the local activity can idle internally before being executed. That can happen if
623
+ # / the worker is currently at max concurrent local activity executions. This timeout is always
624
+ # / non retryable as all a retry would achieve is to put it back into the same queue. Defaults
625
+ # / to `schedule_to_close_timeout` if not specified and that is set. Must be <=
626
+ # / `schedule_to_close_timeout` when set, otherwise, it will be clamped down.
627
+ #
628
+ def schedule_to_start_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
629
+ | ...
630
+
631
+ def schedule_to_start_timeout!: () -> ::Google::Protobuf::Duration?
632
+
633
+ # / Maximum time the local activity is allowed to execute after the task is dispatched. This
634
+ # / timeout is always retryable. Either or both of `schedule_to_close_timeout` and this must be
635
+ # / specified. If set, this must be <= `schedule_to_close_timeout`, otherwise, it will be
636
+ # / clamped down.
637
+ #
638
+ attr_accessor start_to_close_timeout(): ::Google::Protobuf::Duration?
639
+
640
+ # / Maximum time the local activity is allowed to execute after the task is dispatched. This
641
+ # / timeout is always retryable. Either or both of `schedule_to_close_timeout` and this must be
642
+ # / specified. If set, this must be <= `schedule_to_close_timeout`, otherwise, it will be
643
+ # / clamped down.
644
+ #
645
+ def start_to_close_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
646
+ | ...
647
+
648
+ def start_to_close_timeout!: () -> ::Google::Protobuf::Duration?
649
+
650
+ # / Specify a retry policy for the local activity. By default local activities will be retried
651
+ # / indefinitely.
652
+ #
653
+ attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy?
654
+
655
+ # / Specify a retry policy for the local activity. By default local activities will be retried
656
+ # / indefinitely.
657
+ #
658
+ def retry_policy=: [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (M?) -> M?
659
+ | ...
660
+
661
+ def retry_policy!: () -> ::Temporalio::Api::Common::V1::RetryPolicy?
662
+
663
+ # / If the activity is retrying and backoff would exceed this value, lang will be told to
664
+ # / schedule a timer and retry the activity after. Otherwise, backoff will happen internally in
665
+ # / core. Defaults to 1 minute.
666
+ #
667
+ attr_accessor local_retry_threshold(): ::Google::Protobuf::Duration?
668
+
669
+ # / If the activity is retrying and backoff would exceed this value, lang will be told to
670
+ # / schedule a timer and retry the activity after. Otherwise, backoff will happen internally in
671
+ # / core. Defaults to 1 minute.
672
+ #
673
+ def local_retry_threshold=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
674
+ | ...
675
+
676
+ def local_retry_threshold!: () -> ::Google::Protobuf::Duration?
677
+
678
+ # / Defines how the workflow will wait (or not) for cancellation of the activity to be
679
+ # / confirmed. Lang should default this to `WAIT_CANCELLATION_COMPLETED`, even though proto
680
+ # / will default to `TRY_CANCEL` automatically.
681
+ #
682
+ attr_accessor cancellation_type(): ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType
683
+
684
+ # / Defines how the workflow will wait (or not) for cancellation of the activity to be
685
+ # / confirmed. Lang should default this to `WAIT_CANCELLATION_COMPLETED`, even though proto
686
+ # / will default to `TRY_CANCEL` automatically.
687
+ #
688
+ def cancellation_type=: (::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::values) -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::values
689
+ | ...
690
+
691
+ def cancellation_type!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType?
692
+
693
+ def initialize: (?seq: ::Integer, ?activity_id: ::String, ?activity_type: ::String, ?attempt: ::Integer, ?original_schedule_time: ::Google::Protobuf::Timestamp::init?, ?headers: ::Temporalio::Api::Common::V1::Payload::hash[::String], ?arguments: ::Temporalio::Api::Common::V1::Payload::array, ?schedule_to_close_timeout: ::Google::Protobuf::Duration::init?, ?schedule_to_start_timeout: ::Google::Protobuf::Duration::init?, ?start_to_close_timeout: ::Google::Protobuf::Duration::init?, ?retry_policy: ::Temporalio::Api::Common::V1::RetryPolicy::init?, ?local_retry_threshold: ::Google::Protobuf::Duration::init?, ?cancellation_type: ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::init) -> void
694
+
695
+ def []: (:seq) -> ::Integer
696
+ | (:activity_id) -> ::String
697
+ | (:activity_type) -> ::String
698
+ | (:attempt) -> ::Integer
699
+ | (:original_schedule_time) -> ::Google::Protobuf::Timestamp?
700
+ | (:headers) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
701
+ | (:arguments) -> ::Temporalio::Api::Common::V1::Payload::field_array
702
+ | (:schedule_to_close_timeout) -> ::Google::Protobuf::Duration?
703
+ | (:schedule_to_start_timeout) -> ::Google::Protobuf::Duration?
704
+ | (:start_to_close_timeout) -> ::Google::Protobuf::Duration?
705
+ | (:retry_policy) -> ::Temporalio::Api::Common::V1::RetryPolicy?
706
+ | (:local_retry_threshold) -> ::Google::Protobuf::Duration?
707
+ | (:cancellation_type) -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType
708
+ | (::Symbol) -> untyped
709
+
710
+ def []=: (:seq, ::Integer) -> ::Integer
711
+ | (:activity_id, ::String) -> ::String
712
+ | (:activity_type, ::String) -> ::String
713
+ | (:attempt, ::Integer) -> ::Integer
714
+ | (:original_schedule_time, ::Google::Protobuf::Timestamp?) -> ::Google::Protobuf::Timestamp?
715
+ | [M < ::Google::Protobuf::Timestamp::_ToProto] (:original_schedule_time, M?) -> M?
716
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
717
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
718
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::field_array) -> ::Temporalio::Api::Common::V1::Payload::field_array
719
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
720
+ | (:schedule_to_close_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
721
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:schedule_to_close_timeout, M?) -> M?
722
+ | (:schedule_to_start_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
723
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:schedule_to_start_timeout, M?) -> M?
724
+ | (:start_to_close_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
725
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:start_to_close_timeout, M?) -> M?
726
+ | (:retry_policy, ::Temporalio::Api::Common::V1::RetryPolicy?) -> ::Temporalio::Api::Common::V1::RetryPolicy?
727
+ | [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (:retry_policy, M?) -> M?
728
+ | (:local_retry_threshold, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
729
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:local_retry_threshold, M?) -> M?
730
+ | (:cancellation_type, ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType) -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType
731
+ | (:cancellation_type, ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::values) -> ::Temporalio::Bridge::Api::WorkflowCommands::ActivityCancellationType::values
732
+ | (::Symbol, untyped) -> untyped
733
+
734
+ interface _ToProto
735
+ def to_proto: () -> ScheduleLocalActivity
736
+ end
737
+
738
+ # The type of `#initialize` parameter.
739
+ type init = ScheduleLocalActivity | _ToProto
740
+
741
+ # The type of `repeated` field.
742
+ type field_array = ::Protobuf::Field::FieldArray[ScheduleLocalActivity, ScheduleLocalActivity | _ToProto]
743
+
744
+ # The type of `map` field.
745
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ScheduleLocalActivity, ScheduleLocalActivity | _ToProto]
746
+
747
+ type array = ::Array[ScheduleLocalActivity | _ToProto]
748
+
749
+ type hash[KEY] = ::Hash[KEY, ScheduleLocalActivity | _ToProto]
750
+ end
751
+
752
+ class RequestCancelActivity < ::Protobuf::Message
753
+ # Encode the message to a binary string
754
+ #
755
+ def self.encode: (RequestCancelActivity) -> String
756
+
757
+ # / Lang's incremental sequence number as passed to `ScheduleActivity`
758
+ #
759
+ attr_accessor seq(): ::Integer
760
+
761
+ def seq!: () -> ::Integer?
762
+
763
+ def initialize: (?seq: ::Integer) -> void
764
+
765
+ def []: (:seq) -> ::Integer
766
+ | (::Symbol) -> untyped
767
+
768
+ def []=: (:seq, ::Integer) -> ::Integer
769
+ | (::Symbol, untyped) -> untyped
770
+
771
+ interface _ToProto
772
+ def to_proto: () -> RequestCancelActivity
773
+ end
774
+
775
+ # The type of `#initialize` parameter.
776
+ type init = RequestCancelActivity | _ToProto
777
+
778
+ # The type of `repeated` field.
779
+ type field_array = ::Protobuf::Field::FieldArray[RequestCancelActivity, RequestCancelActivity | _ToProto]
780
+
781
+ # The type of `map` field.
782
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, RequestCancelActivity, RequestCancelActivity | _ToProto]
783
+
784
+ type array = ::Array[RequestCancelActivity | _ToProto]
785
+
786
+ type hash[KEY] = ::Hash[KEY, RequestCancelActivity | _ToProto]
787
+ end
788
+
789
+ class RequestCancelLocalActivity < ::Protobuf::Message
790
+ # Encode the message to a binary string
791
+ #
792
+ def self.encode: (RequestCancelLocalActivity) -> String
793
+
794
+ # / Lang's incremental sequence number as passed to `ScheduleLocalActivity`
795
+ #
796
+ attr_accessor seq(): ::Integer
797
+
798
+ def seq!: () -> ::Integer?
799
+
800
+ def initialize: (?seq: ::Integer) -> void
801
+
802
+ def []: (:seq) -> ::Integer
803
+ | (::Symbol) -> untyped
804
+
805
+ def []=: (:seq, ::Integer) -> ::Integer
806
+ | (::Symbol, untyped) -> untyped
807
+
808
+ interface _ToProto
809
+ def to_proto: () -> RequestCancelLocalActivity
810
+ end
811
+
812
+ # The type of `#initialize` parameter.
813
+ type init = RequestCancelLocalActivity | _ToProto
814
+
815
+ # The type of `repeated` field.
816
+ type field_array = ::Protobuf::Field::FieldArray[RequestCancelLocalActivity, RequestCancelLocalActivity | _ToProto]
817
+
818
+ # The type of `map` field.
819
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, RequestCancelLocalActivity, RequestCancelLocalActivity | _ToProto]
820
+
821
+ type array = ::Array[RequestCancelLocalActivity | _ToProto]
822
+
823
+ type hash[KEY] = ::Hash[KEY, RequestCancelLocalActivity | _ToProto]
824
+ end
825
+
826
+ class QueryResult < ::Protobuf::Message
827
+ # Encode the message to a binary string
828
+ #
829
+ def self.encode: (QueryResult) -> String
830
+
831
+ # / Corresponds to the id provided in the activation job
832
+ #
833
+ attr_accessor query_id(): ::String
834
+
835
+ def query_id!: () -> ::String?
836
+
837
+ attr_accessor succeeded(): ::Temporalio::Bridge::Api::WorkflowCommands::QuerySuccess?
838
+
839
+ def succeeded=: [M < ::Temporalio::Bridge::Api::WorkflowCommands::QuerySuccess::_ToProto] (M?) -> M?
840
+ | ...
841
+
842
+ def succeeded!: () -> ::Temporalio::Bridge::Api::WorkflowCommands::QuerySuccess?
843
+
844
+ attr_accessor failed(): ::Temporalio::Api::Failure::V1::Failure?
845
+
846
+ def failed=: [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (M?) -> M?
847
+ | ...
848
+
849
+ def failed!: () -> ::Temporalio::Api::Failure::V1::Failure?
850
+
851
+ def initialize: (?query_id: ::String, ?succeeded: ::Temporalio::Bridge::Api::WorkflowCommands::QuerySuccess::init?, ?failed: ::Temporalio::Api::Failure::V1::Failure::init?) -> void
852
+
853
+ def []: (:query_id) -> ::String
854
+ | (:succeeded) -> ::Temporalio::Bridge::Api::WorkflowCommands::QuerySuccess?
855
+ | (:failed) -> ::Temporalio::Api::Failure::V1::Failure?
856
+ | (::Symbol) -> untyped
857
+
858
+ def []=: (:query_id, ::String) -> ::String
859
+ | (:succeeded, ::Temporalio::Bridge::Api::WorkflowCommands::QuerySuccess?) -> ::Temporalio::Bridge::Api::WorkflowCommands::QuerySuccess?
860
+ | [M < ::Temporalio::Bridge::Api::WorkflowCommands::QuerySuccess::_ToProto] (:succeeded, M?) -> M?
861
+ | (:failed, ::Temporalio::Api::Failure::V1::Failure?) -> ::Temporalio::Api::Failure::V1::Failure?
862
+ | [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (:failed, M?) -> M?
863
+ | (::Symbol, untyped) -> untyped
864
+
865
+ interface _ToProto
866
+ def to_proto: () -> QueryResult
867
+ end
868
+
869
+ # The type of `#initialize` parameter.
870
+ type init = QueryResult | _ToProto
871
+
872
+ # The type of `repeated` field.
873
+ type field_array = ::Protobuf::Field::FieldArray[QueryResult, QueryResult | _ToProto]
874
+
875
+ # The type of `map` field.
876
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, QueryResult, QueryResult | _ToProto]
877
+
878
+ type array = ::Array[QueryResult | _ToProto]
879
+
880
+ type hash[KEY] = ::Hash[KEY, QueryResult | _ToProto]
881
+ end
882
+
883
+ class QuerySuccess < ::Protobuf::Message
884
+ # Encode the message to a binary string
885
+ #
886
+ def self.encode: (QuerySuccess) -> String
887
+
888
+ attr_accessor response(): ::Temporalio::Api::Common::V1::Payload?
889
+
890
+ def response=: [M < ::Temporalio::Api::Common::V1::Payload::_ToProto] (M?) -> M?
891
+ | ...
892
+
893
+ def response!: () -> ::Temporalio::Api::Common::V1::Payload?
894
+
895
+ def initialize: (?response: ::Temporalio::Api::Common::V1::Payload::init?) -> void
896
+
897
+ def []: (:response) -> ::Temporalio::Api::Common::V1::Payload?
898
+ | (::Symbol) -> untyped
899
+
900
+ def []=: (:response, ::Temporalio::Api::Common::V1::Payload?) -> ::Temporalio::Api::Common::V1::Payload?
901
+ | [M < ::Temporalio::Api::Common::V1::Payload::_ToProto] (:response, M?) -> M?
902
+ | (::Symbol, untyped) -> untyped
903
+
904
+ interface _ToProto
905
+ def to_proto: () -> QuerySuccess
906
+ end
907
+
908
+ # The type of `#initialize` parameter.
909
+ type init = QuerySuccess | _ToProto
910
+
911
+ # The type of `repeated` field.
912
+ type field_array = ::Protobuf::Field::FieldArray[QuerySuccess, QuerySuccess | _ToProto]
913
+
914
+ # The type of `map` field.
915
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, QuerySuccess, QuerySuccess | _ToProto]
916
+
917
+ type array = ::Array[QuerySuccess | _ToProto]
918
+
919
+ type hash[KEY] = ::Hash[KEY, QuerySuccess | _ToProto]
920
+ end
921
+
922
+ # / Issued when the workflow completes successfully
923
+ #
924
+ class CompleteWorkflowExecution < ::Protobuf::Message
925
+ # Encode the message to a binary string
926
+ #
927
+ def self.encode: (CompleteWorkflowExecution) -> String
928
+
929
+ attr_accessor result(): ::Temporalio::Api::Common::V1::Payload?
930
+
931
+ def result=: [M < ::Temporalio::Api::Common::V1::Payload::_ToProto] (M?) -> M?
932
+ | ...
933
+
934
+ def result!: () -> ::Temporalio::Api::Common::V1::Payload?
935
+
936
+ def initialize: (?result: ::Temporalio::Api::Common::V1::Payload::init?) -> void
937
+
938
+ def []: (:result) -> ::Temporalio::Api::Common::V1::Payload?
939
+ | (::Symbol) -> untyped
940
+
941
+ def []=: (:result, ::Temporalio::Api::Common::V1::Payload?) -> ::Temporalio::Api::Common::V1::Payload?
942
+ | [M < ::Temporalio::Api::Common::V1::Payload::_ToProto] (:result, M?) -> M?
943
+ | (::Symbol, untyped) -> untyped
944
+
945
+ interface _ToProto
946
+ def to_proto: () -> CompleteWorkflowExecution
947
+ end
948
+
949
+ # The type of `#initialize` parameter.
950
+ type init = CompleteWorkflowExecution | _ToProto
951
+
952
+ # The type of `repeated` field.
953
+ type field_array = ::Protobuf::Field::FieldArray[CompleteWorkflowExecution, CompleteWorkflowExecution | _ToProto]
954
+
955
+ # The type of `map` field.
956
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, CompleteWorkflowExecution, CompleteWorkflowExecution | _ToProto]
957
+
958
+ type array = ::Array[CompleteWorkflowExecution | _ToProto]
959
+
960
+ type hash[KEY] = ::Hash[KEY, CompleteWorkflowExecution | _ToProto]
961
+ end
962
+
963
+ # / Issued when the workflow errors out
964
+ #
965
+ class FailWorkflowExecution < ::Protobuf::Message
966
+ # Encode the message to a binary string
967
+ #
968
+ def self.encode: (FailWorkflowExecution) -> String
969
+
970
+ attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure?
971
+
972
+ def failure=: [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (M?) -> M?
973
+ | ...
974
+
975
+ def failure!: () -> ::Temporalio::Api::Failure::V1::Failure?
976
+
977
+ def initialize: (?failure: ::Temporalio::Api::Failure::V1::Failure::init?) -> void
978
+
979
+ def []: (:failure) -> ::Temporalio::Api::Failure::V1::Failure?
980
+ | (::Symbol) -> untyped
981
+
982
+ def []=: (:failure, ::Temporalio::Api::Failure::V1::Failure?) -> ::Temporalio::Api::Failure::V1::Failure?
983
+ | [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (:failure, M?) -> M?
984
+ | (::Symbol, untyped) -> untyped
985
+
986
+ interface _ToProto
987
+ def to_proto: () -> FailWorkflowExecution
988
+ end
989
+
990
+ # The type of `#initialize` parameter.
991
+ type init = FailWorkflowExecution | _ToProto
992
+
993
+ # The type of `repeated` field.
994
+ type field_array = ::Protobuf::Field::FieldArray[FailWorkflowExecution, FailWorkflowExecution | _ToProto]
995
+
996
+ # The type of `map` field.
997
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, FailWorkflowExecution, FailWorkflowExecution | _ToProto]
998
+
999
+ type array = ::Array[FailWorkflowExecution | _ToProto]
1000
+
1001
+ type hash[KEY] = ::Hash[KEY, FailWorkflowExecution | _ToProto]
1002
+ end
1003
+
1004
+ # Continue the workflow as a new execution
1005
+ #
1006
+ class ContinueAsNewWorkflowExecution < ::Protobuf::Message
1007
+ # Encode the message to a binary string
1008
+ #
1009
+ def self.encode: (ContinueAsNewWorkflowExecution) -> String
1010
+
1011
+ # The identifier the lang-specific sdk uses to execute workflow code
1012
+ #
1013
+ attr_accessor workflow_type(): ::String
1014
+
1015
+ def workflow_type!: () -> ::String?
1016
+
1017
+ # Task queue for the new workflow execution
1018
+ #
1019
+ attr_accessor task_queue(): ::String
1020
+
1021
+ def task_queue!: () -> ::String?
1022
+
1023
+ # Inputs to the workflow code. Should be specified. Will not re-use old arguments, as that
1024
+ # typically wouldn't make any sense.
1025
+ #
1026
+ attr_accessor arguments(): ::Temporalio::Api::Common::V1::Payload::field_array
1027
+
1028
+ # Inputs to the workflow code. Should be specified. Will not re-use old arguments, as that
1029
+ # typically wouldn't make any sense.
1030
+ #
1031
+ def arguments=: (::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1032
+ | ...
1033
+
1034
+ def arguments!: () -> ::Temporalio::Api::Common::V1::Payload::field_array?
1035
+
1036
+ # Timeout for a single run of the new workflow. Will not re-use current workflow's value.
1037
+ #
1038
+ attr_accessor workflow_run_timeout(): ::Google::Protobuf::Duration?
1039
+
1040
+ # Timeout for a single run of the new workflow. Will not re-use current workflow's value.
1041
+ #
1042
+ def workflow_run_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
1043
+ | ...
1044
+
1045
+ def workflow_run_timeout!: () -> ::Google::Protobuf::Duration?
1046
+
1047
+ # Timeout of a single workflow task. Will not re-use current workflow's value.
1048
+ #
1049
+ attr_accessor workflow_task_timeout(): ::Google::Protobuf::Duration?
1050
+
1051
+ # Timeout of a single workflow task. Will not re-use current workflow's value.
1052
+ #
1053
+ def workflow_task_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
1054
+ | ...
1055
+
1056
+ def workflow_task_timeout!: () -> ::Google::Protobuf::Duration?
1057
+
1058
+ # If set, the new workflow will have this memo. If unset, re-uses the current workflow's memo
1059
+ #
1060
+ attr_accessor memo(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1061
+
1062
+ # If set, the new workflow will have this memo. If unset, re-uses the current workflow's memo
1063
+ #
1064
+ def memo=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1065
+ | ...
1066
+
1067
+ def memo!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1068
+
1069
+ # If set, the new workflow will have these headers. Will *not* re-use current workflow's
1070
+ # headers otherwise.
1071
+ #
1072
+ attr_accessor headers(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1073
+
1074
+ # If set, the new workflow will have these headers. Will *not* re-use current workflow's
1075
+ # headers otherwise.
1076
+ #
1077
+ def headers=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1078
+ | ...
1079
+
1080
+ def headers!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1081
+
1082
+ # If set, the new workflow will have these search attributes. If unset, re-uses the current
1083
+ # workflow's search attributes.
1084
+ #
1085
+ attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1086
+
1087
+ # If set, the new workflow will have these search attributes. If unset, re-uses the current
1088
+ # workflow's search attributes.
1089
+ #
1090
+ def search_attributes=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1091
+ | ...
1092
+
1093
+ def search_attributes!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1094
+
1095
+ # If set, the new workflow will have this retry policy. If unset, re-uses the current
1096
+ # workflow's retry policy.
1097
+ #
1098
+ attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy?
1099
+
1100
+ # If set, the new workflow will have this retry policy. If unset, re-uses the current
1101
+ # workflow's retry policy.
1102
+ #
1103
+ def retry_policy=: [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (M?) -> M?
1104
+ | ...
1105
+
1106
+ def retry_policy!: () -> ::Temporalio::Api::Common::V1::RetryPolicy?
1107
+
1108
+ def initialize: (?workflow_type: ::String, ?task_queue: ::String, ?arguments: ::Temporalio::Api::Common::V1::Payload::array, ?workflow_run_timeout: ::Google::Protobuf::Duration::init?, ?workflow_task_timeout: ::Google::Protobuf::Duration::init?, ?memo: ::Temporalio::Api::Common::V1::Payload::hash[::String], ?headers: ::Temporalio::Api::Common::V1::Payload::hash[::String], ?search_attributes: ::Temporalio::Api::Common::V1::Payload::hash[::String], ?retry_policy: ::Temporalio::Api::Common::V1::RetryPolicy::init?) -> void
1109
+
1110
+ def []: (:workflow_type) -> ::String
1111
+ | (:task_queue) -> ::String
1112
+ | (:arguments) -> ::Temporalio::Api::Common::V1::Payload::field_array
1113
+ | (:workflow_run_timeout) -> ::Google::Protobuf::Duration?
1114
+ | (:workflow_task_timeout) -> ::Google::Protobuf::Duration?
1115
+ | (:memo) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1116
+ | (:headers) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1117
+ | (:search_attributes) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1118
+ | (:retry_policy) -> ::Temporalio::Api::Common::V1::RetryPolicy?
1119
+ | (::Symbol) -> untyped
1120
+
1121
+ def []=: (:workflow_type, ::String) -> ::String
1122
+ | (:task_queue, ::String) -> ::String
1123
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::field_array) -> ::Temporalio::Api::Common::V1::Payload::field_array
1124
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1125
+ | (:workflow_run_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
1126
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:workflow_run_timeout, M?) -> M?
1127
+ | (:workflow_task_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
1128
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:workflow_task_timeout, M?) -> M?
1129
+ | (:memo, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1130
+ | (:memo, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1131
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1132
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1133
+ | (:search_attributes, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1134
+ | (:search_attributes, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1135
+ | (:retry_policy, ::Temporalio::Api::Common::V1::RetryPolicy?) -> ::Temporalio::Api::Common::V1::RetryPolicy?
1136
+ | [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (:retry_policy, M?) -> M?
1137
+ | (::Symbol, untyped) -> untyped
1138
+
1139
+ interface _ToProto
1140
+ def to_proto: () -> ContinueAsNewWorkflowExecution
1141
+ end
1142
+
1143
+ # The type of `#initialize` parameter.
1144
+ type init = ContinueAsNewWorkflowExecution | _ToProto
1145
+
1146
+ # The type of `repeated` field.
1147
+ type field_array = ::Protobuf::Field::FieldArray[ContinueAsNewWorkflowExecution, ContinueAsNewWorkflowExecution | _ToProto]
1148
+
1149
+ # The type of `map` field.
1150
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ContinueAsNewWorkflowExecution, ContinueAsNewWorkflowExecution | _ToProto]
1151
+
1152
+ type array = ::Array[ContinueAsNewWorkflowExecution | _ToProto]
1153
+
1154
+ type hash[KEY] = ::Hash[KEY, ContinueAsNewWorkflowExecution | _ToProto]
1155
+ end
1156
+
1157
+ # / Indicate a workflow has completed as cancelled. Generally sent as a response to an activation
1158
+ # / containing a cancellation job.
1159
+ #
1160
+ class CancelWorkflowExecution < ::Protobuf::Message
1161
+ # Encode the message to a binary string
1162
+ #
1163
+ def self.encode: (CancelWorkflowExecution) -> String
1164
+
1165
+ def initialize: () -> void
1166
+
1167
+ interface _ToProto
1168
+ def to_proto: () -> CancelWorkflowExecution
1169
+ end
1170
+
1171
+ # The type of `#initialize` parameter.
1172
+ type init = CancelWorkflowExecution | _ToProto
1173
+
1174
+ # The type of `repeated` field.
1175
+ type field_array = ::Protobuf::Field::FieldArray[CancelWorkflowExecution, CancelWorkflowExecution | _ToProto]
1176
+
1177
+ # The type of `map` field.
1178
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, CancelWorkflowExecution, CancelWorkflowExecution | _ToProto]
1179
+
1180
+ type array = ::Array[CancelWorkflowExecution | _ToProto]
1181
+
1182
+ type hash[KEY] = ::Hash[KEY, CancelWorkflowExecution | _ToProto]
1183
+ end
1184
+
1185
+ # / A request to set/check if a certain patch is present or not
1186
+ #
1187
+ class SetPatchMarker < ::Protobuf::Message
1188
+ # Encode the message to a binary string
1189
+ #
1190
+ def self.encode: (SetPatchMarker) -> String
1191
+
1192
+ # A user-chosen identifier for this patch. If the same identifier is used in multiple places in
1193
+ # the code, those places are considered to be versioned as one unit. IE: The check call will
1194
+ # return the same result for all of them
1195
+ #
1196
+ attr_accessor patch_id(): ::String
1197
+
1198
+ def patch_id!: () -> ::String?
1199
+
1200
+ # Can be set to true to indicate that branches using this change are being removed, and all
1201
+ # future worker deployments will only have the "with change" code in them.
1202
+ #
1203
+ attr_accessor deprecated(): bool
1204
+
1205
+ def deprecated!: () -> bool?
1206
+
1207
+ def initialize: (?patch_id: ::String, ?deprecated: bool) -> void
1208
+
1209
+ def []: (:patch_id) -> ::String
1210
+ | (:deprecated) -> bool
1211
+ | (::Symbol) -> untyped
1212
+
1213
+ def []=: (:patch_id, ::String) -> ::String
1214
+ | (:deprecated, bool) -> bool
1215
+ | (::Symbol, untyped) -> untyped
1216
+
1217
+ def deprecated?: () -> bool
1218
+
1219
+ interface _ToProto
1220
+ def to_proto: () -> SetPatchMarker
1221
+ end
1222
+
1223
+ # The type of `#initialize` parameter.
1224
+ type init = SetPatchMarker | _ToProto
1225
+
1226
+ # The type of `repeated` field.
1227
+ type field_array = ::Protobuf::Field::FieldArray[SetPatchMarker, SetPatchMarker | _ToProto]
1228
+
1229
+ # The type of `map` field.
1230
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, SetPatchMarker, SetPatchMarker | _ToProto]
1231
+
1232
+ type array = ::Array[SetPatchMarker | _ToProto]
1233
+
1234
+ type hash[KEY] = ::Hash[KEY, SetPatchMarker | _ToProto]
1235
+ end
1236
+
1237
+ # / Start a child workflow execution
1238
+ #
1239
+ class StartChildWorkflowExecution < ::Protobuf::Message
1240
+ # Encode the message to a binary string
1241
+ #
1242
+ def self.encode: (StartChildWorkflowExecution) -> String
1243
+
1244
+ # / Lang's incremental sequence number, used as the operation identifier
1245
+ #
1246
+ attr_accessor seq(): ::Integer
1247
+
1248
+ def seq!: () -> ::Integer?
1249
+
1250
+ attr_accessor namespace(): ::String
1251
+
1252
+ def namespace!: () -> ::String?
1253
+
1254
+ attr_accessor workflow_id(): ::String
1255
+
1256
+ def workflow_id!: () -> ::String?
1257
+
1258
+ attr_accessor workflow_type(): ::String
1259
+
1260
+ def workflow_type!: () -> ::String?
1261
+
1262
+ attr_accessor task_queue(): ::String
1263
+
1264
+ def task_queue!: () -> ::String?
1265
+
1266
+ attr_accessor input(): ::Temporalio::Api::Common::V1::Payload::field_array
1267
+
1268
+ def input=: (::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1269
+ | ...
1270
+
1271
+ def input!: () -> ::Temporalio::Api::Common::V1::Payload::field_array?
1272
+
1273
+ # / Total workflow execution timeout including retries and continue as new.
1274
+ #
1275
+ attr_accessor workflow_execution_timeout(): ::Google::Protobuf::Duration?
1276
+
1277
+ # / Total workflow execution timeout including retries and continue as new.
1278
+ #
1279
+ def workflow_execution_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
1280
+ | ...
1281
+
1282
+ def workflow_execution_timeout!: () -> ::Google::Protobuf::Duration?
1283
+
1284
+ # / Timeout of a single workflow run.
1285
+ #
1286
+ attr_accessor workflow_run_timeout(): ::Google::Protobuf::Duration?
1287
+
1288
+ # / Timeout of a single workflow run.
1289
+ #
1290
+ def workflow_run_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
1291
+ | ...
1292
+
1293
+ def workflow_run_timeout!: () -> ::Google::Protobuf::Duration?
1294
+
1295
+ # / Timeout of a single workflow task.
1296
+ #
1297
+ attr_accessor workflow_task_timeout(): ::Google::Protobuf::Duration?
1298
+
1299
+ # / Timeout of a single workflow task.
1300
+ #
1301
+ def workflow_task_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
1302
+ | ...
1303
+
1304
+ def workflow_task_timeout!: () -> ::Google::Protobuf::Duration?
1305
+
1306
+ # / Default: PARENT_CLOSE_POLICY_TERMINATE.
1307
+ #
1308
+ attr_accessor parent_close_policy(): ::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy
1309
+
1310
+ # / Default: PARENT_CLOSE_POLICY_TERMINATE.
1311
+ #
1312
+ def parent_close_policy=: (::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy::values) -> ::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy::values
1313
+ | ...
1314
+
1315
+ def parent_close_policy!: () -> ::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy?
1316
+
1317
+ # string control = 11; (unused from StartChildWorkflowExecutionCommandAttributes)
1318
+ # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
1319
+ #
1320
+ attr_accessor workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy
1321
+
1322
+ # string control = 11; (unused from StartChildWorkflowExecutionCommandAttributes)
1323
+ # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
1324
+ #
1325
+ def workflow_id_reuse_policy=: (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::values) -> ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::values
1326
+ | ...
1327
+
1328
+ def workflow_id_reuse_policy!: () -> ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy?
1329
+
1330
+ attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy?
1331
+
1332
+ def retry_policy=: [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (M?) -> M?
1333
+ | ...
1334
+
1335
+ def retry_policy!: () -> ::Temporalio::Api::Common::V1::RetryPolicy?
1336
+
1337
+ attr_accessor cron_schedule(): ::String
1338
+
1339
+ def cron_schedule!: () -> ::String?
1340
+
1341
+ # / Header fields
1342
+ #
1343
+ attr_accessor headers(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1344
+
1345
+ # / Header fields
1346
+ #
1347
+ def headers=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1348
+ | ...
1349
+
1350
+ def headers!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1351
+
1352
+ # / Memo fields
1353
+ #
1354
+ attr_accessor memo(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1355
+
1356
+ # / Memo fields
1357
+ #
1358
+ def memo=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1359
+ | ...
1360
+
1361
+ def memo!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1362
+
1363
+ # / Search attributes
1364
+ #
1365
+ attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1366
+
1367
+ # / Search attributes
1368
+ #
1369
+ def search_attributes=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1370
+ | ...
1371
+
1372
+ def search_attributes!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1373
+
1374
+ # / Defines behaviour of the underlying workflow when child workflow cancellation has been requested.
1375
+ #
1376
+ attr_accessor cancellation_type(): ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType
1377
+
1378
+ # / Defines behaviour of the underlying workflow when child workflow cancellation has been requested.
1379
+ #
1380
+ def cancellation_type=: (::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::values) -> ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::values
1381
+ | ...
1382
+
1383
+ def cancellation_type!: () -> ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType?
1384
+
1385
+ def initialize: (?seq: ::Integer, ?namespace: ::String, ?workflow_id: ::String, ?workflow_type: ::String, ?task_queue: ::String, ?input: ::Temporalio::Api::Common::V1::Payload::array, ?workflow_execution_timeout: ::Google::Protobuf::Duration::init?, ?workflow_run_timeout: ::Google::Protobuf::Duration::init?, ?workflow_task_timeout: ::Google::Protobuf::Duration::init?, ?parent_close_policy: ::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy::init, ?workflow_id_reuse_policy: ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::init, ?retry_policy: ::Temporalio::Api::Common::V1::RetryPolicy::init?, ?cron_schedule: ::String, ?headers: ::Temporalio::Api::Common::V1::Payload::hash[::String], ?memo: ::Temporalio::Api::Common::V1::Payload::hash[::String], ?search_attributes: ::Temporalio::Api::Common::V1::Payload::hash[::String], ?cancellation_type: ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::init) -> void
1386
+
1387
+ def []: (:seq) -> ::Integer
1388
+ | (:namespace) -> ::String
1389
+ | (:workflow_id) -> ::String
1390
+ | (:workflow_type) -> ::String
1391
+ | (:task_queue) -> ::String
1392
+ | (:input) -> ::Temporalio::Api::Common::V1::Payload::field_array
1393
+ | (:workflow_execution_timeout) -> ::Google::Protobuf::Duration?
1394
+ | (:workflow_run_timeout) -> ::Google::Protobuf::Duration?
1395
+ | (:workflow_task_timeout) -> ::Google::Protobuf::Duration?
1396
+ | (:parent_close_policy) -> ::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy
1397
+ | (:workflow_id_reuse_policy) -> ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy
1398
+ | (:retry_policy) -> ::Temporalio::Api::Common::V1::RetryPolicy?
1399
+ | (:cron_schedule) -> ::String
1400
+ | (:headers) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1401
+ | (:memo) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1402
+ | (:search_attributes) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1403
+ | (:cancellation_type) -> ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType
1404
+ | (::Symbol) -> untyped
1405
+
1406
+ def []=: (:seq, ::Integer) -> ::Integer
1407
+ | (:namespace, ::String) -> ::String
1408
+ | (:workflow_id, ::String) -> ::String
1409
+ | (:workflow_type, ::String) -> ::String
1410
+ | (:task_queue, ::String) -> ::String
1411
+ | (:input, ::Temporalio::Api::Common::V1::Payload::field_array) -> ::Temporalio::Api::Common::V1::Payload::field_array
1412
+ | (:input, ::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1413
+ | (:workflow_execution_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
1414
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:workflow_execution_timeout, M?) -> M?
1415
+ | (:workflow_run_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
1416
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:workflow_run_timeout, M?) -> M?
1417
+ | (:workflow_task_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
1418
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:workflow_task_timeout, M?) -> M?
1419
+ | (:parent_close_policy, ::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy) -> ::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy
1420
+ | (:parent_close_policy, ::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy::values) -> ::Temporalio::Bridge::Api::ChildWorkflow::ParentClosePolicy::values
1421
+ | (:workflow_id_reuse_policy, ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy) -> ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy
1422
+ | (:workflow_id_reuse_policy, ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::values) -> ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::values
1423
+ | (:retry_policy, ::Temporalio::Api::Common::V1::RetryPolicy?) -> ::Temporalio::Api::Common::V1::RetryPolicy?
1424
+ | [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (:retry_policy, M?) -> M?
1425
+ | (:cron_schedule, ::String) -> ::String
1426
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1427
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1428
+ | (:memo, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1429
+ | (:memo, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1430
+ | (:search_attributes, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1431
+ | (:search_attributes, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1432
+ | (:cancellation_type, ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType) -> ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType
1433
+ | (:cancellation_type, ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::values) -> ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::values
1434
+ | (::Symbol, untyped) -> untyped
1435
+
1436
+ interface _ToProto
1437
+ def to_proto: () -> StartChildWorkflowExecution
1438
+ end
1439
+
1440
+ # The type of `#initialize` parameter.
1441
+ type init = StartChildWorkflowExecution | _ToProto
1442
+
1443
+ # The type of `repeated` field.
1444
+ type field_array = ::Protobuf::Field::FieldArray[StartChildWorkflowExecution, StartChildWorkflowExecution | _ToProto]
1445
+
1446
+ # The type of `map` field.
1447
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, StartChildWorkflowExecution, StartChildWorkflowExecution | _ToProto]
1448
+
1449
+ type array = ::Array[StartChildWorkflowExecution | _ToProto]
1450
+
1451
+ type hash[KEY] = ::Hash[KEY, StartChildWorkflowExecution | _ToProto]
1452
+ end
1453
+
1454
+ # / Cancel a child workflow
1455
+ #
1456
+ class CancelChildWorkflowExecution < ::Protobuf::Message
1457
+ # Encode the message to a binary string
1458
+ #
1459
+ def self.encode: (CancelChildWorkflowExecution) -> String
1460
+
1461
+ # Sequence number as given to the `StartChildWorkflowExecution` command
1462
+ #
1463
+ attr_accessor child_workflow_seq(): ::Integer
1464
+
1465
+ def child_workflow_seq!: () -> ::Integer?
1466
+
1467
+ def initialize: (?child_workflow_seq: ::Integer) -> void
1468
+
1469
+ def []: (:child_workflow_seq) -> ::Integer
1470
+ | (::Symbol) -> untyped
1471
+
1472
+ def []=: (:child_workflow_seq, ::Integer) -> ::Integer
1473
+ | (::Symbol, untyped) -> untyped
1474
+
1475
+ interface _ToProto
1476
+ def to_proto: () -> CancelChildWorkflowExecution
1477
+ end
1478
+
1479
+ # The type of `#initialize` parameter.
1480
+ type init = CancelChildWorkflowExecution | _ToProto
1481
+
1482
+ # The type of `repeated` field.
1483
+ type field_array = ::Protobuf::Field::FieldArray[CancelChildWorkflowExecution, CancelChildWorkflowExecution | _ToProto]
1484
+
1485
+ # The type of `map` field.
1486
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, CancelChildWorkflowExecution, CancelChildWorkflowExecution | _ToProto]
1487
+
1488
+ type array = ::Array[CancelChildWorkflowExecution | _ToProto]
1489
+
1490
+ type hash[KEY] = ::Hash[KEY, CancelChildWorkflowExecution | _ToProto]
1491
+ end
1492
+
1493
+ # / Request cancellation of an external workflow execution (which may be a started child)
1494
+ #
1495
+ class RequestCancelExternalWorkflowExecution < ::Protobuf::Message
1496
+ # Encode the message to a binary string
1497
+ #
1498
+ def self.encode: (RequestCancelExternalWorkflowExecution) -> String
1499
+
1500
+ # / Lang's incremental sequence number, used as the operation identifier
1501
+ #
1502
+ attr_accessor seq(): ::Integer
1503
+
1504
+ def seq!: () -> ::Integer?
1505
+
1506
+ # A specific workflow instance
1507
+ #
1508
+ attr_accessor workflow_execution(): ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
1509
+
1510
+ # A specific workflow instance
1511
+ #
1512
+ def workflow_execution=: [M < ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution::_ToProto] (M?) -> M?
1513
+ | ...
1514
+
1515
+ def workflow_execution!: () -> ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
1516
+
1517
+ # The desired target must be a child of the issuing workflow, and this is its workflow id
1518
+ #
1519
+ attr_accessor child_workflow_id(): ::String
1520
+
1521
+ def child_workflow_id!: () -> ::String?
1522
+
1523
+ def initialize: (?seq: ::Integer, ?workflow_execution: ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution::init?, ?child_workflow_id: ::String) -> void
1524
+
1525
+ def []: (:seq) -> ::Integer
1526
+ | (:workflow_execution) -> ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
1527
+ | (:child_workflow_id) -> ::String
1528
+ | (::Symbol) -> untyped
1529
+
1530
+ def []=: (:seq, ::Integer) -> ::Integer
1531
+ | (:workflow_execution, ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?) -> ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
1532
+ | [M < ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution::_ToProto] (:workflow_execution, M?) -> M?
1533
+ | (:child_workflow_id, ::String) -> ::String
1534
+ | (::Symbol, untyped) -> untyped
1535
+
1536
+ interface _ToProto
1537
+ def to_proto: () -> RequestCancelExternalWorkflowExecution
1538
+ end
1539
+
1540
+ # The type of `#initialize` parameter.
1541
+ type init = RequestCancelExternalWorkflowExecution | _ToProto
1542
+
1543
+ # The type of `repeated` field.
1544
+ type field_array = ::Protobuf::Field::FieldArray[RequestCancelExternalWorkflowExecution, RequestCancelExternalWorkflowExecution | _ToProto]
1545
+
1546
+ # The type of `map` field.
1547
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, RequestCancelExternalWorkflowExecution, RequestCancelExternalWorkflowExecution | _ToProto]
1548
+
1549
+ type array = ::Array[RequestCancelExternalWorkflowExecution | _ToProto]
1550
+
1551
+ type hash[KEY] = ::Hash[KEY, RequestCancelExternalWorkflowExecution | _ToProto]
1552
+ end
1553
+
1554
+ # / Send a signal to an external or child workflow
1555
+ #
1556
+ class SignalExternalWorkflowExecution < ::Protobuf::Message
1557
+ # Encode the message to a binary string
1558
+ #
1559
+ def self.encode: (SignalExternalWorkflowExecution) -> String
1560
+
1561
+ # / Lang's incremental sequence number, used as the operation identifier
1562
+ #
1563
+ attr_accessor seq(): ::Integer
1564
+
1565
+ def seq!: () -> ::Integer?
1566
+
1567
+ # A specific workflow instance
1568
+ #
1569
+ attr_accessor workflow_execution(): ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
1570
+
1571
+ # A specific workflow instance
1572
+ #
1573
+ def workflow_execution=: [M < ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution::_ToProto] (M?) -> M?
1574
+ | ...
1575
+
1576
+ def workflow_execution!: () -> ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
1577
+
1578
+ # The desired target must be a child of the issuing workflow, and this is its workflow id
1579
+ #
1580
+ attr_accessor child_workflow_id(): ::String
1581
+
1582
+ def child_workflow_id!: () -> ::String?
1583
+
1584
+ # / Name of the signal handler
1585
+ #
1586
+ attr_accessor signal_name(): ::String
1587
+
1588
+ def signal_name!: () -> ::String?
1589
+
1590
+ # / Arguments for the handler
1591
+ #
1592
+ attr_accessor args(): ::Temporalio::Api::Common::V1::Payload::field_array
1593
+
1594
+ # / Arguments for the handler
1595
+ #
1596
+ def args=: (::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1597
+ | ...
1598
+
1599
+ def args!: () -> ::Temporalio::Api::Common::V1::Payload::field_array?
1600
+
1601
+ # / Headers to attach to the signal
1602
+ #
1603
+ attr_accessor headers(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1604
+
1605
+ # / Headers to attach to the signal
1606
+ #
1607
+ def headers=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1608
+ | ...
1609
+
1610
+ def headers!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1611
+
1612
+ def initialize: (?seq: ::Integer, ?workflow_execution: ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution::init?, ?child_workflow_id: ::String, ?signal_name: ::String, ?args: ::Temporalio::Api::Common::V1::Payload::array, ?headers: ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> void
1613
+
1614
+ def []: (:seq) -> ::Integer
1615
+ | (:workflow_execution) -> ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
1616
+ | (:child_workflow_id) -> ::String
1617
+ | (:signal_name) -> ::String
1618
+ | (:args) -> ::Temporalio::Api::Common::V1::Payload::field_array
1619
+ | (:headers) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1620
+ | (::Symbol) -> untyped
1621
+
1622
+ def []=: (:seq, ::Integer) -> ::Integer
1623
+ | (:workflow_execution, ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?) -> ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
1624
+ | [M < ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution::_ToProto] (:workflow_execution, M?) -> M?
1625
+ | (:child_workflow_id, ::String) -> ::String
1626
+ | (:signal_name, ::String) -> ::String
1627
+ | (:args, ::Temporalio::Api::Common::V1::Payload::field_array) -> ::Temporalio::Api::Common::V1::Payload::field_array
1628
+ | (:args, ::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1629
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1630
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1631
+ | (::Symbol, untyped) -> untyped
1632
+
1633
+ interface _ToProto
1634
+ def to_proto: () -> SignalExternalWorkflowExecution
1635
+ end
1636
+
1637
+ # The type of `#initialize` parameter.
1638
+ type init = SignalExternalWorkflowExecution | _ToProto
1639
+
1640
+ # The type of `repeated` field.
1641
+ type field_array = ::Protobuf::Field::FieldArray[SignalExternalWorkflowExecution, SignalExternalWorkflowExecution | _ToProto]
1642
+
1643
+ # The type of `map` field.
1644
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, SignalExternalWorkflowExecution, SignalExternalWorkflowExecution | _ToProto]
1645
+
1646
+ type array = ::Array[SignalExternalWorkflowExecution | _ToProto]
1647
+
1648
+ type hash[KEY] = ::Hash[KEY, SignalExternalWorkflowExecution | _ToProto]
1649
+ end
1650
+
1651
+ # / Can be used to cancel not-already-sent `SignalExternalWorkflowExecution` commands
1652
+ #
1653
+ class CancelSignalWorkflow < ::Protobuf::Message
1654
+ # Encode the message to a binary string
1655
+ #
1656
+ def self.encode: (CancelSignalWorkflow) -> String
1657
+
1658
+ # / Lang's incremental sequence number as passed to `SignalExternalWorkflowExecution`
1659
+ #
1660
+ attr_accessor seq(): ::Integer
1661
+
1662
+ def seq!: () -> ::Integer?
1663
+
1664
+ def initialize: (?seq: ::Integer) -> void
1665
+
1666
+ def []: (:seq) -> ::Integer
1667
+ | (::Symbol) -> untyped
1668
+
1669
+ def []=: (:seq, ::Integer) -> ::Integer
1670
+ | (::Symbol, untyped) -> untyped
1671
+
1672
+ interface _ToProto
1673
+ def to_proto: () -> CancelSignalWorkflow
1674
+ end
1675
+
1676
+ # The type of `#initialize` parameter.
1677
+ type init = CancelSignalWorkflow | _ToProto
1678
+
1679
+ # The type of `repeated` field.
1680
+ type field_array = ::Protobuf::Field::FieldArray[CancelSignalWorkflow, CancelSignalWorkflow | _ToProto]
1681
+
1682
+ # The type of `map` field.
1683
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, CancelSignalWorkflow, CancelSignalWorkflow | _ToProto]
1684
+
1685
+ type array = ::Array[CancelSignalWorkflow | _ToProto]
1686
+
1687
+ type hash[KEY] = ::Hash[KEY, CancelSignalWorkflow | _ToProto]
1688
+ end
1689
+
1690
+ class UpsertWorkflowSearchAttributes < ::Protobuf::Message
1691
+ # Encode the message to a binary string
1692
+ #
1693
+ def self.encode: (UpsertWorkflowSearchAttributes) -> String
1694
+
1695
+ # / SearchAttributes fields - equivalent to indexed_fields on api. Key = search index, Value =
1696
+ # / value?
1697
+ #
1698
+ attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1699
+
1700
+ # / SearchAttributes fields - equivalent to indexed_fields on api. Key = search index, Value =
1701
+ # / value?
1702
+ #
1703
+ def search_attributes=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1704
+ | ...
1705
+
1706
+ def search_attributes!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1707
+
1708
+ def initialize: (?search_attributes: ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> void
1709
+
1710
+ def []: (:search_attributes) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1711
+ | (::Symbol) -> untyped
1712
+
1713
+ def []=: (:search_attributes, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1714
+ | (:search_attributes, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1715
+ | (::Symbol, untyped) -> untyped
1716
+
1717
+ interface _ToProto
1718
+ def to_proto: () -> UpsertWorkflowSearchAttributes
1719
+ end
1720
+
1721
+ # The type of `#initialize` parameter.
1722
+ type init = UpsertWorkflowSearchAttributes | _ToProto
1723
+
1724
+ # The type of `repeated` field.
1725
+ type field_array = ::Protobuf::Field::FieldArray[UpsertWorkflowSearchAttributes, UpsertWorkflowSearchAttributes | _ToProto]
1726
+
1727
+ # The type of `map` field.
1728
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, UpsertWorkflowSearchAttributes, UpsertWorkflowSearchAttributes | _ToProto]
1729
+
1730
+ type array = ::Array[UpsertWorkflowSearchAttributes | _ToProto]
1731
+
1732
+ type hash[KEY] = ::Hash[KEY, UpsertWorkflowSearchAttributes | _ToProto]
1733
+ end
1734
+
1735
+ class ModifyWorkflowProperties < ::Protobuf::Message
1736
+ # Encode the message to a binary string
1737
+ #
1738
+ def self.encode: (ModifyWorkflowProperties) -> String
1739
+
1740
+ # If set, update the workflow memo with the provided values. The values will be merged with
1741
+ # the existing memo. If the user wants to delete values, a default/empty Payload should be
1742
+ # used as the value for the key being deleted.
1743
+ #
1744
+ attr_accessor upserted_memo(): ::Temporalio::Api::Common::V1::Memo?
1745
+
1746
+ # If set, update the workflow memo with the provided values. The values will be merged with
1747
+ # the existing memo. If the user wants to delete values, a default/empty Payload should be
1748
+ # used as the value for the key being deleted.
1749
+ #
1750
+ def upserted_memo=: [M < ::Temporalio::Api::Common::V1::Memo::_ToProto] (M?) -> M?
1751
+ | ...
1752
+
1753
+ def upserted_memo!: () -> ::Temporalio::Api::Common::V1::Memo?
1754
+
1755
+ def initialize: (?upserted_memo: ::Temporalio::Api::Common::V1::Memo::init?) -> void
1756
+
1757
+ def []: (:upserted_memo) -> ::Temporalio::Api::Common::V1::Memo?
1758
+ | (::Symbol) -> untyped
1759
+
1760
+ def []=: (:upserted_memo, ::Temporalio::Api::Common::V1::Memo?) -> ::Temporalio::Api::Common::V1::Memo?
1761
+ | [M < ::Temporalio::Api::Common::V1::Memo::_ToProto] (:upserted_memo, M?) -> M?
1762
+ | (::Symbol, untyped) -> untyped
1763
+
1764
+ interface _ToProto
1765
+ def to_proto: () -> ModifyWorkflowProperties
1766
+ end
1767
+
1768
+ # The type of `#initialize` parameter.
1769
+ type init = ModifyWorkflowProperties | _ToProto
1770
+
1771
+ # The type of `repeated` field.
1772
+ type field_array = ::Protobuf::Field::FieldArray[ModifyWorkflowProperties, ModifyWorkflowProperties | _ToProto]
1773
+
1774
+ # The type of `map` field.
1775
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ModifyWorkflowProperties, ModifyWorkflowProperties | _ToProto]
1776
+
1777
+ type array = ::Array[ModifyWorkflowProperties | _ToProto]
1778
+
1779
+ type hash[KEY] = ::Hash[KEY, ModifyWorkflowProperties | _ToProto]
1780
+ end
1781
+ end
1782
+ end
1783
+ end
1784
+ end