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

require 'google/protobuf'

require 'google/ads/google_ads/v21/enums/response_content_type_pb'
require 'google/ads/google_ads/v21/resources/batch_job_pb'
require 'google/ads/google_ads/v21/services/google_ads_service_pb'
require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/empty_pb'
require 'google/rpc/status_pb'


descriptor_data = "\n9google/ads/googleads/v21/services/batch_job_service.proto\x12!google.ads.googleads.v21.services\x1a:google/ads/googleads/v21/enums/response_content_type.proto\x1a\x32google/ads/googleads/v21/resources/batch_job.proto\x1a:google/ads/googleads/v21/services/google_ads_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto\"\x7f\n\x15MutateBatchJobRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\toperation\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v21.services.BatchJobOperationB\x03\xe0\x41\x02\"\x9a\x01\n\x11\x42\x61tchJobOperation\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v21.resources.BatchJobH\x00\x12\x38\n\x06remove\x18\x04 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/BatchJobH\x00\x42\x0b\n\toperation\"a\n\x16MutateBatchJobResponse\x12G\n\x06result\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v21.services.MutateBatchJobResult\"U\n\x14MutateBatchJobResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/BatchJob\"V\n\x12RunBatchJobRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\"\xcc\x01\n\x1c\x41\x64\x64\x42\x61tchJobOperationsRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\x12\x16\n\x0esequence_token\x18\x02 \x01(\t\x12R\n\x11mutate_operations\x18\x03 \x03(\x0b\x32\x32.google.ads.googleads.v21.services.MutateOperationB\x03\xe0\x41\x02\"V\n\x1d\x41\x64\x64\x42\x61tchJobOperationsResponse\x12\x18\n\x10total_operations\x18\x01 \x01(\x03\x12\x1b\n\x13next_sequence_token\x18\x02 \x01(\t\"\xf1\x01\n\x1aListBatchJobResultsRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v21.enums.ResponseContentTypeEnum.ResponseContentType\"z\n\x1bListBatchJobResultsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v21.services.BatchJobResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xac\x01\n\x0e\x42\x61tchJobResult\x12\x17\n\x0foperation_index\x18\x01 \x01(\x03\x12]\n\x19mutate_operation_response\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v21.services.MutateOperationResponse\x12\"\n\x06status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status2\xe1\x08\n\x0f\x42\x61tchJobService\x12\xd9\x01\n\x0eMutateBatchJob\x12\x38.google.ads.googleads.v21.services.MutateBatchJobRequest\x1a\x39.google.ads.googleads.v21.services.MutateBatchJobResponse\"R\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02\x34\"//v21/customers/{customer_id=*}/batchJobs:mutate:\x01*\x12\xe6\x01\n\x13ListBatchJobResults\x12=.google.ads.googleads.v21.services.ListBatchJobResultsRequest\x1a>.google.ads.googleads.v21.services.ListBatchJobResultsResponse\"P\xda\x41\rresource_name\x82\xd3\xe4\x93\x02:\x12\x38/v21/{resource_name=customers/*/batchJobs/*}:listResults\x12\x89\x02\n\x0bRunBatchJob\x12\x35.google.ads.googleads.v21.services.RunBatchJobRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\xca\x41U\n\x15google.protobuf.Empty\x12<google.ads.googleads.v21.resources.BatchJob.BatchJobMetadata\xda\x41\rresource_name\x82\xd3\xe4\x93\x02\x35\"0/v21/{resource_name=customers/*/batchJobs/*}:run:\x01*\x12\xb5\x02\n\x15\x41\x64\x64\x42\x61tchJobOperations\x12?.google.ads.googleads.v21.services.AddBatchJobOperationsRequest\x1a@.google.ads.googleads.v21.services.AddBatchJobOperationsResponse\"\x98\x01\xda\x41.resource_name,sequence_token,mutate_operations\xda\x41\x1fresource_name,mutate_operations\x82\xd3\xe4\x93\x02?\":/v21/{resource_name=customers/*/batchJobs/*}:addOperations:\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\x42\x61tchJobServiceProtoP\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.BatchJob", "google/ads/googleads/v21/resources/batch_job.proto"],
    ["google.ads.googleads.v21.services.MutateOperation", "google/ads/googleads/v21/services/google_ads_service.proto"],
    ["google.rpc.Status", "google/rpc/status.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
          MutateBatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.MutateBatchJobRequest").msgclass
          BatchJobOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.BatchJobOperation").msgclass
          MutateBatchJobResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.MutateBatchJobResponse").msgclass
          MutateBatchJobResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.MutateBatchJobResult").msgclass
          RunBatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.RunBatchJobRequest").msgclass
          AddBatchJobOperationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.AddBatchJobOperationsRequest").msgclass
          AddBatchJobOperationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.AddBatchJobOperationsResponse").msgclass
          ListBatchJobResultsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.ListBatchJobResultsRequest").msgclass
          ListBatchJobResultsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.ListBatchJobResultsResponse").msgclass
          BatchJobResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v21.services.BatchJobResult").msgclass
        end
      end
    end
  end
end
