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,1473 @@
1
+ module Temporalio
2
+ module Bridge
3
+ module Api
4
+ module WorkflowActivation
5
+ # / An instruction to the lang sdk to run some workflow code, whether for the first time or from
6
+ # / a cached state.
7
+ #
8
+ class WorkflowActivation < ::Protobuf::Message
9
+ # Encode the message to a binary string
10
+ #
11
+ def self.encode: (WorkflowActivation) -> String
12
+
13
+ # / The id of the currently active run of the workflow. Also used as a cache key. There may
14
+ # / only ever be one active workflow task (and hence activation) of a run at one time.
15
+ #
16
+ attr_accessor run_id(): ::String
17
+
18
+ def run_id!: () -> ::String?
19
+
20
+ # / The current time as understood by the workflow, which is set by workflow task started events
21
+ #
22
+ attr_accessor timestamp(): ::Google::Protobuf::Timestamp?
23
+
24
+ # / The current time as understood by the workflow, which is set by workflow task started events
25
+ #
26
+ def timestamp=: [M < ::Google::Protobuf::Timestamp::_ToProto] (M?) -> M?
27
+ | ...
28
+
29
+ def timestamp!: () -> ::Google::Protobuf::Timestamp?
30
+
31
+ # / Whether or not the activation is replaying past events
32
+ #
33
+ attr_accessor is_replaying(): bool
34
+
35
+ def is_replaying!: () -> bool?
36
+
37
+ # / Current history length as determined by the event id of the most recently processed event.
38
+ # / This ensures that the number is always deterministic
39
+ #
40
+ attr_accessor history_length(): ::Integer
41
+
42
+ def history_length!: () -> ::Integer?
43
+
44
+ # / The things to do upon activating the workflow
45
+ #
46
+ attr_accessor jobs(): ::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::field_array
47
+
48
+ # / The things to do upon activating the workflow
49
+ #
50
+ def jobs=: (::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::array) -> ::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::array
51
+ | ...
52
+
53
+ def jobs!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::field_array?
54
+
55
+ # Internal flags which are available for use by lang. If `is_replaying` is false, all
56
+ # internal flags may be used. This is not a delta - all previously used flags always
57
+ # appear since this representation is cheap.
58
+ #
59
+ attr_accessor available_internal_flags(): ::Protobuf::field_array[::Integer]
60
+
61
+ # Internal flags which are available for use by lang. If `is_replaying` is false, all
62
+ # internal flags may be used. This is not a delta - all previously used flags always
63
+ # appear since this representation is cheap.
64
+ #
65
+ def available_internal_flags=: (::Array[::Integer]) -> ::Array[::Integer]
66
+ | ...
67
+
68
+ def available_internal_flags!: () -> ::Protobuf::field_array[::Integer]?
69
+
70
+ def initialize: (?run_id: ::String, ?timestamp: ::Google::Protobuf::Timestamp::init?, ?is_replaying: bool, ?history_length: ::Integer, ?jobs: ::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::array, ?available_internal_flags: ::Array[::Integer]) -> void
71
+
72
+ def []: (:run_id) -> ::String
73
+ | (:timestamp) -> ::Google::Protobuf::Timestamp?
74
+ | (:is_replaying) -> bool
75
+ | (:history_length) -> ::Integer
76
+ | (:jobs) -> ::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::field_array
77
+ | (:available_internal_flags) -> ::Protobuf::field_array[::Integer]
78
+ | (::Symbol) -> untyped
79
+
80
+ def []=: (:run_id, ::String) -> ::String
81
+ | (:timestamp, ::Google::Protobuf::Timestamp?) -> ::Google::Protobuf::Timestamp?
82
+ | [M < ::Google::Protobuf::Timestamp::_ToProto] (:timestamp, M?) -> M?
83
+ | (:is_replaying, bool) -> bool
84
+ | (:history_length, ::Integer) -> ::Integer
85
+ | (:jobs, ::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::field_array) -> ::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::field_array
86
+ | (:jobs, ::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::array) -> ::Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob::array
87
+ | (:available_internal_flags, ::Protobuf::field_array[::Integer]) -> ::Protobuf::field_array[::Integer]
88
+ | (:available_internal_flags, ::Array[::Integer]) -> ::Array[::Integer]
89
+ | (::Symbol, untyped) -> untyped
90
+
91
+ def is_replaying?: () -> bool
92
+
93
+ interface _ToProto
94
+ def to_proto: () -> WorkflowActivation
95
+ end
96
+
97
+ # The type of `#initialize` parameter.
98
+ type init = WorkflowActivation | _ToProto
99
+
100
+ # The type of `repeated` field.
101
+ type field_array = ::Protobuf::Field::FieldArray[WorkflowActivation, WorkflowActivation | _ToProto]
102
+
103
+ # The type of `map` field.
104
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, WorkflowActivation, WorkflowActivation | _ToProto]
105
+
106
+ type array = ::Array[WorkflowActivation | _ToProto]
107
+
108
+ type hash[KEY] = ::Hash[KEY, WorkflowActivation | _ToProto]
109
+ end
110
+
111
+ class WorkflowActivationJob < ::Protobuf::Message
112
+ # Encode the message to a binary string
113
+ #
114
+ def self.encode: (WorkflowActivationJob) -> String
115
+
116
+ # / Begin a workflow for the first time
117
+ #
118
+ attr_accessor start_workflow(): ::Temporalio::Bridge::Api::WorkflowActivation::StartWorkflow?
119
+
120
+ # / Begin a workflow for the first time
121
+ #
122
+ def start_workflow=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::StartWorkflow::_ToProto] (M?) -> M?
123
+ | ...
124
+
125
+ def start_workflow!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::StartWorkflow?
126
+
127
+ # / A timer has fired, allowing whatever was waiting on it (if anything) to proceed
128
+ #
129
+ attr_accessor fire_timer(): ::Temporalio::Bridge::Api::WorkflowActivation::FireTimer?
130
+
131
+ # / A timer has fired, allowing whatever was waiting on it (if anything) to proceed
132
+ #
133
+ def fire_timer=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::FireTimer::_ToProto] (M?) -> M?
134
+ | ...
135
+
136
+ def fire_timer!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::FireTimer?
137
+
138
+ # / Workflow was reset. The randomness seed must be updated.
139
+ #
140
+ attr_accessor update_random_seed(): ::Temporalio::Bridge::Api::WorkflowActivation::UpdateRandomSeed?
141
+
142
+ # / Workflow was reset. The randomness seed must be updated.
143
+ #
144
+ def update_random_seed=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::UpdateRandomSeed::_ToProto] (M?) -> M?
145
+ | ...
146
+
147
+ def update_random_seed!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::UpdateRandomSeed?
148
+
149
+ # / A request to query the workflow was received.
150
+ #
151
+ attr_accessor query_workflow(): ::Temporalio::Bridge::Api::WorkflowActivation::QueryWorkflow?
152
+
153
+ # / A request to query the workflow was received.
154
+ #
155
+ def query_workflow=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::QueryWorkflow::_ToProto] (M?) -> M?
156
+ | ...
157
+
158
+ def query_workflow!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::QueryWorkflow?
159
+
160
+ # / A request to cancel the workflow was received.
161
+ #
162
+ attr_accessor cancel_workflow(): ::Temporalio::Bridge::Api::WorkflowActivation::CancelWorkflow?
163
+
164
+ # / A request to cancel the workflow was received.
165
+ #
166
+ def cancel_workflow=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::CancelWorkflow::_ToProto] (M?) -> M?
167
+ | ...
168
+
169
+ def cancel_workflow!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::CancelWorkflow?
170
+
171
+ # / A request to signal the workflow was received.
172
+ #
173
+ attr_accessor signal_workflow(): ::Temporalio::Bridge::Api::WorkflowActivation::SignalWorkflow?
174
+
175
+ # / A request to signal the workflow was received.
176
+ #
177
+ def signal_workflow=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::SignalWorkflow::_ToProto] (M?) -> M?
178
+ | ...
179
+
180
+ def signal_workflow!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::SignalWorkflow?
181
+
182
+ # / An activity was resolved, result could be completed, failed or cancelled
183
+ #
184
+ attr_accessor resolve_activity(): ::Temporalio::Bridge::Api::WorkflowActivation::ResolveActivity?
185
+
186
+ # / An activity was resolved, result could be completed, failed or cancelled
187
+ #
188
+ def resolve_activity=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveActivity::_ToProto] (M?) -> M?
189
+ | ...
190
+
191
+ def resolve_activity!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveActivity?
192
+
193
+ # / A patch marker has been detected and lang is being told that change exists. This
194
+ # / job is strange in that it is sent pre-emptively to lang without any corresponding
195
+ # / command being sent first.
196
+ #
197
+ attr_accessor notify_has_patch(): ::Temporalio::Bridge::Api::WorkflowActivation::NotifyHasPatch?
198
+
199
+ # / A patch marker has been detected and lang is being told that change exists. This
200
+ # / job is strange in that it is sent pre-emptively to lang without any corresponding
201
+ # / command being sent first.
202
+ #
203
+ def notify_has_patch=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::NotifyHasPatch::_ToProto] (M?) -> M?
204
+ | ...
205
+
206
+ def notify_has_patch!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::NotifyHasPatch?
207
+
208
+ # / A child workflow execution has started or failed to start
209
+ #
210
+ attr_accessor resolve_child_workflow_execution_start(): ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart?
211
+
212
+ # / A child workflow execution has started or failed to start
213
+ #
214
+ def resolve_child_workflow_execution_start=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart::_ToProto] (M?) -> M?
215
+ | ...
216
+
217
+ def resolve_child_workflow_execution_start!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart?
218
+
219
+ # / A child workflow was resolved, result could be completed or failed
220
+ #
221
+ attr_accessor resolve_child_workflow_execution(): ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution?
222
+
223
+ # / A child workflow was resolved, result could be completed or failed
224
+ #
225
+ def resolve_child_workflow_execution=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution::_ToProto] (M?) -> M?
226
+ | ...
227
+
228
+ def resolve_child_workflow_execution!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution?
229
+
230
+ # / An attempt to signal an external workflow resolved
231
+ #
232
+ attr_accessor resolve_signal_external_workflow(): ::Temporalio::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow?
233
+
234
+ # / An attempt to signal an external workflow resolved
235
+ #
236
+ def resolve_signal_external_workflow=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow::_ToProto] (M?) -> M?
237
+ | ...
238
+
239
+ def resolve_signal_external_workflow!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow?
240
+
241
+ # / An attempt to cancel an external workflow resolved
242
+ #
243
+ attr_accessor resolve_request_cancel_external_workflow(): ::Temporalio::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow?
244
+
245
+ # / An attempt to cancel an external workflow resolved
246
+ #
247
+ def resolve_request_cancel_external_workflow=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow::_ToProto] (M?) -> M?
248
+ | ...
249
+
250
+ def resolve_request_cancel_external_workflow!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow?
251
+
252
+ # / Remove the workflow identified by the [WorkflowActivation] containing this job from the cache
253
+ # / after performing the activation.
254
+ # /
255
+ # / If other job variant are present in the list, this variant will be the last job in the
256
+ # / job list. The string value is a reason for eviction.
257
+ #
258
+ attr_accessor remove_from_cache(): ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache?
259
+
260
+ # / Remove the workflow identified by the [WorkflowActivation] containing this job from the cache
261
+ # / after performing the activation.
262
+ # /
263
+ # / If other job variant are present in the list, this variant will be the last job in the
264
+ # / job list. The string value is a reason for eviction.
265
+ #
266
+ def remove_from_cache=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::_ToProto] (M?) -> M?
267
+ | ...
268
+
269
+ def remove_from_cache!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache?
270
+
271
+ def initialize: (?start_workflow: ::Temporalio::Bridge::Api::WorkflowActivation::StartWorkflow::init?, ?fire_timer: ::Temporalio::Bridge::Api::WorkflowActivation::FireTimer::init?, ?update_random_seed: ::Temporalio::Bridge::Api::WorkflowActivation::UpdateRandomSeed::init?, ?query_workflow: ::Temporalio::Bridge::Api::WorkflowActivation::QueryWorkflow::init?, ?cancel_workflow: ::Temporalio::Bridge::Api::WorkflowActivation::CancelWorkflow::init?, ?signal_workflow: ::Temporalio::Bridge::Api::WorkflowActivation::SignalWorkflow::init?, ?resolve_activity: ::Temporalio::Bridge::Api::WorkflowActivation::ResolveActivity::init?, ?notify_has_patch: ::Temporalio::Bridge::Api::WorkflowActivation::NotifyHasPatch::init?, ?resolve_child_workflow_execution_start: ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart::init?, ?resolve_child_workflow_execution: ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution::init?, ?resolve_signal_external_workflow: ::Temporalio::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow::init?, ?resolve_request_cancel_external_workflow: ::Temporalio::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow::init?, ?remove_from_cache: ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::init?) -> void
272
+
273
+ def []: (:start_workflow) -> ::Temporalio::Bridge::Api::WorkflowActivation::StartWorkflow?
274
+ | (:fire_timer) -> ::Temporalio::Bridge::Api::WorkflowActivation::FireTimer?
275
+ | (:update_random_seed) -> ::Temporalio::Bridge::Api::WorkflowActivation::UpdateRandomSeed?
276
+ | (:query_workflow) -> ::Temporalio::Bridge::Api::WorkflowActivation::QueryWorkflow?
277
+ | (:cancel_workflow) -> ::Temporalio::Bridge::Api::WorkflowActivation::CancelWorkflow?
278
+ | (:signal_workflow) -> ::Temporalio::Bridge::Api::WorkflowActivation::SignalWorkflow?
279
+ | (:resolve_activity) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveActivity?
280
+ | (:notify_has_patch) -> ::Temporalio::Bridge::Api::WorkflowActivation::NotifyHasPatch?
281
+ | (:resolve_child_workflow_execution_start) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart?
282
+ | (:resolve_child_workflow_execution) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution?
283
+ | (:resolve_signal_external_workflow) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow?
284
+ | (:resolve_request_cancel_external_workflow) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow?
285
+ | (:remove_from_cache) -> ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache?
286
+ | (::Symbol) -> untyped
287
+
288
+ def []=: (:start_workflow, ::Temporalio::Bridge::Api::WorkflowActivation::StartWorkflow?) -> ::Temporalio::Bridge::Api::WorkflowActivation::StartWorkflow?
289
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::StartWorkflow::_ToProto] (:start_workflow, M?) -> M?
290
+ | (:fire_timer, ::Temporalio::Bridge::Api::WorkflowActivation::FireTimer?) -> ::Temporalio::Bridge::Api::WorkflowActivation::FireTimer?
291
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::FireTimer::_ToProto] (:fire_timer, M?) -> M?
292
+ | (:update_random_seed, ::Temporalio::Bridge::Api::WorkflowActivation::UpdateRandomSeed?) -> ::Temporalio::Bridge::Api::WorkflowActivation::UpdateRandomSeed?
293
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::UpdateRandomSeed::_ToProto] (:update_random_seed, M?) -> M?
294
+ | (:query_workflow, ::Temporalio::Bridge::Api::WorkflowActivation::QueryWorkflow?) -> ::Temporalio::Bridge::Api::WorkflowActivation::QueryWorkflow?
295
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::QueryWorkflow::_ToProto] (:query_workflow, M?) -> M?
296
+ | (:cancel_workflow, ::Temporalio::Bridge::Api::WorkflowActivation::CancelWorkflow?) -> ::Temporalio::Bridge::Api::WorkflowActivation::CancelWorkflow?
297
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::CancelWorkflow::_ToProto] (:cancel_workflow, M?) -> M?
298
+ | (:signal_workflow, ::Temporalio::Bridge::Api::WorkflowActivation::SignalWorkflow?) -> ::Temporalio::Bridge::Api::WorkflowActivation::SignalWorkflow?
299
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::SignalWorkflow::_ToProto] (:signal_workflow, M?) -> M?
300
+ | (:resolve_activity, ::Temporalio::Bridge::Api::WorkflowActivation::ResolveActivity?) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveActivity?
301
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveActivity::_ToProto] (:resolve_activity, M?) -> M?
302
+ | (:notify_has_patch, ::Temporalio::Bridge::Api::WorkflowActivation::NotifyHasPatch?) -> ::Temporalio::Bridge::Api::WorkflowActivation::NotifyHasPatch?
303
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::NotifyHasPatch::_ToProto] (:notify_has_patch, M?) -> M?
304
+ | (:resolve_child_workflow_execution_start, ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart?) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart?
305
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart::_ToProto] (:resolve_child_workflow_execution_start, M?) -> M?
306
+ | (:resolve_child_workflow_execution, ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution?) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution?
307
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution::_ToProto] (:resolve_child_workflow_execution, M?) -> M?
308
+ | (:resolve_signal_external_workflow, ::Temporalio::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow?) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow?
309
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow::_ToProto] (:resolve_signal_external_workflow, M?) -> M?
310
+ | (:resolve_request_cancel_external_workflow, ::Temporalio::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow?) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow?
311
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow::_ToProto] (:resolve_request_cancel_external_workflow, M?) -> M?
312
+ | (:remove_from_cache, ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache?) -> ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache?
313
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::_ToProto] (:remove_from_cache, M?) -> M?
314
+ | (::Symbol, untyped) -> untyped
315
+
316
+ interface _ToProto
317
+ def to_proto: () -> WorkflowActivationJob
318
+ end
319
+
320
+ # The type of `#initialize` parameter.
321
+ type init = WorkflowActivationJob | _ToProto
322
+
323
+ # The type of `repeated` field.
324
+ type field_array = ::Protobuf::Field::FieldArray[WorkflowActivationJob, WorkflowActivationJob | _ToProto]
325
+
326
+ # The type of `map` field.
327
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, WorkflowActivationJob, WorkflowActivationJob | _ToProto]
328
+
329
+ type array = ::Array[WorkflowActivationJob | _ToProto]
330
+
331
+ type hash[KEY] = ::Hash[KEY, WorkflowActivationJob | _ToProto]
332
+ end
333
+
334
+ # Start a new workflow
335
+ #
336
+ class StartWorkflow < ::Protobuf::Message
337
+ # Encode the message to a binary string
338
+ #
339
+ def self.encode: (StartWorkflow) -> String
340
+
341
+ # The identifier the lang-specific sdk uses to execute workflow code
342
+ #
343
+ attr_accessor workflow_type(): ::String
344
+
345
+ def workflow_type!: () -> ::String?
346
+
347
+ # The workflow id used on the temporal server
348
+ #
349
+ attr_accessor workflow_id(): ::String
350
+
351
+ def workflow_id!: () -> ::String?
352
+
353
+ # Inputs to the workflow code
354
+ #
355
+ attr_accessor arguments(): ::Temporalio::Api::Common::V1::Payload::field_array
356
+
357
+ # Inputs to the workflow code
358
+ #
359
+ def arguments=: (::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
360
+ | ...
361
+
362
+ def arguments!: () -> ::Temporalio::Api::Common::V1::Payload::field_array?
363
+
364
+ # The seed must be used to initialize the random generator used by SDK.
365
+ # RandomSeedUpdatedAttributes are used to deliver seed updates.
366
+ #
367
+ attr_accessor randomness_seed(): ::Integer
368
+
369
+ def randomness_seed!: () -> ::Integer?
370
+
371
+ # Used to add metadata e.g. for tracing and auth, meant to be read and written to by interceptors.
372
+ #
373
+ attr_accessor headers(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
374
+
375
+ # Used to add metadata e.g. for tracing and auth, meant to be read and written to by interceptors.
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
+ # Identity of the client who requested this execution
383
+ #
384
+ attr_accessor identity(): ::String
385
+
386
+ def identity!: () -> ::String?
387
+
388
+ # If this workflow is a child, information about the parent
389
+ #
390
+ attr_accessor parent_workflow_info(): ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
391
+
392
+ # If this workflow is a child, information about the parent
393
+ #
394
+ def parent_workflow_info=: [M < ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution::_ToProto] (M?) -> M?
395
+ | ...
396
+
397
+ def parent_workflow_info!: () -> ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
398
+
399
+ # Total workflow execution timeout including retries and continue as new.
400
+ #
401
+ attr_accessor workflow_execution_timeout(): ::Google::Protobuf::Duration?
402
+
403
+ # Total workflow execution timeout including retries and continue as new.
404
+ #
405
+ def workflow_execution_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
406
+ | ...
407
+
408
+ def workflow_execution_timeout!: () -> ::Google::Protobuf::Duration?
409
+
410
+ # Timeout of a single workflow run.
411
+ #
412
+ attr_accessor workflow_run_timeout(): ::Google::Protobuf::Duration?
413
+
414
+ # Timeout of a single workflow run.
415
+ #
416
+ def workflow_run_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
417
+ | ...
418
+
419
+ def workflow_run_timeout!: () -> ::Google::Protobuf::Duration?
420
+
421
+ # Timeout of a single workflow task.
422
+ #
423
+ attr_accessor workflow_task_timeout(): ::Google::Protobuf::Duration?
424
+
425
+ # Timeout of a single workflow task.
426
+ #
427
+ def workflow_task_timeout=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
428
+ | ...
429
+
430
+ def workflow_task_timeout!: () -> ::Google::Protobuf::Duration?
431
+
432
+ # Run id of the previous workflow which continued-as-new or retired or cron executed into this
433
+ # workflow, if any.
434
+ #
435
+ attr_accessor continued_from_execution_run_id(): ::String
436
+
437
+ def continued_from_execution_run_id!: () -> ::String?
438
+
439
+ # If this workflow was a continuation, indicates the type of continuation.
440
+ #
441
+ attr_accessor continued_initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator
442
+
443
+ # If this workflow was a continuation, indicates the type of continuation.
444
+ #
445
+ def continued_initiator=: (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::values) -> ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::values
446
+ | ...
447
+
448
+ def continued_initiator!: () -> ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator?
449
+
450
+ # If this workflow was a continuation and that continuation failed, the details of that.
451
+ #
452
+ attr_accessor continued_failure(): ::Temporalio::Api::Failure::V1::Failure?
453
+
454
+ # If this workflow was a continuation and that continuation failed, the details of that.
455
+ #
456
+ def continued_failure=: [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (M?) -> M?
457
+ | ...
458
+
459
+ def continued_failure!: () -> ::Temporalio::Api::Failure::V1::Failure?
460
+
461
+ # If this workflow was a continuation and that continuation completed, the details of that.
462
+ #
463
+ attr_accessor last_completion_result(): ::Temporalio::Api::Common::V1::Payloads?
464
+
465
+ # If this workflow was a continuation and that continuation completed, the details of that.
466
+ #
467
+ def last_completion_result=: [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (M?) -> M?
468
+ | ...
469
+
470
+ def last_completion_result!: () -> ::Temporalio::Api::Common::V1::Payloads?
471
+
472
+ # This is the very first run id the workflow ever had, following continuation chains.
473
+ #
474
+ attr_accessor first_execution_run_id(): ::String
475
+
476
+ def first_execution_run_id!: () -> ::String?
477
+
478
+ # This workflow's retry policy
479
+ #
480
+ attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy?
481
+
482
+ # This workflow's retry policy
483
+ #
484
+ def retry_policy=: [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (M?) -> M?
485
+ | ...
486
+
487
+ def retry_policy!: () -> ::Temporalio::Api::Common::V1::RetryPolicy?
488
+
489
+ # Starting at 1, the number of times we have tried to execute this workflow
490
+ #
491
+ attr_accessor attempt(): ::Integer
492
+
493
+ def attempt!: () -> ::Integer?
494
+
495
+ # If this workflow runs on a cron schedule, it will appear here
496
+ #
497
+ attr_accessor cron_schedule(): ::String
498
+
499
+ def cron_schedule!: () -> ::String?
500
+
501
+ # The absolute time at which the workflow will be timed out.
502
+ # This is passed without change to the next run/retry of a workflow.
503
+ #
504
+ attr_accessor workflow_execution_expiration_time(): ::Google::Protobuf::Timestamp?
505
+
506
+ # The absolute time at which the workflow will be timed out.
507
+ # This is passed without change to the next run/retry of a workflow.
508
+ #
509
+ def workflow_execution_expiration_time=: [M < ::Google::Protobuf::Timestamp::_ToProto] (M?) -> M?
510
+ | ...
511
+
512
+ def workflow_execution_expiration_time!: () -> ::Google::Protobuf::Timestamp?
513
+
514
+ # For a cron workflow, this contains the amount of time between when this iteration of
515
+ # the cron workflow was scheduled and when it should run next per its cron_schedule.
516
+ #
517
+ attr_accessor cron_schedule_to_schedule_interval(): ::Google::Protobuf::Duration?
518
+
519
+ # For a cron workflow, this contains the amount of time between when this iteration of
520
+ # the cron workflow was scheduled and when it should run next per its cron_schedule.
521
+ #
522
+ def cron_schedule_to_schedule_interval=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
523
+ | ...
524
+
525
+ def cron_schedule_to_schedule_interval!: () -> ::Google::Protobuf::Duration?
526
+
527
+ # User-defined memo
528
+ #
529
+ attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo?
530
+
531
+ # User-defined memo
532
+ #
533
+ def memo=: [M < ::Temporalio::Api::Common::V1::Memo::_ToProto] (M?) -> M?
534
+ | ...
535
+
536
+ def memo!: () -> ::Temporalio::Api::Common::V1::Memo?
537
+
538
+ # Search attributes created/updated when this workflow was started
539
+ #
540
+ attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes?
541
+
542
+ # Search attributes created/updated when this workflow was started
543
+ #
544
+ def search_attributes=: [M < ::Temporalio::Api::Common::V1::SearchAttributes::_ToProto] (M?) -> M?
545
+ | ...
546
+
547
+ def search_attributes!: () -> ::Temporalio::Api::Common::V1::SearchAttributes?
548
+
549
+ # When the workflow execution started event was first written
550
+ #
551
+ attr_accessor start_time(): ::Google::Protobuf::Timestamp?
552
+
553
+ # When the workflow execution started event was first written
554
+ #
555
+ def start_time=: [M < ::Google::Protobuf::Timestamp::_ToProto] (M?) -> M?
556
+ | ...
557
+
558
+ def start_time!: () -> ::Google::Protobuf::Timestamp?
559
+
560
+ def initialize: (?workflow_type: ::String, ?workflow_id: ::String, ?arguments: ::Temporalio::Api::Common::V1::Payload::array, ?randomness_seed: ::Integer, ?headers: ::Temporalio::Api::Common::V1::Payload::hash[::String], ?identity: ::String, ?parent_workflow_info: ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution::init?, ?workflow_execution_timeout: ::Google::Protobuf::Duration::init?, ?workflow_run_timeout: ::Google::Protobuf::Duration::init?, ?workflow_task_timeout: ::Google::Protobuf::Duration::init?, ?continued_from_execution_run_id: ::String, ?continued_initiator: ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::init, ?continued_failure: ::Temporalio::Api::Failure::V1::Failure::init?, ?last_completion_result: ::Temporalio::Api::Common::V1::Payloads::init?, ?first_execution_run_id: ::String, ?retry_policy: ::Temporalio::Api::Common::V1::RetryPolicy::init?, ?attempt: ::Integer, ?cron_schedule: ::String, ?workflow_execution_expiration_time: ::Google::Protobuf::Timestamp::init?, ?cron_schedule_to_schedule_interval: ::Google::Protobuf::Duration::init?, ?memo: ::Temporalio::Api::Common::V1::Memo::init?, ?search_attributes: ::Temporalio::Api::Common::V1::SearchAttributes::init?, ?start_time: ::Google::Protobuf::Timestamp::init?) -> void
561
+
562
+ def []: (:workflow_type) -> ::String
563
+ | (:workflow_id) -> ::String
564
+ | (:arguments) -> ::Temporalio::Api::Common::V1::Payload::field_array
565
+ | (:randomness_seed) -> ::Integer
566
+ | (:headers) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
567
+ | (:identity) -> ::String
568
+ | (:parent_workflow_info) -> ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
569
+ | (:workflow_execution_timeout) -> ::Google::Protobuf::Duration?
570
+ | (:workflow_run_timeout) -> ::Google::Protobuf::Duration?
571
+ | (:workflow_task_timeout) -> ::Google::Protobuf::Duration?
572
+ | (:continued_from_execution_run_id) -> ::String
573
+ | (:continued_initiator) -> ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator
574
+ | (:continued_failure) -> ::Temporalio::Api::Failure::V1::Failure?
575
+ | (:last_completion_result) -> ::Temporalio::Api::Common::V1::Payloads?
576
+ | (:first_execution_run_id) -> ::String
577
+ | (:retry_policy) -> ::Temporalio::Api::Common::V1::RetryPolicy?
578
+ | (:attempt) -> ::Integer
579
+ | (:cron_schedule) -> ::String
580
+ | (:workflow_execution_expiration_time) -> ::Google::Protobuf::Timestamp?
581
+ | (:cron_schedule_to_schedule_interval) -> ::Google::Protobuf::Duration?
582
+ | (:memo) -> ::Temporalio::Api::Common::V1::Memo?
583
+ | (:search_attributes) -> ::Temporalio::Api::Common::V1::SearchAttributes?
584
+ | (:start_time) -> ::Google::Protobuf::Timestamp?
585
+ | (::Symbol) -> untyped
586
+
587
+ def []=: (:workflow_type, ::String) -> ::String
588
+ | (:workflow_id, ::String) -> ::String
589
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::field_array) -> ::Temporalio::Api::Common::V1::Payload::field_array
590
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
591
+ | (:randomness_seed, ::Integer) -> ::Integer
592
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
593
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
594
+ | (:identity, ::String) -> ::String
595
+ | (:parent_workflow_info, ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?) -> ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution?
596
+ | [M < ::Temporalio::Bridge::Api::Common::NamespacedWorkflowExecution::_ToProto] (:parent_workflow_info, M?) -> M?
597
+ | (:workflow_execution_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
598
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:workflow_execution_timeout, M?) -> M?
599
+ | (:workflow_run_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
600
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:workflow_run_timeout, M?) -> M?
601
+ | (:workflow_task_timeout, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
602
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:workflow_task_timeout, M?) -> M?
603
+ | (:continued_from_execution_run_id, ::String) -> ::String
604
+ | (:continued_initiator, ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator) -> ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator
605
+ | (:continued_initiator, ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::values) -> ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::values
606
+ | (:continued_failure, ::Temporalio::Api::Failure::V1::Failure?) -> ::Temporalio::Api::Failure::V1::Failure?
607
+ | [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (:continued_failure, M?) -> M?
608
+ | (:last_completion_result, ::Temporalio::Api::Common::V1::Payloads?) -> ::Temporalio::Api::Common::V1::Payloads?
609
+ | [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (:last_completion_result, M?) -> M?
610
+ | (:first_execution_run_id, ::String) -> ::String
611
+ | (:retry_policy, ::Temporalio::Api::Common::V1::RetryPolicy?) -> ::Temporalio::Api::Common::V1::RetryPolicy?
612
+ | [M < ::Temporalio::Api::Common::V1::RetryPolicy::_ToProto] (:retry_policy, M?) -> M?
613
+ | (:attempt, ::Integer) -> ::Integer
614
+ | (:cron_schedule, ::String) -> ::String
615
+ | (:workflow_execution_expiration_time, ::Google::Protobuf::Timestamp?) -> ::Google::Protobuf::Timestamp?
616
+ | [M < ::Google::Protobuf::Timestamp::_ToProto] (:workflow_execution_expiration_time, M?) -> M?
617
+ | (:cron_schedule_to_schedule_interval, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
618
+ | [M < ::Google::Protobuf::Duration::_ToProto] (:cron_schedule_to_schedule_interval, M?) -> M?
619
+ | (:memo, ::Temporalio::Api::Common::V1::Memo?) -> ::Temporalio::Api::Common::V1::Memo?
620
+ | [M < ::Temporalio::Api::Common::V1::Memo::_ToProto] (:memo, M?) -> M?
621
+ | (:search_attributes, ::Temporalio::Api::Common::V1::SearchAttributes?) -> ::Temporalio::Api::Common::V1::SearchAttributes?
622
+ | [M < ::Temporalio::Api::Common::V1::SearchAttributes::_ToProto] (:search_attributes, M?) -> M?
623
+ | (:start_time, ::Google::Protobuf::Timestamp?) -> ::Google::Protobuf::Timestamp?
624
+ | [M < ::Google::Protobuf::Timestamp::_ToProto] (:start_time, M?) -> M?
625
+ | (::Symbol, untyped) -> untyped
626
+
627
+ interface _ToProto
628
+ def to_proto: () -> StartWorkflow
629
+ end
630
+
631
+ # The type of `#initialize` parameter.
632
+ type init = StartWorkflow | _ToProto
633
+
634
+ # The type of `repeated` field.
635
+ type field_array = ::Protobuf::Field::FieldArray[StartWorkflow, StartWorkflow | _ToProto]
636
+
637
+ # The type of `map` field.
638
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, StartWorkflow, StartWorkflow | _ToProto]
639
+
640
+ type array = ::Array[StartWorkflow | _ToProto]
641
+
642
+ type hash[KEY] = ::Hash[KEY, StartWorkflow | _ToProto]
643
+ end
644
+
645
+ # / Notify a workflow that a timer has fired
646
+ #
647
+ class FireTimer < ::Protobuf::Message
648
+ # Encode the message to a binary string
649
+ #
650
+ def self.encode: (FireTimer) -> String
651
+
652
+ # / Sequence number as provided by lang in the corresponding StartTimer command
653
+ #
654
+ attr_accessor seq(): ::Integer
655
+
656
+ def seq!: () -> ::Integer?
657
+
658
+ def initialize: (?seq: ::Integer) -> void
659
+
660
+ def []: (:seq) -> ::Integer
661
+ | (::Symbol) -> untyped
662
+
663
+ def []=: (:seq, ::Integer) -> ::Integer
664
+ | (::Symbol, untyped) -> untyped
665
+
666
+ interface _ToProto
667
+ def to_proto: () -> FireTimer
668
+ end
669
+
670
+ # The type of `#initialize` parameter.
671
+ type init = FireTimer | _ToProto
672
+
673
+ # The type of `repeated` field.
674
+ type field_array = ::Protobuf::Field::FieldArray[FireTimer, FireTimer | _ToProto]
675
+
676
+ # The type of `map` field.
677
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, FireTimer, FireTimer | _ToProto]
678
+
679
+ type array = ::Array[FireTimer | _ToProto]
680
+
681
+ type hash[KEY] = ::Hash[KEY, FireTimer | _ToProto]
682
+ end
683
+
684
+ # / Notify a workflow that an activity has been resolved
685
+ #
686
+ class ResolveActivity < ::Protobuf::Message
687
+ # Encode the message to a binary string
688
+ #
689
+ def self.encode: (ResolveActivity) -> String
690
+
691
+ # / Sequence number as provided by lang in the corresponding ScheduleActivity command
692
+ #
693
+ attr_accessor seq(): ::Integer
694
+
695
+ def seq!: () -> ::Integer?
696
+
697
+ attr_accessor result(): ::Temporalio::Bridge::Api::ActivityResult::ActivityResolution?
698
+
699
+ def result=: [M < ::Temporalio::Bridge::Api::ActivityResult::ActivityResolution::_ToProto] (M?) -> M?
700
+ | ...
701
+
702
+ def result!: () -> ::Temporalio::Bridge::Api::ActivityResult::ActivityResolution?
703
+
704
+ def initialize: (?seq: ::Integer, ?result: ::Temporalio::Bridge::Api::ActivityResult::ActivityResolution::init?) -> void
705
+
706
+ def []: (:seq) -> ::Integer
707
+ | (:result) -> ::Temporalio::Bridge::Api::ActivityResult::ActivityResolution?
708
+ | (::Symbol) -> untyped
709
+
710
+ def []=: (:seq, ::Integer) -> ::Integer
711
+ | (:result, ::Temporalio::Bridge::Api::ActivityResult::ActivityResolution?) -> ::Temporalio::Bridge::Api::ActivityResult::ActivityResolution?
712
+ | [M < ::Temporalio::Bridge::Api::ActivityResult::ActivityResolution::_ToProto] (:result, M?) -> M?
713
+ | (::Symbol, untyped) -> untyped
714
+
715
+ interface _ToProto
716
+ def to_proto: () -> ResolveActivity
717
+ end
718
+
719
+ # The type of `#initialize` parameter.
720
+ type init = ResolveActivity | _ToProto
721
+
722
+ # The type of `repeated` field.
723
+ type field_array = ::Protobuf::Field::FieldArray[ResolveActivity, ResolveActivity | _ToProto]
724
+
725
+ # The type of `map` field.
726
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ResolveActivity, ResolveActivity | _ToProto]
727
+
728
+ type array = ::Array[ResolveActivity | _ToProto]
729
+
730
+ type hash[KEY] = ::Hash[KEY, ResolveActivity | _ToProto]
731
+ end
732
+
733
+ # / Notify a workflow that a start child workflow execution request has succeeded, failed or was
734
+ # / cancelled.
735
+ #
736
+ class ResolveChildWorkflowExecutionStart < ::Protobuf::Message
737
+ # Encode the message to a binary string
738
+ #
739
+ def self.encode: (ResolveChildWorkflowExecutionStart) -> String
740
+
741
+ # / Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
742
+ #
743
+ attr_accessor seq(): ::Integer
744
+
745
+ def seq!: () -> ::Integer?
746
+
747
+ attr_accessor succeeded(): ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess?
748
+
749
+ def succeeded=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess::_ToProto] (M?) -> M?
750
+ | ...
751
+
752
+ def succeeded!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess?
753
+
754
+ attr_accessor failed(): ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure?
755
+
756
+ def failed=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure::_ToProto] (M?) -> M?
757
+ | ...
758
+
759
+ def failed!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure?
760
+
761
+ attr_accessor cancelled(): ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled?
762
+
763
+ def cancelled=: [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled::_ToProto] (M?) -> M?
764
+ | ...
765
+
766
+ def cancelled!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled?
767
+
768
+ def initialize: (?seq: ::Integer, ?succeeded: ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess::init?, ?failed: ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure::init?, ?cancelled: ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled::init?) -> void
769
+
770
+ def []: (:seq) -> ::Integer
771
+ | (:succeeded) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess?
772
+ | (:failed) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure?
773
+ | (:cancelled) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled?
774
+ | (::Symbol) -> untyped
775
+
776
+ def []=: (:seq, ::Integer) -> ::Integer
777
+ | (:succeeded, ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess?) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess?
778
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess::_ToProto] (:succeeded, M?) -> M?
779
+ | (:failed, ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure?) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure?
780
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure::_ToProto] (:failed, M?) -> M?
781
+ | (:cancelled, ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled?) -> ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled?
782
+ | [M < ::Temporalio::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled::_ToProto] (:cancelled, M?) -> M?
783
+ | (::Symbol, untyped) -> untyped
784
+
785
+ interface _ToProto
786
+ def to_proto: () -> ResolveChildWorkflowExecutionStart
787
+ end
788
+
789
+ # The type of `#initialize` parameter.
790
+ type init = ResolveChildWorkflowExecutionStart | _ToProto
791
+
792
+ # The type of `repeated` field.
793
+ type field_array = ::Protobuf::Field::FieldArray[ResolveChildWorkflowExecutionStart, ResolveChildWorkflowExecutionStart | _ToProto]
794
+
795
+ # The type of `map` field.
796
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ResolveChildWorkflowExecutionStart, ResolveChildWorkflowExecutionStart | _ToProto]
797
+
798
+ type array = ::Array[ResolveChildWorkflowExecutionStart | _ToProto]
799
+
800
+ type hash[KEY] = ::Hash[KEY, ResolveChildWorkflowExecutionStart | _ToProto]
801
+ end
802
+
803
+ # / Simply pass the run_id to lang
804
+ #
805
+ class ResolveChildWorkflowExecutionStartSuccess < ::Protobuf::Message
806
+ # Encode the message to a binary string
807
+ #
808
+ def self.encode: (ResolveChildWorkflowExecutionStartSuccess) -> String
809
+
810
+ attr_accessor run_id(): ::String
811
+
812
+ def run_id!: () -> ::String?
813
+
814
+ def initialize: (?run_id: ::String) -> void
815
+
816
+ def []: (:run_id) -> ::String
817
+ | (::Symbol) -> untyped
818
+
819
+ def []=: (:run_id, ::String) -> ::String
820
+ | (::Symbol, untyped) -> untyped
821
+
822
+ interface _ToProto
823
+ def to_proto: () -> ResolveChildWorkflowExecutionStartSuccess
824
+ end
825
+
826
+ # The type of `#initialize` parameter.
827
+ type init = ResolveChildWorkflowExecutionStartSuccess | _ToProto
828
+
829
+ # The type of `repeated` field.
830
+ type field_array = ::Protobuf::Field::FieldArray[ResolveChildWorkflowExecutionStartSuccess, ResolveChildWorkflowExecutionStartSuccess | _ToProto]
831
+
832
+ # The type of `map` field.
833
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ResolveChildWorkflowExecutionStartSuccess, ResolveChildWorkflowExecutionStartSuccess | _ToProto]
834
+
835
+ type array = ::Array[ResolveChildWorkflowExecutionStartSuccess | _ToProto]
836
+
837
+ type hash[KEY] = ::Hash[KEY, ResolveChildWorkflowExecutionStartSuccess | _ToProto]
838
+ end
839
+
840
+ # / Provide lang the cause of failure
841
+ #
842
+ class ResolveChildWorkflowExecutionStartFailure < ::Protobuf::Message
843
+ # Encode the message to a binary string
844
+ #
845
+ def self.encode: (ResolveChildWorkflowExecutionStartFailure) -> String
846
+
847
+ # / Lang should have this information but it's more convenient to pass it back
848
+ # / for error construction on the lang side.
849
+ #
850
+ attr_accessor workflow_id(): ::String
851
+
852
+ def workflow_id!: () -> ::String?
853
+
854
+ attr_accessor workflow_type(): ::String
855
+
856
+ def workflow_type!: () -> ::String?
857
+
858
+ attr_accessor cause(): ::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause
859
+
860
+ def cause=: (::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::values) -> ::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::values
861
+ | ...
862
+
863
+ def cause!: () -> ::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause?
864
+
865
+ def initialize: (?workflow_id: ::String, ?workflow_type: ::String, ?cause: ::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::init) -> void
866
+
867
+ def []: (:workflow_id) -> ::String
868
+ | (:workflow_type) -> ::String
869
+ | (:cause) -> ::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause
870
+ | (::Symbol) -> untyped
871
+
872
+ def []=: (:workflow_id, ::String) -> ::String
873
+ | (:workflow_type, ::String) -> ::String
874
+ | (:cause, ::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause) -> ::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause
875
+ | (:cause, ::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::values) -> ::Temporalio::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::values
876
+ | (::Symbol, untyped) -> untyped
877
+
878
+ interface _ToProto
879
+ def to_proto: () -> ResolveChildWorkflowExecutionStartFailure
880
+ end
881
+
882
+ # The type of `#initialize` parameter.
883
+ type init = ResolveChildWorkflowExecutionStartFailure | _ToProto
884
+
885
+ # The type of `repeated` field.
886
+ type field_array = ::Protobuf::Field::FieldArray[ResolveChildWorkflowExecutionStartFailure, ResolveChildWorkflowExecutionStartFailure | _ToProto]
887
+
888
+ # The type of `map` field.
889
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ResolveChildWorkflowExecutionStartFailure, ResolveChildWorkflowExecutionStartFailure | _ToProto]
890
+
891
+ type array = ::Array[ResolveChildWorkflowExecutionStartFailure | _ToProto]
892
+
893
+ type hash[KEY] = ::Hash[KEY, ResolveChildWorkflowExecutionStartFailure | _ToProto]
894
+ end
895
+
896
+ # / `failure` should be ChildWorkflowFailure with cause set to CancelledFailure.
897
+ # / The failure is constructed in core for lang's convenience.
898
+ #
899
+ class ResolveChildWorkflowExecutionStartCancelled < ::Protobuf::Message
900
+ # Encode the message to a binary string
901
+ #
902
+ def self.encode: (ResolveChildWorkflowExecutionStartCancelled) -> String
903
+
904
+ attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure?
905
+
906
+ def failure=: [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (M?) -> M?
907
+ | ...
908
+
909
+ def failure!: () -> ::Temporalio::Api::Failure::V1::Failure?
910
+
911
+ def initialize: (?failure: ::Temporalio::Api::Failure::V1::Failure::init?) -> void
912
+
913
+ def []: (:failure) -> ::Temporalio::Api::Failure::V1::Failure?
914
+ | (::Symbol) -> untyped
915
+
916
+ def []=: (:failure, ::Temporalio::Api::Failure::V1::Failure?) -> ::Temporalio::Api::Failure::V1::Failure?
917
+ | [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (:failure, M?) -> M?
918
+ | (::Symbol, untyped) -> untyped
919
+
920
+ interface _ToProto
921
+ def to_proto: () -> ResolveChildWorkflowExecutionStartCancelled
922
+ end
923
+
924
+ # The type of `#initialize` parameter.
925
+ type init = ResolveChildWorkflowExecutionStartCancelled | _ToProto
926
+
927
+ # The type of `repeated` field.
928
+ type field_array = ::Protobuf::Field::FieldArray[ResolveChildWorkflowExecutionStartCancelled, ResolveChildWorkflowExecutionStartCancelled | _ToProto]
929
+
930
+ # The type of `map` field.
931
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ResolveChildWorkflowExecutionStartCancelled, ResolveChildWorkflowExecutionStartCancelled | _ToProto]
932
+
933
+ type array = ::Array[ResolveChildWorkflowExecutionStartCancelled | _ToProto]
934
+
935
+ type hash[KEY] = ::Hash[KEY, ResolveChildWorkflowExecutionStartCancelled | _ToProto]
936
+ end
937
+
938
+ # / Notify a workflow that a child workflow execution has been resolved
939
+ #
940
+ class ResolveChildWorkflowExecution < ::Protobuf::Message
941
+ # Encode the message to a binary string
942
+ #
943
+ def self.encode: (ResolveChildWorkflowExecution) -> String
944
+
945
+ # / Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
946
+ #
947
+ attr_accessor seq(): ::Integer
948
+
949
+ def seq!: () -> ::Integer?
950
+
951
+ attr_accessor result(): ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowResult?
952
+
953
+ def result=: [M < ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowResult::_ToProto] (M?) -> M?
954
+ | ...
955
+
956
+ def result!: () -> ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowResult?
957
+
958
+ def initialize: (?seq: ::Integer, ?result: ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowResult::init?) -> void
959
+
960
+ def []: (:seq) -> ::Integer
961
+ | (:result) -> ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowResult?
962
+ | (::Symbol) -> untyped
963
+
964
+ def []=: (:seq, ::Integer) -> ::Integer
965
+ | (:result, ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowResult?) -> ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowResult?
966
+ | [M < ::Temporalio::Bridge::Api::ChildWorkflow::ChildWorkflowResult::_ToProto] (:result, M?) -> M?
967
+ | (::Symbol, untyped) -> untyped
968
+
969
+ interface _ToProto
970
+ def to_proto: () -> ResolveChildWorkflowExecution
971
+ end
972
+
973
+ # The type of `#initialize` parameter.
974
+ type init = ResolveChildWorkflowExecution | _ToProto
975
+
976
+ # The type of `repeated` field.
977
+ type field_array = ::Protobuf::Field::FieldArray[ResolveChildWorkflowExecution, ResolveChildWorkflowExecution | _ToProto]
978
+
979
+ # The type of `map` field.
980
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ResolveChildWorkflowExecution, ResolveChildWorkflowExecution | _ToProto]
981
+
982
+ type array = ::Array[ResolveChildWorkflowExecution | _ToProto]
983
+
984
+ type hash[KEY] = ::Hash[KEY, ResolveChildWorkflowExecution | _ToProto]
985
+ end
986
+
987
+ # / Update the workflow's random seed
988
+ #
989
+ class UpdateRandomSeed < ::Protobuf::Message
990
+ # Encode the message to a binary string
991
+ #
992
+ def self.encode: (UpdateRandomSeed) -> String
993
+
994
+ attr_accessor randomness_seed(): ::Integer
995
+
996
+ def randomness_seed!: () -> ::Integer?
997
+
998
+ def initialize: (?randomness_seed: ::Integer) -> void
999
+
1000
+ def []: (:randomness_seed) -> ::Integer
1001
+ | (::Symbol) -> untyped
1002
+
1003
+ def []=: (:randomness_seed, ::Integer) -> ::Integer
1004
+ | (::Symbol, untyped) -> untyped
1005
+
1006
+ interface _ToProto
1007
+ def to_proto: () -> UpdateRandomSeed
1008
+ end
1009
+
1010
+ # The type of `#initialize` parameter.
1011
+ type init = UpdateRandomSeed | _ToProto
1012
+
1013
+ # The type of `repeated` field.
1014
+ type field_array = ::Protobuf::Field::FieldArray[UpdateRandomSeed, UpdateRandomSeed | _ToProto]
1015
+
1016
+ # The type of `map` field.
1017
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, UpdateRandomSeed, UpdateRandomSeed | _ToProto]
1018
+
1019
+ type array = ::Array[UpdateRandomSeed | _ToProto]
1020
+
1021
+ type hash[KEY] = ::Hash[KEY, UpdateRandomSeed | _ToProto]
1022
+ end
1023
+
1024
+ # / Query a workflow
1025
+ #
1026
+ class QueryWorkflow < ::Protobuf::Message
1027
+ # Encode the message to a binary string
1028
+ #
1029
+ def self.encode: (QueryWorkflow) -> String
1030
+
1031
+ # / For PollWFTResp `query` field, this will be set to the special value `legacy`. For the
1032
+ # / `queries` field, the server provides a unique identifier. If it is a `legacy` query,
1033
+ # / lang cannot issue any commands in response other than to answer the query.
1034
+ #
1035
+ attr_accessor query_id(): ::String
1036
+
1037
+ def query_id!: () -> ::String?
1038
+
1039
+ # / The query's function/method/etc name
1040
+ #
1041
+ attr_accessor query_type(): ::String
1042
+
1043
+ def query_type!: () -> ::String?
1044
+
1045
+ attr_accessor arguments(): ::Temporalio::Api::Common::V1::Payload::field_array
1046
+
1047
+ def arguments=: (::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1048
+ | ...
1049
+
1050
+ def arguments!: () -> ::Temporalio::Api::Common::V1::Payload::field_array?
1051
+
1052
+ # / Headers attached to the query
1053
+ #
1054
+ attr_accessor headers(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1055
+
1056
+ # / Headers attached to the query
1057
+ #
1058
+ def headers=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1059
+ | ...
1060
+
1061
+ def headers!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1062
+
1063
+ def initialize: (?query_id: ::String, ?query_type: ::String, ?arguments: ::Temporalio::Api::Common::V1::Payload::array, ?headers: ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> void
1064
+
1065
+ def []: (:query_id) -> ::String
1066
+ | (:query_type) -> ::String
1067
+ | (:arguments) -> ::Temporalio::Api::Common::V1::Payload::field_array
1068
+ | (:headers) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1069
+ | (::Symbol) -> untyped
1070
+
1071
+ def []=: (:query_id, ::String) -> ::String
1072
+ | (:query_type, ::String) -> ::String
1073
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::field_array) -> ::Temporalio::Api::Common::V1::Payload::field_array
1074
+ | (:arguments, ::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1075
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1076
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1077
+ | (::Symbol, untyped) -> untyped
1078
+
1079
+ interface _ToProto
1080
+ def to_proto: () -> QueryWorkflow
1081
+ end
1082
+
1083
+ # The type of `#initialize` parameter.
1084
+ type init = QueryWorkflow | _ToProto
1085
+
1086
+ # The type of `repeated` field.
1087
+ type field_array = ::Protobuf::Field::FieldArray[QueryWorkflow, QueryWorkflow | _ToProto]
1088
+
1089
+ # The type of `map` field.
1090
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, QueryWorkflow, QueryWorkflow | _ToProto]
1091
+
1092
+ type array = ::Array[QueryWorkflow | _ToProto]
1093
+
1094
+ type hash[KEY] = ::Hash[KEY, QueryWorkflow | _ToProto]
1095
+ end
1096
+
1097
+ # / Cancel a running workflow
1098
+ #
1099
+ class CancelWorkflow < ::Protobuf::Message
1100
+ # Encode the message to a binary string
1101
+ #
1102
+ def self.encode: (CancelWorkflow) -> String
1103
+
1104
+ # / Information from the cancellation request
1105
+ #
1106
+ attr_accessor details(): ::Temporalio::Api::Common::V1::Payload::field_array
1107
+
1108
+ # / Information from the cancellation request
1109
+ #
1110
+ def details=: (::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1111
+ | ...
1112
+
1113
+ def details!: () -> ::Temporalio::Api::Common::V1::Payload::field_array?
1114
+
1115
+ def initialize: (?details: ::Temporalio::Api::Common::V1::Payload::array) -> void
1116
+
1117
+ def []: (:details) -> ::Temporalio::Api::Common::V1::Payload::field_array
1118
+ | (::Symbol) -> untyped
1119
+
1120
+ def []=: (:details, ::Temporalio::Api::Common::V1::Payload::field_array) -> ::Temporalio::Api::Common::V1::Payload::field_array
1121
+ | (:details, ::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1122
+ | (::Symbol, untyped) -> untyped
1123
+
1124
+ interface _ToProto
1125
+ def to_proto: () -> CancelWorkflow
1126
+ end
1127
+
1128
+ # The type of `#initialize` parameter.
1129
+ type init = CancelWorkflow | _ToProto
1130
+
1131
+ # The type of `repeated` field.
1132
+ type field_array = ::Protobuf::Field::FieldArray[CancelWorkflow, CancelWorkflow | _ToProto]
1133
+
1134
+ # The type of `map` field.
1135
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, CancelWorkflow, CancelWorkflow | _ToProto]
1136
+
1137
+ type array = ::Array[CancelWorkflow | _ToProto]
1138
+
1139
+ type hash[KEY] = ::Hash[KEY, CancelWorkflow | _ToProto]
1140
+ end
1141
+
1142
+ # Send a signal to a workflow
1143
+ #
1144
+ class SignalWorkflow < ::Protobuf::Message
1145
+ # Encode the message to a binary string
1146
+ #
1147
+ def self.encode: (SignalWorkflow) -> String
1148
+
1149
+ attr_accessor signal_name(): ::String
1150
+
1151
+ def signal_name!: () -> ::String?
1152
+
1153
+ attr_accessor input(): ::Temporalio::Api::Common::V1::Payload::field_array
1154
+
1155
+ def input=: (::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1156
+ | ...
1157
+
1158
+ def input!: () -> ::Temporalio::Api::Common::V1::Payload::field_array?
1159
+
1160
+ # Identity of the sender of the signal
1161
+ #
1162
+ attr_accessor identity(): ::String
1163
+
1164
+ def identity!: () -> ::String?
1165
+
1166
+ # Headers attached to the signal
1167
+ #
1168
+ attr_accessor headers(): ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1169
+
1170
+ # Headers attached to the signal
1171
+ #
1172
+ def headers=: (::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1173
+ | ...
1174
+
1175
+ def headers!: () -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]?
1176
+
1177
+ def initialize: (?signal_name: ::String, ?input: ::Temporalio::Api::Common::V1::Payload::array, ?identity: ::String, ?headers: ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> void
1178
+
1179
+ def []: (:signal_name) -> ::String
1180
+ | (:input) -> ::Temporalio::Api::Common::V1::Payload::field_array
1181
+ | (:identity) -> ::String
1182
+ | (:headers) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1183
+ | (::Symbol) -> untyped
1184
+
1185
+ def []=: (:signal_name, ::String) -> ::String
1186
+ | (:input, ::Temporalio::Api::Common::V1::Payload::field_array) -> ::Temporalio::Api::Common::V1::Payload::field_array
1187
+ | (:input, ::Temporalio::Api::Common::V1::Payload::array) -> ::Temporalio::Api::Common::V1::Payload::array
1188
+ | (:identity, ::String) -> ::String
1189
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::field_hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::field_hash[::String]
1190
+ | (:headers, ::Temporalio::Api::Common::V1::Payload::hash[::String]) -> ::Temporalio::Api::Common::V1::Payload::hash[::String]
1191
+ | (::Symbol, untyped) -> untyped
1192
+
1193
+ interface _ToProto
1194
+ def to_proto: () -> SignalWorkflow
1195
+ end
1196
+
1197
+ # The type of `#initialize` parameter.
1198
+ type init = SignalWorkflow | _ToProto
1199
+
1200
+ # The type of `repeated` field.
1201
+ type field_array = ::Protobuf::Field::FieldArray[SignalWorkflow, SignalWorkflow | _ToProto]
1202
+
1203
+ # The type of `map` field.
1204
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, SignalWorkflow, SignalWorkflow | _ToProto]
1205
+
1206
+ type array = ::Array[SignalWorkflow | _ToProto]
1207
+
1208
+ type hash[KEY] = ::Hash[KEY, SignalWorkflow | _ToProto]
1209
+ end
1210
+
1211
+ # Inform lang what the result of a call to `patched` or similar API should be -- this is always
1212
+ # sent pre-emptively, so any time it is sent the change is present
1213
+ #
1214
+ class NotifyHasPatch < ::Protobuf::Message
1215
+ # Encode the message to a binary string
1216
+ #
1217
+ def self.encode: (NotifyHasPatch) -> String
1218
+
1219
+ attr_accessor patch_id(): ::String
1220
+
1221
+ def patch_id!: () -> ::String?
1222
+
1223
+ def initialize: (?patch_id: ::String) -> void
1224
+
1225
+ def []: (:patch_id) -> ::String
1226
+ | (::Symbol) -> untyped
1227
+
1228
+ def []=: (:patch_id, ::String) -> ::String
1229
+ | (::Symbol, untyped) -> untyped
1230
+
1231
+ interface _ToProto
1232
+ def to_proto: () -> NotifyHasPatch
1233
+ end
1234
+
1235
+ # The type of `#initialize` parameter.
1236
+ type init = NotifyHasPatch | _ToProto
1237
+
1238
+ # The type of `repeated` field.
1239
+ type field_array = ::Protobuf::Field::FieldArray[NotifyHasPatch, NotifyHasPatch | _ToProto]
1240
+
1241
+ # The type of `map` field.
1242
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, NotifyHasPatch, NotifyHasPatch | _ToProto]
1243
+
1244
+ type array = ::Array[NotifyHasPatch | _ToProto]
1245
+
1246
+ type hash[KEY] = ::Hash[KEY, NotifyHasPatch | _ToProto]
1247
+ end
1248
+
1249
+ class ResolveSignalExternalWorkflow < ::Protobuf::Message
1250
+ # Encode the message to a binary string
1251
+ #
1252
+ def self.encode: (ResolveSignalExternalWorkflow) -> String
1253
+
1254
+ # / Sequence number as provided by lang in the corresponding SignalExternalWorkflowExecution
1255
+ # / command
1256
+ #
1257
+ attr_accessor seq(): ::Integer
1258
+
1259
+ def seq!: () -> ::Integer?
1260
+
1261
+ # / If populated, this signal either failed to be sent or was cancelled depending on failure
1262
+ # / type / info.
1263
+ #
1264
+ attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure?
1265
+
1266
+ # / If populated, this signal either failed to be sent or was cancelled depending on failure
1267
+ # / type / info.
1268
+ #
1269
+ def failure=: [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (M?) -> M?
1270
+ | ...
1271
+
1272
+ def failure!: () -> ::Temporalio::Api::Failure::V1::Failure?
1273
+
1274
+ def initialize: (?seq: ::Integer, ?failure: ::Temporalio::Api::Failure::V1::Failure::init?) -> void
1275
+
1276
+ def []: (:seq) -> ::Integer
1277
+ | (:failure) -> ::Temporalio::Api::Failure::V1::Failure?
1278
+ | (::Symbol) -> untyped
1279
+
1280
+ def []=: (:seq, ::Integer) -> ::Integer
1281
+ | (:failure, ::Temporalio::Api::Failure::V1::Failure?) -> ::Temporalio::Api::Failure::V1::Failure?
1282
+ | [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (:failure, M?) -> M?
1283
+ | (::Symbol, untyped) -> untyped
1284
+
1285
+ interface _ToProto
1286
+ def to_proto: () -> ResolveSignalExternalWorkflow
1287
+ end
1288
+
1289
+ # The type of `#initialize` parameter.
1290
+ type init = ResolveSignalExternalWorkflow | _ToProto
1291
+
1292
+ # The type of `repeated` field.
1293
+ type field_array = ::Protobuf::Field::FieldArray[ResolveSignalExternalWorkflow, ResolveSignalExternalWorkflow | _ToProto]
1294
+
1295
+ # The type of `map` field.
1296
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ResolveSignalExternalWorkflow, ResolveSignalExternalWorkflow | _ToProto]
1297
+
1298
+ type array = ::Array[ResolveSignalExternalWorkflow | _ToProto]
1299
+
1300
+ type hash[KEY] = ::Hash[KEY, ResolveSignalExternalWorkflow | _ToProto]
1301
+ end
1302
+
1303
+ class ResolveRequestCancelExternalWorkflow < ::Protobuf::Message
1304
+ # Encode the message to a binary string
1305
+ #
1306
+ def self.encode: (ResolveRequestCancelExternalWorkflow) -> String
1307
+
1308
+ # / Sequence number as provided by lang in the corresponding
1309
+ # / RequestCancelExternalWorkflowExecution command
1310
+ #
1311
+ attr_accessor seq(): ::Integer
1312
+
1313
+ def seq!: () -> ::Integer?
1314
+
1315
+ # / If populated, this signal either failed to be sent or was cancelled depending on failure
1316
+ # / type / info.
1317
+ #
1318
+ attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure?
1319
+
1320
+ # / If populated, this signal either failed to be sent or was cancelled depending on failure
1321
+ # / type / info.
1322
+ #
1323
+ def failure=: [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (M?) -> M?
1324
+ | ...
1325
+
1326
+ def failure!: () -> ::Temporalio::Api::Failure::V1::Failure?
1327
+
1328
+ def initialize: (?seq: ::Integer, ?failure: ::Temporalio::Api::Failure::V1::Failure::init?) -> void
1329
+
1330
+ def []: (:seq) -> ::Integer
1331
+ | (:failure) -> ::Temporalio::Api::Failure::V1::Failure?
1332
+ | (::Symbol) -> untyped
1333
+
1334
+ def []=: (:seq, ::Integer) -> ::Integer
1335
+ | (:failure, ::Temporalio::Api::Failure::V1::Failure?) -> ::Temporalio::Api::Failure::V1::Failure?
1336
+ | [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (:failure, M?) -> M?
1337
+ | (::Symbol, untyped) -> untyped
1338
+
1339
+ interface _ToProto
1340
+ def to_proto: () -> ResolveRequestCancelExternalWorkflow
1341
+ end
1342
+
1343
+ # The type of `#initialize` parameter.
1344
+ type init = ResolveRequestCancelExternalWorkflow | _ToProto
1345
+
1346
+ # The type of `repeated` field.
1347
+ type field_array = ::Protobuf::Field::FieldArray[ResolveRequestCancelExternalWorkflow, ResolveRequestCancelExternalWorkflow | _ToProto]
1348
+
1349
+ # The type of `map` field.
1350
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ResolveRequestCancelExternalWorkflow, ResolveRequestCancelExternalWorkflow | _ToProto]
1351
+
1352
+ type array = ::Array[ResolveRequestCancelExternalWorkflow | _ToProto]
1353
+
1354
+ type hash[KEY] = ::Hash[KEY, ResolveRequestCancelExternalWorkflow | _ToProto]
1355
+ end
1356
+
1357
+ class RemoveFromCache < ::Protobuf::Message
1358
+ # Encode the message to a binary string
1359
+ #
1360
+ def self.encode: (RemoveFromCache) -> String
1361
+
1362
+ class EvictionReason < ::Protobuf::Enum
1363
+ type names = :UNSPECIFIED | :CACHE_FULL | :CACHE_MISS | :NONDETERMINISM | :LANG_FAIL | :LANG_REQUESTED | :TASK_NOT_FOUND | :UNHANDLED_COMMAND | :FATAL | :PAGINATION_OR_HISTORY_FETCH
1364
+
1365
+ type strings = "UNSPECIFIED" | "CACHE_FULL" | "CACHE_MISS" | "NONDETERMINISM" | "LANG_FAIL" | "LANG_REQUESTED" | "TASK_NOT_FOUND" | "UNHANDLED_COMMAND" | "FATAL" | "PAGINATION_OR_HISTORY_FETCH"
1366
+
1367
+ type tags = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
1368
+
1369
+ type values = names | strings | tags
1370
+
1371
+ attr_reader name(): names
1372
+
1373
+ attr_reader tag(): tags
1374
+
1375
+ UNSPECIFIED: EvictionReason
1376
+
1377
+ # Workflow cache is full
1378
+ #
1379
+ CACHE_FULL: EvictionReason
1380
+
1381
+ # Workflow received a partial task but was not in the cache. Typically it won't be in the
1382
+ # lang cache either at this point, but we send an eviction to be sure.
1383
+ #
1384
+ CACHE_MISS: EvictionReason
1385
+
1386
+ # The workflow produced results inconsistent with history.
1387
+ #
1388
+ NONDETERMINISM: EvictionReason
1389
+
1390
+ # The lang side completed the workflow activation with a failure.
1391
+ #
1392
+ LANG_FAIL: EvictionReason
1393
+
1394
+ # The lang side explicitly requested this workflow be evicted.
1395
+ #
1396
+ LANG_REQUESTED: EvictionReason
1397
+
1398
+ # The workflow task we tried to respond to didn't exist. The workflow might have already
1399
+ # finished, or the WFT timed out but we didn't learn about that yet.
1400
+ #
1401
+ TASK_NOT_FOUND: EvictionReason
1402
+
1403
+ # There was new work that must be handled while we attempted to complete the WFT. Ex:
1404
+ # a new signal came in while trying to complete the workflow.
1405
+ #
1406
+ UNHANDLED_COMMAND: EvictionReason
1407
+
1408
+ # There was some fatal error processing the workflow, typically an internal error, but
1409
+ # can also happen if then network drops out while paginating. Check message string.
1410
+ #
1411
+ FATAL: EvictionReason
1412
+
1413
+ # Something went wrong attempting to fetch more history events.
1414
+ #
1415
+ PAGINATION_OR_HISTORY_FETCH: EvictionReason
1416
+
1417
+ # The type of `#initialize` parameter.
1418
+ type init = EvictionReason | values
1419
+
1420
+ # The type of `repeated` field.
1421
+ type field_array = ::Protobuf::Field::FieldArray[EvictionReason, EvictionReason | values]
1422
+
1423
+ # The type of `map` field.
1424
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, EvictionReason, EvictionReason | values]
1425
+
1426
+ type array = ::Array[EvictionReason | values]
1427
+
1428
+ type hash[KEY] = ::Hash[KEY, EvictionReason | values]
1429
+ end
1430
+
1431
+ attr_accessor message(): ::String
1432
+
1433
+ def message!: () -> ::String?
1434
+
1435
+ attr_accessor reason(): ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason
1436
+
1437
+ def reason=: (::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::values) -> ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::values
1438
+ | ...
1439
+
1440
+ def reason!: () -> ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason?
1441
+
1442
+ def initialize: (?message: ::String, ?reason: ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::init) -> void
1443
+
1444
+ def []: (:message) -> ::String
1445
+ | (:reason) -> ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason
1446
+ | (::Symbol) -> untyped
1447
+
1448
+ def []=: (:message, ::String) -> ::String
1449
+ | (:reason, ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason) -> ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason
1450
+ | (:reason, ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::values) -> ::Temporalio::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::values
1451
+ | (::Symbol, untyped) -> untyped
1452
+
1453
+ interface _ToProto
1454
+ def to_proto: () -> RemoveFromCache
1455
+ end
1456
+
1457
+ # The type of `#initialize` parameter.
1458
+ type init = RemoveFromCache | _ToProto
1459
+
1460
+ # The type of `repeated` field.
1461
+ type field_array = ::Protobuf::Field::FieldArray[RemoveFromCache, RemoveFromCache | _ToProto]
1462
+
1463
+ # The type of `map` field.
1464
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, RemoveFromCache, RemoveFromCache | _ToProto]
1465
+
1466
+ type array = ::Array[RemoveFromCache | _ToProto]
1467
+
1468
+ type hash[KEY] = ::Hash[KEY, RemoveFromCache | _ToProto]
1469
+ end
1470
+ end
1471
+ end
1472
+ end
1473
+ end