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

require 'google/protobuf'

require 'google/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "code.justin.tv.commerce.prometheus.HealthCheckReq" do
  end
  add_message "code.justin.tv.commerce.prometheus.HealthCheckResp" do
    optional :response, :string, 1
  end
  add_message "code.justin.tv.commerce.prometheus.ElasticsearchPingReq" do
  end
  add_message "code.justin.tv.commerce.prometheus.ElasticsearchPingResp" do
    optional :response, :string, 1
  end
  add_message "code.justin.tv.commerce.prometheus.PublishEventReq" do
    optional :event_type, :string, 1
    optional :event_sub_type, :enum, 2, "code.justin.tv.commerce.prometheus.EventSubType"
    optional :event_id, :string, 3
    optional :event_time, :message, 4, "google.protobuf.Timestamp"
    optional :user_id, :string, 5
    optional :channel_id, :string, 6
    optional :gift_recipient_id, :string, 7
    optional :bits_amount, :int64, 8
    optional :currency_amount, :float, 9
    optional :currency_code, :string, 10
    optional :order_id, :string, 11
    optional :payment_service, :string, 12
    optional :payment_gateway, :string, 13
    optional :purchase_order_state, :string, 14
    optional :message, :string, 15
    optional :admin_user, :string, 16
    optional :admin_message, :string, 17
    optional :extension_id, :string, 18
    optional :extension_sku, :string, 19
    optional :extension_creator_id, :string, 20
    optional :extension_creator_login, :string, 21
    optional :anonymous_state, :string, 22
    optional :amount, :int64, 23
    optional :bits_balance, :int64, 24
    optional :country_code, :string, 25
    optional :city, :string, 26
    optional :postal_code, :string, 27
    optional :poll_id, :string, 28
    optional :poll_choice_id, :string, 29
    optional :hold_id, :string, 30
  end
  add_message "code.justin.tv.commerce.prometheus.PublishEventResp" do
    optional :response, :string, 1
  end
  add_message "code.justin.tv.commerce.prometheus.PublishEventsReq" do
    repeated :events, :message, 1, "code.justin.tv.commerce.prometheus.PublishEventReq"
  end
  add_message "code.justin.tv.commerce.prometheus.PublishEventsResp" do
    optional :response, :string, 1
  end
  add_message "code.justin.tv.commerce.prometheus.EventSubTypes" do
    repeated :event_sub_types, :enum, 1, "code.justin.tv.commerce.prometheus.EventSubType"
  end
  add_message "code.justin.tv.commerce.prometheus.SearchReq" do
    optional :event_type, :string, 1
    optional :event_id, :string, 3
    optional :start_event_time, :message, 4, "google.protobuf.Timestamp"
    optional :end_event_time, :message, 5, "google.protobuf.Timestamp"
    optional :user_id, :string, 6
    optional :user_login, :string, 7
    optional :channel_id, :string, 8
    optional :channel_login, :string, 9
    optional :gift_recipient_id, :string, 10
    optional :gift_recipient_login, :string, 11
    optional :lower_bits_amount, :int64, 12
    optional :upper_bits_amount, :int64, 13
    optional :lower_currency_amount, :float, 14
    optional :upper_currency_amount, :float, 15
    optional :currency_code, :string, 16
    optional :order_id, :string, 17
    optional :purchase_order_state, :string, 18
    optional :payment_service, :string, 19
    optional :payment_gateway, :string, 20
    optional :message, :string, 21
    optional :admin_user, :string, 22
    optional :admin_message, :string, 23
    optional :extension_id, :string, 24
    optional :extension_sku, :string, 25
    optional :extension_creator_id, :string, 26
    optional :extension_creator_login, :string, 27
    optional :sort_by, :enum, 28, "code.justin.tv.commerce.prometheus.SortBy"
    optional :sort_direction, :enum, 29, "code.justin.tv.commerce.prometheus.SortDirection"
    optional :limit, :int64, 30
    optional :offset, :int64, 31
    optional :anonymous_state, :string, 32
    optional :lower_amount, :int64, 34
    optional :upper_amount, :int64, 35
    optional :lower_bits_balance, :int64, 36
    optional :upper_bits_balance, :int64, 37
    optional :country_code, :string, 38
    optional :city, :string, 39
    optional :postal_code, :string, 40
    optional :poll_id, :string, 41
    optional :poll_choice_id, :string, 42
    optional :hold_id, :string, 44
    oneof :sub_type_filter do
      optional :event_sub_type, :enum, 2, "code.justin.tv.commerce.prometheus.EventSubType"
      optional :event_sub_types_wrapper, :message, 43, "code.justin.tv.commerce.prometheus.EventSubTypes"
    end
  end
  add_message "code.justin.tv.commerce.prometheus.Event" do
    optional :event_type, :string, 1
    optional :event_sub_type, :enum, 2, "code.justin.tv.commerce.prometheus.EventSubType"
    optional :event_id, :string, 3
    optional :event_time, :message, 4, "google.protobuf.Timestamp"
    optional :user_id, :string, 5
    optional :user_login, :string, 6
    optional :channel_id, :string, 7
    optional :channel_login, :string, 8
    optional :gift_recipient_id, :string, 9
    optional :gift_recipient_login, :string, 10
    optional :bits_amount, :int64, 11
    optional :currency_amount, :float, 12
    optional :currency_code, :string, 13
    optional :order_id, :string, 14
    optional :purchase_order_state, :string, 15
    optional :payment_service, :string, 16
    optional :payment_gateway, :string, 17
    optional :message, :string, 18
    optional :admin_user, :string, 19
    optional :admin_message, :string, 20
    optional :extension_id, :string, 25
    optional :extension_sku, :string, 26
    optional :extension_creator_id, :string, 27
    optional :extension_creator_login, :string, 28
    optional :anonymous_state, :string, 29
    optional :amount, :int64, 30
    optional :bits_balance, :int64, 31
    optional :country_code, :string, 32
    optional :city, :string, 33
    optional :postal_code, :string, 34
    optional :poll_id, :string, 35
    optional :poll_choice_id, :string, 36
    optional :hold_id, :string, 37
  end
  add_message "code.justin.tv.commerce.prometheus.SearchResp" do
    repeated :events, :message, 1, "code.justin.tv.commerce.prometheus.Event"
    optional :total, :int64, 2
  end
  add_message "code.justin.tv.commerce.prometheus.GetEventSubtypesReq" do
  end
  add_message "code.justin.tv.commerce.prometheus.GetEventSubtypesResp" do
    repeated :eventSubtypes, :enum, 1, "code.justin.tv.commerce.prometheus.EventSubType"
  end
  add_message "code.justin.tv.commerce.prometheus.GenerateSearchReportReq" do
    optional :searchReq, :message, 1, "code.justin.tv.commerce.prometheus.SearchReq"
  end
  add_message "code.justin.tv.commerce.prometheus.GenerateSearchReportResp" do
    optional :reportS3URL, :string, 1
    optional :total, :int64, 2
  end
  add_enum "code.justin.tv.commerce.prometheus.SortBy" do
    value :EVENT_TIME, 0
    value :EVENT_TYPE, 1
    value :EVENT_ID, 2
    value :ORDER_ID, 3
    value :USER_ID, 4
    value :USER_LOGIN, 5
    value :CHANNEL_ID, 6
    value :CHANNEL_LOGIN, 7
    value :GIFT_RECIPIENT_ID, 8
    value :GIFT_RECIPIENT_LOGIN, 9
    value :BITS_AMOUNT, 10
    value :CURRENCY_AMOUNT, 11
    value :CURRENCY_CODE, 12
    value :MESSAGE, 13
    value :PURCHASE_ORDER_STATE, 14
    value :PAYMENT_SERVICE, 15
    value :PAYMENT_GATEWAY, 16
    value :EXTENSION_ID, 17
    value :EXTENSION_SKU, 18
    value :EXTENSION_CREATOR_ID, 19
    value :EXTENSION_CREATOR_LOGIN, 20
    value :AMOUNT, 21
    value :BITS_BALANCE, 22
    value :COUNTRY_CODE, 23
    value :CITY, 24
    value :POSTAL_CODE, 25
    value :POLL_ID, 26
    value :POLL_CHOICE_ID, 27
    value :HOLD_ID, 28
  end
  add_enum "code.justin.tv.commerce.prometheus.SortDirection" do
    value :ASCENDING, 0
    value :DESCENDING, 1
  end
  add_enum "code.justin.tv.commerce.prometheus.EventSubType" do
    value :ALL, 0
    value :GiveBitsToBroadcaster, 1
    value :UseBitsOnExtension, 2
    value :AddBitsToCustomerAccountAds, 3
    value :AddBitsToCustomerAccountPurchase, 4
    value :AddBitsToCustomerAccountAdmin, 5
    value :RemoveBitsFromCustomerAccountAdmin, 6
    value :CustomerBitsRevoke, 7
    value :CustomerBitsChargeback, 8
    value :AddToken, 9
    value :UseToken, 10
    value :AddTokenAdmin, 11
    value :RemoveTokenAdmin, 12
    value :AcquireBitsBadgeNotification, 13
    value :DismissBitsBadgeNotification, 14
    value :ShareBitsBadgeNotification, 15
    value :UseBitsOnPoll, 16
    value :CreateHold, 17
    value :ReleaseHold, 18
  end
end

module Code
  module Justin
    module Tv
      module Commerce
        module Prometheus
          HealthCheckReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.HealthCheckReq").msgclass
          HealthCheckResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.HealthCheckResp").msgclass
          ElasticsearchPingReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.ElasticsearchPingReq").msgclass
          ElasticsearchPingResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.ElasticsearchPingResp").msgclass
          PublishEventReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.PublishEventReq").msgclass
          PublishEventResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.PublishEventResp").msgclass
          PublishEventsReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.PublishEventsReq").msgclass
          PublishEventsResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.PublishEventsResp").msgclass
          EventSubTypes = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.EventSubTypes").msgclass
          SearchReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.SearchReq").msgclass
          Event = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.Event").msgclass
          SearchResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.SearchResp").msgclass
          GetEventSubtypesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.GetEventSubtypesReq").msgclass
          GetEventSubtypesResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.GetEventSubtypesResp").msgclass
          GenerateSearchReportReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.GenerateSearchReportReq").msgclass
          GenerateSearchReportResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.GenerateSearchReportResp").msgclass
          SortBy = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.SortBy").enummodule
          SortDirection = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.SortDirection").enummodule
          EventSubType = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.commerce.prometheus.EventSubType").enummodule
        end
      end
    end
  end
end
