# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/datasources/v1beta/datasources.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask_pb'
require 'google/shopping/merchant/datasources/v1beta/datasourcetypes_pb'
require 'google/shopping/merchant/datasources/v1beta/fileinputs_pb'


descriptor_data = "\n=google/shopping/merchant/datasources/v1beta/datasources.proto\x12+google.shopping.merchant.datasources.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x41google/shopping/merchant/datasources/v1beta/datasourcetypes.proto\x1a<google/shopping/merchant/datasources/v1beta/fileinputs.proto\"\xc3\t\n\nDataSource\x12l\n\x1bprimary_product_data_source\x18\x04 \x01(\x0b\x32\x45.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSourceH\x00\x12v\n supplemental_product_data_source\x18\x05 \x01(\x0b\x32J.google.shopping.merchant.datasources.v1beta.SupplementalProductDataSourceH\x00\x12l\n\x1blocal_inventory_data_source\x18\x06 \x01(\x0b\x32\x45.google.shopping.merchant.datasources.v1beta.LocalInventoryDataSourceH\x00\x12r\n\x1eregional_inventory_data_source\x18\x07 \x01(\x0b\x32H.google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSourceH\x00\x12\x61\n\x15promotion_data_source\x18\x08 \x01(\x0b\x32@.google.shopping.merchant.datasources.v1beta.PromotionDataSourceH\x00\x12j\n\x1aproduct_review_data_source\x18\t \x01(\x0b\x32\x44.google.shopping.merchant.datasources.v1beta.ProductReviewDataSourceH\x00\x12l\n\x1bmerchant_review_data_source\x18\x0c \x01(\x0b\x32\x45.google.shopping.merchant.datasources.v1beta.MerchantReviewDataSourceH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1b\n\x0e\x64\x61ta_source_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x05input\x18\n \x01(\x0e\x32=.google.shopping.merchant.datasources.v1beta.DataSource.InputB\x03\xe0\x41\x03\x12O\n\nfile_input\x18\x0b \x01(\x0b\x32\x36.google.shopping.merchant.datasources.v1beta.FileInputB\x03\xe0\x41\x01\"G\n\x05Input\x12\x15\n\x11INPUT_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41PI\x10\x01\x12\x08\n\x04\x46ILE\x10\x02\x12\x06\n\x02UI\x10\x03\x12\x0c\n\x08\x41UTOFEED\x10\x04:p\xea\x41m\n%merchantapi.googleapis.com/DataSource\x12+accounts/{account}/dataSources/{datasource}*\x0b\x64\x61taSources2\ndataSourceB\x06\n\x04Type\"S\n\x14GetDataSourceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%merchantapi.googleapis.com/DataSource\"\x88\x01\n\x16ListDataSourcesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%merchantapi.googleapis.com/DataSource\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x81\x01\n\x17ListDataSourcesResponse\x12M\n\x0c\x64\x61ta_sources\x18\x01 \x03(\x0b\x32\x37.google.shopping.merchant.datasources.v1beta.DataSource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xab\x01\n\x17\x43reateDataSourceRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%merchantapi.googleapis.com/DataSource\x12Q\n\x0b\x64\x61ta_source\x18\x02 \x01(\x0b\x32\x37.google.shopping.merchant.datasources.v1beta.DataSourceB\x03\xe0\x41\x02\"\xa2\x01\n\x17UpdateDataSourceRequest\x12Q\n\x0b\x64\x61ta_source\x18\x01 \x01(\x0b\x32\x37.google.shopping.merchant.datasources.v1beta.DataSourceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"U\n\x16\x46\x65tchDataSourceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%merchantapi.googleapis.com/DataSource\"V\n\x17\x44\x65leteDataSourceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%merchantapi.googleapis.com/DataSource2\xf9\n\n\x12\x44\x61taSourcesService\x12\xcf\x01\n\rGetDataSource\x12\x41.google.shopping.merchant.datasources.v1beta.GetDataSourceRequest\x1a\x37.google.shopping.merchant.datasources.v1beta.DataSource\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/datasources/v1beta/{name=accounts/*/dataSources/*}\x12\xe2\x01\n\x0fListDataSources\x12\x43.google.shopping.merchant.datasources.v1beta.ListDataSourcesRequest\x1a\x44.google.shopping.merchant.datasources.v1beta.ListDataSourcesResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/datasources/v1beta/{parent=accounts/*}/dataSources\x12\xf0\x01\n\x10\x43reateDataSource\x12\x44.google.shopping.merchant.datasources.v1beta.CreateDataSourceRequest\x1a\x37.google.shopping.merchant.datasources.v1beta.DataSource\"]\xda\x41\x12parent,data_source\x82\xd3\xe4\x93\x02\x42\"3/datasources/v1beta/{parent=accounts/*}/dataSources:\x0b\x64\x61ta_source\x12\x81\x02\n\x10UpdateDataSource\x12\x44.google.shopping.merchant.datasources.v1beta.UpdateDataSourceRequest\x1a\x37.google.shopping.merchant.datasources.v1beta.DataSource\"n\xda\x41\x17\x64\x61ta_source,update_mask\x82\xd3\xe4\x93\x02N2?/datasources/v1beta/{data_source.name=accounts/*/dataSources/*}:\x0b\x64\x61ta_source\x12\xb4\x01\n\x10\x44\x65leteDataSource\x12\x44.google.shopping.merchant.datasources.v1beta.DeleteDataSourceRequest\x1a\x16.google.protobuf.Empty\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/datasources/v1beta/{name=accounts/*/dataSources/*}\x12\xb4\x01\n\x0f\x46\x65tchDataSource\x12\x43.google.shopping.merchant.datasources.v1beta.FetchDataSourceRequest\x1a\x16.google.protobuf.Empty\"D\x82\xd3\xe4\x93\x02>\"9/datasources/v1beta/{name=accounts/*/dataSources/*}:fetch:\x01*\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xbe\x03\n/com.google.shopping.merchant.datasources.v1betaB\x10\x44\x61taSourcesProtoP\x01ZWcloud.google.com/go/shopping/merchant/datasources/apiv1beta/datasourcespb;datasourcespb\xaa\x02+Google.Shopping.Merchant.DataSources.V1Beta\xca\x02+Google\\Shopping\\Merchant\\DataSources\\V1beta\xea\x02/Google::Shopping::Merchant::DataSources::V1beta\xea\x41\x38\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}\xea\x41T\n%merchantapi.googleapis.com/Datasource\x12+accounts/{account}/dataSources/{datasource}b\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.shopping.merchant.datasources.v1beta.PrimaryProductDataSource", "google/shopping/merchant/datasources/v1beta/datasourcetypes.proto"],
    ["google.shopping.merchant.datasources.v1beta.FileInput", "google/shopping/merchant/datasources/v1beta/fileinputs.proto"],
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 Shopping
    module Merchant
      module DataSources
        module V1beta
          DataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.DataSource").msgclass
          DataSource::Input = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.DataSource.Input").enummodule
          GetDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.GetDataSourceRequest").msgclass
          ListDataSourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.ListDataSourcesRequest").msgclass
          ListDataSourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.ListDataSourcesResponse").msgclass
          CreateDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.CreateDataSourceRequest").msgclass
          UpdateDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.UpdateDataSourceRequest").msgclass
          FetchDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.FetchDataSourceRequest").msgclass
          DeleteDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.DeleteDataSourceRequest").msgclass
        end
      end
    end
  end
end
