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

require 'google/protobuf'

require 'google/protobuf/duration_pb'
require 'dependencies/gogoproto/gogo_pb'
require 'temporal/api/enums/v1/common_pb'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("temporal/api/common/v1/message.proto", :syntax => :proto3) do
    add_message "temporal.api.common.v1.DataBlob" do
      optional :encoding_type, :enum, 1, "temporal.api.enums.v1.EncodingType"
      optional :data, :bytes, 2
    end
    add_message "temporal.api.common.v1.Payloads" do
      repeated :payloads, :message, 1, "temporal.api.common.v1.Payload"
    end
    add_message "temporal.api.common.v1.Payload" do
      map :metadata, :string, :bytes, 1
      optional :data, :bytes, 2
    end
    add_message "temporal.api.common.v1.SearchAttributes" do
      map :indexed_fields, :string, :message, 1, "temporal.api.common.v1.Payload"
    end
    add_message "temporal.api.common.v1.Memo" do
      map :fields, :string, :message, 1, "temporal.api.common.v1.Payload"
    end
    add_message "temporal.api.common.v1.Header" do
      map :fields, :string, :message, 1, "temporal.api.common.v1.Payload"
    end
    add_message "temporal.api.common.v1.WorkflowExecution" do
      optional :workflow_id, :string, 1
      optional :run_id, :string, 2
    end
    add_message "temporal.api.common.v1.WorkflowType" do
      optional :name, :string, 1
    end
    add_message "temporal.api.common.v1.ActivityType" do
      optional :name, :string, 1
    end
    add_message "temporal.api.common.v1.RetryPolicy" do
      optional :initial_interval, :message, 1, "google.protobuf.Duration"
      optional :backoff_coefficient, :double, 2
      optional :maximum_interval, :message, 3, "google.protobuf.Duration"
      optional :maximum_attempts, :int32, 4
      repeated :non_retryable_error_types, :string, 5
    end
    add_message "temporal.api.common.v1.MeteringMetadata" do
      optional :nonfirst_local_activity_execution_attempts, :uint32, 13
    end
    add_message "temporal.api.common.v1.WorkerVersionStamp" do
      optional :build_id, :string, 1
      optional :bundle_id, :string, 2
    end
    add_message "temporal.api.common.v1.WorkerVersionCapabilities" do
      optional :build_id, :string, 1
    end
  end
end

module Temporalio
  module Api
    module Common
      module V1
        DataBlob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.DataBlob").msgclass
        Payloads = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.Payloads").msgclass
        Payload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.Payload").msgclass
        SearchAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.SearchAttributes").msgclass
        Memo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.Memo").msgclass
        Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.Header").msgclass
        WorkflowExecution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.WorkflowExecution").msgclass
        WorkflowType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.WorkflowType").msgclass
        ActivityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.ActivityType").msgclass
        RetryPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.RetryPolicy").msgclass
        MeteringMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.MeteringMetadata").msgclass
        WorkerVersionStamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.WorkerVersionStamp").msgclass
        WorkerVersionCapabilities = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.common.v1.WorkerVersionCapabilities").msgclass
      end
    end
  end
end
