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

require 'google/protobuf'

require 'temporal/api/common/v1/message_pb'
require 'temporal/api/enums/v1/update_pb'
require 'temporal/api/failure/v1/message_pb'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("temporal/api/update/v1/message.proto", :syntax => :proto3) do
    add_message "temporal.api.update.v1.WaitPolicy" do
      optional :lifecycle_stage, :enum, 1, "temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"
    end
    add_message "temporal.api.update.v1.UpdateRef" do
      optional :workflow_execution, :message, 1, "temporal.api.common.v1.WorkflowExecution"
      optional :update_id, :string, 2
    end
    add_message "temporal.api.update.v1.Outcome" do
      oneof :value do
        optional :success, :message, 1, "temporal.api.common.v1.Payloads"
        optional :failure, :message, 2, "temporal.api.failure.v1.Failure"
      end
    end
    add_message "temporal.api.update.v1.Meta" do
      optional :update_id, :string, 1
      optional :identity, :string, 2
    end
    add_message "temporal.api.update.v1.Input" do
      optional :header, :message, 1, "temporal.api.common.v1.Header"
      optional :name, :string, 2
      optional :args, :message, 3, "temporal.api.common.v1.Payloads"
    end
    add_message "temporal.api.update.v1.Request" do
      optional :meta, :message, 1, "temporal.api.update.v1.Meta"
      optional :input, :message, 2, "temporal.api.update.v1.Input"
    end
    add_message "temporal.api.update.v1.Rejection" do
      optional :rejected_request_message_id, :string, 1
      optional :rejected_request_sequencing_event_id, :int64, 2
      optional :rejected_request, :message, 3, "temporal.api.update.v1.Request"
      optional :failure, :message, 4, "temporal.api.failure.v1.Failure"
    end
    add_message "temporal.api.update.v1.Acceptance" do
      optional :accepted_request_message_id, :string, 1
      optional :accepted_request_sequencing_event_id, :int64, 2
      optional :accepted_request, :message, 3, "temporal.api.update.v1.Request"
    end
    add_message "temporal.api.update.v1.Response" do
      optional :meta, :message, 1, "temporal.api.update.v1.Meta"
      optional :outcome, :message, 2, "temporal.api.update.v1.Outcome"
    end
  end
end

module Temporalio
  module Api
    module Update
      module V1
        WaitPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.update.v1.WaitPolicy").msgclass
        UpdateRef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.update.v1.UpdateRef").msgclass
        Outcome = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.update.v1.Outcome").msgclass
        Meta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.update.v1.Meta").msgclass
        Input = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.update.v1.Input").msgclass
        Request = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.update.v1.Request").msgclass
        Rejection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.update.v1.Rejection").msgclass
        Acceptance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.update.v1.Acceptance").msgclass
        Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.update.v1.Response").msgclass
      end
    end
  end
end
