# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v19/resources/invoice.proto

require 'google/protobuf'

require 'google/ads/google_ads/v19/common/dates_pb'
require 'google/ads/google_ads/v19/enums/invoice_type_pb'
require 'google/ads/google_ads/v19/enums/month_of_year_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'


descriptor_data = "\n0google/ads/googleads/v19/resources/invoice.proto\x12\"google.ads.googleads.v19.resources\x1a+google/ads/googleads/v19/common/dates.proto\x1a\x31google/ads/googleads/v19/enums/invoice_type.proto\x1a\x32google/ads/googleads/v19/enums/month_of_year.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa5\'\n\x07Invoice\x12?\n\rresource_name\x18\x01 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/Invoice\x12\x14\n\x02id\x18\x19 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12N\n\x04type\x18\x03 \x01(\x0e\x32;.google.ads.googleads.v19.enums.InvoiceTypeEnum.InvoiceTypeB\x03\xe0\x41\x03\x12\x1f\n\rbilling_setup\x18\x1a \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12%\n\x13payments_account_id\x18\x1b \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12%\n\x13payments_profile_id\x18\x1c \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1c\n\nissue_date\x18\x1d \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1a\n\x08\x64ue_date\x18\x1e \x01(\tB\x03\xe0\x41\x03H\x05\x88\x01\x01\x12K\n\x12service_date_range\x18\t \x01(\x0b\x32*.google.ads.googleads.v19.common.DateRangeB\x03\xe0\x41\x03\x12\x1f\n\rcurrency_code\x18\x1f \x01(\tB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12/\n\"adjustments_subtotal_amount_micros\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03\x12*\n\x1d\x61\x64justments_tax_amount_micros\x18\x14 \x01(\x03\x42\x03\xe0\x41\x03\x12,\n\x1f\x61\x64justments_total_amount_micros\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\'regulatory_costs_subtotal_amount_micros\x18\x16 \x01(\x03\x42\x03\xe0\x41\x03\x12/\n\"regulatory_costs_tax_amount_micros\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03\x12\x31\n$regulatory_costs_total_amount_micros\x18\x18 \x01(\x03\x42\x03\xe0\x41\x03\x12\x36\n$export_charge_subtotal_amount_micros\x18( \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12\x31\n\x1f\x65xport_charge_tax_amount_micros\x18) \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12\x33\n!export_charge_total_amount_micros\x18* \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12(\n\x16subtotal_amount_micros\x18! \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12#\n\x11tax_amount_micros\x18\" \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12%\n\x13total_amount_micros\x18# \x01(\x03\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12#\n\x11\x63orrected_invoice\x18$ \x01(\tB\x03\xe0\x41\x03H\r\x88\x01\x01\x12\x1e\n\x11replaced_invoices\x18% \x03(\tB\x03\xe0\x41\x03\x12\x19\n\x07pdf_url\x18& \x01(\tB\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12g\n\x18\x61\x63\x63ount_budget_summaries\x18\x12 \x03(\x0b\x32@.google.ads.googleads.v19.resources.Invoice.AccountBudgetSummaryB\x03\xe0\x41\x03\x12Z\n\x11\x61\x63\x63ount_summaries\x18\' \x03(\x0b\x32:.google.ads.googleads.v19.resources.Invoice.AccountSummaryB\x03\xe0\x41\x03\x1a\xe1\r\n\x0e\x41\x63\x63ountSummary\x12\x1a\n\x08\x63ustomer\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12;\n)billing_correction_subtotal_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x36\n$billing_correction_tax_amount_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x38\n&billing_correction_total_amount_micros\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12:\n(coupon_adjustment_subtotal_amount_micros\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x35\n#coupon_adjustment_tax_amount_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\x37\n%coupon_adjustment_total_amount_micros\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12\x41\n/excess_credit_adjustment_subtotal_amount_micros\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12<\n*excess_credit_adjustment_tax_amount_micros\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12>\n,excess_credit_adjustment_total_amount_micros\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12\x39\n\'regulatory_costs_subtotal_amount_micros\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x34\n\"regulatory_costs_tax_amount_micros\x18\x0c \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12\x36\n$regulatory_costs_total_amount_micros\x18\r \x01(\x03\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12\x36\n$export_charge_subtotal_amount_micros\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03H\r\x88\x01\x01\x12\x31\n\x1f\x65xport_charge_tax_amount_micros\x18\x12 \x01(\x03\x42\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12\x33\n!export_charge_total_amount_micros\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\x0f\x88\x01\x01\x12(\n\x16subtotal_amount_micros\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03H\x10\x88\x01\x01\x12#\n\x11tax_amount_micros\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x11\x88\x01\x01\x12%\n\x13total_amount_micros\x18\x10 \x01(\x03\x42\x03\xe0\x41\x03H\x12\x88\x01\x01\x42\x0b\n\t_customerB,\n*_billing_correction_subtotal_amount_microsB\'\n%_billing_correction_tax_amount_microsB)\n\'_billing_correction_total_amount_microsB+\n)_coupon_adjustment_subtotal_amount_microsB&\n$_coupon_adjustment_tax_amount_microsB(\n&_coupon_adjustment_total_amount_microsB2\n0_excess_credit_adjustment_subtotal_amount_microsB-\n+_excess_credit_adjustment_tax_amount_microsB/\n-_excess_credit_adjustment_total_amount_microsB*\n(_regulatory_costs_subtotal_amount_microsB%\n#_regulatory_costs_tax_amount_microsB\'\n%_regulatory_costs_total_amount_microsB\'\n%_export_charge_subtotal_amount_microsB\"\n _export_charge_tax_amount_microsB$\n\"_export_charge_total_amount_microsB\x19\n\x17_subtotal_amount_microsB\x14\n\x12_tax_amount_microsB\x16\n\x14_total_amount_micros\x1a\xe8\x07\n\x14\x41\x63\x63ountBudgetSummary\x12\x1a\n\x08\x63ustomer\x18\n \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12+\n\x19\x63ustomer_descriptive_name\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12 \n\x0e\x61\x63\x63ount_budget\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12%\n\x13\x61\x63\x63ount_budget_name\x18\r \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\'\n\x15purchase_order_number\x18\x0e \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12(\n\x16subtotal_amount_micros\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12#\n\x11tax_amount_micros\x18\x10 \x01(\x03\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12%\n\x13total_amount_micros\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12U\n\x1c\x62illable_activity_date_range\x18\t \x01(\x0b\x32*.google.ads.googleads.v19.common.DateRangeB\x03\xe0\x41\x03\x12&\n\x14served_amount_micros\x18\x12 \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12&\n\x14\x62illed_amount_micros\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12,\n\x1aoverdelivery_amount_micros\x18\x14 \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x30\n\x1einvalid_activity_amount_micros\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12k\n\x1ainvalid_activity_summaries\x18\x16 \x03(\x0b\x32\x42.google.ads.googleads.v19.resources.Invoice.InvalidActivitySummaryB\x03\xe0\x41\x03\x42\x0b\n\t_customerB\x1c\n\x1a_customer_descriptive_nameB\x11\n\x0f_account_budgetB\x16\n\x14_account_budget_nameB\x18\n\x16_purchase_order_numberB\x19\n\x17_subtotal_amount_microsB\x14\n\x12_tax_amount_microsB\x16\n\x14_total_amount_microsB\x17\n\x15_served_amount_microsB\x17\n\x15_billed_amount_microsB\x1d\n\x1b_overdelivery_amount_microsB!\n\x1f_invalid_activity_amount_micros\x1a\x81\x04\n\x16InvalidActivitySummary\x12h\n\x19original_month_of_service\x18\x01 \x01(\x0e\x32;.google.ads.googleads.v19.enums.MonthOfYearEnum.MonthOfYearB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12*\n\x18original_year_of_service\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12%\n\x13original_invoice_id\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12.\n\x1coriginal_account_budget_name\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x30\n\x1eoriginal_purchase_order_number\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1f\n\ramount_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x42\x1c\n\x1a_original_month_of_serviceB\x1b\n\x19_original_year_of_serviceB\x16\n\x14_original_invoice_idB\x1f\n\x1d_original_account_budget_nameB!\n\x1f_original_purchase_order_numberB\x10\n\x0e_amount_micros:T\xea\x41Q\n googleads.googleapis.com/Invoice\x12-customers/{customer_id}/invoices/{invoice_id}B\x05\n\x03_idB\x10\n\x0e_billing_setupB\x16\n\x14_payments_account_idB\x16\n\x14_payments_profile_idB\r\n\x0b_issue_dateB\x0b\n\t_due_dateB\x10\n\x0e_currency_codeB\'\n%_export_charge_subtotal_amount_microsB\"\n _export_charge_tax_amount_microsB$\n\"_export_charge_total_amount_microsB\x19\n\x17_subtotal_amount_microsB\x14\n\x12_tax_amount_microsB\x16\n\x14_total_amount_microsB\x14\n\x12_corrected_invoiceB\n\n\x08_pdf_urlB\xfe\x01\n&com.google.ads.googleads.v19.resourcesB\x0cInvoiceProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v19/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V19.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V19\\Resources\xea\x02&Google::Ads::GoogleAds::V19::Resourcesb\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.ads.googleads.v19.common.DateRange", "google/ads/googleads/v19/common/dates.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Google
  module Ads
    module GoogleAds
      module V19
        module Resources
          Invoice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v19.resources.Invoice").msgclass
          Invoice::AccountSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v19.resources.Invoice.AccountSummary").msgclass
          Invoice::AccountBudgetSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v19.resources.Invoice.AccountBudgetSummary").msgclass
          Invoice::InvalidActivitySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v19.resources.Invoice.InvalidActivitySummary").msgclass
        end
      end
    end
  end
end
