# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v21/services/data_link_service.proto

require 'google/protobuf'

require 'google/ads/google_ads/v21/enums/data_link_status_pb'
require 'google/ads/google_ads/v21/resources/data_link_pb'
require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'


descriptor_data = "\n9google/ads/googleads/v21/services/data_link_service.proto\x12!google.ads.googleads.v21.services\x1a\x35google/ads/googleads/v21/enums/data_link_status.proto\x1a\x32google/ads/googleads/v21/resources/data_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"w\n\x15\x43reateDataLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\tdata_link\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v21.resources.DataLinkB\x03\xe0\x41\x02\"W\n\x16\x43reateDataLinkResponse\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/DataLink\"s\n\x15RemoveDataLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12@\n\rresource_name\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/DataLink\"W\n\x16RemoveDataLinkResponse\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/DataLink\"\xd5\x01\n\x15UpdateDataLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12`\n\x10\x64\x61ta_link_status\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v21.enums.DataLinkStatusEnum.DataLinkStatusB\x03\xe0\x41\x02\x12@\n\rresource_name\x18\x03 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/DataLink\"W\n\x16UpdateDataLinkResponse\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/DataLink2\x85\x06\n\x0f\x44\x61taLinkService\x12\xd9\x01\n\x0e\x43reateDataLink\x12\x38.google.ads.googleads.v21.services.CreateDataLinkRequest\x1a\x39.google.ads.googleads.v21.services.CreateDataLinkResponse\"R\xda\x41\x15\x63ustomer_id,data_link\x82\xd3\xe4\x93\x02\x34\"//v21/customers/{customer_id=*}/dataLinks:create:\x01*\x12\xdd\x01\n\x0eRemoveDataLink\x12\x38.google.ads.googleads.v21.services.RemoveDataLinkRequest\x1a\x39.google.ads.googleads.v21.services.RemoveDataLinkResponse\"V\xda\x41\x19\x63ustomer_id,resource_name\x82\xd3\xe4\x93\x02\x34\"//v21/customers/{customer_id=*}/dataLinks:remove:\x01*\x12\xee\x01\n\x0eUpdateDataLink\x12\x38.google.ads.googleads.v21.services.UpdateDataLinkRequest\x1a\x39.google.ads.googleads.v21.services.UpdateDataLinkResponse\"g\xda\x41*customer_id,data_link_status,resource_name\x82\xd3\xe4\x93\x02\x34\"//v21/customers/{customer_id=*}/dataLinks:update:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v21.servicesB\x14\x44\x61taLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v21/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V21.Services\xca\x02!Google\\Ads\\GoogleAds\\V21\\Services\xea\x02%Google::Ads::GoogleAds::V21::Servicesb\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.v21.resources.DataLink", "google/ads/googleads/v21/resources/data_link.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 V21
        module Services
          CreateDataLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.CreateDataLinkRequest").msgclass
          CreateDataLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.CreateDataLinkResponse").msgclass
          RemoveDataLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.RemoveDataLinkRequest").msgclass
          RemoveDataLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.RemoveDataLinkResponse").msgclass
          UpdateDataLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.UpdateDataLinkRequest").msgclass
          UpdateDataLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.UpdateDataLinkResponse").msgclass
        end
      end
    end
  end
end
