clara-temporalio 0.4.3-x86_64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +2 -0
  3. data/Gemfile +27 -0
  4. data/Rakefile +101 -0
  5. data/lib/temporalio/activity/cancellation_details.rb +58 -0
  6. data/lib/temporalio/activity/complete_async_error.rb +11 -0
  7. data/lib/temporalio/activity/context.rb +131 -0
  8. data/lib/temporalio/activity/definition.rb +197 -0
  9. data/lib/temporalio/activity/info.rb +70 -0
  10. data/lib/temporalio/activity.rb +14 -0
  11. data/lib/temporalio/api/activity/v1/message.rb +25 -0
  12. data/lib/temporalio/api/batch/v1/message.rb +38 -0
  13. data/lib/temporalio/api/cloud/account/v1/message.rb +28 -0
  14. data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +135 -0
  15. data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +25 -0
  16. data/lib/temporalio/api/cloud/cloudservice.rb +3 -0
  17. data/lib/temporalio/api/cloud/identity/v1/message.rb +46 -0
  18. data/lib/temporalio/api/cloud/namespace/v1/message.rb +46 -0
  19. data/lib/temporalio/api/cloud/nexus/v1/message.rb +32 -0
  20. data/lib/temporalio/api/cloud/operation/v1/message.rb +28 -0
  21. data/lib/temporalio/api/cloud/region/v1/message.rb +24 -0
  22. data/lib/temporalio/api/cloud/resource/v1/message.rb +23 -0
  23. data/lib/temporalio/api/cloud/sink/v1/message.rb +24 -0
  24. data/lib/temporalio/api/cloud/usage/v1/message.rb +31 -0
  25. data/lib/temporalio/api/command/v1/message.rb +46 -0
  26. data/lib/temporalio/api/common/v1/grpc_status.rb +23 -0
  27. data/lib/temporalio/api/common/v1/message.rb +49 -0
  28. data/lib/temporalio/api/deployment/v1/message.rb +39 -0
  29. data/lib/temporalio/api/enums/v1/batch_operation.rb +22 -0
  30. data/lib/temporalio/api/enums/v1/command_type.rb +21 -0
  31. data/lib/temporalio/api/enums/v1/common.rb +28 -0
  32. data/lib/temporalio/api/enums/v1/deployment.rb +23 -0
  33. data/lib/temporalio/api/enums/v1/event_type.rb +21 -0
  34. data/lib/temporalio/api/enums/v1/failed_cause.rb +26 -0
  35. data/lib/temporalio/api/enums/v1/namespace.rb +23 -0
  36. data/lib/temporalio/api/enums/v1/nexus.rb +21 -0
  37. data/lib/temporalio/api/enums/v1/query.rb +22 -0
  38. data/lib/temporalio/api/enums/v1/reset.rb +23 -0
  39. data/lib/temporalio/api/enums/v1/schedule.rb +21 -0
  40. data/lib/temporalio/api/enums/v1/task_queue.rb +25 -0
  41. data/lib/temporalio/api/enums/v1/update.rb +22 -0
  42. data/lib/temporalio/api/enums/v1/workflow.rb +31 -0
  43. data/lib/temporalio/api/errordetails/v1/message.rb +44 -0
  44. data/lib/temporalio/api/export/v1/message.rb +24 -0
  45. data/lib/temporalio/api/failure/v1/message.rb +38 -0
  46. data/lib/temporalio/api/filter/v1/message.rb +27 -0
  47. data/lib/temporalio/api/history/v1/message.rb +94 -0
  48. data/lib/temporalio/api/namespace/v1/message.rb +31 -0
  49. data/lib/temporalio/api/nexus/v1/message.rb +41 -0
  50. data/lib/temporalio/api/operatorservice/v1/request_response.rb +49 -0
  51. data/lib/temporalio/api/operatorservice/v1/service.rb +23 -0
  52. data/lib/temporalio/api/operatorservice.rb +3 -0
  53. data/lib/temporalio/api/payload_visitor.rb +1668 -0
  54. data/lib/temporalio/api/protocol/v1/message.rb +23 -0
  55. data/lib/temporalio/api/query/v1/message.rb +28 -0
  56. data/lib/temporalio/api/replication/v1/message.rb +26 -0
  57. data/lib/temporalio/api/rules/v1/message.rb +27 -0
  58. data/lib/temporalio/api/schedule/v1/message.rb +43 -0
  59. data/lib/temporalio/api/sdk/v1/enhanced_stack_trace.rb +25 -0
  60. data/lib/temporalio/api/sdk/v1/task_complete_metadata.rb +21 -0
  61. data/lib/temporalio/api/sdk/v1/user_metadata.rb +23 -0
  62. data/lib/temporalio/api/sdk/v1/workflow_metadata.rb +23 -0
  63. data/lib/temporalio/api/taskqueue/v1/message.rb +48 -0
  64. data/lib/temporalio/api/testservice/v1/request_response.rb +31 -0
  65. data/lib/temporalio/api/testservice/v1/service.rb +23 -0
  66. data/lib/temporalio/api/update/v1/message.rb +33 -0
  67. data/lib/temporalio/api/version/v1/message.rb +26 -0
  68. data/lib/temporalio/api/workflow/v1/message.rb +63 -0
  69. data/lib/temporalio/api/workflowservice/v1/request_response.rb +244 -0
  70. data/lib/temporalio/api/workflowservice/v1/service.rb +23 -0
  71. data/lib/temporalio/api/workflowservice.rb +3 -0
  72. data/lib/temporalio/api.rb +15 -0
  73. data/lib/temporalio/cancellation.rb +170 -0
  74. data/lib/temporalio/client/activity_id_reference.rb +32 -0
  75. data/lib/temporalio/client/async_activity_handle.rb +85 -0
  76. data/lib/temporalio/client/connection/cloud_service.rb +786 -0
  77. data/lib/temporalio/client/connection/operator_service.rb +201 -0
  78. data/lib/temporalio/client/connection/service.rb +42 -0
  79. data/lib/temporalio/client/connection/test_service.rb +111 -0
  80. data/lib/temporalio/client/connection/workflow_service.rb +1326 -0
  81. data/lib/temporalio/client/connection.rb +316 -0
  82. data/lib/temporalio/client/interceptor.rb +457 -0
  83. data/lib/temporalio/client/schedule.rb +991 -0
  84. data/lib/temporalio/client/schedule_handle.rb +126 -0
  85. data/lib/temporalio/client/with_start_workflow_operation.rb +115 -0
  86. data/lib/temporalio/client/workflow_execution.rb +119 -0
  87. data/lib/temporalio/client/workflow_execution_count.rb +36 -0
  88. data/lib/temporalio/client/workflow_execution_status.rb +18 -0
  89. data/lib/temporalio/client/workflow_handle.rb +389 -0
  90. data/lib/temporalio/client/workflow_query_reject_condition.rb +14 -0
  91. data/lib/temporalio/client/workflow_update_handle.rb +65 -0
  92. data/lib/temporalio/client/workflow_update_wait_stage.rb +17 -0
  93. data/lib/temporalio/client.rb +625 -0
  94. data/lib/temporalio/common_enums.rb +55 -0
  95. data/lib/temporalio/contrib/open_telemetry.rb +469 -0
  96. data/lib/temporalio/converters/data_converter.rb +99 -0
  97. data/lib/temporalio/converters/failure_converter.rb +205 -0
  98. data/lib/temporalio/converters/payload_codec.rb +26 -0
  99. data/lib/temporalio/converters/payload_converter/binary_null.rb +34 -0
  100. data/lib/temporalio/converters/payload_converter/binary_plain.rb +35 -0
  101. data/lib/temporalio/converters/payload_converter/binary_protobuf.rb +42 -0
  102. data/lib/temporalio/converters/payload_converter/composite.rb +66 -0
  103. data/lib/temporalio/converters/payload_converter/encoding.rb +35 -0
  104. data/lib/temporalio/converters/payload_converter/json_plain.rb +44 -0
  105. data/lib/temporalio/converters/payload_converter/json_protobuf.rb +41 -0
  106. data/lib/temporalio/converters/payload_converter.rb +71 -0
  107. data/lib/temporalio/converters/raw_value.rb +20 -0
  108. data/lib/temporalio/converters.rb +9 -0
  109. data/lib/temporalio/error/failure.rb +237 -0
  110. data/lib/temporalio/error.rb +156 -0
  111. data/lib/temporalio/internal/bridge/3.2/temporalio_bridge.bundle +0 -0
  112. data/lib/temporalio/internal/bridge/3.3/temporalio_bridge.bundle +0 -0
  113. data/lib/temporalio/internal/bridge/3.4/temporalio_bridge.bundle +0 -0
  114. data/lib/temporalio/internal/bridge/api/activity_result/activity_result.rb +34 -0
  115. data/lib/temporalio/internal/bridge/api/activity_task/activity_task.rb +32 -0
  116. data/lib/temporalio/internal/bridge/api/child_workflow/child_workflow.rb +33 -0
  117. data/lib/temporalio/internal/bridge/api/common/common.rb +27 -0
  118. data/lib/temporalio/internal/bridge/api/core_interface.rb +40 -0
  119. data/lib/temporalio/internal/bridge/api/external_data/external_data.rb +27 -0
  120. data/lib/temporalio/internal/bridge/api/nexus/nexus.rb +34 -0
  121. data/lib/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rb +56 -0
  122. data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +58 -0
  123. data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +31 -0
  124. data/lib/temporalio/internal/bridge/api.rb +3 -0
  125. data/lib/temporalio/internal/bridge/client.rb +95 -0
  126. data/lib/temporalio/internal/bridge/runtime.rb +56 -0
  127. data/lib/temporalio/internal/bridge/testing.rb +69 -0
  128. data/lib/temporalio/internal/bridge/worker.rb +109 -0
  129. data/lib/temporalio/internal/bridge.rb +36 -0
  130. data/lib/temporalio/internal/client/implementation.rb +926 -0
  131. data/lib/temporalio/internal/metric.rb +122 -0
  132. data/lib/temporalio/internal/proto_utils.rb +165 -0
  133. data/lib/temporalio/internal/worker/activity_worker.rb +448 -0
  134. data/lib/temporalio/internal/worker/multi_runner.rb +213 -0
  135. data/lib/temporalio/internal/worker/workflow_instance/child_workflow_handle.rb +54 -0
  136. data/lib/temporalio/internal/worker/workflow_instance/context.rb +391 -0
  137. data/lib/temporalio/internal/worker/workflow_instance/details.rb +49 -0
  138. data/lib/temporalio/internal/worker/workflow_instance/external_workflow_handle.rb +32 -0
  139. data/lib/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rb +22 -0
  140. data/lib/temporalio/internal/worker/workflow_instance/handler_execution.rb +25 -0
  141. data/lib/temporalio/internal/worker/workflow_instance/handler_hash.rb +41 -0
  142. data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +97 -0
  143. data/lib/temporalio/internal/worker/workflow_instance/inbound_implementation.rb +62 -0
  144. data/lib/temporalio/internal/worker/workflow_instance/outbound_implementation.rb +404 -0
  145. data/lib/temporalio/internal/worker/workflow_instance/replay_safe_logger.rb +37 -0
  146. data/lib/temporalio/internal/worker/workflow_instance/replay_safe_metric.rb +40 -0
  147. data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +183 -0
  148. data/lib/temporalio/internal/worker/workflow_instance.rb +800 -0
  149. data/lib/temporalio/internal/worker/workflow_worker.rb +249 -0
  150. data/lib/temporalio/internal.rb +7 -0
  151. data/lib/temporalio/metric.rb +109 -0
  152. data/lib/temporalio/priority.rb +59 -0
  153. data/lib/temporalio/retry_policy.rb +74 -0
  154. data/lib/temporalio/runtime/metric_buffer.rb +94 -0
  155. data/lib/temporalio/runtime.rb +352 -0
  156. data/lib/temporalio/scoped_logger.rb +96 -0
  157. data/lib/temporalio/search_attributes.rb +356 -0
  158. data/lib/temporalio/testing/activity_environment.rb +175 -0
  159. data/lib/temporalio/testing/workflow_environment.rb +406 -0
  160. data/lib/temporalio/testing.rb +10 -0
  161. data/lib/temporalio/version.rb +5 -0
  162. data/lib/temporalio/versioning_override.rb +55 -0
  163. data/lib/temporalio/worker/activity_executor/fiber.rb +49 -0
  164. data/lib/temporalio/worker/activity_executor/thread_pool.rb +46 -0
  165. data/lib/temporalio/worker/activity_executor.rb +55 -0
  166. data/lib/temporalio/worker/deployment_options.rb +45 -0
  167. data/lib/temporalio/worker/interceptor.rb +367 -0
  168. data/lib/temporalio/worker/poller_behavior.rb +61 -0
  169. data/lib/temporalio/worker/thread_pool.rb +237 -0
  170. data/lib/temporalio/worker/tuner.rb +189 -0
  171. data/lib/temporalio/worker/workflow_executor/thread_pool.rb +236 -0
  172. data/lib/temporalio/worker/workflow_executor.rb +26 -0
  173. data/lib/temporalio/worker/workflow_replayer.rb +349 -0
  174. data/lib/temporalio/worker.rb +633 -0
  175. data/lib/temporalio/worker_deployment_version.rb +67 -0
  176. data/lib/temporalio/workflow/activity_cancellation_type.rb +20 -0
  177. data/lib/temporalio/workflow/child_workflow_cancellation_type.rb +21 -0
  178. data/lib/temporalio/workflow/child_workflow_handle.rb +43 -0
  179. data/lib/temporalio/workflow/definition.rb +680 -0
  180. data/lib/temporalio/workflow/external_workflow_handle.rb +41 -0
  181. data/lib/temporalio/workflow/future.rb +151 -0
  182. data/lib/temporalio/workflow/handler_unfinished_policy.rb +13 -0
  183. data/lib/temporalio/workflow/info.rb +107 -0
  184. data/lib/temporalio/workflow/parent_close_policy.rb +19 -0
  185. data/lib/temporalio/workflow/update_info.rb +20 -0
  186. data/lib/temporalio/workflow.rb +594 -0
  187. data/lib/temporalio/workflow_history.rb +47 -0
  188. data/lib/temporalio.rb +12 -0
  189. data/temporalio.gemspec +31 -0
  190. metadata +267 -0
@@ -0,0 +1,1668 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated code. DO NOT EDIT!
4
+
5
+ require 'temporalio/api'
6
+ require 'temporalio/internal/bridge/api'
7
+
8
+ module Temporalio
9
+ module Api
10
+ # Visitor for payloads within the protobuf structure. This visitor is thread safe and can be used multiple
11
+ # times since it stores no mutable state.
12
+ #
13
+ # @note WARNING: This class is not considered stable for external use and may change as needed for internal
14
+ # reasons.
15
+ class PayloadVisitor
16
+ # Create a new visitor, calling the block on every {Common::V1::Payload} or
17
+ # {Google::Protobuf::RepeatedField<Payload>} encountered.
18
+ #
19
+ # @param on_enter [Proc, nil] Proc called at the beginning of the processing for every protobuf value
20
+ # _except_ the ones calling the block.
21
+ # @param on_exit [Proc, nil] Proc called at the end of the processing for every protobuf value _except_ the
22
+ # ones calling the block.
23
+ # @param skip_search_attributes [Boolean] If true, payloads within search attributes do not call the block.
24
+ # @param traverse_any [Boolean] If true, when a [Google::Protobuf::Any] is encountered, it is unpacked,
25
+ # visited, then repacked.
26
+ # @yield [value] Block called with the visited payload value.
27
+ # @yieldparam [Common::V1::Payload, Google::Protobuf::RepeatedField<Payload>] Payload or payload list.
28
+ def initialize(
29
+ on_enter: nil,
30
+ on_exit: nil,
31
+ skip_search_attributes: false,
32
+ traverse_any: false,
33
+ &block
34
+ )
35
+ raise ArgumentError, 'Block required' unless block_given?
36
+ @on_enter = on_enter
37
+ @on_exit = on_exit
38
+ @skip_search_attributes = skip_search_attributes
39
+ @traverse_any = traverse_any
40
+ @block = block
41
+ end
42
+
43
+ # Visit the given protobuf message.
44
+ #
45
+ # @param value [Google::Protobuf::Message] Message to visit.
46
+ def run(value)
47
+ return unless value.is_a?(Google::Protobuf::MessageExts)
48
+ method_name = method_name_from_proto_name(value.class.descriptor.name)
49
+ send(method_name, value) if respond_to?(method_name, true)
50
+ nil
51
+ end
52
+
53
+ # @!visibility private
54
+ def _run_activation(value)
55
+ coresdk_workflow_activation_workflow_activation(value)
56
+ end
57
+
58
+ # @!visibility private
59
+ def _run_activation_completion(value)
60
+ coresdk_workflow_completion_workflow_activation_completion(value)
61
+ end
62
+
63
+ private
64
+
65
+ def method_name_from_proto_name(name)
66
+ name
67
+ .sub('temporal.api.', 'api_')
68
+ .gsub('.', '_')
69
+ .gsub(/([a-z])([A-Z])/, '\1_\2')
70
+ .downcase
71
+ end
72
+
73
+ def api_common_v1_payload(value)
74
+ @block.call(value)
75
+ end
76
+
77
+ def api_common_v1_payload_repeated(value)
78
+ @block.call(value)
79
+ end
80
+
81
+ def google_protobuf_any(value)
82
+ return unless @traverse_any
83
+ desc = Google::Protobuf::DescriptorPool.generated_pool.lookup(value.type_name)
84
+ unpacked = value.unpack(desc.msgclass)
85
+ run(unpacked)
86
+ value.pack(unpacked)
87
+ end
88
+
89
+ ### Generated method bodies below ###
90
+
91
+ def api_batch_v1_batch_operation_reset(value)
92
+ @on_enter&.call(value)
93
+ value.post_reset_operations.each { |v| api_workflow_v1_post_reset_operation(v) }
94
+ @on_exit&.call(value)
95
+ end
96
+
97
+ def api_batch_v1_batch_operation_signal(value)
98
+ @on_enter&.call(value)
99
+ api_common_v1_payloads(value.input) if value.has_input?
100
+ api_common_v1_header(value.header) if value.has_header?
101
+ @on_exit&.call(value)
102
+ end
103
+
104
+ def api_batch_v1_batch_operation_termination(value)
105
+ @on_enter&.call(value)
106
+ api_common_v1_payloads(value.details) if value.has_details?
107
+ @on_exit&.call(value)
108
+ end
109
+
110
+ def api_cloud_cloudservice_v1_add_namespace_region_response(value)
111
+ @on_enter&.call(value)
112
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
113
+ @on_exit&.call(value)
114
+ end
115
+
116
+ def api_cloud_cloudservice_v1_add_user_group_member_response(value)
117
+ @on_enter&.call(value)
118
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
119
+ @on_exit&.call(value)
120
+ end
121
+
122
+ def api_cloud_cloudservice_v1_create_api_key_response(value)
123
+ @on_enter&.call(value)
124
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
125
+ @on_exit&.call(value)
126
+ end
127
+
128
+ def api_cloud_cloudservice_v1_create_namespace_export_sink_response(value)
129
+ @on_enter&.call(value)
130
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
131
+ @on_exit&.call(value)
132
+ end
133
+
134
+ def api_cloud_cloudservice_v1_create_namespace_response(value)
135
+ @on_enter&.call(value)
136
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
137
+ @on_exit&.call(value)
138
+ end
139
+
140
+ def api_cloud_cloudservice_v1_create_nexus_endpoint_request(value)
141
+ @on_enter&.call(value)
142
+ api_cloud_nexus_v1_endpoint_spec(value.spec) if value.has_spec?
143
+ @on_exit&.call(value)
144
+ end
145
+
146
+ def api_cloud_cloudservice_v1_create_nexus_endpoint_response(value)
147
+ @on_enter&.call(value)
148
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
149
+ @on_exit&.call(value)
150
+ end
151
+
152
+ def api_cloud_cloudservice_v1_create_service_account_response(value)
153
+ @on_enter&.call(value)
154
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
155
+ @on_exit&.call(value)
156
+ end
157
+
158
+ def api_cloud_cloudservice_v1_create_user_group_response(value)
159
+ @on_enter&.call(value)
160
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
161
+ @on_exit&.call(value)
162
+ end
163
+
164
+ def api_cloud_cloudservice_v1_create_user_response(value)
165
+ @on_enter&.call(value)
166
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
167
+ @on_exit&.call(value)
168
+ end
169
+
170
+ def api_cloud_cloudservice_v1_delete_api_key_response(value)
171
+ @on_enter&.call(value)
172
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
173
+ @on_exit&.call(value)
174
+ end
175
+
176
+ def api_cloud_cloudservice_v1_delete_namespace_export_sink_response(value)
177
+ @on_enter&.call(value)
178
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
179
+ @on_exit&.call(value)
180
+ end
181
+
182
+ def api_cloud_cloudservice_v1_delete_namespace_region_response(value)
183
+ @on_enter&.call(value)
184
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
185
+ @on_exit&.call(value)
186
+ end
187
+
188
+ def api_cloud_cloudservice_v1_delete_namespace_response(value)
189
+ @on_enter&.call(value)
190
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
191
+ @on_exit&.call(value)
192
+ end
193
+
194
+ def api_cloud_cloudservice_v1_delete_nexus_endpoint_response(value)
195
+ @on_enter&.call(value)
196
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
197
+ @on_exit&.call(value)
198
+ end
199
+
200
+ def api_cloud_cloudservice_v1_delete_service_account_response(value)
201
+ @on_enter&.call(value)
202
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
203
+ @on_exit&.call(value)
204
+ end
205
+
206
+ def api_cloud_cloudservice_v1_delete_user_group_response(value)
207
+ @on_enter&.call(value)
208
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
209
+ @on_exit&.call(value)
210
+ end
211
+
212
+ def api_cloud_cloudservice_v1_delete_user_response(value)
213
+ @on_enter&.call(value)
214
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
215
+ @on_exit&.call(value)
216
+ end
217
+
218
+ def api_cloud_cloudservice_v1_failover_namespace_region_response(value)
219
+ @on_enter&.call(value)
220
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
221
+ @on_exit&.call(value)
222
+ end
223
+
224
+ def api_cloud_cloudservice_v1_get_async_operation_response(value)
225
+ @on_enter&.call(value)
226
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
227
+ @on_exit&.call(value)
228
+ end
229
+
230
+ def api_cloud_cloudservice_v1_get_nexus_endpoint_response(value)
231
+ @on_enter&.call(value)
232
+ api_cloud_nexus_v1_endpoint(value.endpoint) if value.has_endpoint?
233
+ @on_exit&.call(value)
234
+ end
235
+
236
+ def api_cloud_cloudservice_v1_get_nexus_endpoints_response(value)
237
+ @on_enter&.call(value)
238
+ value.endpoints.each { |v| api_cloud_nexus_v1_endpoint(v) }
239
+ @on_exit&.call(value)
240
+ end
241
+
242
+ def api_cloud_cloudservice_v1_remove_user_group_member_response(value)
243
+ @on_enter&.call(value)
244
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
245
+ @on_exit&.call(value)
246
+ end
247
+
248
+ def api_cloud_cloudservice_v1_rename_custom_search_attribute_response(value)
249
+ @on_enter&.call(value)
250
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
251
+ @on_exit&.call(value)
252
+ end
253
+
254
+ def api_cloud_cloudservice_v1_set_user_group_namespace_access_response(value)
255
+ @on_enter&.call(value)
256
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
257
+ @on_exit&.call(value)
258
+ end
259
+
260
+ def api_cloud_cloudservice_v1_set_user_namespace_access_response(value)
261
+ @on_enter&.call(value)
262
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
263
+ @on_exit&.call(value)
264
+ end
265
+
266
+ def api_cloud_cloudservice_v1_update_account_response(value)
267
+ @on_enter&.call(value)
268
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
269
+ @on_exit&.call(value)
270
+ end
271
+
272
+ def api_cloud_cloudservice_v1_update_api_key_response(value)
273
+ @on_enter&.call(value)
274
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
275
+ @on_exit&.call(value)
276
+ end
277
+
278
+ def api_cloud_cloudservice_v1_update_namespace_export_sink_response(value)
279
+ @on_enter&.call(value)
280
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
281
+ @on_exit&.call(value)
282
+ end
283
+
284
+ def api_cloud_cloudservice_v1_update_namespace_response(value)
285
+ @on_enter&.call(value)
286
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
287
+ @on_exit&.call(value)
288
+ end
289
+
290
+ def api_cloud_cloudservice_v1_update_nexus_endpoint_request(value)
291
+ @on_enter&.call(value)
292
+ api_cloud_nexus_v1_endpoint_spec(value.spec) if value.has_spec?
293
+ @on_exit&.call(value)
294
+ end
295
+
296
+ def api_cloud_cloudservice_v1_update_nexus_endpoint_response(value)
297
+ @on_enter&.call(value)
298
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
299
+ @on_exit&.call(value)
300
+ end
301
+
302
+ def api_cloud_cloudservice_v1_update_service_account_response(value)
303
+ @on_enter&.call(value)
304
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
305
+ @on_exit&.call(value)
306
+ end
307
+
308
+ def api_cloud_cloudservice_v1_update_user_group_response(value)
309
+ @on_enter&.call(value)
310
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
311
+ @on_exit&.call(value)
312
+ end
313
+
314
+ def api_cloud_cloudservice_v1_update_user_response(value)
315
+ @on_enter&.call(value)
316
+ api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
317
+ @on_exit&.call(value)
318
+ end
319
+
320
+ def api_cloud_nexus_v1_endpoint(value)
321
+ @on_enter&.call(value)
322
+ api_cloud_nexus_v1_endpoint_spec(value.spec) if value.has_spec?
323
+ @on_exit&.call(value)
324
+ end
325
+
326
+ def api_cloud_nexus_v1_endpoint_spec(value)
327
+ @on_enter&.call(value)
328
+ api_common_v1_payload(value.description) if value.has_description?
329
+ @on_exit&.call(value)
330
+ end
331
+
332
+ def api_cloud_operation_v1_async_operation(value)
333
+ @on_enter&.call(value)
334
+ google_protobuf_any(value.operation_input) if value.has_operation_input?
335
+ @on_exit&.call(value)
336
+ end
337
+
338
+ def api_command_v1_cancel_workflow_execution_command_attributes(value)
339
+ @on_enter&.call(value)
340
+ api_common_v1_payloads(value.details) if value.has_details?
341
+ @on_exit&.call(value)
342
+ end
343
+
344
+ def api_command_v1_command(value)
345
+ @on_enter&.call(value)
346
+ api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
347
+ api_command_v1_schedule_activity_task_command_attributes(value.schedule_activity_task_command_attributes) if value.has_schedule_activity_task_command_attributes?
348
+ api_command_v1_complete_workflow_execution_command_attributes(value.complete_workflow_execution_command_attributes) if value.has_complete_workflow_execution_command_attributes?
349
+ api_command_v1_fail_workflow_execution_command_attributes(value.fail_workflow_execution_command_attributes) if value.has_fail_workflow_execution_command_attributes?
350
+ api_command_v1_cancel_workflow_execution_command_attributes(value.cancel_workflow_execution_command_attributes) if value.has_cancel_workflow_execution_command_attributes?
351
+ api_command_v1_record_marker_command_attributes(value.record_marker_command_attributes) if value.has_record_marker_command_attributes?
352
+ api_command_v1_continue_as_new_workflow_execution_command_attributes(value.continue_as_new_workflow_execution_command_attributes) if value.has_continue_as_new_workflow_execution_command_attributes?
353
+ api_command_v1_start_child_workflow_execution_command_attributes(value.start_child_workflow_execution_command_attributes) if value.has_start_child_workflow_execution_command_attributes?
354
+ api_command_v1_signal_external_workflow_execution_command_attributes(value.signal_external_workflow_execution_command_attributes) if value.has_signal_external_workflow_execution_command_attributes?
355
+ api_command_v1_upsert_workflow_search_attributes_command_attributes(value.upsert_workflow_search_attributes_command_attributes) if value.has_upsert_workflow_search_attributes_command_attributes?
356
+ api_command_v1_modify_workflow_properties_command_attributes(value.modify_workflow_properties_command_attributes) if value.has_modify_workflow_properties_command_attributes?
357
+ api_command_v1_schedule_nexus_operation_command_attributes(value.schedule_nexus_operation_command_attributes) if value.has_schedule_nexus_operation_command_attributes?
358
+ @on_exit&.call(value)
359
+ end
360
+
361
+ def api_command_v1_complete_workflow_execution_command_attributes(value)
362
+ @on_enter&.call(value)
363
+ api_common_v1_payloads(value.result) if value.has_result?
364
+ @on_exit&.call(value)
365
+ end
366
+
367
+ def api_command_v1_continue_as_new_workflow_execution_command_attributes(value)
368
+ @on_enter&.call(value)
369
+ api_common_v1_payloads(value.input) if value.has_input?
370
+ api_failure_v1_failure(value.failure) if value.has_failure?
371
+ api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
372
+ api_common_v1_header(value.header) if value.has_header?
373
+ api_common_v1_memo(value.memo) if value.has_memo?
374
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
375
+ @on_exit&.call(value)
376
+ end
377
+
378
+ def api_command_v1_fail_workflow_execution_command_attributes(value)
379
+ @on_enter&.call(value)
380
+ api_failure_v1_failure(value.failure) if value.has_failure?
381
+ @on_exit&.call(value)
382
+ end
383
+
384
+ def api_command_v1_modify_workflow_properties_command_attributes(value)
385
+ @on_enter&.call(value)
386
+ api_common_v1_memo(value.upserted_memo) if value.has_upserted_memo?
387
+ @on_exit&.call(value)
388
+ end
389
+
390
+ def api_command_v1_record_marker_command_attributes(value)
391
+ @on_enter&.call(value)
392
+ value.details.values.each { |v| api_common_v1_payloads(v) }
393
+ api_common_v1_header(value.header) if value.has_header?
394
+ api_failure_v1_failure(value.failure) if value.has_failure?
395
+ @on_exit&.call(value)
396
+ end
397
+
398
+ def api_command_v1_schedule_activity_task_command_attributes(value)
399
+ @on_enter&.call(value)
400
+ api_common_v1_header(value.header) if value.has_header?
401
+ api_common_v1_payloads(value.input) if value.has_input?
402
+ @on_exit&.call(value)
403
+ end
404
+
405
+ def api_command_v1_schedule_nexus_operation_command_attributes(value)
406
+ @on_enter&.call(value)
407
+ api_common_v1_payload(value.input) if value.has_input?
408
+ @on_exit&.call(value)
409
+ end
410
+
411
+ def api_command_v1_signal_external_workflow_execution_command_attributes(value)
412
+ @on_enter&.call(value)
413
+ api_common_v1_payloads(value.input) if value.has_input?
414
+ api_common_v1_header(value.header) if value.has_header?
415
+ @on_exit&.call(value)
416
+ end
417
+
418
+ def api_command_v1_start_child_workflow_execution_command_attributes(value)
419
+ @on_enter&.call(value)
420
+ api_common_v1_payloads(value.input) if value.has_input?
421
+ api_common_v1_header(value.header) if value.has_header?
422
+ api_common_v1_memo(value.memo) if value.has_memo?
423
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
424
+ @on_exit&.call(value)
425
+ end
426
+
427
+ def api_command_v1_upsert_workflow_search_attributes_command_attributes(value)
428
+ @on_enter&.call(value)
429
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
430
+ @on_exit&.call(value)
431
+ end
432
+
433
+ def api_common_v1_header(value)
434
+ @on_enter&.call(value)
435
+ value.fields.values.each { |v| api_common_v1_payload(v) }
436
+ @on_exit&.call(value)
437
+ end
438
+
439
+ def api_common_v1_memo(value)
440
+ @on_enter&.call(value)
441
+ value.fields.values.each { |v| api_common_v1_payload(v) }
442
+ @on_exit&.call(value)
443
+ end
444
+
445
+ def api_common_v1_payloads(value)
446
+ @on_enter&.call(value)
447
+ api_common_v1_payload_repeated(value.payloads) unless value.payloads.empty?
448
+ @on_exit&.call(value)
449
+ end
450
+
451
+ def api_common_v1_search_attributes(value)
452
+ return if @skip_search_attributes
453
+ @on_enter&.call(value)
454
+ value.indexed_fields.values.each { |v| api_common_v1_payload(v) }
455
+ @on_exit&.call(value)
456
+ end
457
+
458
+ def api_deployment_v1_deployment_info(value)
459
+ @on_enter&.call(value)
460
+ value.metadata.values.each { |v| api_common_v1_payload(v) }
461
+ @on_exit&.call(value)
462
+ end
463
+
464
+ def api_deployment_v1_update_deployment_metadata(value)
465
+ @on_enter&.call(value)
466
+ value.upsert_entries.values.each { |v| api_common_v1_payload(v) }
467
+ @on_exit&.call(value)
468
+ end
469
+
470
+ def api_deployment_v1_version_metadata(value)
471
+ @on_enter&.call(value)
472
+ value.entries.values.each { |v| api_common_v1_payload(v) }
473
+ @on_exit&.call(value)
474
+ end
475
+
476
+ def api_deployment_v1_worker_deployment_version_info(value)
477
+ @on_enter&.call(value)
478
+ api_deployment_v1_version_metadata(value.metadata) if value.has_metadata?
479
+ @on_exit&.call(value)
480
+ end
481
+
482
+ def api_export_v1_workflow_execution(value)
483
+ @on_enter&.call(value)
484
+ api_history_v1_history(value.history) if value.has_history?
485
+ @on_exit&.call(value)
486
+ end
487
+
488
+ def api_export_v1_workflow_executions(value)
489
+ @on_enter&.call(value)
490
+ value.items.each { |v| api_export_v1_workflow_execution(v) }
491
+ @on_exit&.call(value)
492
+ end
493
+
494
+ def api_failure_v1_application_failure_info(value)
495
+ @on_enter&.call(value)
496
+ api_common_v1_payloads(value.details) if value.has_details?
497
+ @on_exit&.call(value)
498
+ end
499
+
500
+ def api_failure_v1_canceled_failure_info(value)
501
+ @on_enter&.call(value)
502
+ api_common_v1_payloads(value.details) if value.has_details?
503
+ @on_exit&.call(value)
504
+ end
505
+
506
+ def api_failure_v1_failure(value)
507
+ @on_enter&.call(value)
508
+ api_common_v1_payload(value.encoded_attributes) if value.has_encoded_attributes?
509
+ api_failure_v1_failure(value.cause) if value.has_cause?
510
+ api_failure_v1_application_failure_info(value.application_failure_info) if value.has_application_failure_info?
511
+ api_failure_v1_timeout_failure_info(value.timeout_failure_info) if value.has_timeout_failure_info?
512
+ api_failure_v1_canceled_failure_info(value.canceled_failure_info) if value.has_canceled_failure_info?
513
+ api_failure_v1_reset_workflow_failure_info(value.reset_workflow_failure_info) if value.has_reset_workflow_failure_info?
514
+ @on_exit&.call(value)
515
+ end
516
+
517
+ def api_failure_v1_reset_workflow_failure_info(value)
518
+ @on_enter&.call(value)
519
+ api_common_v1_payloads(value.last_heartbeat_details) if value.has_last_heartbeat_details?
520
+ @on_exit&.call(value)
521
+ end
522
+
523
+ def api_failure_v1_timeout_failure_info(value)
524
+ @on_enter&.call(value)
525
+ api_common_v1_payloads(value.last_heartbeat_details) if value.has_last_heartbeat_details?
526
+ @on_exit&.call(value)
527
+ end
528
+
529
+ def api_history_v1_activity_task_canceled_event_attributes(value)
530
+ @on_enter&.call(value)
531
+ api_common_v1_payloads(value.details) if value.has_details?
532
+ @on_exit&.call(value)
533
+ end
534
+
535
+ def api_history_v1_activity_task_completed_event_attributes(value)
536
+ @on_enter&.call(value)
537
+ api_common_v1_payloads(value.result) if value.has_result?
538
+ @on_exit&.call(value)
539
+ end
540
+
541
+ def api_history_v1_activity_task_failed_event_attributes(value)
542
+ @on_enter&.call(value)
543
+ api_failure_v1_failure(value.failure) if value.has_failure?
544
+ @on_exit&.call(value)
545
+ end
546
+
547
+ def api_history_v1_activity_task_scheduled_event_attributes(value)
548
+ @on_enter&.call(value)
549
+ api_common_v1_header(value.header) if value.has_header?
550
+ api_common_v1_payloads(value.input) if value.has_input?
551
+ @on_exit&.call(value)
552
+ end
553
+
554
+ def api_history_v1_activity_task_started_event_attributes(value)
555
+ @on_enter&.call(value)
556
+ api_failure_v1_failure(value.last_failure) if value.has_last_failure?
557
+ @on_exit&.call(value)
558
+ end
559
+
560
+ def api_history_v1_activity_task_timed_out_event_attributes(value)
561
+ @on_enter&.call(value)
562
+ api_failure_v1_failure(value.failure) if value.has_failure?
563
+ @on_exit&.call(value)
564
+ end
565
+
566
+ def api_history_v1_child_workflow_execution_canceled_event_attributes(value)
567
+ @on_enter&.call(value)
568
+ api_common_v1_payloads(value.details) if value.has_details?
569
+ @on_exit&.call(value)
570
+ end
571
+
572
+ def api_history_v1_child_workflow_execution_completed_event_attributes(value)
573
+ @on_enter&.call(value)
574
+ api_common_v1_payloads(value.result) if value.has_result?
575
+ @on_exit&.call(value)
576
+ end
577
+
578
+ def api_history_v1_child_workflow_execution_failed_event_attributes(value)
579
+ @on_enter&.call(value)
580
+ api_failure_v1_failure(value.failure) if value.has_failure?
581
+ @on_exit&.call(value)
582
+ end
583
+
584
+ def api_history_v1_child_workflow_execution_started_event_attributes(value)
585
+ @on_enter&.call(value)
586
+ api_common_v1_header(value.header) if value.has_header?
587
+ @on_exit&.call(value)
588
+ end
589
+
590
+ def api_history_v1_history(value)
591
+ @on_enter&.call(value)
592
+ value.events.each { |v| api_history_v1_history_event(v) }
593
+ @on_exit&.call(value)
594
+ end
595
+
596
+ def api_history_v1_history_event(value)
597
+ @on_enter&.call(value)
598
+ api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
599
+ api_history_v1_workflow_execution_started_event_attributes(value.workflow_execution_started_event_attributes) if value.has_workflow_execution_started_event_attributes?
600
+ api_history_v1_workflow_execution_completed_event_attributes(value.workflow_execution_completed_event_attributes) if value.has_workflow_execution_completed_event_attributes?
601
+ api_history_v1_workflow_execution_failed_event_attributes(value.workflow_execution_failed_event_attributes) if value.has_workflow_execution_failed_event_attributes?
602
+ api_history_v1_workflow_task_failed_event_attributes(value.workflow_task_failed_event_attributes) if value.has_workflow_task_failed_event_attributes?
603
+ api_history_v1_activity_task_scheduled_event_attributes(value.activity_task_scheduled_event_attributes) if value.has_activity_task_scheduled_event_attributes?
604
+ api_history_v1_activity_task_started_event_attributes(value.activity_task_started_event_attributes) if value.has_activity_task_started_event_attributes?
605
+ api_history_v1_activity_task_completed_event_attributes(value.activity_task_completed_event_attributes) if value.has_activity_task_completed_event_attributes?
606
+ api_history_v1_activity_task_failed_event_attributes(value.activity_task_failed_event_attributes) if value.has_activity_task_failed_event_attributes?
607
+ api_history_v1_activity_task_timed_out_event_attributes(value.activity_task_timed_out_event_attributes) if value.has_activity_task_timed_out_event_attributes?
608
+ api_history_v1_activity_task_canceled_event_attributes(value.activity_task_canceled_event_attributes) if value.has_activity_task_canceled_event_attributes?
609
+ api_history_v1_marker_recorded_event_attributes(value.marker_recorded_event_attributes) if value.has_marker_recorded_event_attributes?
610
+ api_history_v1_workflow_execution_signaled_event_attributes(value.workflow_execution_signaled_event_attributes) if value.has_workflow_execution_signaled_event_attributes?
611
+ api_history_v1_workflow_execution_terminated_event_attributes(value.workflow_execution_terminated_event_attributes) if value.has_workflow_execution_terminated_event_attributes?
612
+ api_history_v1_workflow_execution_canceled_event_attributes(value.workflow_execution_canceled_event_attributes) if value.has_workflow_execution_canceled_event_attributes?
613
+ api_history_v1_workflow_execution_continued_as_new_event_attributes(value.workflow_execution_continued_as_new_event_attributes) if value.has_workflow_execution_continued_as_new_event_attributes?
614
+ api_history_v1_start_child_workflow_execution_initiated_event_attributes(value.start_child_workflow_execution_initiated_event_attributes) if value.has_start_child_workflow_execution_initiated_event_attributes?
615
+ api_history_v1_child_workflow_execution_started_event_attributes(value.child_workflow_execution_started_event_attributes) if value.has_child_workflow_execution_started_event_attributes?
616
+ api_history_v1_child_workflow_execution_completed_event_attributes(value.child_workflow_execution_completed_event_attributes) if value.has_child_workflow_execution_completed_event_attributes?
617
+ api_history_v1_child_workflow_execution_failed_event_attributes(value.child_workflow_execution_failed_event_attributes) if value.has_child_workflow_execution_failed_event_attributes?
618
+ api_history_v1_child_workflow_execution_canceled_event_attributes(value.child_workflow_execution_canceled_event_attributes) if value.has_child_workflow_execution_canceled_event_attributes?
619
+ api_history_v1_signal_external_workflow_execution_initiated_event_attributes(value.signal_external_workflow_execution_initiated_event_attributes) if value.has_signal_external_workflow_execution_initiated_event_attributes?
620
+ api_history_v1_upsert_workflow_search_attributes_event_attributes(value.upsert_workflow_search_attributes_event_attributes) if value.has_upsert_workflow_search_attributes_event_attributes?
621
+ api_history_v1_workflow_execution_update_accepted_event_attributes(value.workflow_execution_update_accepted_event_attributes) if value.has_workflow_execution_update_accepted_event_attributes?
622
+ api_history_v1_workflow_execution_update_rejected_event_attributes(value.workflow_execution_update_rejected_event_attributes) if value.has_workflow_execution_update_rejected_event_attributes?
623
+ api_history_v1_workflow_execution_update_completed_event_attributes(value.workflow_execution_update_completed_event_attributes) if value.has_workflow_execution_update_completed_event_attributes?
624
+ api_history_v1_workflow_properties_modified_externally_event_attributes(value.workflow_properties_modified_externally_event_attributes) if value.has_workflow_properties_modified_externally_event_attributes?
625
+ api_history_v1_workflow_properties_modified_event_attributes(value.workflow_properties_modified_event_attributes) if value.has_workflow_properties_modified_event_attributes?
626
+ api_history_v1_workflow_execution_update_admitted_event_attributes(value.workflow_execution_update_admitted_event_attributes) if value.has_workflow_execution_update_admitted_event_attributes?
627
+ api_history_v1_nexus_operation_scheduled_event_attributes(value.nexus_operation_scheduled_event_attributes) if value.has_nexus_operation_scheduled_event_attributes?
628
+ api_history_v1_nexus_operation_completed_event_attributes(value.nexus_operation_completed_event_attributes) if value.has_nexus_operation_completed_event_attributes?
629
+ api_history_v1_nexus_operation_failed_event_attributes(value.nexus_operation_failed_event_attributes) if value.has_nexus_operation_failed_event_attributes?
630
+ api_history_v1_nexus_operation_canceled_event_attributes(value.nexus_operation_canceled_event_attributes) if value.has_nexus_operation_canceled_event_attributes?
631
+ api_history_v1_nexus_operation_timed_out_event_attributes(value.nexus_operation_timed_out_event_attributes) if value.has_nexus_operation_timed_out_event_attributes?
632
+ api_history_v1_nexus_operation_cancel_request_failed_event_attributes(value.nexus_operation_cancel_request_failed_event_attributes) if value.has_nexus_operation_cancel_request_failed_event_attributes?
633
+ @on_exit&.call(value)
634
+ end
635
+
636
+ def api_history_v1_marker_recorded_event_attributes(value)
637
+ @on_enter&.call(value)
638
+ value.details.values.each { |v| api_common_v1_payloads(v) }
639
+ api_common_v1_header(value.header) if value.has_header?
640
+ api_failure_v1_failure(value.failure) if value.has_failure?
641
+ @on_exit&.call(value)
642
+ end
643
+
644
+ def api_history_v1_nexus_operation_cancel_request_failed_event_attributes(value)
645
+ @on_enter&.call(value)
646
+ api_failure_v1_failure(value.failure) if value.has_failure?
647
+ @on_exit&.call(value)
648
+ end
649
+
650
+ def api_history_v1_nexus_operation_canceled_event_attributes(value)
651
+ @on_enter&.call(value)
652
+ api_failure_v1_failure(value.failure) if value.has_failure?
653
+ @on_exit&.call(value)
654
+ end
655
+
656
+ def api_history_v1_nexus_operation_completed_event_attributes(value)
657
+ @on_enter&.call(value)
658
+ api_common_v1_payload(value.result) if value.has_result?
659
+ @on_exit&.call(value)
660
+ end
661
+
662
+ def api_history_v1_nexus_operation_failed_event_attributes(value)
663
+ @on_enter&.call(value)
664
+ api_failure_v1_failure(value.failure) if value.has_failure?
665
+ @on_exit&.call(value)
666
+ end
667
+
668
+ def api_history_v1_nexus_operation_scheduled_event_attributes(value)
669
+ @on_enter&.call(value)
670
+ api_common_v1_payload(value.input) if value.has_input?
671
+ @on_exit&.call(value)
672
+ end
673
+
674
+ def api_history_v1_nexus_operation_timed_out_event_attributes(value)
675
+ @on_enter&.call(value)
676
+ api_failure_v1_failure(value.failure) if value.has_failure?
677
+ @on_exit&.call(value)
678
+ end
679
+
680
+ def api_history_v1_signal_external_workflow_execution_initiated_event_attributes(value)
681
+ @on_enter&.call(value)
682
+ api_common_v1_payloads(value.input) if value.has_input?
683
+ api_common_v1_header(value.header) if value.has_header?
684
+ @on_exit&.call(value)
685
+ end
686
+
687
+ def api_history_v1_start_child_workflow_execution_initiated_event_attributes(value)
688
+ @on_enter&.call(value)
689
+ api_common_v1_payloads(value.input) if value.has_input?
690
+ api_common_v1_header(value.header) if value.has_header?
691
+ api_common_v1_memo(value.memo) if value.has_memo?
692
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
693
+ @on_exit&.call(value)
694
+ end
695
+
696
+ def api_history_v1_upsert_workflow_search_attributes_event_attributes(value)
697
+ @on_enter&.call(value)
698
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
699
+ @on_exit&.call(value)
700
+ end
701
+
702
+ def api_history_v1_workflow_execution_canceled_event_attributes(value)
703
+ @on_enter&.call(value)
704
+ api_common_v1_payloads(value.details) if value.has_details?
705
+ @on_exit&.call(value)
706
+ end
707
+
708
+ def api_history_v1_workflow_execution_completed_event_attributes(value)
709
+ @on_enter&.call(value)
710
+ api_common_v1_payloads(value.result) if value.has_result?
711
+ @on_exit&.call(value)
712
+ end
713
+
714
+ def api_history_v1_workflow_execution_continued_as_new_event_attributes(value)
715
+ @on_enter&.call(value)
716
+ api_common_v1_payloads(value.input) if value.has_input?
717
+ api_failure_v1_failure(value.failure) if value.has_failure?
718
+ api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
719
+ api_common_v1_header(value.header) if value.has_header?
720
+ api_common_v1_memo(value.memo) if value.has_memo?
721
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
722
+ @on_exit&.call(value)
723
+ end
724
+
725
+ def api_history_v1_workflow_execution_failed_event_attributes(value)
726
+ @on_enter&.call(value)
727
+ api_failure_v1_failure(value.failure) if value.has_failure?
728
+ @on_exit&.call(value)
729
+ end
730
+
731
+ def api_history_v1_workflow_execution_signaled_event_attributes(value)
732
+ @on_enter&.call(value)
733
+ api_common_v1_payloads(value.input) if value.has_input?
734
+ api_common_v1_header(value.header) if value.has_header?
735
+ @on_exit&.call(value)
736
+ end
737
+
738
+ def api_history_v1_workflow_execution_started_event_attributes(value)
739
+ @on_enter&.call(value)
740
+ api_common_v1_payloads(value.input) if value.has_input?
741
+ api_failure_v1_failure(value.continued_failure) if value.has_continued_failure?
742
+ api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
743
+ api_common_v1_memo(value.memo) if value.has_memo?
744
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
745
+ api_common_v1_header(value.header) if value.has_header?
746
+ @on_exit&.call(value)
747
+ end
748
+
749
+ def api_history_v1_workflow_execution_terminated_event_attributes(value)
750
+ @on_enter&.call(value)
751
+ api_common_v1_payloads(value.details) if value.has_details?
752
+ @on_exit&.call(value)
753
+ end
754
+
755
+ def api_history_v1_workflow_execution_update_accepted_event_attributes(value)
756
+ @on_enter&.call(value)
757
+ api_update_v1_request(value.accepted_request) if value.has_accepted_request?
758
+ @on_exit&.call(value)
759
+ end
760
+
761
+ def api_history_v1_workflow_execution_update_admitted_event_attributes(value)
762
+ @on_enter&.call(value)
763
+ api_update_v1_request(value.request) if value.has_request?
764
+ @on_exit&.call(value)
765
+ end
766
+
767
+ def api_history_v1_workflow_execution_update_completed_event_attributes(value)
768
+ @on_enter&.call(value)
769
+ api_update_v1_outcome(value.outcome) if value.has_outcome?
770
+ @on_exit&.call(value)
771
+ end
772
+
773
+ def api_history_v1_workflow_execution_update_rejected_event_attributes(value)
774
+ @on_enter&.call(value)
775
+ api_update_v1_request(value.rejected_request) if value.has_rejected_request?
776
+ api_failure_v1_failure(value.failure) if value.has_failure?
777
+ @on_exit&.call(value)
778
+ end
779
+
780
+ def api_history_v1_workflow_properties_modified_event_attributes(value)
781
+ @on_enter&.call(value)
782
+ api_common_v1_memo(value.upserted_memo) if value.has_upserted_memo?
783
+ @on_exit&.call(value)
784
+ end
785
+
786
+ def api_history_v1_workflow_properties_modified_externally_event_attributes(value)
787
+ @on_enter&.call(value)
788
+ api_common_v1_memo(value.upserted_memo) if value.has_upserted_memo?
789
+ @on_exit&.call(value)
790
+ end
791
+
792
+ def api_history_v1_workflow_task_failed_event_attributes(value)
793
+ @on_enter&.call(value)
794
+ api_failure_v1_failure(value.failure) if value.has_failure?
795
+ @on_exit&.call(value)
796
+ end
797
+
798
+ def api_nexus_v1_endpoint(value)
799
+ @on_enter&.call(value)
800
+ api_nexus_v1_endpoint_spec(value.spec) if value.has_spec?
801
+ @on_exit&.call(value)
802
+ end
803
+
804
+ def api_nexus_v1_endpoint_spec(value)
805
+ @on_enter&.call(value)
806
+ api_common_v1_payload(value.description) if value.has_description?
807
+ @on_exit&.call(value)
808
+ end
809
+
810
+ def api_nexus_v1_request(value)
811
+ @on_enter&.call(value)
812
+ api_nexus_v1_start_operation_request(value.start_operation) if value.has_start_operation?
813
+ @on_exit&.call(value)
814
+ end
815
+
816
+ def api_nexus_v1_response(value)
817
+ @on_enter&.call(value)
818
+ api_nexus_v1_start_operation_response(value.start_operation) if value.has_start_operation?
819
+ @on_exit&.call(value)
820
+ end
821
+
822
+ def api_nexus_v1_start_operation_request(value)
823
+ @on_enter&.call(value)
824
+ api_common_v1_payload(value.payload) if value.has_payload?
825
+ @on_exit&.call(value)
826
+ end
827
+
828
+ def api_nexus_v1_start_operation_response(value)
829
+ @on_enter&.call(value)
830
+ api_nexus_v1_start_operation_response_sync(value.sync_success) if value.has_sync_success?
831
+ @on_exit&.call(value)
832
+ end
833
+
834
+ def api_nexus_v1_start_operation_response_sync(value)
835
+ @on_enter&.call(value)
836
+ api_common_v1_payload(value.payload) if value.has_payload?
837
+ @on_exit&.call(value)
838
+ end
839
+
840
+ def api_operatorservice_v1_create_nexus_endpoint_request(value)
841
+ @on_enter&.call(value)
842
+ api_nexus_v1_endpoint_spec(value.spec) if value.has_spec?
843
+ @on_exit&.call(value)
844
+ end
845
+
846
+ def api_operatorservice_v1_create_nexus_endpoint_response(value)
847
+ @on_enter&.call(value)
848
+ api_nexus_v1_endpoint(value.endpoint) if value.has_endpoint?
849
+ @on_exit&.call(value)
850
+ end
851
+
852
+ def api_operatorservice_v1_get_nexus_endpoint_response(value)
853
+ @on_enter&.call(value)
854
+ api_nexus_v1_endpoint(value.endpoint) if value.has_endpoint?
855
+ @on_exit&.call(value)
856
+ end
857
+
858
+ def api_operatorservice_v1_list_nexus_endpoints_response(value)
859
+ @on_enter&.call(value)
860
+ value.endpoints.each { |v| api_nexus_v1_endpoint(v) }
861
+ @on_exit&.call(value)
862
+ end
863
+
864
+ def api_operatorservice_v1_update_nexus_endpoint_request(value)
865
+ @on_enter&.call(value)
866
+ api_nexus_v1_endpoint_spec(value.spec) if value.has_spec?
867
+ @on_exit&.call(value)
868
+ end
869
+
870
+ def api_operatorservice_v1_update_nexus_endpoint_response(value)
871
+ @on_enter&.call(value)
872
+ api_nexus_v1_endpoint(value.endpoint) if value.has_endpoint?
873
+ @on_exit&.call(value)
874
+ end
875
+
876
+ def api_protocol_v1_message(value)
877
+ @on_enter&.call(value)
878
+ google_protobuf_any(value.body) if value.has_body?
879
+ @on_exit&.call(value)
880
+ end
881
+
882
+ def api_query_v1_workflow_query(value)
883
+ @on_enter&.call(value)
884
+ api_common_v1_payloads(value.query_args) if value.has_query_args?
885
+ api_common_v1_header(value.header) if value.has_header?
886
+ @on_exit&.call(value)
887
+ end
888
+
889
+ def api_query_v1_workflow_query_result(value)
890
+ @on_enter&.call(value)
891
+ api_common_v1_payloads(value.answer) if value.has_answer?
892
+ api_failure_v1_failure(value.failure) if value.has_failure?
893
+ @on_exit&.call(value)
894
+ end
895
+
896
+ def api_schedule_v1_schedule(value)
897
+ @on_enter&.call(value)
898
+ api_schedule_v1_schedule_action(value.action) if value.has_action?
899
+ @on_exit&.call(value)
900
+ end
901
+
902
+ def api_schedule_v1_schedule_action(value)
903
+ @on_enter&.call(value)
904
+ api_workflow_v1_new_workflow_execution_info(value.start_workflow) if value.has_start_workflow?
905
+ @on_exit&.call(value)
906
+ end
907
+
908
+ def api_schedule_v1_schedule_list_entry(value)
909
+ @on_enter&.call(value)
910
+ api_common_v1_memo(value.memo) if value.has_memo?
911
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
912
+ @on_exit&.call(value)
913
+ end
914
+
915
+ def api_sdk_v1_user_metadata(value)
916
+ @on_enter&.call(value)
917
+ api_common_v1_payload(value.summary) if value.has_summary?
918
+ api_common_v1_payload(value.details) if value.has_details?
919
+ @on_exit&.call(value)
920
+ end
921
+
922
+ def api_update_v1_input(value)
923
+ @on_enter&.call(value)
924
+ api_common_v1_header(value.header) if value.has_header?
925
+ api_common_v1_payloads(value.args) if value.has_args?
926
+ @on_exit&.call(value)
927
+ end
928
+
929
+ def api_update_v1_outcome(value)
930
+ @on_enter&.call(value)
931
+ api_common_v1_payloads(value.success) if value.has_success?
932
+ api_failure_v1_failure(value.failure) if value.has_failure?
933
+ @on_exit&.call(value)
934
+ end
935
+
936
+ def api_update_v1_request(value)
937
+ @on_enter&.call(value)
938
+ api_update_v1_input(value.input) if value.has_input?
939
+ @on_exit&.call(value)
940
+ end
941
+
942
+ def api_workflow_v1_callback_info(value)
943
+ @on_enter&.call(value)
944
+ api_failure_v1_failure(value.last_attempt_failure) if value.has_last_attempt_failure?
945
+ @on_exit&.call(value)
946
+ end
947
+
948
+ def api_workflow_v1_new_workflow_execution_info(value)
949
+ @on_enter&.call(value)
950
+ api_common_v1_payloads(value.input) if value.has_input?
951
+ api_common_v1_memo(value.memo) if value.has_memo?
952
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
953
+ api_common_v1_header(value.header) if value.has_header?
954
+ api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
955
+ @on_exit&.call(value)
956
+ end
957
+
958
+ def api_workflow_v1_nexus_operation_cancellation_info(value)
959
+ @on_enter&.call(value)
960
+ api_failure_v1_failure(value.last_attempt_failure) if value.has_last_attempt_failure?
961
+ @on_exit&.call(value)
962
+ end
963
+
964
+ def api_workflow_v1_pending_activity_info(value)
965
+ @on_enter&.call(value)
966
+ api_common_v1_payloads(value.heartbeat_details) if value.has_heartbeat_details?
967
+ api_failure_v1_failure(value.last_failure) if value.has_last_failure?
968
+ @on_exit&.call(value)
969
+ end
970
+
971
+ def api_workflow_v1_pending_nexus_operation_info(value)
972
+ @on_enter&.call(value)
973
+ api_failure_v1_failure(value.last_attempt_failure) if value.has_last_attempt_failure?
974
+ api_workflow_v1_nexus_operation_cancellation_info(value.cancellation_info) if value.has_cancellation_info?
975
+ @on_exit&.call(value)
976
+ end
977
+
978
+ def api_workflow_v1_post_reset_operation(value)
979
+ @on_enter&.call(value)
980
+ api_workflow_v1_post_reset_operation_signal_workflow(value.signal_workflow) if value.has_signal_workflow?
981
+ @on_exit&.call(value)
982
+ end
983
+
984
+ def api_workflow_v1_post_reset_operation_signal_workflow(value)
985
+ @on_enter&.call(value)
986
+ api_common_v1_payloads(value.input) if value.has_input?
987
+ api_common_v1_header(value.header) if value.has_header?
988
+ @on_exit&.call(value)
989
+ end
990
+
991
+ def api_workflow_v1_workflow_execution_config(value)
992
+ @on_enter&.call(value)
993
+ api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
994
+ @on_exit&.call(value)
995
+ end
996
+
997
+ def api_workflow_v1_workflow_execution_info(value)
998
+ @on_enter&.call(value)
999
+ api_common_v1_memo(value.memo) if value.has_memo?
1000
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
1001
+ @on_exit&.call(value)
1002
+ end
1003
+
1004
+ def api_workflowservice_v1_count_workflow_executions_response(value)
1005
+ @on_enter&.call(value)
1006
+ value.groups.each { |v| api_workflowservice_v1_count_workflow_executions_response_aggregation_group(v) }
1007
+ @on_exit&.call(value)
1008
+ end
1009
+
1010
+ def api_workflowservice_v1_count_workflow_executions_response_aggregation_group(value)
1011
+ @on_enter&.call(value)
1012
+ api_common_v1_payload_repeated(value.group_values) unless value.group_values.empty?
1013
+ @on_exit&.call(value)
1014
+ end
1015
+
1016
+ def api_workflowservice_v1_create_schedule_request(value)
1017
+ @on_enter&.call(value)
1018
+ api_schedule_v1_schedule(value.schedule) if value.has_schedule?
1019
+ api_common_v1_memo(value.memo) if value.has_memo?
1020
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
1021
+ @on_exit&.call(value)
1022
+ end
1023
+
1024
+ def api_workflowservice_v1_describe_deployment_response(value)
1025
+ @on_enter&.call(value)
1026
+ api_deployment_v1_deployment_info(value.deployment_info) if value.has_deployment_info?
1027
+ @on_exit&.call(value)
1028
+ end
1029
+
1030
+ def api_workflowservice_v1_describe_schedule_response(value)
1031
+ @on_enter&.call(value)
1032
+ api_schedule_v1_schedule(value.schedule) if value.has_schedule?
1033
+ api_common_v1_memo(value.memo) if value.has_memo?
1034
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
1035
+ @on_exit&.call(value)
1036
+ end
1037
+
1038
+ def api_workflowservice_v1_describe_worker_deployment_version_response(value)
1039
+ @on_enter&.call(value)
1040
+ api_deployment_v1_worker_deployment_version_info(value.worker_deployment_version_info) if value.has_worker_deployment_version_info?
1041
+ @on_exit&.call(value)
1042
+ end
1043
+
1044
+ def api_workflowservice_v1_describe_workflow_execution_response(value)
1045
+ @on_enter&.call(value)
1046
+ api_workflow_v1_workflow_execution_config(value.execution_config) if value.has_execution_config?
1047
+ api_workflow_v1_workflow_execution_info(value.workflow_execution_info) if value.has_workflow_execution_info?
1048
+ value.pending_activities.each { |v| api_workflow_v1_pending_activity_info(v) }
1049
+ value.callbacks.each { |v| api_workflow_v1_callback_info(v) }
1050
+ value.pending_nexus_operations.each { |v| api_workflow_v1_pending_nexus_operation_info(v) }
1051
+ @on_exit&.call(value)
1052
+ end
1053
+
1054
+ def api_workflowservice_v1_execute_multi_operation_request(value)
1055
+ @on_enter&.call(value)
1056
+ value.operations.each { |v| api_workflowservice_v1_execute_multi_operation_request_operation(v) }
1057
+ @on_exit&.call(value)
1058
+ end
1059
+
1060
+ def api_workflowservice_v1_execute_multi_operation_request_operation(value)
1061
+ @on_enter&.call(value)
1062
+ api_workflowservice_v1_start_workflow_execution_request(value.start_workflow) if value.has_start_workflow?
1063
+ api_workflowservice_v1_update_workflow_execution_request(value.update_workflow) if value.has_update_workflow?
1064
+ @on_exit&.call(value)
1065
+ end
1066
+
1067
+ def api_workflowservice_v1_execute_multi_operation_response(value)
1068
+ @on_enter&.call(value)
1069
+ value.responses.each { |v| api_workflowservice_v1_execute_multi_operation_response_response(v) }
1070
+ @on_exit&.call(value)
1071
+ end
1072
+
1073
+ def api_workflowservice_v1_execute_multi_operation_response_response(value)
1074
+ @on_enter&.call(value)
1075
+ api_workflowservice_v1_start_workflow_execution_response(value.start_workflow) if value.has_start_workflow?
1076
+ api_workflowservice_v1_update_workflow_execution_response(value.update_workflow) if value.has_update_workflow?
1077
+ @on_exit&.call(value)
1078
+ end
1079
+
1080
+ def api_workflowservice_v1_get_current_deployment_response(value)
1081
+ @on_enter&.call(value)
1082
+ api_deployment_v1_deployment_info(value.current_deployment_info) if value.has_current_deployment_info?
1083
+ @on_exit&.call(value)
1084
+ end
1085
+
1086
+ def api_workflowservice_v1_get_deployment_reachability_response(value)
1087
+ @on_enter&.call(value)
1088
+ api_deployment_v1_deployment_info(value.deployment_info) if value.has_deployment_info?
1089
+ @on_exit&.call(value)
1090
+ end
1091
+
1092
+ def api_workflowservice_v1_get_workflow_execution_history_response(value)
1093
+ @on_enter&.call(value)
1094
+ api_history_v1_history(value.history) if value.has_history?
1095
+ @on_exit&.call(value)
1096
+ end
1097
+
1098
+ def api_workflowservice_v1_get_workflow_execution_history_reverse_response(value)
1099
+ @on_enter&.call(value)
1100
+ api_history_v1_history(value.history) if value.has_history?
1101
+ @on_exit&.call(value)
1102
+ end
1103
+
1104
+ def api_workflowservice_v1_list_archived_workflow_executions_response(value)
1105
+ @on_enter&.call(value)
1106
+ value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
1107
+ @on_exit&.call(value)
1108
+ end
1109
+
1110
+ def api_workflowservice_v1_list_closed_workflow_executions_response(value)
1111
+ @on_enter&.call(value)
1112
+ value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
1113
+ @on_exit&.call(value)
1114
+ end
1115
+
1116
+ def api_workflowservice_v1_list_open_workflow_executions_response(value)
1117
+ @on_enter&.call(value)
1118
+ value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
1119
+ @on_exit&.call(value)
1120
+ end
1121
+
1122
+ def api_workflowservice_v1_list_schedules_response(value)
1123
+ @on_enter&.call(value)
1124
+ value.schedules.each { |v| api_schedule_v1_schedule_list_entry(v) }
1125
+ @on_exit&.call(value)
1126
+ end
1127
+
1128
+ def api_workflowservice_v1_list_workflow_executions_response(value)
1129
+ @on_enter&.call(value)
1130
+ value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
1131
+ @on_exit&.call(value)
1132
+ end
1133
+
1134
+ def api_workflowservice_v1_poll_activity_task_queue_response(value)
1135
+ @on_enter&.call(value)
1136
+ api_common_v1_header(value.header) if value.has_header?
1137
+ api_common_v1_payloads(value.input) if value.has_input?
1138
+ api_common_v1_payloads(value.heartbeat_details) if value.has_heartbeat_details?
1139
+ @on_exit&.call(value)
1140
+ end
1141
+
1142
+ def api_workflowservice_v1_poll_nexus_task_queue_response(value)
1143
+ @on_enter&.call(value)
1144
+ api_nexus_v1_request(value.request) if value.has_request?
1145
+ @on_exit&.call(value)
1146
+ end
1147
+
1148
+ def api_workflowservice_v1_poll_workflow_execution_update_response(value)
1149
+ @on_enter&.call(value)
1150
+ api_update_v1_outcome(value.outcome) if value.has_outcome?
1151
+ @on_exit&.call(value)
1152
+ end
1153
+
1154
+ def api_workflowservice_v1_poll_workflow_task_queue_response(value)
1155
+ @on_enter&.call(value)
1156
+ api_history_v1_history(value.history) if value.has_history?
1157
+ api_query_v1_workflow_query(value.query) if value.has_query?
1158
+ value.queries.values.each { |v| api_query_v1_workflow_query(v) }
1159
+ value.messages.each { |v| api_protocol_v1_message(v) }
1160
+ @on_exit&.call(value)
1161
+ end
1162
+
1163
+ def api_workflowservice_v1_query_workflow_request(value)
1164
+ @on_enter&.call(value)
1165
+ api_query_v1_workflow_query(value.query) if value.has_query?
1166
+ @on_exit&.call(value)
1167
+ end
1168
+
1169
+ def api_workflowservice_v1_query_workflow_response(value)
1170
+ @on_enter&.call(value)
1171
+ api_common_v1_payloads(value.query_result) if value.has_query_result?
1172
+ @on_exit&.call(value)
1173
+ end
1174
+
1175
+ def api_workflowservice_v1_record_activity_task_heartbeat_by_id_request(value)
1176
+ @on_enter&.call(value)
1177
+ api_common_v1_payloads(value.details) if value.has_details?
1178
+ @on_exit&.call(value)
1179
+ end
1180
+
1181
+ def api_workflowservice_v1_record_activity_task_heartbeat_request(value)
1182
+ @on_enter&.call(value)
1183
+ api_common_v1_payloads(value.details) if value.has_details?
1184
+ @on_exit&.call(value)
1185
+ end
1186
+
1187
+ def api_workflowservice_v1_reset_workflow_execution_request(value)
1188
+ @on_enter&.call(value)
1189
+ value.post_reset_operations.each { |v| api_workflow_v1_post_reset_operation(v) }
1190
+ @on_exit&.call(value)
1191
+ end
1192
+
1193
+ def api_workflowservice_v1_respond_activity_task_canceled_by_id_request(value)
1194
+ @on_enter&.call(value)
1195
+ api_common_v1_payloads(value.details) if value.has_details?
1196
+ @on_exit&.call(value)
1197
+ end
1198
+
1199
+ def api_workflowservice_v1_respond_activity_task_canceled_request(value)
1200
+ @on_enter&.call(value)
1201
+ api_common_v1_payloads(value.details) if value.has_details?
1202
+ @on_exit&.call(value)
1203
+ end
1204
+
1205
+ def api_workflowservice_v1_respond_activity_task_completed_by_id_request(value)
1206
+ @on_enter&.call(value)
1207
+ api_common_v1_payloads(value.result) if value.has_result?
1208
+ @on_exit&.call(value)
1209
+ end
1210
+
1211
+ def api_workflowservice_v1_respond_activity_task_completed_request(value)
1212
+ @on_enter&.call(value)
1213
+ api_common_v1_payloads(value.result) if value.has_result?
1214
+ @on_exit&.call(value)
1215
+ end
1216
+
1217
+ def api_workflowservice_v1_respond_activity_task_failed_by_id_request(value)
1218
+ @on_enter&.call(value)
1219
+ api_failure_v1_failure(value.failure) if value.has_failure?
1220
+ api_common_v1_payloads(value.last_heartbeat_details) if value.has_last_heartbeat_details?
1221
+ @on_exit&.call(value)
1222
+ end
1223
+
1224
+ def api_workflowservice_v1_respond_activity_task_failed_by_id_response(value)
1225
+ @on_enter&.call(value)
1226
+ value.failures.each { |v| api_failure_v1_failure(v) }
1227
+ @on_exit&.call(value)
1228
+ end
1229
+
1230
+ def api_workflowservice_v1_respond_activity_task_failed_request(value)
1231
+ @on_enter&.call(value)
1232
+ api_failure_v1_failure(value.failure) if value.has_failure?
1233
+ api_common_v1_payloads(value.last_heartbeat_details) if value.has_last_heartbeat_details?
1234
+ @on_exit&.call(value)
1235
+ end
1236
+
1237
+ def api_workflowservice_v1_respond_activity_task_failed_response(value)
1238
+ @on_enter&.call(value)
1239
+ value.failures.each { |v| api_failure_v1_failure(v) }
1240
+ @on_exit&.call(value)
1241
+ end
1242
+
1243
+ def api_workflowservice_v1_respond_nexus_task_completed_request(value)
1244
+ @on_enter&.call(value)
1245
+ api_nexus_v1_response(value.response) if value.has_response?
1246
+ @on_exit&.call(value)
1247
+ end
1248
+
1249
+ def api_workflowservice_v1_respond_query_task_completed_request(value)
1250
+ @on_enter&.call(value)
1251
+ api_common_v1_payloads(value.query_result) if value.has_query_result?
1252
+ api_failure_v1_failure(value.failure) if value.has_failure?
1253
+ @on_exit&.call(value)
1254
+ end
1255
+
1256
+ def api_workflowservice_v1_respond_workflow_task_completed_request(value)
1257
+ @on_enter&.call(value)
1258
+ value.commands.each { |v| api_command_v1_command(v) }
1259
+ value.query_results.values.each { |v| api_query_v1_workflow_query_result(v) }
1260
+ value.messages.each { |v| api_protocol_v1_message(v) }
1261
+ @on_exit&.call(value)
1262
+ end
1263
+
1264
+ def api_workflowservice_v1_respond_workflow_task_completed_response(value)
1265
+ @on_enter&.call(value)
1266
+ api_workflowservice_v1_poll_workflow_task_queue_response(value.workflow_task) if value.has_workflow_task?
1267
+ value.activity_tasks.each { |v| api_workflowservice_v1_poll_activity_task_queue_response(v) }
1268
+ @on_exit&.call(value)
1269
+ end
1270
+
1271
+ def api_workflowservice_v1_respond_workflow_task_failed_request(value)
1272
+ @on_enter&.call(value)
1273
+ api_failure_v1_failure(value.failure) if value.has_failure?
1274
+ value.messages.each { |v| api_protocol_v1_message(v) }
1275
+ @on_exit&.call(value)
1276
+ end
1277
+
1278
+ def api_workflowservice_v1_scan_workflow_executions_response(value)
1279
+ @on_enter&.call(value)
1280
+ value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
1281
+ @on_exit&.call(value)
1282
+ end
1283
+
1284
+ def api_workflowservice_v1_set_current_deployment_request(value)
1285
+ @on_enter&.call(value)
1286
+ api_deployment_v1_update_deployment_metadata(value.update_metadata) if value.has_update_metadata?
1287
+ @on_exit&.call(value)
1288
+ end
1289
+
1290
+ def api_workflowservice_v1_set_current_deployment_response(value)
1291
+ @on_enter&.call(value)
1292
+ api_deployment_v1_deployment_info(value.current_deployment_info) if value.has_current_deployment_info?
1293
+ api_deployment_v1_deployment_info(value.previous_deployment_info) if value.has_previous_deployment_info?
1294
+ @on_exit&.call(value)
1295
+ end
1296
+
1297
+ def api_workflowservice_v1_signal_with_start_workflow_execution_request(value)
1298
+ @on_enter&.call(value)
1299
+ api_common_v1_payloads(value.input) if value.has_input?
1300
+ api_common_v1_payloads(value.signal_input) if value.has_signal_input?
1301
+ api_common_v1_memo(value.memo) if value.has_memo?
1302
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
1303
+ api_common_v1_header(value.header) if value.has_header?
1304
+ api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
1305
+ @on_exit&.call(value)
1306
+ end
1307
+
1308
+ def api_workflowservice_v1_signal_workflow_execution_request(value)
1309
+ @on_enter&.call(value)
1310
+ api_common_v1_payloads(value.input) if value.has_input?
1311
+ api_common_v1_header(value.header) if value.has_header?
1312
+ @on_exit&.call(value)
1313
+ end
1314
+
1315
+ def api_workflowservice_v1_start_batch_operation_request(value)
1316
+ @on_enter&.call(value)
1317
+ api_batch_v1_batch_operation_termination(value.termination_operation) if value.has_termination_operation?
1318
+ api_batch_v1_batch_operation_signal(value.signal_operation) if value.has_signal_operation?
1319
+ api_batch_v1_batch_operation_reset(value.reset_operation) if value.has_reset_operation?
1320
+ @on_exit&.call(value)
1321
+ end
1322
+
1323
+ def api_workflowservice_v1_start_workflow_execution_request(value)
1324
+ @on_enter&.call(value)
1325
+ api_common_v1_payloads(value.input) if value.has_input?
1326
+ api_common_v1_memo(value.memo) if value.has_memo?
1327
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
1328
+ api_common_v1_header(value.header) if value.has_header?
1329
+ api_failure_v1_failure(value.continued_failure) if value.has_continued_failure?
1330
+ api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
1331
+ api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
1332
+ @on_exit&.call(value)
1333
+ end
1334
+
1335
+ def api_workflowservice_v1_start_workflow_execution_response(value)
1336
+ @on_enter&.call(value)
1337
+ api_workflowservice_v1_poll_workflow_task_queue_response(value.eager_workflow_task) if value.has_eager_workflow_task?
1338
+ @on_exit&.call(value)
1339
+ end
1340
+
1341
+ def api_workflowservice_v1_terminate_workflow_execution_request(value)
1342
+ @on_enter&.call(value)
1343
+ api_common_v1_payloads(value.details) if value.has_details?
1344
+ @on_exit&.call(value)
1345
+ end
1346
+
1347
+ def api_workflowservice_v1_update_schedule_request(value)
1348
+ @on_enter&.call(value)
1349
+ api_schedule_v1_schedule(value.schedule) if value.has_schedule?
1350
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
1351
+ @on_exit&.call(value)
1352
+ end
1353
+
1354
+ def api_workflowservice_v1_update_worker_deployment_version_metadata_request(value)
1355
+ @on_enter&.call(value)
1356
+ value.upsert_entries.values.each { |v| api_common_v1_payload(v) }
1357
+ @on_exit&.call(value)
1358
+ end
1359
+
1360
+ def api_workflowservice_v1_update_worker_deployment_version_metadata_response(value)
1361
+ @on_enter&.call(value)
1362
+ api_deployment_v1_version_metadata(value.metadata) if value.has_metadata?
1363
+ @on_exit&.call(value)
1364
+ end
1365
+
1366
+ def api_workflowservice_v1_update_workflow_execution_request(value)
1367
+ @on_enter&.call(value)
1368
+ api_update_v1_request(value.request) if value.has_request?
1369
+ @on_exit&.call(value)
1370
+ end
1371
+
1372
+ def api_workflowservice_v1_update_workflow_execution_response(value)
1373
+ @on_enter&.call(value)
1374
+ api_update_v1_outcome(value.outcome) if value.has_outcome?
1375
+ @on_exit&.call(value)
1376
+ end
1377
+
1378
+ def coresdk_activity_result_activity_resolution(value)
1379
+ @on_enter&.call(value)
1380
+ coresdk_activity_result_success(value.completed) if value.has_completed?
1381
+ coresdk_activity_result_failure(value.failed) if value.has_failed?
1382
+ coresdk_activity_result_cancellation(value.cancelled) if value.has_cancelled?
1383
+ @on_exit&.call(value)
1384
+ end
1385
+
1386
+ def coresdk_activity_result_cancellation(value)
1387
+ @on_enter&.call(value)
1388
+ api_failure_v1_failure(value.failure) if value.has_failure?
1389
+ @on_exit&.call(value)
1390
+ end
1391
+
1392
+ def coresdk_activity_result_failure(value)
1393
+ @on_enter&.call(value)
1394
+ api_failure_v1_failure(value.failure) if value.has_failure?
1395
+ @on_exit&.call(value)
1396
+ end
1397
+
1398
+ def coresdk_activity_result_success(value)
1399
+ @on_enter&.call(value)
1400
+ api_common_v1_payload(value.result) if value.has_result?
1401
+ @on_exit&.call(value)
1402
+ end
1403
+
1404
+ def coresdk_child_workflow_cancellation(value)
1405
+ @on_enter&.call(value)
1406
+ api_failure_v1_failure(value.failure) if value.has_failure?
1407
+ @on_exit&.call(value)
1408
+ end
1409
+
1410
+ def coresdk_child_workflow_child_workflow_result(value)
1411
+ @on_enter&.call(value)
1412
+ coresdk_child_workflow_success(value.completed) if value.has_completed?
1413
+ coresdk_child_workflow_failure(value.failed) if value.has_failed?
1414
+ coresdk_child_workflow_cancellation(value.cancelled) if value.has_cancelled?
1415
+ @on_exit&.call(value)
1416
+ end
1417
+
1418
+ def coresdk_child_workflow_failure(value)
1419
+ @on_enter&.call(value)
1420
+ api_failure_v1_failure(value.failure) if value.has_failure?
1421
+ @on_exit&.call(value)
1422
+ end
1423
+
1424
+ def coresdk_child_workflow_success(value)
1425
+ @on_enter&.call(value)
1426
+ api_common_v1_payload(value.result) if value.has_result?
1427
+ @on_exit&.call(value)
1428
+ end
1429
+
1430
+ def coresdk_nexus_nexus_operation_result(value)
1431
+ @on_enter&.call(value)
1432
+ api_common_v1_payload(value.completed) if value.has_completed?
1433
+ api_failure_v1_failure(value.failed) if value.has_failed?
1434
+ api_failure_v1_failure(value.cancelled) if value.has_cancelled?
1435
+ api_failure_v1_failure(value.timed_out) if value.has_timed_out?
1436
+ @on_exit&.call(value)
1437
+ end
1438
+
1439
+ def coresdk_workflow_activation_do_update(value)
1440
+ @on_enter&.call(value)
1441
+ api_common_v1_payload_repeated(value.input) unless value.input.empty?
1442
+ value.headers.values.each { |v| api_common_v1_payload(v) }
1443
+ @on_exit&.call(value)
1444
+ end
1445
+
1446
+ def coresdk_workflow_activation_initialize_workflow(value)
1447
+ @on_enter&.call(value)
1448
+ api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
1449
+ value.headers.values.each { |v| api_common_v1_payload(v) }
1450
+ api_failure_v1_failure(value.continued_failure) if value.has_continued_failure?
1451
+ api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
1452
+ api_common_v1_memo(value.memo) if value.has_memo?
1453
+ api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
1454
+ @on_exit&.call(value)
1455
+ end
1456
+
1457
+ def coresdk_workflow_activation_query_workflow(value)
1458
+ @on_enter&.call(value)
1459
+ api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
1460
+ value.headers.values.each { |v| api_common_v1_payload(v) }
1461
+ @on_exit&.call(value)
1462
+ end
1463
+
1464
+ def coresdk_workflow_activation_resolve_activity(value)
1465
+ @on_enter&.call(value)
1466
+ coresdk_activity_result_activity_resolution(value.result) if value.has_result?
1467
+ @on_exit&.call(value)
1468
+ end
1469
+
1470
+ def coresdk_workflow_activation_resolve_child_workflow_execution(value)
1471
+ @on_enter&.call(value)
1472
+ coresdk_child_workflow_child_workflow_result(value.result) if value.has_result?
1473
+ @on_exit&.call(value)
1474
+ end
1475
+
1476
+ def coresdk_workflow_activation_resolve_child_workflow_execution_start(value)
1477
+ @on_enter&.call(value)
1478
+ coresdk_workflow_activation_resolve_child_workflow_execution_start_cancelled(value.cancelled) if value.has_cancelled?
1479
+ @on_exit&.call(value)
1480
+ end
1481
+
1482
+ def coresdk_workflow_activation_resolve_child_workflow_execution_start_cancelled(value)
1483
+ @on_enter&.call(value)
1484
+ api_failure_v1_failure(value.failure) if value.has_failure?
1485
+ @on_exit&.call(value)
1486
+ end
1487
+
1488
+ def coresdk_workflow_activation_resolve_nexus_operation(value)
1489
+ @on_enter&.call(value)
1490
+ coresdk_nexus_nexus_operation_result(value.result) if value.has_result?
1491
+ @on_exit&.call(value)
1492
+ end
1493
+
1494
+ def coresdk_workflow_activation_resolve_nexus_operation_start(value)
1495
+ @on_enter&.call(value)
1496
+ api_failure_v1_failure(value.cancelled_before_start) if value.has_cancelled_before_start?
1497
+ @on_exit&.call(value)
1498
+ end
1499
+
1500
+ def coresdk_workflow_activation_resolve_request_cancel_external_workflow(value)
1501
+ @on_enter&.call(value)
1502
+ api_failure_v1_failure(value.failure) if value.has_failure?
1503
+ @on_exit&.call(value)
1504
+ end
1505
+
1506
+ def coresdk_workflow_activation_resolve_signal_external_workflow(value)
1507
+ @on_enter&.call(value)
1508
+ api_failure_v1_failure(value.failure) if value.has_failure?
1509
+ @on_exit&.call(value)
1510
+ end
1511
+
1512
+ def coresdk_workflow_activation_signal_workflow(value)
1513
+ @on_enter&.call(value)
1514
+ api_common_v1_payload_repeated(value.input) unless value.input.empty?
1515
+ value.headers.values.each { |v| api_common_v1_payload(v) }
1516
+ @on_exit&.call(value)
1517
+ end
1518
+
1519
+ def coresdk_workflow_activation_workflow_activation(value)
1520
+ @on_enter&.call(value)
1521
+ value.jobs.each { |v| coresdk_workflow_activation_workflow_activation_job(v) }
1522
+ @on_exit&.call(value)
1523
+ end
1524
+
1525
+ def coresdk_workflow_activation_workflow_activation_job(value)
1526
+ @on_enter&.call(value)
1527
+ coresdk_workflow_activation_initialize_workflow(value.initialize_workflow) if value.has_initialize_workflow?
1528
+ coresdk_workflow_activation_query_workflow(value.query_workflow) if value.has_query_workflow?
1529
+ coresdk_workflow_activation_signal_workflow(value.signal_workflow) if value.has_signal_workflow?
1530
+ coresdk_workflow_activation_resolve_activity(value.resolve_activity) if value.has_resolve_activity?
1531
+ coresdk_workflow_activation_resolve_child_workflow_execution_start(value.resolve_child_workflow_execution_start) if value.has_resolve_child_workflow_execution_start?
1532
+ coresdk_workflow_activation_resolve_child_workflow_execution(value.resolve_child_workflow_execution) if value.has_resolve_child_workflow_execution?
1533
+ coresdk_workflow_activation_resolve_signal_external_workflow(value.resolve_signal_external_workflow) if value.has_resolve_signal_external_workflow?
1534
+ coresdk_workflow_activation_resolve_request_cancel_external_workflow(value.resolve_request_cancel_external_workflow) if value.has_resolve_request_cancel_external_workflow?
1535
+ coresdk_workflow_activation_do_update(value.do_update) if value.has_do_update?
1536
+ coresdk_workflow_activation_resolve_nexus_operation_start(value.resolve_nexus_operation_start) if value.has_resolve_nexus_operation_start?
1537
+ coresdk_workflow_activation_resolve_nexus_operation(value.resolve_nexus_operation) if value.has_resolve_nexus_operation?
1538
+ @on_exit&.call(value)
1539
+ end
1540
+
1541
+ def coresdk_workflow_commands_complete_workflow_execution(value)
1542
+ @on_enter&.call(value)
1543
+ api_common_v1_payload(value.result) if value.has_result?
1544
+ @on_exit&.call(value)
1545
+ end
1546
+
1547
+ def coresdk_workflow_commands_continue_as_new_workflow_execution(value)
1548
+ @on_enter&.call(value)
1549
+ api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
1550
+ value.memo.values.each { |v| api_common_v1_payload(v) }
1551
+ value.headers.values.each { |v| api_common_v1_payload(v) }
1552
+ value.search_attributes.values.each { |v| api_common_v1_payload(v) } unless @skip_search_attributes
1553
+ @on_exit&.call(value)
1554
+ end
1555
+
1556
+ def coresdk_workflow_commands_fail_workflow_execution(value)
1557
+ @on_enter&.call(value)
1558
+ api_failure_v1_failure(value.failure) if value.has_failure?
1559
+ @on_exit&.call(value)
1560
+ end
1561
+
1562
+ def coresdk_workflow_commands_modify_workflow_properties(value)
1563
+ @on_enter&.call(value)
1564
+ api_common_v1_memo(value.upserted_memo) if value.has_upserted_memo?
1565
+ @on_exit&.call(value)
1566
+ end
1567
+
1568
+ def coresdk_workflow_commands_query_result(value)
1569
+ @on_enter&.call(value)
1570
+ coresdk_workflow_commands_query_success(value.succeeded) if value.has_succeeded?
1571
+ api_failure_v1_failure(value.failed) if value.has_failed?
1572
+ @on_exit&.call(value)
1573
+ end
1574
+
1575
+ def coresdk_workflow_commands_query_success(value)
1576
+ @on_enter&.call(value)
1577
+ api_common_v1_payload(value.response) if value.has_response?
1578
+ @on_exit&.call(value)
1579
+ end
1580
+
1581
+ def coresdk_workflow_commands_schedule_activity(value)
1582
+ @on_enter&.call(value)
1583
+ value.headers.values.each { |v| api_common_v1_payload(v) }
1584
+ api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
1585
+ @on_exit&.call(value)
1586
+ end
1587
+
1588
+ def coresdk_workflow_commands_schedule_local_activity(value)
1589
+ @on_enter&.call(value)
1590
+ value.headers.values.each { |v| api_common_v1_payload(v) }
1591
+ api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
1592
+ @on_exit&.call(value)
1593
+ end
1594
+
1595
+ def coresdk_workflow_commands_schedule_nexus_operation(value)
1596
+ @on_enter&.call(value)
1597
+ api_common_v1_payload(value.input) if value.has_input?
1598
+ @on_exit&.call(value)
1599
+ end
1600
+
1601
+ def coresdk_workflow_commands_signal_external_workflow_execution(value)
1602
+ @on_enter&.call(value)
1603
+ api_common_v1_payload_repeated(value.args) unless value.args.empty?
1604
+ value.headers.values.each { |v| api_common_v1_payload(v) }
1605
+ @on_exit&.call(value)
1606
+ end
1607
+
1608
+ def coresdk_workflow_commands_start_child_workflow_execution(value)
1609
+ @on_enter&.call(value)
1610
+ api_common_v1_payload_repeated(value.input) unless value.input.empty?
1611
+ value.headers.values.each { |v| api_common_v1_payload(v) }
1612
+ value.memo.values.each { |v| api_common_v1_payload(v) }
1613
+ value.search_attributes.values.each { |v| api_common_v1_payload(v) } unless @skip_search_attributes
1614
+ @on_exit&.call(value)
1615
+ end
1616
+
1617
+ def coresdk_workflow_commands_update_response(value)
1618
+ @on_enter&.call(value)
1619
+ api_failure_v1_failure(value.rejected) if value.has_rejected?
1620
+ api_common_v1_payload(value.completed) if value.has_completed?
1621
+ @on_exit&.call(value)
1622
+ end
1623
+
1624
+ def coresdk_workflow_commands_upsert_workflow_search_attributes(value)
1625
+ @on_enter&.call(value)
1626
+ value.search_attributes.values.each { |v| api_common_v1_payload(v) } unless @skip_search_attributes
1627
+ @on_exit&.call(value)
1628
+ end
1629
+
1630
+ def coresdk_workflow_commands_workflow_command(value)
1631
+ @on_enter&.call(value)
1632
+ api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
1633
+ coresdk_workflow_commands_schedule_activity(value.schedule_activity) if value.has_schedule_activity?
1634
+ coresdk_workflow_commands_query_result(value.respond_to_query) if value.has_respond_to_query?
1635
+ coresdk_workflow_commands_complete_workflow_execution(value.complete_workflow_execution) if value.has_complete_workflow_execution?
1636
+ coresdk_workflow_commands_fail_workflow_execution(value.fail_workflow_execution) if value.has_fail_workflow_execution?
1637
+ coresdk_workflow_commands_continue_as_new_workflow_execution(value.continue_as_new_workflow_execution) if value.has_continue_as_new_workflow_execution?
1638
+ coresdk_workflow_commands_start_child_workflow_execution(value.start_child_workflow_execution) if value.has_start_child_workflow_execution?
1639
+ coresdk_workflow_commands_signal_external_workflow_execution(value.signal_external_workflow_execution) if value.has_signal_external_workflow_execution?
1640
+ coresdk_workflow_commands_schedule_local_activity(value.schedule_local_activity) if value.has_schedule_local_activity?
1641
+ coresdk_workflow_commands_upsert_workflow_search_attributes(value.upsert_workflow_search_attributes) if value.has_upsert_workflow_search_attributes?
1642
+ coresdk_workflow_commands_modify_workflow_properties(value.modify_workflow_properties) if value.has_modify_workflow_properties?
1643
+ coresdk_workflow_commands_update_response(value.update_response) if value.has_update_response?
1644
+ coresdk_workflow_commands_schedule_nexus_operation(value.schedule_nexus_operation) if value.has_schedule_nexus_operation?
1645
+ @on_exit&.call(value)
1646
+ end
1647
+
1648
+ def coresdk_workflow_completion_failure(value)
1649
+ @on_enter&.call(value)
1650
+ api_failure_v1_failure(value.failure) if value.has_failure?
1651
+ @on_exit&.call(value)
1652
+ end
1653
+
1654
+ def coresdk_workflow_completion_success(value)
1655
+ @on_enter&.call(value)
1656
+ value.commands.each { |v| coresdk_workflow_commands_workflow_command(v) }
1657
+ @on_exit&.call(value)
1658
+ end
1659
+
1660
+ def coresdk_workflow_completion_workflow_activation_completion(value)
1661
+ @on_enter&.call(value)
1662
+ coresdk_workflow_completion_success(value.successful) if value.has_successful?
1663
+ coresdk_workflow_completion_failure(value.failed) if value.has_failed?
1664
+ @on_exit&.call(value)
1665
+ end
1666
+ end
1667
+ end
1668
+ end