# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/admanager/v1/ad_unit_messages.proto

require 'google/protobuf'

require 'google/ads/admanager/v1/ad_unit_enums_pb'
require 'google/ads/admanager/v1/applied_label_pb'
require 'google/ads/admanager/v1/environment_type_enum_pb'
require 'google/ads/admanager/v1/frequency_cap_pb'
require 'google/ads/admanager/v1/size_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/duration_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n.google/ads/admanager/v1/ad_unit_messages.proto\x12\x17google.ads.admanager.v1\x1a+google/ads/admanager/v1/ad_unit_enums.proto\x1a+google/ads/admanager/v1/applied_label.proto\x1a\x33google/ads/admanager/v1/environment_type_enum.proto\x1a+google/ads/admanager/v1/frequency_cap.proto\x1a\"google/ads/admanager/v1/size.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x0f\n\x06\x41\x64Unit\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\nad_unit_id\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03\x12G\n\x0eparent_ad_unit\x18\n \x01(\tB*\xe0\x41\x02\xe0\x41\x05\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnitH\x00\x88\x01\x01\x12?\n\x0bparent_path\x18\x0b \x03(\x0b\x32%.google.ads.admanager.v1.AdUnitParentB\x03\xe0\x41\x03\x12\x1e\n\x0c\x64isplay_name\x18\t \x01(\tB\x03\xe0\x41\x02H\x01\x88\x01\x01\x12!\n\x0c\x61\x64_unit_code\x18\x02 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x02\x88\x01\x01\x12P\n\x06status\x18\r \x01(\x0e\x32\x36.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatusB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12_\n\x15\x61pplied_target_window\x18, \x01(\x0e\x32\x36.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x64\n\x17\x65\x66\x66\x65\x63tive_target_window\x18- \x01(\x0e\x32\x36.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x06\xe0\x41\x07\xe0\x41\x03H\x05\x88\x01\x01\x12<\n\rapplied_teams\x18\x03 \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x34\n\x05teams\x18\x04 \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x1d\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x06\x88\x01\x01\x12%\n\x13\x65xplicitly_targeted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x07\x88\x01\x01\x12\x1e\n\x0chas_children\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12\x39\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03H\t\x88\x01\x01\x12?\n\rad_unit_sizes\x18\x0e \x03(\x0b\x32#.google.ads.admanager.v1.AdUnitSizeB\x03\xe0\x41\x01\x12\x33\n\x1f\x65xternal_set_top_box_channel_id\x18\x11 \x01(\tB\x05\x18\x01\xe0\x41\x01H\n\x88\x01\x01\x12:\n\rrefresh_delay\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x0b\x88\x01\x01\x12\x42\n\x0e\x61pplied_labels\x18\x15 \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x01\x12L\n\x18\x65\x66\x66\x65\x63tive_applied_labels\x18\x16 \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x03\x12U\n\x1c\x61pplied_label_frequency_caps\x18\x17 \x03(\x0b\x32*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xe0\x41\x01\x12W\n\x1e\x65\x66\x66\x65\x63tive_label_frequency_caps\x18\x18 \x03(\x0b\x32*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xe0\x41\x03\x12^\n\x0fsmart_size_mode\x18\x19 \x01(\x0e\x32\x38.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeModeB\x06\xe0\x41\x01\xe0\x41\x07H\x0c\x88\x01\x01\x12)\n\x17\x61pplied_adsense_enabled\x18\x1a \x01(\x08\x42\x03\xe0\x41\x01H\r\x88\x01\x01\x12+\n\x19\x65\x66\x66\x65\x63tive_adsense_enabled\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x0e\x88\x01\x01:`\xea\x41]\n\x1f\x61\x64manager.googleapis.com/AdUnit\x12)networks/{network_code}/adUnits/{ad_unit}*\x07\x61\x64Units2\x06\x61\x64UnitB\x11\n\x0f_parent_ad_unitB\x0f\n\r_display_nameB\x0f\n\r_ad_unit_codeB\t\n\x07_statusB\x18\n\x16_applied_target_windowB\x1a\n\x18_effective_target_windowB\x0e\n\x0c_descriptionB\x16\n\x14_explicitly_targetedB\x0f\n\r_has_childrenB\x0e\n\x0c_update_timeB\"\n _external_set_top_box_channel_idB\x10\n\x0e_refresh_delayB\x12\n\x10_smart_size_modeB\x1a\n\x18_applied_adsense_enabledB\x1c\n\x1a_effective_adsense_enabled\"\xce\x01\n\nAdUnitSize\x12\x30\n\x04size\x18\x01 \x01(\x0b\x32\x1d.google.ads.admanager.v1.SizeB\x03\xe0\x41\x02\x12[\n\x10\x65nvironment_type\x18\x02 \x01(\x0e\x32<.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentTypeB\x03\xe0\x41\x02\x12\x31\n\ncompanions\x18\x03 \x03(\x0b\x32\x1d.google.ads.admanager.v1.Size\"\x85\x01\n\x0c\x41\x64UnitParent\x12?\n\x0eparent_ad_unit\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnit\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x61\x64_unit_code\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\x88\x01\n\x11LabelFrequencyCap\x12\x35\n\x05label\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61\x64manager.googleapis.com/Label\x12<\n\rfrequency_cap\x18\x02 \x01(\x0b\x32%.google.ads.admanager.v1.FrequencyCapB\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13\x41\x64UnitMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
    ["google.protobuf.Duration", "google/protobuf/duration.proto"],
    ["google.ads.admanager.v1.AppliedLabel", "google/ads/admanager/v1/applied_label.proto"],
    ["google.ads.admanager.v1.Size", "google/ads/admanager/v1/size.proto"],
    ["google.ads.admanager.v1.FrequencyCap", "google/ads/admanager/v1/frequency_cap.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 AdManager
      module V1
        AdUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AdUnit").msgclass
        AdUnitSize = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AdUnitSize").msgclass
        AdUnitParent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AdUnitParent").msgclass
        LabelFrequencyCap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.LabelFrequencyCap").msgclass
      end
    end
  end
end
