# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: twirp/code.justin.tv.commerce.phanto/service.proto

require 'google/protobuf'

require 'google/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "code.justin.tv.commerce.phanto.HealthCheckReq" do
  end
  add_message "code.justin.tv.commerce.phanto.HealthCheckResp" do
  end
  add_message "code.justin.tv.commerce.phanto.GenerateKeyBatchReq" do
    optional :batch_id, :string, 1
    optional :pool_id, :string, 2
    optional :number_of_keys, :int64, 3
  end
  add_message "code.justin.tv.commerce.phanto.GenerateKeyBatchResp" do
    optional :batch_id, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyBatchStatusReq" do
    optional :batch_id, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyBatchStatusResp" do
    optional :status, :string, 1
    optional :workflow_status, :string, 2
    optional :progress, :double, 3
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyBatchDownloadInfoReq" do
    optional :batch_id, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyBatchDownloadInfoResp" do
    optional :download_url, :string, 1
    optional :decryption_key, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyStatusReq" do
    optional :key, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyStatusResp" do
    optional :product_type, :string, 1
    optional :sku, :string, 2
    optional :description, :string, 3
    optional :batch_id, :string, 4
    optional :pool_id, :string, 5
    optional :status, :string, 6
  end
  add_message "code.justin.tv.commerce.phanto.RedeemKeyReq" do
    optional :key, :string, 1
    optional :user_id, :string, 2
    optional :client_ip, :string, 3
  end
  add_message "code.justin.tv.commerce.phanto.RedeemKeyResp" do
  end
  add_message "code.justin.tv.commerce.phanto.InvalidateKeysReq" do
    repeated :keys, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.InvalidateKeysResp" do
  end
  add_message "code.justin.tv.commerce.phanto.InvalidateKeyBatchReq" do
    optional :batch_id, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.InvalidateKeyBatchResp" do
  end
  add_message "code.justin.tv.commerce.phanto.InvalidateKeyPoolReq" do
    optional :pool_id, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.InvalidateKeyPoolResp" do
  end
  add_message "code.justin.tv.commerce.phanto.CreateProductTypeReq" do
    optional :product_type, :string, 1
    optional :sns_topic, :string, 2
    optional :description, :string, 3
  end
  add_message "code.justin.tv.commerce.phanto.CreateProductTypeResp" do
  end
  add_message "code.justin.tv.commerce.phanto.CreateProductReq" do
    optional :product_type, :string, 1
    optional :sku, :string, 2
    optional :description, :string, 3
  end
  add_message "code.justin.tv.commerce.phanto.CreateProductResp" do
  end
  add_message "code.justin.tv.commerce.phanto.CreateKeyPoolReq" do
    optional :pool_id, :string, 1
    optional :product_type, :string, 2
    optional :sku, :string, 3
    optional :description, :string, 4
    optional :handler, :string, 5
    optional :start_date, :message, 6, "google.protobuf.Timestamp"
    optional :end_date, :message, 7, "google.protobuf.Timestamp"
  end
  add_message "code.justin.tv.commerce.phanto.CreateKeyPoolResp" do
  end
  add_message "code.justin.tv.commerce.phanto.KeyPool" do
    optional :product_type, :string, 1
    optional :sku, :string, 2
    optional :description, :string, 3
    optional :pool_id, :string, 4
    optional :status, :string, 5
    optional :handler, :string, 6
    optional :start_date, :message, 7, "google.protobuf.Timestamp"
    optional :end_date, :message, 8, "google.protobuf.Timestamp"
  end
  add_message "code.justin.tv.commerce.phanto.KeyBatch" do
    optional :pool_id, :string, 1
    optional :batch_id, :string, 2
    optional :number_of_keys, :int64, 3
    optional :status, :string, 4
    optional :workflow_status, :string, 5
  end
  add_message "code.justin.tv.commerce.phanto.GetAllKeyPoolsReq" do
    optional :cursor, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.GetAllKeyPoolsResp" do
    repeated :key_pools, :message, 1, "code.justin.tv.commerce.phanto.KeyPool"
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyBatchesReq" do
    optional :pool_id, :string, 1
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyBatchesResp" do
    repeated :key_batches, :message, 1, "code.justin.tv.commerce.phanto.KeyBatch"
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyPoolsByHandlerReq" do
    optional :handler, :string, 1
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyPoolsByHandlerResp" do
    repeated :key_pools, :message, 1, "code.justin.tv.commerce.phanto.KeyPool"
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.ProductType" do
    optional :product_type, :string, 1
    optional :sns_topic, :string, 2
    optional :description, :string, 3
  end
  add_message "code.justin.tv.commerce.phanto.GetAllProductTypesReq" do
    optional :cursor, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.GetAllProductTypesResp" do
    repeated :product_types, :message, 1, "code.justin.tv.commerce.phanto.ProductType"
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.Product" do
    optional :product_type, :string, 1
    optional :sku, :string, 2
    optional :description, :string, 3
  end
  add_message "code.justin.tv.commerce.phanto.GetProductsReq" do
    optional :product_type, :string, 1
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.GetProductsResp" do
    repeated :products, :message, 1, "code.justin.tv.commerce.phanto.Product"
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyPoolReportsReq" do
    optional :pool_id, :string, 1
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyPoolReportsResp" do
    repeated :key_pool_reports, :message, 1, "code.justin.tv.commerce.phanto.KeyPoolReport"
    optional :cursor, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.KeyPoolReport" do
    optional :pool_id, :string, 1
    optional :report_id, :string, 2
    optional :requested_at, :message, 3, "google.protobuf.Timestamp"
    optional :requested_by, :string, 4
    optional :status, :string, 5
  end
  add_message "code.justin.tv.commerce.phanto.GenerateKeyPoolReportReq" do
    optional :pool_id, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.GenerateKeyPoolReportResp" do
    optional :pool_id, :string, 1
    optional :report_id, :string, 2
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyPoolReportDownloadInfoReq" do
    optional :report_id, :string, 1
  end
  add_message "code.justin.tv.commerce.phanto.GetKeyPoolReportDownloadInfoResp" do
    optional :download_url, :string, 1
    optional :decryption_key, :string, 2
  end
end

module Code
  module Justin
    module Tv
      module Commerce
        module Phanto
          HealthCheckReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.HealthCheckReq").msgclass
          HealthCheckResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.HealthCheckResp").msgclass
          GenerateKeyBatchReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GenerateKeyBatchReq").msgclass
          GenerateKeyBatchResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GenerateKeyBatchResp").msgclass
          GetKeyBatchStatusReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyBatchStatusReq").msgclass
          GetKeyBatchStatusResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyBatchStatusResp").msgclass
          GetKeyBatchDownloadInfoReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyBatchDownloadInfoReq").msgclass
          GetKeyBatchDownloadInfoResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyBatchDownloadInfoResp").msgclass
          GetKeyStatusReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyStatusReq").msgclass
          GetKeyStatusResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyStatusResp").msgclass
          RedeemKeyReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.RedeemKeyReq").msgclass
          RedeemKeyResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.RedeemKeyResp").msgclass
          InvalidateKeysReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.InvalidateKeysReq").msgclass
          InvalidateKeysResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.InvalidateKeysResp").msgclass
          InvalidateKeyBatchReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.InvalidateKeyBatchReq").msgclass
          InvalidateKeyBatchResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.InvalidateKeyBatchResp").msgclass
          InvalidateKeyPoolReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.InvalidateKeyPoolReq").msgclass
          InvalidateKeyPoolResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.InvalidateKeyPoolResp").msgclass
          CreateProductTypeReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.CreateProductTypeReq").msgclass
          CreateProductTypeResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.CreateProductTypeResp").msgclass
          CreateProductReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.CreateProductReq").msgclass
          CreateProductResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.CreateProductResp").msgclass
          CreateKeyPoolReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.CreateKeyPoolReq").msgclass
          CreateKeyPoolResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.CreateKeyPoolResp").msgclass
          KeyPool = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.KeyPool").msgclass
          KeyBatch = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.KeyBatch").msgclass
          GetAllKeyPoolsReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetAllKeyPoolsReq").msgclass
          GetAllKeyPoolsResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetAllKeyPoolsResp").msgclass
          GetKeyBatchesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyBatchesReq").msgclass
          GetKeyBatchesResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyBatchesResp").msgclass
          GetKeyPoolsByHandlerReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyPoolsByHandlerReq").msgclass
          GetKeyPoolsByHandlerResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyPoolsByHandlerResp").msgclass
          ProductType = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.ProductType").msgclass
          GetAllProductTypesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetAllProductTypesReq").msgclass
          GetAllProductTypesResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetAllProductTypesResp").msgclass
          Product = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.Product").msgclass
          GetProductsReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetProductsReq").msgclass
          GetProductsResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetProductsResp").msgclass
          GetKeyPoolReportsReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyPoolReportsReq").msgclass
          GetKeyPoolReportsResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyPoolReportsResp").msgclass
          KeyPoolReport = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.KeyPoolReport").msgclass
          GenerateKeyPoolReportReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GenerateKeyPoolReportReq").msgclass
          GenerateKeyPoolReportResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GenerateKeyPoolReportResp").msgclass
          GetKeyPoolReportDownloadInfoReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyPoolReportDownloadInfoReq").msgclass
          GetKeyPoolReportDownloadInfoResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.phanto.GetKeyPoolReportDownloadInfoResp").msgclass
        end
      end
    end
  end
end
