# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: temporal/api/history/v1/message.proto

require 'google/protobuf'

require 'google/protobuf/duration_pb'
require 'google/protobuf/timestamp_pb'
require 'dependencies/gogoproto/gogo_pb'
require 'temporal/api/enums/v1/event_type_pb'
require 'temporal/api/enums/v1/failed_cause_pb'
require 'temporal/api/enums/v1/workflow_pb'
require 'temporal/api/common/v1/message_pb'
require 'temporal/api/failure/v1/message_pb'
require 'temporal/api/taskqueue/v1/message_pb'
require 'temporal/api/update/v1/message_pb'
require 'temporal/api/workflow/v1/message_pb'
require 'temporal/api/sdk/v1/task_complete_metadata_pb'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("temporal/api/history/v1/message.proto", :syntax => :proto3) do
    add_message "temporal.api.history.v1.WorkflowExecutionStartedEventAttributes" do
      optional :workflow_type, :message, 1, "temporal.api.common.v1.WorkflowType"
      optional :parent_workflow_namespace, :string, 2
      optional :parent_workflow_namespace_id, :string, 27
      optional :parent_workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
      optional :parent_initiated_event_id, :int64, 4
      optional :task_queue, :message, 5, "temporal.api.taskqueue.v1.TaskQueue"
      optional :input, :message, 6, "temporal.api.common.v1.Payloads"
      optional :workflow_execution_timeout, :message, 7, "google.protobuf.Duration"
      optional :workflow_run_timeout, :message, 8, "google.protobuf.Duration"
      optional :workflow_task_timeout, :message, 9, "google.protobuf.Duration"
      optional :continued_execution_run_id, :string, 10
      optional :initiator, :enum, 11, "temporal.api.enums.v1.ContinueAsNewInitiator"
      optional :continued_failure, :message, 12, "temporal.api.failure.v1.Failure"
      optional :last_completion_result, :message, 13, "temporal.api.common.v1.Payloads"
      optional :original_execution_run_id, :string, 14
      optional :identity, :string, 15
      optional :first_execution_run_id, :string, 16
      optional :retry_policy, :message, 17, "temporal.api.common.v1.RetryPolicy"
      optional :attempt, :int32, 18
      optional :workflow_execution_expiration_time, :message, 19, "google.protobuf.Timestamp"
      optional :cron_schedule, :string, 20
      optional :first_workflow_task_backoff, :message, 21, "google.protobuf.Duration"
      optional :memo, :message, 22, "temporal.api.common.v1.Memo"
      optional :search_attributes, :message, 23, "temporal.api.common.v1.SearchAttributes"
      optional :prev_auto_reset_points, :message, 24, "temporal.api.workflow.v1.ResetPoints"
      optional :header, :message, 25, "temporal.api.common.v1.Header"
      optional :parent_initiated_event_version, :int64, 26
    end
    add_message "temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes" do
      optional :result, :message, 1, "temporal.api.common.v1.Payloads"
      optional :workflow_task_completed_event_id, :int64, 2
      optional :new_execution_run_id, :string, 3
    end
    add_message "temporal.api.history.v1.WorkflowExecutionFailedEventAttributes" do
      optional :failure, :message, 1, "temporal.api.failure.v1.Failure"
      optional :retry_state, :enum, 2, "temporal.api.enums.v1.RetryState"
      optional :workflow_task_completed_event_id, :int64, 3
      optional :new_execution_run_id, :string, 4
    end
    add_message "temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes" do
      optional :retry_state, :enum, 1, "temporal.api.enums.v1.RetryState"
      optional :new_execution_run_id, :string, 2
    end
    add_message "temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes" do
      optional :new_execution_run_id, :string, 1
      optional :workflow_type, :message, 2, "temporal.api.common.v1.WorkflowType"
      optional :task_queue, :message, 3, "temporal.api.taskqueue.v1.TaskQueue"
      optional :input, :message, 4, "temporal.api.common.v1.Payloads"
      optional :workflow_run_timeout, :message, 5, "google.protobuf.Duration"
      optional :workflow_task_timeout, :message, 6, "google.protobuf.Duration"
      optional :workflow_task_completed_event_id, :int64, 7
      optional :backoff_start_interval, :message, 8, "google.protobuf.Duration"
      optional :initiator, :enum, 9, "temporal.api.enums.v1.ContinueAsNewInitiator"
      optional :failure, :message, 10, "temporal.api.failure.v1.Failure"
      optional :last_completion_result, :message, 11, "temporal.api.common.v1.Payloads"
      optional :header, :message, 12, "temporal.api.common.v1.Header"
      optional :memo, :message, 13, "temporal.api.common.v1.Memo"
      optional :search_attributes, :message, 14, "temporal.api.common.v1.SearchAttributes"
    end
    add_message "temporal.api.history.v1.WorkflowTaskScheduledEventAttributes" do
      optional :task_queue, :message, 1, "temporal.api.taskqueue.v1.TaskQueue"
      optional :start_to_close_timeout, :message, 2, "google.protobuf.Duration"
      optional :attempt, :int32, 3
    end
    add_message "temporal.api.history.v1.WorkflowTaskStartedEventAttributes" do
      optional :scheduled_event_id, :int64, 1
      optional :identity, :string, 2
      optional :request_id, :string, 3
      optional :suggest_continue_as_new, :bool, 4
      optional :history_size_bytes, :int64, 5
    end
    add_message "temporal.api.history.v1.WorkflowTaskCompletedEventAttributes" do
      optional :scheduled_event_id, :int64, 1
      optional :started_event_id, :int64, 2
      optional :identity, :string, 3
      optional :binary_checksum, :string, 4
      optional :worker_version, :message, 5, "temporal.api.common.v1.WorkerVersionStamp"
      optional :sdk_metadata, :message, 6, "temporal.api.sdk.v1.WorkflowTaskCompletedMetadata"
      optional :metering_metadata, :message, 13, "temporal.api.common.v1.MeteringMetadata"
    end
    add_message "temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes" do
      optional :scheduled_event_id, :int64, 1
      optional :started_event_id, :int64, 2
      optional :timeout_type, :enum, 3, "temporal.api.enums.v1.TimeoutType"
    end
    add_message "temporal.api.history.v1.WorkflowTaskFailedEventAttributes" do
      optional :scheduled_event_id, :int64, 1
      optional :started_event_id, :int64, 2
      optional :cause, :enum, 3, "temporal.api.enums.v1.WorkflowTaskFailedCause"
      optional :failure, :message, 4, "temporal.api.failure.v1.Failure"
      optional :identity, :string, 5
      optional :base_run_id, :string, 6
      optional :new_run_id, :string, 7
      optional :fork_event_version, :int64, 8
      optional :binary_checksum, :string, 9
    end
    add_message "temporal.api.history.v1.ActivityTaskScheduledEventAttributes" do
      optional :activity_id, :string, 1
      optional :activity_type, :message, 2, "temporal.api.common.v1.ActivityType"
      optional :task_queue, :message, 4, "temporal.api.taskqueue.v1.TaskQueue"
      optional :header, :message, 5, "temporal.api.common.v1.Header"
      optional :input, :message, 6, "temporal.api.common.v1.Payloads"
      optional :schedule_to_close_timeout, :message, 7, "google.protobuf.Duration"
      optional :schedule_to_start_timeout, :message, 8, "google.protobuf.Duration"
      optional :start_to_close_timeout, :message, 9, "google.protobuf.Duration"
      optional :heartbeat_timeout, :message, 10, "google.protobuf.Duration"
      optional :workflow_task_completed_event_id, :int64, 11
      optional :retry_policy, :message, 12, "temporal.api.common.v1.RetryPolicy"
    end
    add_message "temporal.api.history.v1.ActivityTaskStartedEventAttributes" do
      optional :scheduled_event_id, :int64, 1
      optional :identity, :string, 2
      optional :request_id, :string, 3
      optional :attempt, :int32, 4
      optional :last_failure, :message, 5, "temporal.api.failure.v1.Failure"
    end
    add_message "temporal.api.history.v1.ActivityTaskCompletedEventAttributes" do
      optional :result, :message, 1, "temporal.api.common.v1.Payloads"
      optional :scheduled_event_id, :int64, 2
      optional :started_event_id, :int64, 3
      optional :identity, :string, 4
    end
    add_message "temporal.api.history.v1.ActivityTaskFailedEventAttributes" do
      optional :failure, :message, 1, "temporal.api.failure.v1.Failure"
      optional :scheduled_event_id, :int64, 2
      optional :started_event_id, :int64, 3
      optional :identity, :string, 4
      optional :retry_state, :enum, 5, "temporal.api.enums.v1.RetryState"
    end
    add_message "temporal.api.history.v1.ActivityTaskTimedOutEventAttributes" do
      optional :failure, :message, 1, "temporal.api.failure.v1.Failure"
      optional :scheduled_event_id, :int64, 2
      optional :started_event_id, :int64, 3
      optional :retry_state, :enum, 4, "temporal.api.enums.v1.RetryState"
    end
    add_message "temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes" do
      optional :scheduled_event_id, :int64, 1
      optional :workflow_task_completed_event_id, :int64, 2
    end
    add_message "temporal.api.history.v1.ActivityTaskCanceledEventAttributes" do
      optional :details, :message, 1, "temporal.api.common.v1.Payloads"
      optional :latest_cancel_requested_event_id, :int64, 2
      optional :scheduled_event_id, :int64, 3
      optional :started_event_id, :int64, 4
      optional :identity, :string, 5
    end
    add_message "temporal.api.history.v1.TimerStartedEventAttributes" do
      optional :timer_id, :string, 1
      optional :start_to_fire_timeout, :message, 2, "google.protobuf.Duration"
      optional :workflow_task_completed_event_id, :int64, 3
    end
    add_message "temporal.api.history.v1.TimerFiredEventAttributes" do
      optional :timer_id, :string, 1
      optional :started_event_id, :int64, 2
    end
    add_message "temporal.api.history.v1.TimerCanceledEventAttributes" do
      optional :timer_id, :string, 1
      optional :started_event_id, :int64, 2
      optional :workflow_task_completed_event_id, :int64, 3
      optional :identity, :string, 4
    end
    add_message "temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes" do
      optional :cause, :string, 1
      optional :external_initiated_event_id, :int64, 2
      optional :external_workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
      optional :identity, :string, 4
    end
    add_message "temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes" do
      optional :workflow_task_completed_event_id, :int64, 1
      optional :details, :message, 2, "temporal.api.common.v1.Payloads"
    end
    add_message "temporal.api.history.v1.MarkerRecordedEventAttributes" do
      optional :marker_name, :string, 1
      map :details, :string, :message, 2, "temporal.api.common.v1.Payloads"
      optional :workflow_task_completed_event_id, :int64, 3
      optional :header, :message, 4, "temporal.api.common.v1.Header"
      optional :failure, :message, 5, "temporal.api.failure.v1.Failure"
    end
    add_message "temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes" do
      optional :signal_name, :string, 1
      optional :input, :message, 2, "temporal.api.common.v1.Payloads"
      optional :identity, :string, 3
      optional :header, :message, 4, "temporal.api.common.v1.Header"
      optional :skip_generate_workflow_task, :bool, 5
    end
    add_message "temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes" do
      optional :reason, :string, 1
      optional :details, :message, 2, "temporal.api.common.v1.Payloads"
      optional :identity, :string, 3
    end
    add_message "temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes" do
      optional :workflow_task_completed_event_id, :int64, 1
      optional :namespace, :string, 2
      optional :namespace_id, :string, 7
      optional :workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
      optional :control, :string, 4
      optional :child_workflow_only, :bool, 5
      optional :reason, :string, 6
    end
    add_message "temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes" do
      optional :cause, :enum, 1, "temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause"
      optional :workflow_task_completed_event_id, :int64, 2
      optional :namespace, :string, 3
      optional :namespace_id, :string, 7
      optional :workflow_execution, :message, 4, "temporal.api.common.v1.WorkflowExecution"
      optional :initiated_event_id, :int64, 5
      optional :control, :string, 6
    end
    add_message "temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes" do
      optional :initiated_event_id, :int64, 1
      optional :namespace, :string, 2
      optional :namespace_id, :string, 4
      optional :workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
    end
    add_message "temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes" do
      optional :workflow_task_completed_event_id, :int64, 1
      optional :namespace, :string, 2
      optional :namespace_id, :string, 9
      optional :workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
      optional :signal_name, :string, 4
      optional :input, :message, 5, "temporal.api.common.v1.Payloads"
      optional :control, :string, 6
      optional :child_workflow_only, :bool, 7
      optional :header, :message, 8, "temporal.api.common.v1.Header"
    end
    add_message "temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes" do
      optional :cause, :enum, 1, "temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause"
      optional :workflow_task_completed_event_id, :int64, 2
      optional :namespace, :string, 3
      optional :namespace_id, :string, 7
      optional :workflow_execution, :message, 4, "temporal.api.common.v1.WorkflowExecution"
      optional :initiated_event_id, :int64, 5
      optional :control, :string, 6
    end
    add_message "temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes" do
      optional :initiated_event_id, :int64, 1
      optional :namespace, :string, 2
      optional :namespace_id, :string, 5
      optional :workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
      optional :control, :string, 4
    end
    add_message "temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes" do
      optional :workflow_task_completed_event_id, :int64, 1
      optional :search_attributes, :message, 2, "temporal.api.common.v1.SearchAttributes"
    end
    add_message "temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes" do
      optional :workflow_task_completed_event_id, :int64, 1
      optional :upserted_memo, :message, 2, "temporal.api.common.v1.Memo"
    end
    add_message "temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes" do
      optional :namespace, :string, 1
      optional :namespace_id, :string, 18
      optional :workflow_id, :string, 2
      optional :workflow_type, :message, 3, "temporal.api.common.v1.WorkflowType"
      optional :task_queue, :message, 4, "temporal.api.taskqueue.v1.TaskQueue"
      optional :input, :message, 5, "temporal.api.common.v1.Payloads"
      optional :workflow_execution_timeout, :message, 6, "google.protobuf.Duration"
      optional :workflow_run_timeout, :message, 7, "google.protobuf.Duration"
      optional :workflow_task_timeout, :message, 8, "google.protobuf.Duration"
      optional :parent_close_policy, :enum, 9, "temporal.api.enums.v1.ParentClosePolicy"
      optional :control, :string, 10
      optional :workflow_task_completed_event_id, :int64, 11
      optional :workflow_id_reuse_policy, :enum, 12, "temporal.api.enums.v1.WorkflowIdReusePolicy"
      optional :retry_policy, :message, 13, "temporal.api.common.v1.RetryPolicy"
      optional :cron_schedule, :string, 14
      optional :header, :message, 15, "temporal.api.common.v1.Header"
      optional :memo, :message, 16, "temporal.api.common.v1.Memo"
      optional :search_attributes, :message, 17, "temporal.api.common.v1.SearchAttributes"
    end
    add_message "temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes" do
      optional :namespace, :string, 1
      optional :namespace_id, :string, 8
      optional :workflow_id, :string, 2
      optional :workflow_type, :message, 3, "temporal.api.common.v1.WorkflowType"
      optional :cause, :enum, 4, "temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause"
      optional :control, :string, 5
      optional :initiated_event_id, :int64, 6
      optional :workflow_task_completed_event_id, :int64, 7
    end
    add_message "temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes" do
      optional :namespace, :string, 1
      optional :namespace_id, :string, 6
      optional :initiated_event_id, :int64, 2
      optional :workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
      optional :workflow_type, :message, 4, "temporal.api.common.v1.WorkflowType"
      optional :header, :message, 5, "temporal.api.common.v1.Header"
    end
    add_message "temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes" do
      optional :result, :message, 1, "temporal.api.common.v1.Payloads"
      optional :namespace, :string, 2
      optional :namespace_id, :string, 7
      optional :workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
      optional :workflow_type, :message, 4, "temporal.api.common.v1.WorkflowType"
      optional :initiated_event_id, :int64, 5
      optional :started_event_id, :int64, 6
    end
    add_message "temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes" do
      optional :failure, :message, 1, "temporal.api.failure.v1.Failure"
      optional :namespace, :string, 2
      optional :namespace_id, :string, 8
      optional :workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
      optional :workflow_type, :message, 4, "temporal.api.common.v1.WorkflowType"
      optional :initiated_event_id, :int64, 5
      optional :started_event_id, :int64, 6
      optional :retry_state, :enum, 7, "temporal.api.enums.v1.RetryState"
    end
    add_message "temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes" do
      optional :details, :message, 1, "temporal.api.common.v1.Payloads"
      optional :namespace, :string, 2
      optional :namespace_id, :string, 7
      optional :workflow_execution, :message, 3, "temporal.api.common.v1.WorkflowExecution"
      optional :workflow_type, :message, 4, "temporal.api.common.v1.WorkflowType"
      optional :initiated_event_id, :int64, 5
      optional :started_event_id, :int64, 6
    end
    add_message "temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes" do
      optional :namespace, :string, 1
      optional :namespace_id, :string, 7
      optional :workflow_execution, :message, 2, "temporal.api.common.v1.WorkflowExecution"
      optional :workflow_type, :message, 3, "temporal.api.common.v1.WorkflowType"
      optional :initiated_event_id, :int64, 4
      optional :started_event_id, :int64, 5
      optional :retry_state, :enum, 6, "temporal.api.enums.v1.RetryState"
    end
    add_message "temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes" do
      optional :namespace, :string, 1
      optional :namespace_id, :string, 6
      optional :workflow_execution, :message, 2, "temporal.api.common.v1.WorkflowExecution"
      optional :workflow_type, :message, 3, "temporal.api.common.v1.WorkflowType"
      optional :initiated_event_id, :int64, 4
      optional :started_event_id, :int64, 5
    end
    add_message "temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes" do
      optional :new_task_queue, :string, 1
      optional :new_workflow_task_timeout, :message, 2, "google.protobuf.Duration"
      optional :new_workflow_run_timeout, :message, 3, "google.protobuf.Duration"
      optional :new_workflow_execution_timeout, :message, 4, "google.protobuf.Duration"
      optional :upserted_memo, :message, 5, "temporal.api.common.v1.Memo"
    end
    add_message "temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes" do
      optional :scheduled_event_id, :int64, 1
      optional :new_retry_policy, :message, 2, "temporal.api.common.v1.RetryPolicy"
    end
    add_message "temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes" do
      optional :protocol_instance_id, :string, 1
      optional :accepted_request_message_id, :string, 2
      optional :accepted_request_sequencing_event_id, :int64, 3
      optional :accepted_request, :message, 4, "temporal.api.update.v1.Request"
    end
    add_message "temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes" do
      optional :meta, :message, 1, "temporal.api.update.v1.Meta"
      optional :outcome, :message, 2, "temporal.api.update.v1.Outcome"
    end
    add_message "temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes" do
      optional :protocol_instance_id, :string, 1
      optional :rejected_request_message_id, :string, 2
      optional :rejected_request_sequencing_event_id, :int64, 3
      optional :rejected_request, :message, 4, "temporal.api.update.v1.Request"
      optional :failure, :message, 5, "temporal.api.failure.v1.Failure"
    end
    add_message "temporal.api.history.v1.HistoryEvent" do
      optional :event_id, :int64, 1
      optional :event_time, :message, 2, "google.protobuf.Timestamp"
      optional :event_type, :enum, 3, "temporal.api.enums.v1.EventType"
      optional :version, :int64, 4
      optional :task_id, :int64, 5
      optional :worker_may_ignore, :bool, 300
      oneof :attributes do
        optional :workflow_execution_started_event_attributes, :message, 6, "temporal.api.history.v1.WorkflowExecutionStartedEventAttributes"
        optional :workflow_execution_completed_event_attributes, :message, 7, "temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes"
        optional :workflow_execution_failed_event_attributes, :message, 8, "temporal.api.history.v1.WorkflowExecutionFailedEventAttributes"
        optional :workflow_execution_timed_out_event_attributes, :message, 9, "temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes"
        optional :workflow_task_scheduled_event_attributes, :message, 10, "temporal.api.history.v1.WorkflowTaskScheduledEventAttributes"
        optional :workflow_task_started_event_attributes, :message, 11, "temporal.api.history.v1.WorkflowTaskStartedEventAttributes"
        optional :workflow_task_completed_event_attributes, :message, 12, "temporal.api.history.v1.WorkflowTaskCompletedEventAttributes"
        optional :workflow_task_timed_out_event_attributes, :message, 13, "temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes"
        optional :workflow_task_failed_event_attributes, :message, 14, "temporal.api.history.v1.WorkflowTaskFailedEventAttributes"
        optional :activity_task_scheduled_event_attributes, :message, 15, "temporal.api.history.v1.ActivityTaskScheduledEventAttributes"
        optional :activity_task_started_event_attributes, :message, 16, "temporal.api.history.v1.ActivityTaskStartedEventAttributes"
        optional :activity_task_completed_event_attributes, :message, 17, "temporal.api.history.v1.ActivityTaskCompletedEventAttributes"
        optional :activity_task_failed_event_attributes, :message, 18, "temporal.api.history.v1.ActivityTaskFailedEventAttributes"
        optional :activity_task_timed_out_event_attributes, :message, 19, "temporal.api.history.v1.ActivityTaskTimedOutEventAttributes"
        optional :timer_started_event_attributes, :message, 20, "temporal.api.history.v1.TimerStartedEventAttributes"
        optional :timer_fired_event_attributes, :message, 21, "temporal.api.history.v1.TimerFiredEventAttributes"
        optional :activity_task_cancel_requested_event_attributes, :message, 22, "temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes"
        optional :activity_task_canceled_event_attributes, :message, 23, "temporal.api.history.v1.ActivityTaskCanceledEventAttributes"
        optional :timer_canceled_event_attributes, :message, 24, "temporal.api.history.v1.TimerCanceledEventAttributes"
        optional :marker_recorded_event_attributes, :message, 25, "temporal.api.history.v1.MarkerRecordedEventAttributes"
        optional :workflow_execution_signaled_event_attributes, :message, 26, "temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes"
        optional :workflow_execution_terminated_event_attributes, :message, 27, "temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes"
        optional :workflow_execution_cancel_requested_event_attributes, :message, 28, "temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes"
        optional :workflow_execution_canceled_event_attributes, :message, 29, "temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes"
        optional :request_cancel_external_workflow_execution_initiated_event_attributes, :message, 30, "temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes"
        optional :request_cancel_external_workflow_execution_failed_event_attributes, :message, 31, "temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes"
        optional :external_workflow_execution_cancel_requested_event_attributes, :message, 32, "temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes"
        optional :workflow_execution_continued_as_new_event_attributes, :message, 33, "temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes"
        optional :start_child_workflow_execution_initiated_event_attributes, :message, 34, "temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes"
        optional :start_child_workflow_execution_failed_event_attributes, :message, 35, "temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes"
        optional :child_workflow_execution_started_event_attributes, :message, 36, "temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes"
        optional :child_workflow_execution_completed_event_attributes, :message, 37, "temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes"
        optional :child_workflow_execution_failed_event_attributes, :message, 38, "temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes"
        optional :child_workflow_execution_canceled_event_attributes, :message, 39, "temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes"
        optional :child_workflow_execution_timed_out_event_attributes, :message, 40, "temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes"
        optional :child_workflow_execution_terminated_event_attributes, :message, 41, "temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes"
        optional :signal_external_workflow_execution_initiated_event_attributes, :message, 42, "temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes"
        optional :signal_external_workflow_execution_failed_event_attributes, :message, 43, "temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes"
        optional :external_workflow_execution_signaled_event_attributes, :message, 44, "temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes"
        optional :upsert_workflow_search_attributes_event_attributes, :message, 45, "temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes"
        optional :workflow_execution_update_accepted_event_attributes, :message, 46, "temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes"
        optional :workflow_execution_update_rejected_event_attributes, :message, 47, "temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes"
        optional :workflow_execution_update_completed_event_attributes, :message, 48, "temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes"
        optional :workflow_properties_modified_externally_event_attributes, :message, 49, "temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes"
        optional :activity_properties_modified_externally_event_attributes, :message, 50, "temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes"
        optional :workflow_properties_modified_event_attributes, :message, 51, "temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes"
      end
    end
    add_message "temporal.api.history.v1.History" do
      repeated :events, :message, 1, "temporal.api.history.v1.HistoryEvent"
    end
  end
end

module Temporalio
  module Api
    module History
      module V1
        WorkflowExecutionStartedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionStartedEventAttributes").msgclass
        WorkflowExecutionCompletedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes").msgclass
        WorkflowExecutionFailedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionFailedEventAttributes").msgclass
        WorkflowExecutionTimedOutEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes").msgclass
        WorkflowExecutionContinuedAsNewEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes").msgclass
        WorkflowTaskScheduledEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowTaskScheduledEventAttributes").msgclass
        WorkflowTaskStartedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowTaskStartedEventAttributes").msgclass
        WorkflowTaskCompletedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowTaskCompletedEventAttributes").msgclass
        WorkflowTaskTimedOutEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes").msgclass
        WorkflowTaskFailedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowTaskFailedEventAttributes").msgclass
        ActivityTaskScheduledEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ActivityTaskScheduledEventAttributes").msgclass
        ActivityTaskStartedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ActivityTaskStartedEventAttributes").msgclass
        ActivityTaskCompletedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ActivityTaskCompletedEventAttributes").msgclass
        ActivityTaskFailedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ActivityTaskFailedEventAttributes").msgclass
        ActivityTaskTimedOutEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ActivityTaskTimedOutEventAttributes").msgclass
        ActivityTaskCancelRequestedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes").msgclass
        ActivityTaskCanceledEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ActivityTaskCanceledEventAttributes").msgclass
        TimerStartedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.TimerStartedEventAttributes").msgclass
        TimerFiredEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.TimerFiredEventAttributes").msgclass
        TimerCanceledEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.TimerCanceledEventAttributes").msgclass
        WorkflowExecutionCancelRequestedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes").msgclass
        WorkflowExecutionCanceledEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes").msgclass
        MarkerRecordedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.MarkerRecordedEventAttributes").msgclass
        WorkflowExecutionSignaledEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes").msgclass
        WorkflowExecutionTerminatedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes").msgclass
        RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes").msgclass
        RequestCancelExternalWorkflowExecutionFailedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes").msgclass
        ExternalWorkflowExecutionCancelRequestedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes").msgclass
        SignalExternalWorkflowExecutionInitiatedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes").msgclass
        SignalExternalWorkflowExecutionFailedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes").msgclass
        ExternalWorkflowExecutionSignaledEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes").msgclass
        UpsertWorkflowSearchAttributesEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes").msgclass
        WorkflowPropertiesModifiedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes").msgclass
        StartChildWorkflowExecutionInitiatedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes").msgclass
        StartChildWorkflowExecutionFailedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes").msgclass
        ChildWorkflowExecutionStartedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes").msgclass
        ChildWorkflowExecutionCompletedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes").msgclass
        ChildWorkflowExecutionFailedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes").msgclass
        ChildWorkflowExecutionCanceledEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes").msgclass
        ChildWorkflowExecutionTimedOutEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes").msgclass
        ChildWorkflowExecutionTerminatedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes").msgclass
        WorkflowPropertiesModifiedExternallyEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes").msgclass
        ActivityPropertiesModifiedExternallyEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes").msgclass
        WorkflowExecutionUpdateAcceptedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes").msgclass
        WorkflowExecutionUpdateCompletedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes").msgclass
        WorkflowExecutionUpdateRejectedEventAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes").msgclass
        HistoryEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.HistoryEvent").msgclass
        History = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.history.v1.History").msgclass
      end
    end
  end
end
