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

require 'google/protobuf'

require 'google/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "code.justin.tv.commerce.petozi.HealthCheckReq" do
  end
  add_message "code.justin.tv.commerce.petozi.HealthCheckResp" do
  end
  add_message "code.justin.tv.commerce.petozi.GetBitsTypeReq" do
    optional :id, :string, 1
  end
  add_message "code.justin.tv.commerce.petozi.GetBitsTypeResp" do
    optional :bits_type, :message, 1, "code.justin.tv.commerce.petozi.BitsType"
  end
  add_message "code.justin.tv.commerce.petozi.GetBitsTypesReq" do
  end
  add_message "code.justin.tv.commerce.petozi.GetBitsTypesResp" do
    repeated :bits_types, :message, 1, "code.justin.tv.commerce.petozi.BitsType"
  end
  add_message "code.justin.tv.commerce.petozi.PutBitsTypeReq" do
    optional :bits_type, :message, 1, "code.justin.tv.commerce.petozi.BitsType"
  end
  add_message "code.justin.tv.commerce.petozi.PutBitsTypeResp" do
  end
  add_message "code.justin.tv.commerce.petozi.BitsType" do
    optional :id, :string, 1
    optional :display_name, :string, 2
    optional :is_paid, :bool, 3
    optional :is_promotional, :bool, 4
    optional :cost_per_bits_usc, :double, 5
    optional :entitlement_source_type, :enum, 6, "code.justin.tv.commerce.petozi.EntitlementSourceType"
    optional :spend_order, :uint32, 7
    optional :business_attribution, :enum, 8, "code.justin.tv.commerce.petozi.BusinessAttribution"
  end
  add_message "code.justin.tv.commerce.petozi.PutBitsProductReq" do
    optional :new_bits_product, :message, 1, "code.justin.tv.commerce.petozi.BitsProduct"
  end
  add_message "code.justin.tv.commerce.petozi.PutBitsProductResp" do
  end
  add_message "code.justin.tv.commerce.petozi.GetBitsProductReq" do
    optional :id, :string, 1
    optional :platform, :enum, 2, "code.justin.tv.commerce.petozi.Platform"
  end
  add_message "code.justin.tv.commerce.petozi.GetBitsProductResp" do
    optional :bits_product, :message, 1, "code.justin.tv.commerce.petozi.BitsProduct"
  end
  add_message "code.justin.tv.commerce.petozi.GetBitsProductsReq" do
    optional :use_in_memory_cache, :bool, 1
  end
  add_message "code.justin.tv.commerce.petozi.GetBitsProductsResp" do
    repeated :bits_products, :message, 1, "code.justin.tv.commerce.petozi.BitsProduct"
  end
  add_message "code.justin.tv.commerce.petozi.ResetCachesReq" do
  end
  add_message "code.justin.tv.commerce.petozi.ResetCachesResp" do
  end
  add_message "code.justin.tv.commerce.petozi.BitsProduct" do
    optional :id, :string, 1
    optional :display_name, :string, 2
    optional :platform, :enum, 3, "code.justin.tv.commerce.petozi.Platform"
    optional :bits_type_id, :string, 4
    optional :quantity, :uint64, 5
    optional :max_purchasable_quantity, :uint32, 6
    optional :promo, :message, 7, "code.justin.tv.commerce.petozi.Promo"
    optional :show_when_logged_out, :bool, 8
    optional :pricing_id, :string, 9
    optional :offer_id, :string, 10
  end
  add_message "code.justin.tv.commerce.petozi.Promo" do
    optional :id, :string, 1
    optional :type, :enum, 2, "code.justin.tv.commerce.petozi.PromoType"
    optional :start, :message, 3, "google.protobuf.Timestamp"
    optional :end, :message, 4, "google.protobuf.Timestamp"
    repeated :whitelisted_ids, :string, 5
  end
  add_enum "code.justin.tv.commerce.petozi.Platform" do
    value :NONE, 0
    value :AMAZON, 1
    value :PAYPAL, 2
    value :IOS, 3
    value :ANDROID, 4
    value :XSOLLA, 5
    value :PHANTO, 6
    value :STRIPE, 7
    value :VANTIV, 8
    value :WALLET, 9
    value :UNKNOWN, 10
  end
  add_enum "code.justin.tv.commerce.petozi.EntitlementSourceType" do
    value :WEB_PURCHASE, 0
    value :IN_APP_PURCHASE, 1
    value :DIRECT_ENTITLEMENT, 2
    value :REDEEMED_CODE, 3
  end
  add_enum "code.justin.tv.commerce.petozi.BusinessAttribution" do
    value :PAYMENT_TRANSACTION, 0
    value :WATEB, 1
    value :CUSTOMER_SERVICE_GOODWILL, 2
    value :TESTING, 4
    value :EXTENSIONS, 5
    value :SECOND_PARTY_AMAZON, 6
    value :FIRST_PARTY_MULTIPURPOSE, 7
    value :FIRST_PARTY_MARKETING, 8
  end
  add_enum "code.justin.tv.commerce.petozi.PromoType" do
    value :SINGLE_PURCHASE, 0
    value :FIRST_TIME_PURCHASE, 1
    value :PRIME_SINGLE_PURCHASE, 2
    value :STAFF_ONLY_PROMO, 3
  end
end

module Code
  module Justin
    module Tv
      module Commerce
        module Petozi
          HealthCheckReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.HealthCheckReq").msgclass
          HealthCheckResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.HealthCheckResp").msgclass
          GetBitsTypeReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.GetBitsTypeReq").msgclass
          GetBitsTypeResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.GetBitsTypeResp").msgclass
          GetBitsTypesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.GetBitsTypesReq").msgclass
          GetBitsTypesResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.GetBitsTypesResp").msgclass
          PutBitsTypeReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.PutBitsTypeReq").msgclass
          PutBitsTypeResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.PutBitsTypeResp").msgclass
          BitsType = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.BitsType").msgclass
          PutBitsProductReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.PutBitsProductReq").msgclass
          PutBitsProductResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.PutBitsProductResp").msgclass
          GetBitsProductReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.GetBitsProductReq").msgclass
          GetBitsProductResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.GetBitsProductResp").msgclass
          GetBitsProductsReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.GetBitsProductsReq").msgclass
          GetBitsProductsResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.GetBitsProductsResp").msgclass
          ResetCachesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.ResetCachesReq").msgclass
          ResetCachesResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.ResetCachesResp").msgclass
          BitsProduct = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.BitsProduct").msgclass
          Promo = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.Promo").msgclass
          Platform = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.Platform").enummodule
          EntitlementSourceType = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.EntitlementSourceType").enummodule
          BusinessAttribution = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.BusinessAttribution").enummodule
          PromoType = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.petozi.PromoType").enummodule
        end
      end
    end
  end
end
