temporalio 0.2.0-arm64-darwin → 0.4.0-arm64-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.
- checksums.yaml +4 -4
- data/.yardopts +2 -0
- data/Gemfile +7 -3
- data/Rakefile +10 -296
- data/lib/temporalio/activity/complete_async_error.rb +1 -1
- data/lib/temporalio/activity/context.rb +18 -2
- data/lib/temporalio/activity/definition.rb +180 -65
- data/lib/temporalio/activity/info.rb +25 -21
- data/lib/temporalio/activity.rb +2 -59
- data/lib/temporalio/api/activity/v1/message.rb +25 -0
- data/lib/temporalio/api/batch/v1/message.rb +6 -1
- data/lib/temporalio/api/cloud/account/v1/message.rb +28 -0
- data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +34 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
- data/lib/temporalio/api/cloud/identity/v1/message.rb +6 -1
- data/lib/temporalio/api/cloud/namespace/v1/message.rb +8 -1
- data/lib/temporalio/api/cloud/nexus/v1/message.rb +31 -0
- data/lib/temporalio/api/cloud/operation/v1/message.rb +2 -1
- data/lib/temporalio/api/cloud/region/v1/message.rb +2 -1
- data/lib/temporalio/api/cloud/resource/v1/message.rb +23 -0
- data/lib/temporalio/api/cloud/sink/v1/message.rb +24 -0
- data/lib/temporalio/api/cloud/usage/v1/message.rb +31 -0
- data/lib/temporalio/api/command/v1/message.rb +1 -1
- data/lib/temporalio/api/common/v1/message.rb +8 -1
- data/lib/temporalio/api/deployment/v1/message.rb +38 -0
- data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
- data/lib/temporalio/api/enums/v1/common.rb +1 -1
- data/lib/temporalio/api/enums/v1/deployment.rb +23 -0
- data/lib/temporalio/api/enums/v1/event_type.rb +1 -1
- data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
- data/lib/temporalio/api/enums/v1/nexus.rb +21 -0
- data/lib/temporalio/api/enums/v1/reset.rb +1 -1
- data/lib/temporalio/api/enums/v1/workflow.rb +2 -1
- data/lib/temporalio/api/errordetails/v1/message.rb +3 -1
- data/lib/temporalio/api/failure/v1/message.rb +3 -1
- data/lib/temporalio/api/history/v1/message.rb +3 -1
- data/lib/temporalio/api/nexus/v1/message.rb +3 -2
- data/lib/temporalio/api/operatorservice/v1/service.rb +1 -1
- data/lib/temporalio/api/payload_visitor.rb +1581 -0
- data/lib/temporalio/api/query/v1/message.rb +2 -1
- data/lib/temporalio/api/schedule/v1/message.rb +2 -1
- data/lib/temporalio/api/taskqueue/v1/message.rb +4 -1
- data/lib/temporalio/api/testservice/v1/request_response.rb +31 -0
- data/lib/temporalio/api/testservice/v1/service.rb +23 -0
- data/lib/temporalio/api/workflow/v1/message.rb +9 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +46 -2
- data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
- data/lib/temporalio/api.rb +2 -0
- data/lib/temporalio/cancellation.rb +34 -14
- data/lib/temporalio/client/async_activity_handle.rb +12 -37
- data/lib/temporalio/client/connection/cloud_service.rb +309 -231
- data/lib/temporalio/client/connection/operator_service.rb +36 -84
- data/lib/temporalio/client/connection/service.rb +6 -5
- data/lib/temporalio/client/connection/test_service.rb +111 -0
- data/lib/temporalio/client/connection/workflow_service.rb +474 -441
- data/lib/temporalio/client/connection.rb +90 -44
- data/lib/temporalio/client/interceptor.rb +199 -60
- data/lib/temporalio/client/schedule.rb +991 -0
- data/lib/temporalio/client/schedule_handle.rb +126 -0
- data/lib/temporalio/client/with_start_workflow_operation.rb +115 -0
- data/lib/temporalio/client/workflow_execution.rb +26 -10
- data/lib/temporalio/client/workflow_handle.rb +41 -98
- data/lib/temporalio/client/workflow_update_handle.rb +3 -5
- data/lib/temporalio/client.rb +247 -44
- data/lib/temporalio/common_enums.rb +17 -0
- data/lib/temporalio/contrib/open_telemetry.rb +470 -0
- data/lib/temporalio/converters/data_converter.rb +4 -7
- data/lib/temporalio/converters/failure_converter.rb +5 -3
- data/lib/temporalio/converters/payload_converter/composite.rb +4 -0
- data/lib/temporalio/converters/payload_converter.rb +6 -8
- data/lib/temporalio/converters/raw_value.rb +20 -0
- data/lib/temporalio/error/failure.rb +1 -1
- data/lib/temporalio/error.rb +11 -2
- data/lib/temporalio/internal/bridge/3.2/temporalio_bridge.bundle +0 -0
- data/lib/temporalio/internal/bridge/3.3/temporalio_bridge.bundle +0 -0
- data/lib/temporalio/internal/bridge/{3.1 → 3.4}/temporalio_bridge.bundle +0 -0
- data/lib/temporalio/internal/bridge/api/activity_task/activity_task.rb +1 -1
- data/lib/temporalio/internal/bridge/api/common/common.rb +2 -1
- data/lib/temporalio/internal/bridge/api/core_interface.rb +5 -1
- data/lib/temporalio/internal/bridge/api/nexus/nexus.rb +33 -0
- data/lib/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rb +5 -1
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +4 -1
- data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +2 -1
- data/lib/temporalio/internal/bridge/client.rb +11 -6
- data/lib/temporalio/internal/bridge/runtime.rb +3 -0
- data/lib/temporalio/internal/bridge/testing.rb +23 -0
- data/lib/temporalio/internal/bridge/worker.rb +2 -0
- data/lib/temporalio/internal/bridge.rb +1 -1
- data/lib/temporalio/internal/client/implementation.rb +468 -71
- data/lib/temporalio/internal/metric.rb +122 -0
- data/lib/temporalio/internal/proto_utils.rb +118 -7
- data/lib/temporalio/internal/worker/activity_worker.rb +69 -29
- data/lib/temporalio/internal/worker/multi_runner.rb +53 -9
- data/lib/temporalio/internal/worker/workflow_instance/child_workflow_handle.rb +54 -0
- data/lib/temporalio/internal/worker/workflow_instance/context.rb +383 -0
- data/lib/temporalio/internal/worker/workflow_instance/details.rb +46 -0
- data/lib/temporalio/internal/worker/workflow_instance/external_workflow_handle.rb +32 -0
- data/lib/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rb +22 -0
- data/lib/temporalio/internal/worker/workflow_instance/handler_execution.rb +25 -0
- data/lib/temporalio/internal/worker/workflow_instance/handler_hash.rb +41 -0
- data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +97 -0
- data/lib/temporalio/internal/worker/workflow_instance/inbound_implementation.rb +62 -0
- data/lib/temporalio/internal/worker/workflow_instance/outbound_implementation.rb +400 -0
- data/lib/temporalio/internal/worker/workflow_instance/replay_safe_logger.rb +37 -0
- data/lib/temporalio/internal/worker/workflow_instance/replay_safe_metric.rb +40 -0
- data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +183 -0
- data/lib/temporalio/internal/worker/workflow_instance.rb +774 -0
- data/lib/temporalio/internal/worker/workflow_worker.rb +239 -0
- data/lib/temporalio/metric.rb +109 -0
- data/lib/temporalio/retry_policy.rb +37 -14
- data/lib/temporalio/runtime/metric_buffer.rb +94 -0
- data/lib/temporalio/runtime.rb +160 -79
- data/lib/temporalio/search_attributes.rb +93 -37
- data/lib/temporalio/testing/activity_environment.rb +44 -16
- data/lib/temporalio/testing/workflow_environment.rb +276 -7
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/activity_executor/thread_pool.rb +9 -217
- data/lib/temporalio/worker/activity_executor.rb +3 -3
- data/lib/temporalio/worker/interceptor.rb +343 -66
- data/lib/temporalio/worker/thread_pool.rb +237 -0
- data/lib/temporalio/worker/tuner.rb +38 -0
- data/lib/temporalio/worker/workflow_executor/thread_pool.rb +235 -0
- data/lib/temporalio/worker/workflow_executor.rb +26 -0
- data/lib/temporalio/worker/workflow_replayer.rb +350 -0
- data/lib/temporalio/worker.rb +235 -58
- data/lib/temporalio/workflow/activity_cancellation_type.rb +20 -0
- data/lib/temporalio/workflow/child_workflow_cancellation_type.rb +21 -0
- data/lib/temporalio/workflow/child_workflow_handle.rb +43 -0
- data/lib/temporalio/workflow/definition.rb +598 -0
- data/lib/temporalio/workflow/external_workflow_handle.rb +41 -0
- data/lib/temporalio/workflow/future.rb +151 -0
- data/lib/temporalio/workflow/handler_unfinished_policy.rb +13 -0
- data/lib/temporalio/workflow/info.rb +104 -0
- data/lib/temporalio/workflow/parent_close_policy.rb +19 -0
- data/lib/temporalio/workflow/update_info.rb +20 -0
- data/lib/temporalio/workflow.rb +575 -0
- data/lib/temporalio/workflow_history.rb +26 -1
- data/lib/temporalio.rb +4 -0
- data/temporalio.gemspec +4 -3
- metadata +75 -8
| @@ -0,0 +1,1581 @@ | |
| 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_signal(value)
         | 
| 92 | 
            +
                    @on_enter&.call(value)
         | 
| 93 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 94 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 95 | 
            +
                    @on_exit&.call(value)
         | 
| 96 | 
            +
                  end
         | 
| 97 | 
            +
                  
         | 
| 98 | 
            +
                  def api_batch_v1_batch_operation_termination(value)
         | 
| 99 | 
            +
                    @on_enter&.call(value)
         | 
| 100 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 101 | 
            +
                    @on_exit&.call(value)
         | 
| 102 | 
            +
                  end
         | 
| 103 | 
            +
                  
         | 
| 104 | 
            +
                  def api_cloud_cloudservice_v1_add_namespace_region_response(value)
         | 
| 105 | 
            +
                    @on_enter&.call(value)
         | 
| 106 | 
            +
                    api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
         | 
| 107 | 
            +
                    @on_exit&.call(value)
         | 
| 108 | 
            +
                  end
         | 
| 109 | 
            +
                  
         | 
| 110 | 
            +
                  def api_cloud_cloudservice_v1_create_api_key_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_create_namespace_export_sink_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_namespace_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_nexus_endpoint_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_service_account_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_user_group_response(value)
         | 
| 141 | 
            +
                    @on_enter&.call(value)
         | 
| 142 | 
            +
                    api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
         | 
| 143 | 
            +
                    @on_exit&.call(value)
         | 
| 144 | 
            +
                  end
         | 
| 145 | 
            +
                  
         | 
| 146 | 
            +
                  def api_cloud_cloudservice_v1_create_user_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_delete_api_key_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_delete_namespace_export_sink_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_delete_namespace_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_nexus_endpoint_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_service_account_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_user_group_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_user_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_failover_namespace_region_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_get_async_operation_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_rename_custom_search_attribute_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_set_user_group_namespace_access_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_set_user_namespace_access_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_update_account_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_update_api_key_response(value)
         | 
| 231 | 
            +
                    @on_enter&.call(value)
         | 
| 232 | 
            +
                    api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
         | 
| 233 | 
            +
                    @on_exit&.call(value)
         | 
| 234 | 
            +
                  end
         | 
| 235 | 
            +
                  
         | 
| 236 | 
            +
                  def api_cloud_cloudservice_v1_update_namespace_export_sink_response(value)
         | 
| 237 | 
            +
                    @on_enter&.call(value)
         | 
| 238 | 
            +
                    api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
         | 
| 239 | 
            +
                    @on_exit&.call(value)
         | 
| 240 | 
            +
                  end
         | 
| 241 | 
            +
                  
         | 
| 242 | 
            +
                  def api_cloud_cloudservice_v1_update_namespace_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_update_nexus_endpoint_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_update_service_account_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_update_user_group_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_user_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_operation_v1_async_operation(value)
         | 
| 273 | 
            +
                    @on_enter&.call(value)
         | 
| 274 | 
            +
                    google_protobuf_any(value.operation_input) if value.has_operation_input?
         | 
| 275 | 
            +
                    @on_exit&.call(value)
         | 
| 276 | 
            +
                  end
         | 
| 277 | 
            +
                  
         | 
| 278 | 
            +
                  def api_command_v1_cancel_workflow_execution_command_attributes(value)
         | 
| 279 | 
            +
                    @on_enter&.call(value)
         | 
| 280 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 281 | 
            +
                    @on_exit&.call(value)
         | 
| 282 | 
            +
                  end
         | 
| 283 | 
            +
                  
         | 
| 284 | 
            +
                  def api_command_v1_command(value)
         | 
| 285 | 
            +
                    @on_enter&.call(value)
         | 
| 286 | 
            +
                    api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
         | 
| 287 | 
            +
                    api_command_v1_schedule_activity_task_command_attributes(value.schedule_activity_task_command_attributes) if value.has_schedule_activity_task_command_attributes?
         | 
| 288 | 
            +
                    api_command_v1_complete_workflow_execution_command_attributes(value.complete_workflow_execution_command_attributes) if value.has_complete_workflow_execution_command_attributes?
         | 
| 289 | 
            +
                    api_command_v1_fail_workflow_execution_command_attributes(value.fail_workflow_execution_command_attributes) if value.has_fail_workflow_execution_command_attributes?
         | 
| 290 | 
            +
                    api_command_v1_cancel_workflow_execution_command_attributes(value.cancel_workflow_execution_command_attributes) if value.has_cancel_workflow_execution_command_attributes?
         | 
| 291 | 
            +
                    api_command_v1_record_marker_command_attributes(value.record_marker_command_attributes) if value.has_record_marker_command_attributes?
         | 
| 292 | 
            +
                    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?
         | 
| 293 | 
            +
                    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?
         | 
| 294 | 
            +
                    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?
         | 
| 295 | 
            +
                    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?
         | 
| 296 | 
            +
                    api_command_v1_modify_workflow_properties_command_attributes(value.modify_workflow_properties_command_attributes) if value.has_modify_workflow_properties_command_attributes?
         | 
| 297 | 
            +
                    api_command_v1_schedule_nexus_operation_command_attributes(value.schedule_nexus_operation_command_attributes) if value.has_schedule_nexus_operation_command_attributes?
         | 
| 298 | 
            +
                    @on_exit&.call(value)
         | 
| 299 | 
            +
                  end
         | 
| 300 | 
            +
                  
         | 
| 301 | 
            +
                  def api_command_v1_complete_workflow_execution_command_attributes(value)
         | 
| 302 | 
            +
                    @on_enter&.call(value)
         | 
| 303 | 
            +
                    api_common_v1_payloads(value.result) if value.has_result?
         | 
| 304 | 
            +
                    @on_exit&.call(value)
         | 
| 305 | 
            +
                  end
         | 
| 306 | 
            +
                  
         | 
| 307 | 
            +
                  def api_command_v1_continue_as_new_workflow_execution_command_attributes(value)
         | 
| 308 | 
            +
                    @on_enter&.call(value)
         | 
| 309 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 310 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 311 | 
            +
                    api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
         | 
| 312 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 313 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 314 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 315 | 
            +
                    @on_exit&.call(value)
         | 
| 316 | 
            +
                  end
         | 
| 317 | 
            +
                  
         | 
| 318 | 
            +
                  def api_command_v1_fail_workflow_execution_command_attributes(value)
         | 
| 319 | 
            +
                    @on_enter&.call(value)
         | 
| 320 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 321 | 
            +
                    @on_exit&.call(value)
         | 
| 322 | 
            +
                  end
         | 
| 323 | 
            +
                  
         | 
| 324 | 
            +
                  def api_command_v1_modify_workflow_properties_command_attributes(value)
         | 
| 325 | 
            +
                    @on_enter&.call(value)
         | 
| 326 | 
            +
                    api_common_v1_memo(value.upserted_memo) if value.has_upserted_memo?
         | 
| 327 | 
            +
                    @on_exit&.call(value)
         | 
| 328 | 
            +
                  end
         | 
| 329 | 
            +
                  
         | 
| 330 | 
            +
                  def api_command_v1_record_marker_command_attributes(value)
         | 
| 331 | 
            +
                    @on_enter&.call(value)
         | 
| 332 | 
            +
                    value.details.values.each { |v| api_common_v1_payloads(v) }
         | 
| 333 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 334 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 335 | 
            +
                    @on_exit&.call(value)
         | 
| 336 | 
            +
                  end
         | 
| 337 | 
            +
                  
         | 
| 338 | 
            +
                  def api_command_v1_schedule_activity_task_command_attributes(value)
         | 
| 339 | 
            +
                    @on_enter&.call(value)
         | 
| 340 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 341 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 342 | 
            +
                    @on_exit&.call(value)
         | 
| 343 | 
            +
                  end
         | 
| 344 | 
            +
                  
         | 
| 345 | 
            +
                  def api_command_v1_schedule_nexus_operation_command_attributes(value)
         | 
| 346 | 
            +
                    @on_enter&.call(value)
         | 
| 347 | 
            +
                    api_common_v1_payload(value.input) if value.has_input?
         | 
| 348 | 
            +
                    @on_exit&.call(value)
         | 
| 349 | 
            +
                  end
         | 
| 350 | 
            +
                  
         | 
| 351 | 
            +
                  def api_command_v1_signal_external_workflow_execution_command_attributes(value)
         | 
| 352 | 
            +
                    @on_enter&.call(value)
         | 
| 353 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 354 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 355 | 
            +
                    @on_exit&.call(value)
         | 
| 356 | 
            +
                  end
         | 
| 357 | 
            +
                  
         | 
| 358 | 
            +
                  def api_command_v1_start_child_workflow_execution_command_attributes(value)
         | 
| 359 | 
            +
                    @on_enter&.call(value)
         | 
| 360 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 361 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 362 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 363 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 364 | 
            +
                    @on_exit&.call(value)
         | 
| 365 | 
            +
                  end
         | 
| 366 | 
            +
                  
         | 
| 367 | 
            +
                  def api_command_v1_upsert_workflow_search_attributes_command_attributes(value)
         | 
| 368 | 
            +
                    @on_enter&.call(value)
         | 
| 369 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 370 | 
            +
                    @on_exit&.call(value)
         | 
| 371 | 
            +
                  end
         | 
| 372 | 
            +
                  
         | 
| 373 | 
            +
                  def api_common_v1_header(value)
         | 
| 374 | 
            +
                    @on_enter&.call(value)
         | 
| 375 | 
            +
                    value.fields.values.each { |v| api_common_v1_payload(v) }
         | 
| 376 | 
            +
                    @on_exit&.call(value)
         | 
| 377 | 
            +
                  end
         | 
| 378 | 
            +
                  
         | 
| 379 | 
            +
                  def api_common_v1_memo(value)
         | 
| 380 | 
            +
                    @on_enter&.call(value)
         | 
| 381 | 
            +
                    value.fields.values.each { |v| api_common_v1_payload(v) }
         | 
| 382 | 
            +
                    @on_exit&.call(value)
         | 
| 383 | 
            +
                  end
         | 
| 384 | 
            +
                  
         | 
| 385 | 
            +
                  def api_common_v1_payloads(value)
         | 
| 386 | 
            +
                    @on_enter&.call(value)
         | 
| 387 | 
            +
                    api_common_v1_payload_repeated(value.payloads) unless value.payloads.empty?
         | 
| 388 | 
            +
                    @on_exit&.call(value)
         | 
| 389 | 
            +
                  end
         | 
| 390 | 
            +
                  
         | 
| 391 | 
            +
                  def api_common_v1_search_attributes(value)
         | 
| 392 | 
            +
                    return if @skip_search_attributes
         | 
| 393 | 
            +
                    @on_enter&.call(value)
         | 
| 394 | 
            +
                    value.indexed_fields.values.each { |v| api_common_v1_payload(v) }
         | 
| 395 | 
            +
                    @on_exit&.call(value)
         | 
| 396 | 
            +
                  end
         | 
| 397 | 
            +
                  
         | 
| 398 | 
            +
                  def api_deployment_v1_deployment_info(value)
         | 
| 399 | 
            +
                    @on_enter&.call(value)
         | 
| 400 | 
            +
                    value.metadata.values.each { |v| api_common_v1_payload(v) }
         | 
| 401 | 
            +
                    @on_exit&.call(value)
         | 
| 402 | 
            +
                  end
         | 
| 403 | 
            +
                  
         | 
| 404 | 
            +
                  def api_deployment_v1_update_deployment_metadata(value)
         | 
| 405 | 
            +
                    @on_enter&.call(value)
         | 
| 406 | 
            +
                    value.upsert_entries.values.each { |v| api_common_v1_payload(v) }
         | 
| 407 | 
            +
                    @on_exit&.call(value)
         | 
| 408 | 
            +
                  end
         | 
| 409 | 
            +
                  
         | 
| 410 | 
            +
                  def api_deployment_v1_version_metadata(value)
         | 
| 411 | 
            +
                    @on_enter&.call(value)
         | 
| 412 | 
            +
                    value.entries.values.each { |v| api_common_v1_payload(v) }
         | 
| 413 | 
            +
                    @on_exit&.call(value)
         | 
| 414 | 
            +
                  end
         | 
| 415 | 
            +
                  
         | 
| 416 | 
            +
                  def api_deployment_v1_worker_deployment_version_info(value)
         | 
| 417 | 
            +
                    @on_enter&.call(value)
         | 
| 418 | 
            +
                    api_deployment_v1_version_metadata(value.metadata) if value.has_metadata?
         | 
| 419 | 
            +
                    @on_exit&.call(value)
         | 
| 420 | 
            +
                  end
         | 
| 421 | 
            +
                  
         | 
| 422 | 
            +
                  def api_export_v1_workflow_execution(value)
         | 
| 423 | 
            +
                    @on_enter&.call(value)
         | 
| 424 | 
            +
                    api_history_v1_history(value.history) if value.has_history?
         | 
| 425 | 
            +
                    @on_exit&.call(value)
         | 
| 426 | 
            +
                  end
         | 
| 427 | 
            +
                  
         | 
| 428 | 
            +
                  def api_export_v1_workflow_executions(value)
         | 
| 429 | 
            +
                    @on_enter&.call(value)
         | 
| 430 | 
            +
                    value.items.each { |v| api_export_v1_workflow_execution(v) }
         | 
| 431 | 
            +
                    @on_exit&.call(value)
         | 
| 432 | 
            +
                  end
         | 
| 433 | 
            +
                  
         | 
| 434 | 
            +
                  def api_failure_v1_application_failure_info(value)
         | 
| 435 | 
            +
                    @on_enter&.call(value)
         | 
| 436 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 437 | 
            +
                    @on_exit&.call(value)
         | 
| 438 | 
            +
                  end
         | 
| 439 | 
            +
                  
         | 
| 440 | 
            +
                  def api_failure_v1_canceled_failure_info(value)
         | 
| 441 | 
            +
                    @on_enter&.call(value)
         | 
| 442 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 443 | 
            +
                    @on_exit&.call(value)
         | 
| 444 | 
            +
                  end
         | 
| 445 | 
            +
                  
         | 
| 446 | 
            +
                  def api_failure_v1_failure(value)
         | 
| 447 | 
            +
                    @on_enter&.call(value)
         | 
| 448 | 
            +
                    api_common_v1_payload(value.encoded_attributes) if value.has_encoded_attributes?
         | 
| 449 | 
            +
                    api_failure_v1_failure(value.cause) if value.has_cause?
         | 
| 450 | 
            +
                    api_failure_v1_application_failure_info(value.application_failure_info) if value.has_application_failure_info?
         | 
| 451 | 
            +
                    api_failure_v1_timeout_failure_info(value.timeout_failure_info) if value.has_timeout_failure_info?
         | 
| 452 | 
            +
                    api_failure_v1_canceled_failure_info(value.canceled_failure_info) if value.has_canceled_failure_info?
         | 
| 453 | 
            +
                    api_failure_v1_reset_workflow_failure_info(value.reset_workflow_failure_info) if value.has_reset_workflow_failure_info?
         | 
| 454 | 
            +
                    @on_exit&.call(value)
         | 
| 455 | 
            +
                  end
         | 
| 456 | 
            +
                  
         | 
| 457 | 
            +
                  def api_failure_v1_reset_workflow_failure_info(value)
         | 
| 458 | 
            +
                    @on_enter&.call(value)
         | 
| 459 | 
            +
                    api_common_v1_payloads(value.last_heartbeat_details) if value.has_last_heartbeat_details?
         | 
| 460 | 
            +
                    @on_exit&.call(value)
         | 
| 461 | 
            +
                  end
         | 
| 462 | 
            +
                  
         | 
| 463 | 
            +
                  def api_failure_v1_timeout_failure_info(value)
         | 
| 464 | 
            +
                    @on_enter&.call(value)
         | 
| 465 | 
            +
                    api_common_v1_payloads(value.last_heartbeat_details) if value.has_last_heartbeat_details?
         | 
| 466 | 
            +
                    @on_exit&.call(value)
         | 
| 467 | 
            +
                  end
         | 
| 468 | 
            +
                  
         | 
| 469 | 
            +
                  def api_history_v1_activity_task_canceled_event_attributes(value)
         | 
| 470 | 
            +
                    @on_enter&.call(value)
         | 
| 471 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 472 | 
            +
                    @on_exit&.call(value)
         | 
| 473 | 
            +
                  end
         | 
| 474 | 
            +
                  
         | 
| 475 | 
            +
                  def api_history_v1_activity_task_completed_event_attributes(value)
         | 
| 476 | 
            +
                    @on_enter&.call(value)
         | 
| 477 | 
            +
                    api_common_v1_payloads(value.result) if value.has_result?
         | 
| 478 | 
            +
                    @on_exit&.call(value)
         | 
| 479 | 
            +
                  end
         | 
| 480 | 
            +
                  
         | 
| 481 | 
            +
                  def api_history_v1_activity_task_failed_event_attributes(value)
         | 
| 482 | 
            +
                    @on_enter&.call(value)
         | 
| 483 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 484 | 
            +
                    @on_exit&.call(value)
         | 
| 485 | 
            +
                  end
         | 
| 486 | 
            +
                  
         | 
| 487 | 
            +
                  def api_history_v1_activity_task_scheduled_event_attributes(value)
         | 
| 488 | 
            +
                    @on_enter&.call(value)
         | 
| 489 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 490 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 491 | 
            +
                    @on_exit&.call(value)
         | 
| 492 | 
            +
                  end
         | 
| 493 | 
            +
                  
         | 
| 494 | 
            +
                  def api_history_v1_activity_task_started_event_attributes(value)
         | 
| 495 | 
            +
                    @on_enter&.call(value)
         | 
| 496 | 
            +
                    api_failure_v1_failure(value.last_failure) if value.has_last_failure?
         | 
| 497 | 
            +
                    @on_exit&.call(value)
         | 
| 498 | 
            +
                  end
         | 
| 499 | 
            +
                  
         | 
| 500 | 
            +
                  def api_history_v1_activity_task_timed_out_event_attributes(value)
         | 
| 501 | 
            +
                    @on_enter&.call(value)
         | 
| 502 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 503 | 
            +
                    @on_exit&.call(value)
         | 
| 504 | 
            +
                  end
         | 
| 505 | 
            +
                  
         | 
| 506 | 
            +
                  def api_history_v1_child_workflow_execution_canceled_event_attributes(value)
         | 
| 507 | 
            +
                    @on_enter&.call(value)
         | 
| 508 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 509 | 
            +
                    @on_exit&.call(value)
         | 
| 510 | 
            +
                  end
         | 
| 511 | 
            +
                  
         | 
| 512 | 
            +
                  def api_history_v1_child_workflow_execution_completed_event_attributes(value)
         | 
| 513 | 
            +
                    @on_enter&.call(value)
         | 
| 514 | 
            +
                    api_common_v1_payloads(value.result) if value.has_result?
         | 
| 515 | 
            +
                    @on_exit&.call(value)
         | 
| 516 | 
            +
                  end
         | 
| 517 | 
            +
                  
         | 
| 518 | 
            +
                  def api_history_v1_child_workflow_execution_failed_event_attributes(value)
         | 
| 519 | 
            +
                    @on_enter&.call(value)
         | 
| 520 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 521 | 
            +
                    @on_exit&.call(value)
         | 
| 522 | 
            +
                  end
         | 
| 523 | 
            +
                  
         | 
| 524 | 
            +
                  def api_history_v1_child_workflow_execution_started_event_attributes(value)
         | 
| 525 | 
            +
                    @on_enter&.call(value)
         | 
| 526 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 527 | 
            +
                    @on_exit&.call(value)
         | 
| 528 | 
            +
                  end
         | 
| 529 | 
            +
                  
         | 
| 530 | 
            +
                  def api_history_v1_history(value)
         | 
| 531 | 
            +
                    @on_enter&.call(value)
         | 
| 532 | 
            +
                    value.events.each { |v| api_history_v1_history_event(v) }
         | 
| 533 | 
            +
                    @on_exit&.call(value)
         | 
| 534 | 
            +
                  end
         | 
| 535 | 
            +
                  
         | 
| 536 | 
            +
                  def api_history_v1_history_event(value)
         | 
| 537 | 
            +
                    @on_enter&.call(value)
         | 
| 538 | 
            +
                    api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
         | 
| 539 | 
            +
                    api_history_v1_workflow_execution_started_event_attributes(value.workflow_execution_started_event_attributes) if value.has_workflow_execution_started_event_attributes?
         | 
| 540 | 
            +
                    api_history_v1_workflow_execution_completed_event_attributes(value.workflow_execution_completed_event_attributes) if value.has_workflow_execution_completed_event_attributes?
         | 
| 541 | 
            +
                    api_history_v1_workflow_execution_failed_event_attributes(value.workflow_execution_failed_event_attributes) if value.has_workflow_execution_failed_event_attributes?
         | 
| 542 | 
            +
                    api_history_v1_workflow_task_failed_event_attributes(value.workflow_task_failed_event_attributes) if value.has_workflow_task_failed_event_attributes?
         | 
| 543 | 
            +
                    api_history_v1_activity_task_scheduled_event_attributes(value.activity_task_scheduled_event_attributes) if value.has_activity_task_scheduled_event_attributes?
         | 
| 544 | 
            +
                    api_history_v1_activity_task_started_event_attributes(value.activity_task_started_event_attributes) if value.has_activity_task_started_event_attributes?
         | 
| 545 | 
            +
                    api_history_v1_activity_task_completed_event_attributes(value.activity_task_completed_event_attributes) if value.has_activity_task_completed_event_attributes?
         | 
| 546 | 
            +
                    api_history_v1_activity_task_failed_event_attributes(value.activity_task_failed_event_attributes) if value.has_activity_task_failed_event_attributes?
         | 
| 547 | 
            +
                    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?
         | 
| 548 | 
            +
                    api_history_v1_activity_task_canceled_event_attributes(value.activity_task_canceled_event_attributes) if value.has_activity_task_canceled_event_attributes?
         | 
| 549 | 
            +
                    api_history_v1_marker_recorded_event_attributes(value.marker_recorded_event_attributes) if value.has_marker_recorded_event_attributes?
         | 
| 550 | 
            +
                    api_history_v1_workflow_execution_signaled_event_attributes(value.workflow_execution_signaled_event_attributes) if value.has_workflow_execution_signaled_event_attributes?
         | 
| 551 | 
            +
                    api_history_v1_workflow_execution_terminated_event_attributes(value.workflow_execution_terminated_event_attributes) if value.has_workflow_execution_terminated_event_attributes?
         | 
| 552 | 
            +
                    api_history_v1_workflow_execution_canceled_event_attributes(value.workflow_execution_canceled_event_attributes) if value.has_workflow_execution_canceled_event_attributes?
         | 
| 553 | 
            +
                    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?
         | 
| 554 | 
            +
                    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?
         | 
| 555 | 
            +
                    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?
         | 
| 556 | 
            +
                    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?
         | 
| 557 | 
            +
                    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?
         | 
| 558 | 
            +
                    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?
         | 
| 559 | 
            +
                    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?
         | 
| 560 | 
            +
                    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?
         | 
| 561 | 
            +
                    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?
         | 
| 562 | 
            +
                    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?
         | 
| 563 | 
            +
                    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?
         | 
| 564 | 
            +
                    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?
         | 
| 565 | 
            +
                    api_history_v1_workflow_properties_modified_event_attributes(value.workflow_properties_modified_event_attributes) if value.has_workflow_properties_modified_event_attributes?
         | 
| 566 | 
            +
                    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?
         | 
| 567 | 
            +
                    api_history_v1_nexus_operation_scheduled_event_attributes(value.nexus_operation_scheduled_event_attributes) if value.has_nexus_operation_scheduled_event_attributes?
         | 
| 568 | 
            +
                    api_history_v1_nexus_operation_completed_event_attributes(value.nexus_operation_completed_event_attributes) if value.has_nexus_operation_completed_event_attributes?
         | 
| 569 | 
            +
                    api_history_v1_nexus_operation_failed_event_attributes(value.nexus_operation_failed_event_attributes) if value.has_nexus_operation_failed_event_attributes?
         | 
| 570 | 
            +
                    api_history_v1_nexus_operation_canceled_event_attributes(value.nexus_operation_canceled_event_attributes) if value.has_nexus_operation_canceled_event_attributes?
         | 
| 571 | 
            +
                    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?
         | 
| 572 | 
            +
                    @on_exit&.call(value)
         | 
| 573 | 
            +
                  end
         | 
| 574 | 
            +
                  
         | 
| 575 | 
            +
                  def api_history_v1_marker_recorded_event_attributes(value)
         | 
| 576 | 
            +
                    @on_enter&.call(value)
         | 
| 577 | 
            +
                    value.details.values.each { |v| api_common_v1_payloads(v) }
         | 
| 578 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 579 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 580 | 
            +
                    @on_exit&.call(value)
         | 
| 581 | 
            +
                  end
         | 
| 582 | 
            +
                  
         | 
| 583 | 
            +
                  def api_history_v1_nexus_operation_canceled_event_attributes(value)
         | 
| 584 | 
            +
                    @on_enter&.call(value)
         | 
| 585 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 586 | 
            +
                    @on_exit&.call(value)
         | 
| 587 | 
            +
                  end
         | 
| 588 | 
            +
                  
         | 
| 589 | 
            +
                  def api_history_v1_nexus_operation_completed_event_attributes(value)
         | 
| 590 | 
            +
                    @on_enter&.call(value)
         | 
| 591 | 
            +
                    api_common_v1_payload(value.result) if value.has_result?
         | 
| 592 | 
            +
                    @on_exit&.call(value)
         | 
| 593 | 
            +
                  end
         | 
| 594 | 
            +
                  
         | 
| 595 | 
            +
                  def api_history_v1_nexus_operation_failed_event_attributes(value)
         | 
| 596 | 
            +
                    @on_enter&.call(value)
         | 
| 597 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 598 | 
            +
                    @on_exit&.call(value)
         | 
| 599 | 
            +
                  end
         | 
| 600 | 
            +
                  
         | 
| 601 | 
            +
                  def api_history_v1_nexus_operation_scheduled_event_attributes(value)
         | 
| 602 | 
            +
                    @on_enter&.call(value)
         | 
| 603 | 
            +
                    api_common_v1_payload(value.input) if value.has_input?
         | 
| 604 | 
            +
                    @on_exit&.call(value)
         | 
| 605 | 
            +
                  end
         | 
| 606 | 
            +
                  
         | 
| 607 | 
            +
                  def api_history_v1_nexus_operation_timed_out_event_attributes(value)
         | 
| 608 | 
            +
                    @on_enter&.call(value)
         | 
| 609 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 610 | 
            +
                    @on_exit&.call(value)
         | 
| 611 | 
            +
                  end
         | 
| 612 | 
            +
                  
         | 
| 613 | 
            +
                  def api_history_v1_signal_external_workflow_execution_initiated_event_attributes(value)
         | 
| 614 | 
            +
                    @on_enter&.call(value)
         | 
| 615 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 616 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 617 | 
            +
                    @on_exit&.call(value)
         | 
| 618 | 
            +
                  end
         | 
| 619 | 
            +
                  
         | 
| 620 | 
            +
                  def api_history_v1_start_child_workflow_execution_initiated_event_attributes(value)
         | 
| 621 | 
            +
                    @on_enter&.call(value)
         | 
| 622 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 623 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 624 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 625 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 626 | 
            +
                    @on_exit&.call(value)
         | 
| 627 | 
            +
                  end
         | 
| 628 | 
            +
                  
         | 
| 629 | 
            +
                  def api_history_v1_upsert_workflow_search_attributes_event_attributes(value)
         | 
| 630 | 
            +
                    @on_enter&.call(value)
         | 
| 631 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 632 | 
            +
                    @on_exit&.call(value)
         | 
| 633 | 
            +
                  end
         | 
| 634 | 
            +
                  
         | 
| 635 | 
            +
                  def api_history_v1_workflow_execution_canceled_event_attributes(value)
         | 
| 636 | 
            +
                    @on_enter&.call(value)
         | 
| 637 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 638 | 
            +
                    @on_exit&.call(value)
         | 
| 639 | 
            +
                  end
         | 
| 640 | 
            +
                  
         | 
| 641 | 
            +
                  def api_history_v1_workflow_execution_completed_event_attributes(value)
         | 
| 642 | 
            +
                    @on_enter&.call(value)
         | 
| 643 | 
            +
                    api_common_v1_payloads(value.result) if value.has_result?
         | 
| 644 | 
            +
                    @on_exit&.call(value)
         | 
| 645 | 
            +
                  end
         | 
| 646 | 
            +
                  
         | 
| 647 | 
            +
                  def api_history_v1_workflow_execution_continued_as_new_event_attributes(value)
         | 
| 648 | 
            +
                    @on_enter&.call(value)
         | 
| 649 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 650 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 651 | 
            +
                    api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
         | 
| 652 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 653 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 654 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 655 | 
            +
                    @on_exit&.call(value)
         | 
| 656 | 
            +
                  end
         | 
| 657 | 
            +
                  
         | 
| 658 | 
            +
                  def api_history_v1_workflow_execution_failed_event_attributes(value)
         | 
| 659 | 
            +
                    @on_enter&.call(value)
         | 
| 660 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 661 | 
            +
                    @on_exit&.call(value)
         | 
| 662 | 
            +
                  end
         | 
| 663 | 
            +
                  
         | 
| 664 | 
            +
                  def api_history_v1_workflow_execution_signaled_event_attributes(value)
         | 
| 665 | 
            +
                    @on_enter&.call(value)
         | 
| 666 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 667 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 668 | 
            +
                    @on_exit&.call(value)
         | 
| 669 | 
            +
                  end
         | 
| 670 | 
            +
                  
         | 
| 671 | 
            +
                  def api_history_v1_workflow_execution_started_event_attributes(value)
         | 
| 672 | 
            +
                    @on_enter&.call(value)
         | 
| 673 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 674 | 
            +
                    api_failure_v1_failure(value.continued_failure) if value.has_continued_failure?
         | 
| 675 | 
            +
                    api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
         | 
| 676 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 677 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 678 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 679 | 
            +
                    @on_exit&.call(value)
         | 
| 680 | 
            +
                  end
         | 
| 681 | 
            +
                  
         | 
| 682 | 
            +
                  def api_history_v1_workflow_execution_terminated_event_attributes(value)
         | 
| 683 | 
            +
                    @on_enter&.call(value)
         | 
| 684 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 685 | 
            +
                    @on_exit&.call(value)
         | 
| 686 | 
            +
                  end
         | 
| 687 | 
            +
                  
         | 
| 688 | 
            +
                  def api_history_v1_workflow_execution_update_accepted_event_attributes(value)
         | 
| 689 | 
            +
                    @on_enter&.call(value)
         | 
| 690 | 
            +
                    api_update_v1_request(value.accepted_request) if value.has_accepted_request?
         | 
| 691 | 
            +
                    @on_exit&.call(value)
         | 
| 692 | 
            +
                  end
         | 
| 693 | 
            +
                  
         | 
| 694 | 
            +
                  def api_history_v1_workflow_execution_update_admitted_event_attributes(value)
         | 
| 695 | 
            +
                    @on_enter&.call(value)
         | 
| 696 | 
            +
                    api_update_v1_request(value.request) if value.has_request?
         | 
| 697 | 
            +
                    @on_exit&.call(value)
         | 
| 698 | 
            +
                  end
         | 
| 699 | 
            +
                  
         | 
| 700 | 
            +
                  def api_history_v1_workflow_execution_update_completed_event_attributes(value)
         | 
| 701 | 
            +
                    @on_enter&.call(value)
         | 
| 702 | 
            +
                    api_update_v1_outcome(value.outcome) if value.has_outcome?
         | 
| 703 | 
            +
                    @on_exit&.call(value)
         | 
| 704 | 
            +
                  end
         | 
| 705 | 
            +
                  
         | 
| 706 | 
            +
                  def api_history_v1_workflow_execution_update_rejected_event_attributes(value)
         | 
| 707 | 
            +
                    @on_enter&.call(value)
         | 
| 708 | 
            +
                    api_update_v1_request(value.rejected_request) if value.has_rejected_request?
         | 
| 709 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 710 | 
            +
                    @on_exit&.call(value)
         | 
| 711 | 
            +
                  end
         | 
| 712 | 
            +
                  
         | 
| 713 | 
            +
                  def api_history_v1_workflow_properties_modified_event_attributes(value)
         | 
| 714 | 
            +
                    @on_enter&.call(value)
         | 
| 715 | 
            +
                    api_common_v1_memo(value.upserted_memo) if value.has_upserted_memo?
         | 
| 716 | 
            +
                    @on_exit&.call(value)
         | 
| 717 | 
            +
                  end
         | 
| 718 | 
            +
                  
         | 
| 719 | 
            +
                  def api_history_v1_workflow_properties_modified_externally_event_attributes(value)
         | 
| 720 | 
            +
                    @on_enter&.call(value)
         | 
| 721 | 
            +
                    api_common_v1_memo(value.upserted_memo) if value.has_upserted_memo?
         | 
| 722 | 
            +
                    @on_exit&.call(value)
         | 
| 723 | 
            +
                  end
         | 
| 724 | 
            +
                  
         | 
| 725 | 
            +
                  def api_history_v1_workflow_task_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_nexus_v1_endpoint(value)
         | 
| 732 | 
            +
                    @on_enter&.call(value)
         | 
| 733 | 
            +
                    api_nexus_v1_endpoint_spec(value.spec) if value.has_spec?
         | 
| 734 | 
            +
                    @on_exit&.call(value)
         | 
| 735 | 
            +
                  end
         | 
| 736 | 
            +
                  
         | 
| 737 | 
            +
                  def api_nexus_v1_endpoint_spec(value)
         | 
| 738 | 
            +
                    @on_enter&.call(value)
         | 
| 739 | 
            +
                    api_common_v1_payload(value.description) if value.has_description?
         | 
| 740 | 
            +
                    @on_exit&.call(value)
         | 
| 741 | 
            +
                  end
         | 
| 742 | 
            +
                  
         | 
| 743 | 
            +
                  def api_nexus_v1_request(value)
         | 
| 744 | 
            +
                    @on_enter&.call(value)
         | 
| 745 | 
            +
                    api_nexus_v1_start_operation_request(value.start_operation) if value.has_start_operation?
         | 
| 746 | 
            +
                    @on_exit&.call(value)
         | 
| 747 | 
            +
                  end
         | 
| 748 | 
            +
                  
         | 
| 749 | 
            +
                  def api_nexus_v1_response(value)
         | 
| 750 | 
            +
                    @on_enter&.call(value)
         | 
| 751 | 
            +
                    api_nexus_v1_start_operation_response(value.start_operation) if value.has_start_operation?
         | 
| 752 | 
            +
                    @on_exit&.call(value)
         | 
| 753 | 
            +
                  end
         | 
| 754 | 
            +
                  
         | 
| 755 | 
            +
                  def api_nexus_v1_start_operation_request(value)
         | 
| 756 | 
            +
                    @on_enter&.call(value)
         | 
| 757 | 
            +
                    api_common_v1_payload(value.payload) if value.has_payload?
         | 
| 758 | 
            +
                    @on_exit&.call(value)
         | 
| 759 | 
            +
                  end
         | 
| 760 | 
            +
                  
         | 
| 761 | 
            +
                  def api_nexus_v1_start_operation_response(value)
         | 
| 762 | 
            +
                    @on_enter&.call(value)
         | 
| 763 | 
            +
                    api_nexus_v1_start_operation_response_sync(value.sync_success) if value.has_sync_success?
         | 
| 764 | 
            +
                    @on_exit&.call(value)
         | 
| 765 | 
            +
                  end
         | 
| 766 | 
            +
                  
         | 
| 767 | 
            +
                  def api_nexus_v1_start_operation_response_sync(value)
         | 
| 768 | 
            +
                    @on_enter&.call(value)
         | 
| 769 | 
            +
                    api_common_v1_payload(value.payload) if value.has_payload?
         | 
| 770 | 
            +
                    @on_exit&.call(value)
         | 
| 771 | 
            +
                  end
         | 
| 772 | 
            +
                  
         | 
| 773 | 
            +
                  def api_operatorservice_v1_create_nexus_endpoint_request(value)
         | 
| 774 | 
            +
                    @on_enter&.call(value)
         | 
| 775 | 
            +
                    api_nexus_v1_endpoint_spec(value.spec) if value.has_spec?
         | 
| 776 | 
            +
                    @on_exit&.call(value)
         | 
| 777 | 
            +
                  end
         | 
| 778 | 
            +
                  
         | 
| 779 | 
            +
                  def api_operatorservice_v1_create_nexus_endpoint_response(value)
         | 
| 780 | 
            +
                    @on_enter&.call(value)
         | 
| 781 | 
            +
                    api_nexus_v1_endpoint(value.endpoint) if value.has_endpoint?
         | 
| 782 | 
            +
                    @on_exit&.call(value)
         | 
| 783 | 
            +
                  end
         | 
| 784 | 
            +
                  
         | 
| 785 | 
            +
                  def api_operatorservice_v1_get_nexus_endpoint_response(value)
         | 
| 786 | 
            +
                    @on_enter&.call(value)
         | 
| 787 | 
            +
                    api_nexus_v1_endpoint(value.endpoint) if value.has_endpoint?
         | 
| 788 | 
            +
                    @on_exit&.call(value)
         | 
| 789 | 
            +
                  end
         | 
| 790 | 
            +
                  
         | 
| 791 | 
            +
                  def api_operatorservice_v1_list_nexus_endpoints_response(value)
         | 
| 792 | 
            +
                    @on_enter&.call(value)
         | 
| 793 | 
            +
                    value.endpoints.each { |v| api_nexus_v1_endpoint(v) }
         | 
| 794 | 
            +
                    @on_exit&.call(value)
         | 
| 795 | 
            +
                  end
         | 
| 796 | 
            +
                  
         | 
| 797 | 
            +
                  def api_operatorservice_v1_update_nexus_endpoint_request(value)
         | 
| 798 | 
            +
                    @on_enter&.call(value)
         | 
| 799 | 
            +
                    api_nexus_v1_endpoint_spec(value.spec) if value.has_spec?
         | 
| 800 | 
            +
                    @on_exit&.call(value)
         | 
| 801 | 
            +
                  end
         | 
| 802 | 
            +
                  
         | 
| 803 | 
            +
                  def api_operatorservice_v1_update_nexus_endpoint_response(value)
         | 
| 804 | 
            +
                    @on_enter&.call(value)
         | 
| 805 | 
            +
                    api_nexus_v1_endpoint(value.endpoint) if value.has_endpoint?
         | 
| 806 | 
            +
                    @on_exit&.call(value)
         | 
| 807 | 
            +
                  end
         | 
| 808 | 
            +
                  
         | 
| 809 | 
            +
                  def api_protocol_v1_message(value)
         | 
| 810 | 
            +
                    @on_enter&.call(value)
         | 
| 811 | 
            +
                    google_protobuf_any(value.body) if value.has_body?
         | 
| 812 | 
            +
                    @on_exit&.call(value)
         | 
| 813 | 
            +
                  end
         | 
| 814 | 
            +
                  
         | 
| 815 | 
            +
                  def api_query_v1_workflow_query(value)
         | 
| 816 | 
            +
                    @on_enter&.call(value)
         | 
| 817 | 
            +
                    api_common_v1_payloads(value.query_args) if value.has_query_args?
         | 
| 818 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 819 | 
            +
                    @on_exit&.call(value)
         | 
| 820 | 
            +
                  end
         | 
| 821 | 
            +
                  
         | 
| 822 | 
            +
                  def api_query_v1_workflow_query_result(value)
         | 
| 823 | 
            +
                    @on_enter&.call(value)
         | 
| 824 | 
            +
                    api_common_v1_payloads(value.answer) if value.has_answer?
         | 
| 825 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 826 | 
            +
                    @on_exit&.call(value)
         | 
| 827 | 
            +
                  end
         | 
| 828 | 
            +
                  
         | 
| 829 | 
            +
                  def api_schedule_v1_schedule(value)
         | 
| 830 | 
            +
                    @on_enter&.call(value)
         | 
| 831 | 
            +
                    api_schedule_v1_schedule_action(value.action) if value.has_action?
         | 
| 832 | 
            +
                    @on_exit&.call(value)
         | 
| 833 | 
            +
                  end
         | 
| 834 | 
            +
                  
         | 
| 835 | 
            +
                  def api_schedule_v1_schedule_action(value)
         | 
| 836 | 
            +
                    @on_enter&.call(value)
         | 
| 837 | 
            +
                    api_workflow_v1_new_workflow_execution_info(value.start_workflow) if value.has_start_workflow?
         | 
| 838 | 
            +
                    @on_exit&.call(value)
         | 
| 839 | 
            +
                  end
         | 
| 840 | 
            +
                  
         | 
| 841 | 
            +
                  def api_schedule_v1_schedule_list_entry(value)
         | 
| 842 | 
            +
                    @on_enter&.call(value)
         | 
| 843 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 844 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 845 | 
            +
                    @on_exit&.call(value)
         | 
| 846 | 
            +
                  end
         | 
| 847 | 
            +
                  
         | 
| 848 | 
            +
                  def api_sdk_v1_user_metadata(value)
         | 
| 849 | 
            +
                    @on_enter&.call(value)
         | 
| 850 | 
            +
                    api_common_v1_payload(value.summary) if value.has_summary?
         | 
| 851 | 
            +
                    api_common_v1_payload(value.details) if value.has_details?
         | 
| 852 | 
            +
                    @on_exit&.call(value)
         | 
| 853 | 
            +
                  end
         | 
| 854 | 
            +
                  
         | 
| 855 | 
            +
                  def api_update_v1_input(value)
         | 
| 856 | 
            +
                    @on_enter&.call(value)
         | 
| 857 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 858 | 
            +
                    api_common_v1_payloads(value.args) if value.has_args?
         | 
| 859 | 
            +
                    @on_exit&.call(value)
         | 
| 860 | 
            +
                  end
         | 
| 861 | 
            +
                  
         | 
| 862 | 
            +
                  def api_update_v1_outcome(value)
         | 
| 863 | 
            +
                    @on_enter&.call(value)
         | 
| 864 | 
            +
                    api_common_v1_payloads(value.success) if value.has_success?
         | 
| 865 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 866 | 
            +
                    @on_exit&.call(value)
         | 
| 867 | 
            +
                  end
         | 
| 868 | 
            +
                  
         | 
| 869 | 
            +
                  def api_update_v1_request(value)
         | 
| 870 | 
            +
                    @on_enter&.call(value)
         | 
| 871 | 
            +
                    api_update_v1_input(value.input) if value.has_input?
         | 
| 872 | 
            +
                    @on_exit&.call(value)
         | 
| 873 | 
            +
                  end
         | 
| 874 | 
            +
                  
         | 
| 875 | 
            +
                  def api_workflow_v1_callback_info(value)
         | 
| 876 | 
            +
                    @on_enter&.call(value)
         | 
| 877 | 
            +
                    api_failure_v1_failure(value.last_attempt_failure) if value.has_last_attempt_failure?
         | 
| 878 | 
            +
                    @on_exit&.call(value)
         | 
| 879 | 
            +
                  end
         | 
| 880 | 
            +
                  
         | 
| 881 | 
            +
                  def api_workflow_v1_new_workflow_execution_info(value)
         | 
| 882 | 
            +
                    @on_enter&.call(value)
         | 
| 883 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 884 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 885 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 886 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 887 | 
            +
                    api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
         | 
| 888 | 
            +
                    @on_exit&.call(value)
         | 
| 889 | 
            +
                  end
         | 
| 890 | 
            +
                  
         | 
| 891 | 
            +
                  def api_workflow_v1_nexus_operation_cancellation_info(value)
         | 
| 892 | 
            +
                    @on_enter&.call(value)
         | 
| 893 | 
            +
                    api_failure_v1_failure(value.last_attempt_failure) if value.has_last_attempt_failure?
         | 
| 894 | 
            +
                    @on_exit&.call(value)
         | 
| 895 | 
            +
                  end
         | 
| 896 | 
            +
                  
         | 
| 897 | 
            +
                  def api_workflow_v1_pending_activity_info(value)
         | 
| 898 | 
            +
                    @on_enter&.call(value)
         | 
| 899 | 
            +
                    api_common_v1_payloads(value.heartbeat_details) if value.has_heartbeat_details?
         | 
| 900 | 
            +
                    api_failure_v1_failure(value.last_failure) if value.has_last_failure?
         | 
| 901 | 
            +
                    @on_exit&.call(value)
         | 
| 902 | 
            +
                  end
         | 
| 903 | 
            +
                  
         | 
| 904 | 
            +
                  def api_workflow_v1_pending_nexus_operation_info(value)
         | 
| 905 | 
            +
                    @on_enter&.call(value)
         | 
| 906 | 
            +
                    api_failure_v1_failure(value.last_attempt_failure) if value.has_last_attempt_failure?
         | 
| 907 | 
            +
                    api_workflow_v1_nexus_operation_cancellation_info(value.cancellation_info) if value.has_cancellation_info?
         | 
| 908 | 
            +
                    @on_exit&.call(value)
         | 
| 909 | 
            +
                  end
         | 
| 910 | 
            +
                  
         | 
| 911 | 
            +
                  def api_workflow_v1_workflow_execution_config(value)
         | 
| 912 | 
            +
                    @on_enter&.call(value)
         | 
| 913 | 
            +
                    api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
         | 
| 914 | 
            +
                    @on_exit&.call(value)
         | 
| 915 | 
            +
                  end
         | 
| 916 | 
            +
                  
         | 
| 917 | 
            +
                  def api_workflow_v1_workflow_execution_info(value)
         | 
| 918 | 
            +
                    @on_enter&.call(value)
         | 
| 919 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 920 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 921 | 
            +
                    @on_exit&.call(value)
         | 
| 922 | 
            +
                  end
         | 
| 923 | 
            +
                  
         | 
| 924 | 
            +
                  def api_workflowservice_v1_count_workflow_executions_response(value)
         | 
| 925 | 
            +
                    @on_enter&.call(value)
         | 
| 926 | 
            +
                    value.groups.each { |v| api_workflowservice_v1_count_workflow_executions_response_aggregation_group(v) }
         | 
| 927 | 
            +
                    @on_exit&.call(value)
         | 
| 928 | 
            +
                  end
         | 
| 929 | 
            +
                  
         | 
| 930 | 
            +
                  def api_workflowservice_v1_count_workflow_executions_response_aggregation_group(value)
         | 
| 931 | 
            +
                    @on_enter&.call(value)
         | 
| 932 | 
            +
                    api_common_v1_payload_repeated(value.group_values) unless value.group_values.empty?
         | 
| 933 | 
            +
                    @on_exit&.call(value)
         | 
| 934 | 
            +
                  end
         | 
| 935 | 
            +
                  
         | 
| 936 | 
            +
                  def api_workflowservice_v1_create_schedule_request(value)
         | 
| 937 | 
            +
                    @on_enter&.call(value)
         | 
| 938 | 
            +
                    api_schedule_v1_schedule(value.schedule) if value.has_schedule?
         | 
| 939 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 940 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 941 | 
            +
                    @on_exit&.call(value)
         | 
| 942 | 
            +
                  end
         | 
| 943 | 
            +
                  
         | 
| 944 | 
            +
                  def api_workflowservice_v1_describe_deployment_response(value)
         | 
| 945 | 
            +
                    @on_enter&.call(value)
         | 
| 946 | 
            +
                    api_deployment_v1_deployment_info(value.deployment_info) if value.has_deployment_info?
         | 
| 947 | 
            +
                    @on_exit&.call(value)
         | 
| 948 | 
            +
                  end
         | 
| 949 | 
            +
                  
         | 
| 950 | 
            +
                  def api_workflowservice_v1_describe_schedule_response(value)
         | 
| 951 | 
            +
                    @on_enter&.call(value)
         | 
| 952 | 
            +
                    api_schedule_v1_schedule(value.schedule) if value.has_schedule?
         | 
| 953 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 954 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 955 | 
            +
                    @on_exit&.call(value)
         | 
| 956 | 
            +
                  end
         | 
| 957 | 
            +
                  
         | 
| 958 | 
            +
                  def api_workflowservice_v1_describe_worker_deployment_version_response(value)
         | 
| 959 | 
            +
                    @on_enter&.call(value)
         | 
| 960 | 
            +
                    api_deployment_v1_worker_deployment_version_info(value.worker_deployment_version_info) if value.has_worker_deployment_version_info?
         | 
| 961 | 
            +
                    @on_exit&.call(value)
         | 
| 962 | 
            +
                  end
         | 
| 963 | 
            +
                  
         | 
| 964 | 
            +
                  def api_workflowservice_v1_describe_workflow_execution_response(value)
         | 
| 965 | 
            +
                    @on_enter&.call(value)
         | 
| 966 | 
            +
                    api_workflow_v1_workflow_execution_config(value.execution_config) if value.has_execution_config?
         | 
| 967 | 
            +
                    api_workflow_v1_workflow_execution_info(value.workflow_execution_info) if value.has_workflow_execution_info?
         | 
| 968 | 
            +
                    value.pending_activities.each { |v| api_workflow_v1_pending_activity_info(v) }
         | 
| 969 | 
            +
                    value.callbacks.each { |v| api_workflow_v1_callback_info(v) }
         | 
| 970 | 
            +
                    value.pending_nexus_operations.each { |v| api_workflow_v1_pending_nexus_operation_info(v) }
         | 
| 971 | 
            +
                    @on_exit&.call(value)
         | 
| 972 | 
            +
                  end
         | 
| 973 | 
            +
                  
         | 
| 974 | 
            +
                  def api_workflowservice_v1_execute_multi_operation_request(value)
         | 
| 975 | 
            +
                    @on_enter&.call(value)
         | 
| 976 | 
            +
                    value.operations.each { |v| api_workflowservice_v1_execute_multi_operation_request_operation(v) }
         | 
| 977 | 
            +
                    @on_exit&.call(value)
         | 
| 978 | 
            +
                  end
         | 
| 979 | 
            +
                  
         | 
| 980 | 
            +
                  def api_workflowservice_v1_execute_multi_operation_request_operation(value)
         | 
| 981 | 
            +
                    @on_enter&.call(value)
         | 
| 982 | 
            +
                    api_workflowservice_v1_start_workflow_execution_request(value.start_workflow) if value.has_start_workflow?
         | 
| 983 | 
            +
                    api_workflowservice_v1_update_workflow_execution_request(value.update_workflow) if value.has_update_workflow?
         | 
| 984 | 
            +
                    @on_exit&.call(value)
         | 
| 985 | 
            +
                  end
         | 
| 986 | 
            +
                  
         | 
| 987 | 
            +
                  def api_workflowservice_v1_execute_multi_operation_response(value)
         | 
| 988 | 
            +
                    @on_enter&.call(value)
         | 
| 989 | 
            +
                    value.responses.each { |v| api_workflowservice_v1_execute_multi_operation_response_response(v) }
         | 
| 990 | 
            +
                    @on_exit&.call(value)
         | 
| 991 | 
            +
                  end
         | 
| 992 | 
            +
                  
         | 
| 993 | 
            +
                  def api_workflowservice_v1_execute_multi_operation_response_response(value)
         | 
| 994 | 
            +
                    @on_enter&.call(value)
         | 
| 995 | 
            +
                    api_workflowservice_v1_start_workflow_execution_response(value.start_workflow) if value.has_start_workflow?
         | 
| 996 | 
            +
                    api_workflowservice_v1_update_workflow_execution_response(value.update_workflow) if value.has_update_workflow?
         | 
| 997 | 
            +
                    @on_exit&.call(value)
         | 
| 998 | 
            +
                  end
         | 
| 999 | 
            +
                  
         | 
| 1000 | 
            +
                  def api_workflowservice_v1_get_current_deployment_response(value)
         | 
| 1001 | 
            +
                    @on_enter&.call(value)
         | 
| 1002 | 
            +
                    api_deployment_v1_deployment_info(value.current_deployment_info) if value.has_current_deployment_info?
         | 
| 1003 | 
            +
                    @on_exit&.call(value)
         | 
| 1004 | 
            +
                  end
         | 
| 1005 | 
            +
                  
         | 
| 1006 | 
            +
                  def api_workflowservice_v1_get_deployment_reachability_response(value)
         | 
| 1007 | 
            +
                    @on_enter&.call(value)
         | 
| 1008 | 
            +
                    api_deployment_v1_deployment_info(value.deployment_info) if value.has_deployment_info?
         | 
| 1009 | 
            +
                    @on_exit&.call(value)
         | 
| 1010 | 
            +
                  end
         | 
| 1011 | 
            +
                  
         | 
| 1012 | 
            +
                  def api_workflowservice_v1_get_workflow_execution_history_response(value)
         | 
| 1013 | 
            +
                    @on_enter&.call(value)
         | 
| 1014 | 
            +
                    api_history_v1_history(value.history) if value.has_history?
         | 
| 1015 | 
            +
                    @on_exit&.call(value)
         | 
| 1016 | 
            +
                  end
         | 
| 1017 | 
            +
                  
         | 
| 1018 | 
            +
                  def api_workflowservice_v1_get_workflow_execution_history_reverse_response(value)
         | 
| 1019 | 
            +
                    @on_enter&.call(value)
         | 
| 1020 | 
            +
                    api_history_v1_history(value.history) if value.has_history?
         | 
| 1021 | 
            +
                    @on_exit&.call(value)
         | 
| 1022 | 
            +
                  end
         | 
| 1023 | 
            +
                  
         | 
| 1024 | 
            +
                  def api_workflowservice_v1_list_archived_workflow_executions_response(value)
         | 
| 1025 | 
            +
                    @on_enter&.call(value)
         | 
| 1026 | 
            +
                    value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
         | 
| 1027 | 
            +
                    @on_exit&.call(value)
         | 
| 1028 | 
            +
                  end
         | 
| 1029 | 
            +
                  
         | 
| 1030 | 
            +
                  def api_workflowservice_v1_list_closed_workflow_executions_response(value)
         | 
| 1031 | 
            +
                    @on_enter&.call(value)
         | 
| 1032 | 
            +
                    value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
         | 
| 1033 | 
            +
                    @on_exit&.call(value)
         | 
| 1034 | 
            +
                  end
         | 
| 1035 | 
            +
                  
         | 
| 1036 | 
            +
                  def api_workflowservice_v1_list_open_workflow_executions_response(value)
         | 
| 1037 | 
            +
                    @on_enter&.call(value)
         | 
| 1038 | 
            +
                    value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
         | 
| 1039 | 
            +
                    @on_exit&.call(value)
         | 
| 1040 | 
            +
                  end
         | 
| 1041 | 
            +
                  
         | 
| 1042 | 
            +
                  def api_workflowservice_v1_list_schedules_response(value)
         | 
| 1043 | 
            +
                    @on_enter&.call(value)
         | 
| 1044 | 
            +
                    value.schedules.each { |v| api_schedule_v1_schedule_list_entry(v) }
         | 
| 1045 | 
            +
                    @on_exit&.call(value)
         | 
| 1046 | 
            +
                  end
         | 
| 1047 | 
            +
                  
         | 
| 1048 | 
            +
                  def api_workflowservice_v1_list_workflow_executions_response(value)
         | 
| 1049 | 
            +
                    @on_enter&.call(value)
         | 
| 1050 | 
            +
                    value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
         | 
| 1051 | 
            +
                    @on_exit&.call(value)
         | 
| 1052 | 
            +
                  end
         | 
| 1053 | 
            +
                  
         | 
| 1054 | 
            +
                  def api_workflowservice_v1_poll_activity_task_queue_response(value)
         | 
| 1055 | 
            +
                    @on_enter&.call(value)
         | 
| 1056 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 1057 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 1058 | 
            +
                    api_common_v1_payloads(value.heartbeat_details) if value.has_heartbeat_details?
         | 
| 1059 | 
            +
                    @on_exit&.call(value)
         | 
| 1060 | 
            +
                  end
         | 
| 1061 | 
            +
                  
         | 
| 1062 | 
            +
                  def api_workflowservice_v1_poll_nexus_task_queue_response(value)
         | 
| 1063 | 
            +
                    @on_enter&.call(value)
         | 
| 1064 | 
            +
                    api_nexus_v1_request(value.request) if value.has_request?
         | 
| 1065 | 
            +
                    @on_exit&.call(value)
         | 
| 1066 | 
            +
                  end
         | 
| 1067 | 
            +
                  
         | 
| 1068 | 
            +
                  def api_workflowservice_v1_poll_workflow_execution_update_response(value)
         | 
| 1069 | 
            +
                    @on_enter&.call(value)
         | 
| 1070 | 
            +
                    api_update_v1_outcome(value.outcome) if value.has_outcome?
         | 
| 1071 | 
            +
                    @on_exit&.call(value)
         | 
| 1072 | 
            +
                  end
         | 
| 1073 | 
            +
                  
         | 
| 1074 | 
            +
                  def api_workflowservice_v1_poll_workflow_task_queue_response(value)
         | 
| 1075 | 
            +
                    @on_enter&.call(value)
         | 
| 1076 | 
            +
                    api_history_v1_history(value.history) if value.has_history?
         | 
| 1077 | 
            +
                    api_query_v1_workflow_query(value.query) if value.has_query?
         | 
| 1078 | 
            +
                    value.queries.values.each { |v| api_query_v1_workflow_query(v) }
         | 
| 1079 | 
            +
                    value.messages.each { |v| api_protocol_v1_message(v) }
         | 
| 1080 | 
            +
                    @on_exit&.call(value)
         | 
| 1081 | 
            +
                  end
         | 
| 1082 | 
            +
                  
         | 
| 1083 | 
            +
                  def api_workflowservice_v1_query_workflow_request(value)
         | 
| 1084 | 
            +
                    @on_enter&.call(value)
         | 
| 1085 | 
            +
                    api_query_v1_workflow_query(value.query) if value.has_query?
         | 
| 1086 | 
            +
                    @on_exit&.call(value)
         | 
| 1087 | 
            +
                  end
         | 
| 1088 | 
            +
                  
         | 
| 1089 | 
            +
                  def api_workflowservice_v1_query_workflow_response(value)
         | 
| 1090 | 
            +
                    @on_enter&.call(value)
         | 
| 1091 | 
            +
                    api_common_v1_payloads(value.query_result) if value.has_query_result?
         | 
| 1092 | 
            +
                    @on_exit&.call(value)
         | 
| 1093 | 
            +
                  end
         | 
| 1094 | 
            +
                  
         | 
| 1095 | 
            +
                  def api_workflowservice_v1_record_activity_task_heartbeat_by_id_request(value)
         | 
| 1096 | 
            +
                    @on_enter&.call(value)
         | 
| 1097 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 1098 | 
            +
                    @on_exit&.call(value)
         | 
| 1099 | 
            +
                  end
         | 
| 1100 | 
            +
                  
         | 
| 1101 | 
            +
                  def api_workflowservice_v1_record_activity_task_heartbeat_request(value)
         | 
| 1102 | 
            +
                    @on_enter&.call(value)
         | 
| 1103 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 1104 | 
            +
                    @on_exit&.call(value)
         | 
| 1105 | 
            +
                  end
         | 
| 1106 | 
            +
                  
         | 
| 1107 | 
            +
                  def api_workflowservice_v1_respond_activity_task_canceled_by_id_request(value)
         | 
| 1108 | 
            +
                    @on_enter&.call(value)
         | 
| 1109 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 1110 | 
            +
                    @on_exit&.call(value)
         | 
| 1111 | 
            +
                  end
         | 
| 1112 | 
            +
                  
         | 
| 1113 | 
            +
                  def api_workflowservice_v1_respond_activity_task_canceled_request(value)
         | 
| 1114 | 
            +
                    @on_enter&.call(value)
         | 
| 1115 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 1116 | 
            +
                    @on_exit&.call(value)
         | 
| 1117 | 
            +
                  end
         | 
| 1118 | 
            +
                  
         | 
| 1119 | 
            +
                  def api_workflowservice_v1_respond_activity_task_completed_by_id_request(value)
         | 
| 1120 | 
            +
                    @on_enter&.call(value)
         | 
| 1121 | 
            +
                    api_common_v1_payloads(value.result) if value.has_result?
         | 
| 1122 | 
            +
                    @on_exit&.call(value)
         | 
| 1123 | 
            +
                  end
         | 
| 1124 | 
            +
                  
         | 
| 1125 | 
            +
                  def api_workflowservice_v1_respond_activity_task_completed_request(value)
         | 
| 1126 | 
            +
                    @on_enter&.call(value)
         | 
| 1127 | 
            +
                    api_common_v1_payloads(value.result) if value.has_result?
         | 
| 1128 | 
            +
                    @on_exit&.call(value)
         | 
| 1129 | 
            +
                  end
         | 
| 1130 | 
            +
                  
         | 
| 1131 | 
            +
                  def api_workflowservice_v1_respond_activity_task_failed_by_id_request(value)
         | 
| 1132 | 
            +
                    @on_enter&.call(value)
         | 
| 1133 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1134 | 
            +
                    api_common_v1_payloads(value.last_heartbeat_details) if value.has_last_heartbeat_details?
         | 
| 1135 | 
            +
                    @on_exit&.call(value)
         | 
| 1136 | 
            +
                  end
         | 
| 1137 | 
            +
                  
         | 
| 1138 | 
            +
                  def api_workflowservice_v1_respond_activity_task_failed_by_id_response(value)
         | 
| 1139 | 
            +
                    @on_enter&.call(value)
         | 
| 1140 | 
            +
                    value.failures.each { |v| api_failure_v1_failure(v) }
         | 
| 1141 | 
            +
                    @on_exit&.call(value)
         | 
| 1142 | 
            +
                  end
         | 
| 1143 | 
            +
                  
         | 
| 1144 | 
            +
                  def api_workflowservice_v1_respond_activity_task_failed_request(value)
         | 
| 1145 | 
            +
                    @on_enter&.call(value)
         | 
| 1146 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1147 | 
            +
                    api_common_v1_payloads(value.last_heartbeat_details) if value.has_last_heartbeat_details?
         | 
| 1148 | 
            +
                    @on_exit&.call(value)
         | 
| 1149 | 
            +
                  end
         | 
| 1150 | 
            +
                  
         | 
| 1151 | 
            +
                  def api_workflowservice_v1_respond_activity_task_failed_response(value)
         | 
| 1152 | 
            +
                    @on_enter&.call(value)
         | 
| 1153 | 
            +
                    value.failures.each { |v| api_failure_v1_failure(v) }
         | 
| 1154 | 
            +
                    @on_exit&.call(value)
         | 
| 1155 | 
            +
                  end
         | 
| 1156 | 
            +
                  
         | 
| 1157 | 
            +
                  def api_workflowservice_v1_respond_nexus_task_completed_request(value)
         | 
| 1158 | 
            +
                    @on_enter&.call(value)
         | 
| 1159 | 
            +
                    api_nexus_v1_response(value.response) if value.has_response?
         | 
| 1160 | 
            +
                    @on_exit&.call(value)
         | 
| 1161 | 
            +
                  end
         | 
| 1162 | 
            +
                  
         | 
| 1163 | 
            +
                  def api_workflowservice_v1_respond_query_task_completed_request(value)
         | 
| 1164 | 
            +
                    @on_enter&.call(value)
         | 
| 1165 | 
            +
                    api_common_v1_payloads(value.query_result) if value.has_query_result?
         | 
| 1166 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1167 | 
            +
                    @on_exit&.call(value)
         | 
| 1168 | 
            +
                  end
         | 
| 1169 | 
            +
                  
         | 
| 1170 | 
            +
                  def api_workflowservice_v1_respond_workflow_task_completed_request(value)
         | 
| 1171 | 
            +
                    @on_enter&.call(value)
         | 
| 1172 | 
            +
                    value.commands.each { |v| api_command_v1_command(v) }
         | 
| 1173 | 
            +
                    value.query_results.values.each { |v| api_query_v1_workflow_query_result(v) }
         | 
| 1174 | 
            +
                    value.messages.each { |v| api_protocol_v1_message(v) }
         | 
| 1175 | 
            +
                    @on_exit&.call(value)
         | 
| 1176 | 
            +
                  end
         | 
| 1177 | 
            +
                  
         | 
| 1178 | 
            +
                  def api_workflowservice_v1_respond_workflow_task_completed_response(value)
         | 
| 1179 | 
            +
                    @on_enter&.call(value)
         | 
| 1180 | 
            +
                    api_workflowservice_v1_poll_workflow_task_queue_response(value.workflow_task) if value.has_workflow_task?
         | 
| 1181 | 
            +
                    value.activity_tasks.each { |v| api_workflowservice_v1_poll_activity_task_queue_response(v) }
         | 
| 1182 | 
            +
                    @on_exit&.call(value)
         | 
| 1183 | 
            +
                  end
         | 
| 1184 | 
            +
                  
         | 
| 1185 | 
            +
                  def api_workflowservice_v1_respond_workflow_task_failed_request(value)
         | 
| 1186 | 
            +
                    @on_enter&.call(value)
         | 
| 1187 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1188 | 
            +
                    value.messages.each { |v| api_protocol_v1_message(v) }
         | 
| 1189 | 
            +
                    @on_exit&.call(value)
         | 
| 1190 | 
            +
                  end
         | 
| 1191 | 
            +
                  
         | 
| 1192 | 
            +
                  def api_workflowservice_v1_scan_workflow_executions_response(value)
         | 
| 1193 | 
            +
                    @on_enter&.call(value)
         | 
| 1194 | 
            +
                    value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
         | 
| 1195 | 
            +
                    @on_exit&.call(value)
         | 
| 1196 | 
            +
                  end
         | 
| 1197 | 
            +
                  
         | 
| 1198 | 
            +
                  def api_workflowservice_v1_set_current_deployment_request(value)
         | 
| 1199 | 
            +
                    @on_enter&.call(value)
         | 
| 1200 | 
            +
                    api_deployment_v1_update_deployment_metadata(value.update_metadata) if value.has_update_metadata?
         | 
| 1201 | 
            +
                    @on_exit&.call(value)
         | 
| 1202 | 
            +
                  end
         | 
| 1203 | 
            +
                  
         | 
| 1204 | 
            +
                  def api_workflowservice_v1_set_current_deployment_response(value)
         | 
| 1205 | 
            +
                    @on_enter&.call(value)
         | 
| 1206 | 
            +
                    api_deployment_v1_deployment_info(value.current_deployment_info) if value.has_current_deployment_info?
         | 
| 1207 | 
            +
                    api_deployment_v1_deployment_info(value.previous_deployment_info) if value.has_previous_deployment_info?
         | 
| 1208 | 
            +
                    @on_exit&.call(value)
         | 
| 1209 | 
            +
                  end
         | 
| 1210 | 
            +
                  
         | 
| 1211 | 
            +
                  def api_workflowservice_v1_signal_with_start_workflow_execution_request(value)
         | 
| 1212 | 
            +
                    @on_enter&.call(value)
         | 
| 1213 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 1214 | 
            +
                    api_common_v1_payloads(value.signal_input) if value.has_signal_input?
         | 
| 1215 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 1216 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 1217 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 1218 | 
            +
                    api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
         | 
| 1219 | 
            +
                    @on_exit&.call(value)
         | 
| 1220 | 
            +
                  end
         | 
| 1221 | 
            +
                  
         | 
| 1222 | 
            +
                  def api_workflowservice_v1_signal_workflow_execution_request(value)
         | 
| 1223 | 
            +
                    @on_enter&.call(value)
         | 
| 1224 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 1225 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 1226 | 
            +
                    @on_exit&.call(value)
         | 
| 1227 | 
            +
                  end
         | 
| 1228 | 
            +
                  
         | 
| 1229 | 
            +
                  def api_workflowservice_v1_start_batch_operation_request(value)
         | 
| 1230 | 
            +
                    @on_enter&.call(value)
         | 
| 1231 | 
            +
                    api_batch_v1_batch_operation_termination(value.termination_operation) if value.has_termination_operation?
         | 
| 1232 | 
            +
                    api_batch_v1_batch_operation_signal(value.signal_operation) if value.has_signal_operation?
         | 
| 1233 | 
            +
                    @on_exit&.call(value)
         | 
| 1234 | 
            +
                  end
         | 
| 1235 | 
            +
                  
         | 
| 1236 | 
            +
                  def api_workflowservice_v1_start_workflow_execution_request(value)
         | 
| 1237 | 
            +
                    @on_enter&.call(value)
         | 
| 1238 | 
            +
                    api_common_v1_payloads(value.input) if value.has_input?
         | 
| 1239 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 1240 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 1241 | 
            +
                    api_common_v1_header(value.header) if value.has_header?
         | 
| 1242 | 
            +
                    api_failure_v1_failure(value.continued_failure) if value.has_continued_failure?
         | 
| 1243 | 
            +
                    api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
         | 
| 1244 | 
            +
                    api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
         | 
| 1245 | 
            +
                    @on_exit&.call(value)
         | 
| 1246 | 
            +
                  end
         | 
| 1247 | 
            +
                  
         | 
| 1248 | 
            +
                  def api_workflowservice_v1_start_workflow_execution_response(value)
         | 
| 1249 | 
            +
                    @on_enter&.call(value)
         | 
| 1250 | 
            +
                    api_workflowservice_v1_poll_workflow_task_queue_response(value.eager_workflow_task) if value.has_eager_workflow_task?
         | 
| 1251 | 
            +
                    @on_exit&.call(value)
         | 
| 1252 | 
            +
                  end
         | 
| 1253 | 
            +
                  
         | 
| 1254 | 
            +
                  def api_workflowservice_v1_terminate_workflow_execution_request(value)
         | 
| 1255 | 
            +
                    @on_enter&.call(value)
         | 
| 1256 | 
            +
                    api_common_v1_payloads(value.details) if value.has_details?
         | 
| 1257 | 
            +
                    @on_exit&.call(value)
         | 
| 1258 | 
            +
                  end
         | 
| 1259 | 
            +
                  
         | 
| 1260 | 
            +
                  def api_workflowservice_v1_update_schedule_request(value)
         | 
| 1261 | 
            +
                    @on_enter&.call(value)
         | 
| 1262 | 
            +
                    api_schedule_v1_schedule(value.schedule) if value.has_schedule?
         | 
| 1263 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 1264 | 
            +
                    @on_exit&.call(value)
         | 
| 1265 | 
            +
                  end
         | 
| 1266 | 
            +
                  
         | 
| 1267 | 
            +
                  def api_workflowservice_v1_update_worker_deployment_version_metadata_request(value)
         | 
| 1268 | 
            +
                    @on_enter&.call(value)
         | 
| 1269 | 
            +
                    value.upsert_entries.values.each { |v| api_common_v1_payload(v) }
         | 
| 1270 | 
            +
                    @on_exit&.call(value)
         | 
| 1271 | 
            +
                  end
         | 
| 1272 | 
            +
                  
         | 
| 1273 | 
            +
                  def api_workflowservice_v1_update_worker_deployment_version_metadata_response(value)
         | 
| 1274 | 
            +
                    @on_enter&.call(value)
         | 
| 1275 | 
            +
                    api_deployment_v1_version_metadata(value.metadata) if value.has_metadata?
         | 
| 1276 | 
            +
                    @on_exit&.call(value)
         | 
| 1277 | 
            +
                  end
         | 
| 1278 | 
            +
                  
         | 
| 1279 | 
            +
                  def api_workflowservice_v1_update_workflow_execution_request(value)
         | 
| 1280 | 
            +
                    @on_enter&.call(value)
         | 
| 1281 | 
            +
                    api_update_v1_request(value.request) if value.has_request?
         | 
| 1282 | 
            +
                    @on_exit&.call(value)
         | 
| 1283 | 
            +
                  end
         | 
| 1284 | 
            +
                  
         | 
| 1285 | 
            +
                  def api_workflowservice_v1_update_workflow_execution_response(value)
         | 
| 1286 | 
            +
                    @on_enter&.call(value)
         | 
| 1287 | 
            +
                    api_update_v1_outcome(value.outcome) if value.has_outcome?
         | 
| 1288 | 
            +
                    @on_exit&.call(value)
         | 
| 1289 | 
            +
                  end
         | 
| 1290 | 
            +
                  
         | 
| 1291 | 
            +
                  def coresdk_activity_result_activity_resolution(value)
         | 
| 1292 | 
            +
                    @on_enter&.call(value)
         | 
| 1293 | 
            +
                    coresdk_activity_result_success(value.completed) if value.has_completed?
         | 
| 1294 | 
            +
                    coresdk_activity_result_failure(value.failed) if value.has_failed?
         | 
| 1295 | 
            +
                    coresdk_activity_result_cancellation(value.cancelled) if value.has_cancelled?
         | 
| 1296 | 
            +
                    @on_exit&.call(value)
         | 
| 1297 | 
            +
                  end
         | 
| 1298 | 
            +
                  
         | 
| 1299 | 
            +
                  def coresdk_activity_result_cancellation(value)
         | 
| 1300 | 
            +
                    @on_enter&.call(value)
         | 
| 1301 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1302 | 
            +
                    @on_exit&.call(value)
         | 
| 1303 | 
            +
                  end
         | 
| 1304 | 
            +
                  
         | 
| 1305 | 
            +
                  def coresdk_activity_result_failure(value)
         | 
| 1306 | 
            +
                    @on_enter&.call(value)
         | 
| 1307 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1308 | 
            +
                    @on_exit&.call(value)
         | 
| 1309 | 
            +
                  end
         | 
| 1310 | 
            +
                  
         | 
| 1311 | 
            +
                  def coresdk_activity_result_success(value)
         | 
| 1312 | 
            +
                    @on_enter&.call(value)
         | 
| 1313 | 
            +
                    api_common_v1_payload(value.result) if value.has_result?
         | 
| 1314 | 
            +
                    @on_exit&.call(value)
         | 
| 1315 | 
            +
                  end
         | 
| 1316 | 
            +
                  
         | 
| 1317 | 
            +
                  def coresdk_child_workflow_cancellation(value)
         | 
| 1318 | 
            +
                    @on_enter&.call(value)
         | 
| 1319 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1320 | 
            +
                    @on_exit&.call(value)
         | 
| 1321 | 
            +
                  end
         | 
| 1322 | 
            +
                  
         | 
| 1323 | 
            +
                  def coresdk_child_workflow_child_workflow_result(value)
         | 
| 1324 | 
            +
                    @on_enter&.call(value)
         | 
| 1325 | 
            +
                    coresdk_child_workflow_success(value.completed) if value.has_completed?
         | 
| 1326 | 
            +
                    coresdk_child_workflow_failure(value.failed) if value.has_failed?
         | 
| 1327 | 
            +
                    coresdk_child_workflow_cancellation(value.cancelled) if value.has_cancelled?
         | 
| 1328 | 
            +
                    @on_exit&.call(value)
         | 
| 1329 | 
            +
                  end
         | 
| 1330 | 
            +
                  
         | 
| 1331 | 
            +
                  def coresdk_child_workflow_failure(value)
         | 
| 1332 | 
            +
                    @on_enter&.call(value)
         | 
| 1333 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1334 | 
            +
                    @on_exit&.call(value)
         | 
| 1335 | 
            +
                  end
         | 
| 1336 | 
            +
                  
         | 
| 1337 | 
            +
                  def coresdk_child_workflow_success(value)
         | 
| 1338 | 
            +
                    @on_enter&.call(value)
         | 
| 1339 | 
            +
                    api_common_v1_payload(value.result) if value.has_result?
         | 
| 1340 | 
            +
                    @on_exit&.call(value)
         | 
| 1341 | 
            +
                  end
         | 
| 1342 | 
            +
                  
         | 
| 1343 | 
            +
                  def coresdk_nexus_nexus_operation_result(value)
         | 
| 1344 | 
            +
                    @on_enter&.call(value)
         | 
| 1345 | 
            +
                    api_common_v1_payload(value.completed) if value.has_completed?
         | 
| 1346 | 
            +
                    api_failure_v1_failure(value.failed) if value.has_failed?
         | 
| 1347 | 
            +
                    api_failure_v1_failure(value.cancelled) if value.has_cancelled?
         | 
| 1348 | 
            +
                    api_failure_v1_failure(value.timed_out) if value.has_timed_out?
         | 
| 1349 | 
            +
                    @on_exit&.call(value)
         | 
| 1350 | 
            +
                  end
         | 
| 1351 | 
            +
                  
         | 
| 1352 | 
            +
                  def coresdk_workflow_activation_do_update(value)
         | 
| 1353 | 
            +
                    @on_enter&.call(value)
         | 
| 1354 | 
            +
                    api_common_v1_payload_repeated(value.input) unless value.input.empty?
         | 
| 1355 | 
            +
                    value.headers.values.each { |v| api_common_v1_payload(v) }
         | 
| 1356 | 
            +
                    @on_exit&.call(value)
         | 
| 1357 | 
            +
                  end
         | 
| 1358 | 
            +
                  
         | 
| 1359 | 
            +
                  def coresdk_workflow_activation_initialize_workflow(value)
         | 
| 1360 | 
            +
                    @on_enter&.call(value)
         | 
| 1361 | 
            +
                    api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
         | 
| 1362 | 
            +
                    value.headers.values.each { |v| api_common_v1_payload(v) }
         | 
| 1363 | 
            +
                    api_failure_v1_failure(value.continued_failure) if value.has_continued_failure?
         | 
| 1364 | 
            +
                    api_common_v1_payloads(value.last_completion_result) if value.has_last_completion_result?
         | 
| 1365 | 
            +
                    api_common_v1_memo(value.memo) if value.has_memo?
         | 
| 1366 | 
            +
                    api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
         | 
| 1367 | 
            +
                    @on_exit&.call(value)
         | 
| 1368 | 
            +
                  end
         | 
| 1369 | 
            +
                  
         | 
| 1370 | 
            +
                  def coresdk_workflow_activation_query_workflow(value)
         | 
| 1371 | 
            +
                    @on_enter&.call(value)
         | 
| 1372 | 
            +
                    api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
         | 
| 1373 | 
            +
                    value.headers.values.each { |v| api_common_v1_payload(v) }
         | 
| 1374 | 
            +
                    @on_exit&.call(value)
         | 
| 1375 | 
            +
                  end
         | 
| 1376 | 
            +
                  
         | 
| 1377 | 
            +
                  def coresdk_workflow_activation_resolve_activity(value)
         | 
| 1378 | 
            +
                    @on_enter&.call(value)
         | 
| 1379 | 
            +
                    coresdk_activity_result_activity_resolution(value.result) if value.has_result?
         | 
| 1380 | 
            +
                    @on_exit&.call(value)
         | 
| 1381 | 
            +
                  end
         | 
| 1382 | 
            +
                  
         | 
| 1383 | 
            +
                  def coresdk_workflow_activation_resolve_child_workflow_execution(value)
         | 
| 1384 | 
            +
                    @on_enter&.call(value)
         | 
| 1385 | 
            +
                    coresdk_child_workflow_child_workflow_result(value.result) if value.has_result?
         | 
| 1386 | 
            +
                    @on_exit&.call(value)
         | 
| 1387 | 
            +
                  end
         | 
| 1388 | 
            +
                  
         | 
| 1389 | 
            +
                  def coresdk_workflow_activation_resolve_child_workflow_execution_start(value)
         | 
| 1390 | 
            +
                    @on_enter&.call(value)
         | 
| 1391 | 
            +
                    coresdk_workflow_activation_resolve_child_workflow_execution_start_cancelled(value.cancelled) if value.has_cancelled?
         | 
| 1392 | 
            +
                    @on_exit&.call(value)
         | 
| 1393 | 
            +
                  end
         | 
| 1394 | 
            +
                  
         | 
| 1395 | 
            +
                  def coresdk_workflow_activation_resolve_child_workflow_execution_start_cancelled(value)
         | 
| 1396 | 
            +
                    @on_enter&.call(value)
         | 
| 1397 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1398 | 
            +
                    @on_exit&.call(value)
         | 
| 1399 | 
            +
                  end
         | 
| 1400 | 
            +
                  
         | 
| 1401 | 
            +
                  def coresdk_workflow_activation_resolve_nexus_operation(value)
         | 
| 1402 | 
            +
                    @on_enter&.call(value)
         | 
| 1403 | 
            +
                    coresdk_nexus_nexus_operation_result(value.result) if value.has_result?
         | 
| 1404 | 
            +
                    @on_exit&.call(value)
         | 
| 1405 | 
            +
                  end
         | 
| 1406 | 
            +
                  
         | 
| 1407 | 
            +
                  def coresdk_workflow_activation_resolve_nexus_operation_start(value)
         | 
| 1408 | 
            +
                    @on_enter&.call(value)
         | 
| 1409 | 
            +
                    api_failure_v1_failure(value.cancelled_before_start) if value.has_cancelled_before_start?
         | 
| 1410 | 
            +
                    @on_exit&.call(value)
         | 
| 1411 | 
            +
                  end
         | 
| 1412 | 
            +
                  
         | 
| 1413 | 
            +
                  def coresdk_workflow_activation_resolve_request_cancel_external_workflow(value)
         | 
| 1414 | 
            +
                    @on_enter&.call(value)
         | 
| 1415 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1416 | 
            +
                    @on_exit&.call(value)
         | 
| 1417 | 
            +
                  end
         | 
| 1418 | 
            +
                  
         | 
| 1419 | 
            +
                  def coresdk_workflow_activation_resolve_signal_external_workflow(value)
         | 
| 1420 | 
            +
                    @on_enter&.call(value)
         | 
| 1421 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1422 | 
            +
                    @on_exit&.call(value)
         | 
| 1423 | 
            +
                  end
         | 
| 1424 | 
            +
                  
         | 
| 1425 | 
            +
                  def coresdk_workflow_activation_signal_workflow(value)
         | 
| 1426 | 
            +
                    @on_enter&.call(value)
         | 
| 1427 | 
            +
                    api_common_v1_payload_repeated(value.input) unless value.input.empty?
         | 
| 1428 | 
            +
                    value.headers.values.each { |v| api_common_v1_payload(v) }
         | 
| 1429 | 
            +
                    @on_exit&.call(value)
         | 
| 1430 | 
            +
                  end
         | 
| 1431 | 
            +
                  
         | 
| 1432 | 
            +
                  def coresdk_workflow_activation_workflow_activation(value)
         | 
| 1433 | 
            +
                    @on_enter&.call(value)
         | 
| 1434 | 
            +
                    value.jobs.each { |v| coresdk_workflow_activation_workflow_activation_job(v) }
         | 
| 1435 | 
            +
                    @on_exit&.call(value)
         | 
| 1436 | 
            +
                  end
         | 
| 1437 | 
            +
                  
         | 
| 1438 | 
            +
                  def coresdk_workflow_activation_workflow_activation_job(value)
         | 
| 1439 | 
            +
                    @on_enter&.call(value)
         | 
| 1440 | 
            +
                    coresdk_workflow_activation_initialize_workflow(value.initialize_workflow) if value.has_initialize_workflow?
         | 
| 1441 | 
            +
                    coresdk_workflow_activation_query_workflow(value.query_workflow) if value.has_query_workflow?
         | 
| 1442 | 
            +
                    coresdk_workflow_activation_signal_workflow(value.signal_workflow) if value.has_signal_workflow?
         | 
| 1443 | 
            +
                    coresdk_workflow_activation_resolve_activity(value.resolve_activity) if value.has_resolve_activity?
         | 
| 1444 | 
            +
                    coresdk_workflow_activation_resolve_child_workflow_execution_start(value.resolve_child_workflow_execution_start) if value.has_resolve_child_workflow_execution_start?
         | 
| 1445 | 
            +
                    coresdk_workflow_activation_resolve_child_workflow_execution(value.resolve_child_workflow_execution) if value.has_resolve_child_workflow_execution?
         | 
| 1446 | 
            +
                    coresdk_workflow_activation_resolve_signal_external_workflow(value.resolve_signal_external_workflow) if value.has_resolve_signal_external_workflow?
         | 
| 1447 | 
            +
                    coresdk_workflow_activation_resolve_request_cancel_external_workflow(value.resolve_request_cancel_external_workflow) if value.has_resolve_request_cancel_external_workflow?
         | 
| 1448 | 
            +
                    coresdk_workflow_activation_do_update(value.do_update) if value.has_do_update?
         | 
| 1449 | 
            +
                    coresdk_workflow_activation_resolve_nexus_operation_start(value.resolve_nexus_operation_start) if value.has_resolve_nexus_operation_start?
         | 
| 1450 | 
            +
                    coresdk_workflow_activation_resolve_nexus_operation(value.resolve_nexus_operation) if value.has_resolve_nexus_operation?
         | 
| 1451 | 
            +
                    @on_exit&.call(value)
         | 
| 1452 | 
            +
                  end
         | 
| 1453 | 
            +
                  
         | 
| 1454 | 
            +
                  def coresdk_workflow_commands_complete_workflow_execution(value)
         | 
| 1455 | 
            +
                    @on_enter&.call(value)
         | 
| 1456 | 
            +
                    api_common_v1_payload(value.result) if value.has_result?
         | 
| 1457 | 
            +
                    @on_exit&.call(value)
         | 
| 1458 | 
            +
                  end
         | 
| 1459 | 
            +
                  
         | 
| 1460 | 
            +
                  def coresdk_workflow_commands_continue_as_new_workflow_execution(value)
         | 
| 1461 | 
            +
                    @on_enter&.call(value)
         | 
| 1462 | 
            +
                    api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
         | 
| 1463 | 
            +
                    value.memo.values.each { |v| api_common_v1_payload(v) }
         | 
| 1464 | 
            +
                    value.headers.values.each { |v| api_common_v1_payload(v) }
         | 
| 1465 | 
            +
                    value.search_attributes.values.each { |v| api_common_v1_payload(v) } unless @skip_search_attributes
         | 
| 1466 | 
            +
                    @on_exit&.call(value)
         | 
| 1467 | 
            +
                  end
         | 
| 1468 | 
            +
                  
         | 
| 1469 | 
            +
                  def coresdk_workflow_commands_fail_workflow_execution(value)
         | 
| 1470 | 
            +
                    @on_enter&.call(value)
         | 
| 1471 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1472 | 
            +
                    @on_exit&.call(value)
         | 
| 1473 | 
            +
                  end
         | 
| 1474 | 
            +
                  
         | 
| 1475 | 
            +
                  def coresdk_workflow_commands_modify_workflow_properties(value)
         | 
| 1476 | 
            +
                    @on_enter&.call(value)
         | 
| 1477 | 
            +
                    api_common_v1_memo(value.upserted_memo) if value.has_upserted_memo?
         | 
| 1478 | 
            +
                    @on_exit&.call(value)
         | 
| 1479 | 
            +
                  end
         | 
| 1480 | 
            +
                  
         | 
| 1481 | 
            +
                  def coresdk_workflow_commands_query_result(value)
         | 
| 1482 | 
            +
                    @on_enter&.call(value)
         | 
| 1483 | 
            +
                    coresdk_workflow_commands_query_success(value.succeeded) if value.has_succeeded?
         | 
| 1484 | 
            +
                    api_failure_v1_failure(value.failed) if value.has_failed?
         | 
| 1485 | 
            +
                    @on_exit&.call(value)
         | 
| 1486 | 
            +
                  end
         | 
| 1487 | 
            +
                  
         | 
| 1488 | 
            +
                  def coresdk_workflow_commands_query_success(value)
         | 
| 1489 | 
            +
                    @on_enter&.call(value)
         | 
| 1490 | 
            +
                    api_common_v1_payload(value.response) if value.has_response?
         | 
| 1491 | 
            +
                    @on_exit&.call(value)
         | 
| 1492 | 
            +
                  end
         | 
| 1493 | 
            +
                  
         | 
| 1494 | 
            +
                  def coresdk_workflow_commands_schedule_activity(value)
         | 
| 1495 | 
            +
                    @on_enter&.call(value)
         | 
| 1496 | 
            +
                    value.headers.values.each { |v| api_common_v1_payload(v) }
         | 
| 1497 | 
            +
                    api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
         | 
| 1498 | 
            +
                    @on_exit&.call(value)
         | 
| 1499 | 
            +
                  end
         | 
| 1500 | 
            +
                  
         | 
| 1501 | 
            +
                  def coresdk_workflow_commands_schedule_local_activity(value)
         | 
| 1502 | 
            +
                    @on_enter&.call(value)
         | 
| 1503 | 
            +
                    value.headers.values.each { |v| api_common_v1_payload(v) }
         | 
| 1504 | 
            +
                    api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
         | 
| 1505 | 
            +
                    @on_exit&.call(value)
         | 
| 1506 | 
            +
                  end
         | 
| 1507 | 
            +
                  
         | 
| 1508 | 
            +
                  def coresdk_workflow_commands_schedule_nexus_operation(value)
         | 
| 1509 | 
            +
                    @on_enter&.call(value)
         | 
| 1510 | 
            +
                    api_common_v1_payload(value.input) if value.has_input?
         | 
| 1511 | 
            +
                    @on_exit&.call(value)
         | 
| 1512 | 
            +
                  end
         | 
| 1513 | 
            +
                  
         | 
| 1514 | 
            +
                  def coresdk_workflow_commands_signal_external_workflow_execution(value)
         | 
| 1515 | 
            +
                    @on_enter&.call(value)
         | 
| 1516 | 
            +
                    api_common_v1_payload_repeated(value.args) unless value.args.empty?
         | 
| 1517 | 
            +
                    value.headers.values.each { |v| api_common_v1_payload(v) }
         | 
| 1518 | 
            +
                    @on_exit&.call(value)
         | 
| 1519 | 
            +
                  end
         | 
| 1520 | 
            +
                  
         | 
| 1521 | 
            +
                  def coresdk_workflow_commands_start_child_workflow_execution(value)
         | 
| 1522 | 
            +
                    @on_enter&.call(value)
         | 
| 1523 | 
            +
                    api_common_v1_payload_repeated(value.input) unless value.input.empty?
         | 
| 1524 | 
            +
                    value.headers.values.each { |v| api_common_v1_payload(v) }
         | 
| 1525 | 
            +
                    value.memo.values.each { |v| api_common_v1_payload(v) }
         | 
| 1526 | 
            +
                    value.search_attributes.values.each { |v| api_common_v1_payload(v) } unless @skip_search_attributes
         | 
| 1527 | 
            +
                    @on_exit&.call(value)
         | 
| 1528 | 
            +
                  end
         | 
| 1529 | 
            +
                  
         | 
| 1530 | 
            +
                  def coresdk_workflow_commands_update_response(value)
         | 
| 1531 | 
            +
                    @on_enter&.call(value)
         | 
| 1532 | 
            +
                    api_failure_v1_failure(value.rejected) if value.has_rejected?
         | 
| 1533 | 
            +
                    api_common_v1_payload(value.completed) if value.has_completed?
         | 
| 1534 | 
            +
                    @on_exit&.call(value)
         | 
| 1535 | 
            +
                  end
         | 
| 1536 | 
            +
                  
         | 
| 1537 | 
            +
                  def coresdk_workflow_commands_upsert_workflow_search_attributes(value)
         | 
| 1538 | 
            +
                    @on_enter&.call(value)
         | 
| 1539 | 
            +
                    value.search_attributes.values.each { |v| api_common_v1_payload(v) } unless @skip_search_attributes
         | 
| 1540 | 
            +
                    @on_exit&.call(value)
         | 
| 1541 | 
            +
                  end
         | 
| 1542 | 
            +
                  
         | 
| 1543 | 
            +
                  def coresdk_workflow_commands_workflow_command(value)
         | 
| 1544 | 
            +
                    @on_enter&.call(value)
         | 
| 1545 | 
            +
                    api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
         | 
| 1546 | 
            +
                    coresdk_workflow_commands_schedule_activity(value.schedule_activity) if value.has_schedule_activity?
         | 
| 1547 | 
            +
                    coresdk_workflow_commands_query_result(value.respond_to_query) if value.has_respond_to_query?
         | 
| 1548 | 
            +
                    coresdk_workflow_commands_complete_workflow_execution(value.complete_workflow_execution) if value.has_complete_workflow_execution?
         | 
| 1549 | 
            +
                    coresdk_workflow_commands_fail_workflow_execution(value.fail_workflow_execution) if value.has_fail_workflow_execution?
         | 
| 1550 | 
            +
                    coresdk_workflow_commands_continue_as_new_workflow_execution(value.continue_as_new_workflow_execution) if value.has_continue_as_new_workflow_execution?
         | 
| 1551 | 
            +
                    coresdk_workflow_commands_start_child_workflow_execution(value.start_child_workflow_execution) if value.has_start_child_workflow_execution?
         | 
| 1552 | 
            +
                    coresdk_workflow_commands_signal_external_workflow_execution(value.signal_external_workflow_execution) if value.has_signal_external_workflow_execution?
         | 
| 1553 | 
            +
                    coresdk_workflow_commands_schedule_local_activity(value.schedule_local_activity) if value.has_schedule_local_activity?
         | 
| 1554 | 
            +
                    coresdk_workflow_commands_upsert_workflow_search_attributes(value.upsert_workflow_search_attributes) if value.has_upsert_workflow_search_attributes?
         | 
| 1555 | 
            +
                    coresdk_workflow_commands_modify_workflow_properties(value.modify_workflow_properties) if value.has_modify_workflow_properties?
         | 
| 1556 | 
            +
                    coresdk_workflow_commands_update_response(value.update_response) if value.has_update_response?
         | 
| 1557 | 
            +
                    coresdk_workflow_commands_schedule_nexus_operation(value.schedule_nexus_operation) if value.has_schedule_nexus_operation?
         | 
| 1558 | 
            +
                    @on_exit&.call(value)
         | 
| 1559 | 
            +
                  end
         | 
| 1560 | 
            +
                  
         | 
| 1561 | 
            +
                  def coresdk_workflow_completion_failure(value)
         | 
| 1562 | 
            +
                    @on_enter&.call(value)
         | 
| 1563 | 
            +
                    api_failure_v1_failure(value.failure) if value.has_failure?
         | 
| 1564 | 
            +
                    @on_exit&.call(value)
         | 
| 1565 | 
            +
                  end
         | 
| 1566 | 
            +
                  
         | 
| 1567 | 
            +
                  def coresdk_workflow_completion_success(value)
         | 
| 1568 | 
            +
                    @on_enter&.call(value)
         | 
| 1569 | 
            +
                    value.commands.each { |v| coresdk_workflow_commands_workflow_command(v) }
         | 
| 1570 | 
            +
                    @on_exit&.call(value)
         | 
| 1571 | 
            +
                  end
         | 
| 1572 | 
            +
                  
         | 
| 1573 | 
            +
                  def coresdk_workflow_completion_workflow_activation_completion(value)
         | 
| 1574 | 
            +
                    @on_enter&.call(value)
         | 
| 1575 | 
            +
                    coresdk_workflow_completion_success(value.successful) if value.has_successful?
         | 
| 1576 | 
            +
                    coresdk_workflow_completion_failure(value.failed) if value.has_failed?
         | 
| 1577 | 
            +
                    @on_exit&.call(value)
         | 
| 1578 | 
            +
                  end
         | 
| 1579 | 
            +
                end
         | 
| 1580 | 
            +
              end
         | 
| 1581 | 
            +
            end
         |