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

require 'google/protobuf'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "receiver.PublishNotificationRequest" do
    optional :sender_id, :string, 1
    optional :notification_type, :string, 4
    map :metadata, :string, :string, 5
    optional :drop_notification_before_delivery, :bool, 7
    optional :is_test_send, :bool, 9
    oneof :recipient do
      optional :recipient_id, :string, 2
      optional :recipient_email, :string, 3
      optional :recipient_device_id, :string, 8
      optional :recipient_email_address_with_locale, :message, 10, "receiver.RecipientEmailAddressWithLocale"
      optional :recipient_phone_number_with_locale, :message, 11, "receiver.RecipientPhoneNumberWithLocale"
    end
  end
  add_message "receiver.PublishNotificationResponse" do
    optional :notification_trace_id, :string, 1
  end
  add_message "receiver.RecipientEmailAddressWithLocale" do
    optional :email, :string, 1
    optional :locale, :string, 2
  end
  add_message "receiver.RecipientPhoneNumberWithLocale" do
    optional :phone_number, :string, 1
    optional :locale, :string, 2
  end
end

module Receiver
  PublishNotificationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("receiver.PublishNotificationRequest").msgclass
  PublishNotificationResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("receiver.PublishNotificationResponse").msgclass
  RecipientEmailAddressWithLocale = Google::Protobuf::DescriptorPool.generated_pool.lookup("receiver.RecipientEmailAddressWithLocale").msgclass
  RecipientPhoneNumberWithLocale = Google::Protobuf::DescriptorPool.generated_pool.lookup("receiver.RecipientPhoneNumberWithLocale").msgclass
end
