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

require 'google/protobuf'

require 'temporal/api/enums/v1/query_pb'
require 'temporal/api/enums/v1/workflow_pb'
require 'temporal/api/common/v1/message_pb'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("temporal/api/query/v1/message.proto", :syntax => :proto3) do
    add_message "temporal.api.query.v1.WorkflowQuery" do
      optional :query_type, :string, 1
      optional :query_args, :message, 2, "temporal.api.common.v1.Payloads"
      optional :header, :message, 3, "temporal.api.common.v1.Header"
    end
    add_message "temporal.api.query.v1.WorkflowQueryResult" do
      optional :result_type, :enum, 1, "temporal.api.enums.v1.QueryResultType"
      optional :answer, :message, 2, "temporal.api.common.v1.Payloads"
      optional :error_message, :string, 3
    end
    add_message "temporal.api.query.v1.QueryRejected" do
      optional :status, :enum, 1, "temporal.api.enums.v1.WorkflowExecutionStatus"
    end
  end
end

module Temporalio
  module Api
    module Query
      module V1
        WorkflowQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.query.v1.WorkflowQuery").msgclass
        WorkflowQueryResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.query.v1.WorkflowQueryResult").msgclass
        QueryRejected = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.query.v1.QueryRejected").msgclass
      end
    end
  end
end
