# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/datasources/v1/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/v1/datasourcetypes_pb'
require 'google/shopping/merchant/datasources/v1/fileinputs_pb'


descriptor_data = "\n9google/shopping/merchant/datasources/v1/datasources.proto\x12\'google.shopping.merchant.datasources.v1\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=google/shopping/merchant/datasources/v1/datasourcetypes.proto\x1a\x38google/shopping/merchant/datasources/v1/fileinputs.proto\"\xa2\t\n\nDataSource\x12h\n\x1bprimary_product_data_source\x18\x04 \x01(\x0b\x32\x41.google.shopping.merchant.datasources.v1.PrimaryProductDataSourceH\x00\x12r\n supplemental_product_data_source\x18\x05 \x01(\x0b\x32\x46.google.shopping.merchant.datasources.v1.SupplementalProductDataSourceH\x00\x12h\n\x1blocal_inventory_data_source\x18\x06 \x01(\x0b\x32\x41.google.shopping.merchant.datasources.v1.LocalInventoryDataSourceH\x00\x12n\n\x1eregional_inventory_data_source\x18\x07 \x01(\x0b\x32\x44.google.shopping.merchant.datasources.v1.RegionalInventoryDataSourceH\x00\x12]\n\x15promotion_data_source\x18\x08 \x01(\x0b\x32<.google.shopping.merchant.datasources.v1.PromotionDataSourceH\x00\x12\x66\n\x1aproduct_review_data_source\x18\t \x01(\x0b\x32@.google.shopping.merchant.datasources.v1.ProductReviewDataSourceH\x00\x12h\n\x1bmerchant_review_data_source\x18\x0c \x01(\x0b\x32\x41.google.shopping.merchant.datasources.v1.MerchantReviewDataSourceH\x00\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\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\x12M\n\x05input\x18\n \x01(\x0e\x32\x39.google.shopping.merchant.datasources.v1.DataSource.InputB\x03\xe0\x41\x03\x12K\n\nfile_input\x18\x0b \x01(\x0b\x32\x32.google.shopping.merchant.datasources.v1.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\"}\n\x17ListDataSourcesResponse\x12I\n\x0c\x64\x61ta_sources\x18\x01 \x03(\x0b\x32\x33.google.shopping.merchant.datasources.v1.DataSource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x17\x43reateDataSourceRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%merchantapi.googleapis.com/DataSource\x12M\n\x0b\x64\x61ta_source\x18\x02 \x01(\x0b\x32\x33.google.shopping.merchant.datasources.v1.DataSourceB\x03\xe0\x41\x02\"\x9e\x01\n\x17UpdateDataSourceRequest\x12M\n\x0b\x64\x61ta_source\x18\x01 \x01(\x0b\x32\x33.google.shopping.merchant.datasources.v1.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\xb9\n\n\x12\x44\x61taSourcesService\x12\xc3\x01\n\rGetDataSource\x12=.google.shopping.merchant.datasources.v1.GetDataSourceRequest\x1a\x33.google.shopping.merchant.datasources.v1.DataSource\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//datasources/v1/{name=accounts/*/dataSources/*}\x12\xd6\x01\n\x0fListDataSources\x12?.google.shopping.merchant.datasources.v1.ListDataSourcesRequest\x1a@.google.shopping.merchant.datasources.v1.ListDataSourcesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//datasources/v1/{parent=accounts/*}/dataSources\x12\xe4\x01\n\x10\x43reateDataSource\x12@.google.shopping.merchant.datasources.v1.CreateDataSourceRequest\x1a\x33.google.shopping.merchant.datasources.v1.DataSource\"Y\xda\x41\x12parent,data_source\x82\xd3\xe4\x93\x02>\"//datasources/v1/{parent=accounts/*}/dataSources:\x0b\x64\x61ta_source\x12\xf5\x01\n\x10UpdateDataSource\x12@.google.shopping.merchant.datasources.v1.UpdateDataSourceRequest\x1a\x33.google.shopping.merchant.datasources.v1.DataSource\"j\xda\x41\x17\x64\x61ta_source,update_mask\x82\xd3\xe4\x93\x02J2;/datasources/v1/{data_source.name=accounts/*/dataSources/*}:\x0b\x64\x61ta_source\x12\xac\x01\n\x10\x44\x65leteDataSource\x12@.google.shopping.merchant.datasources.v1.DeleteDataSourceRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//datasources/v1/{name=accounts/*/dataSources/*}\x12\xac\x01\n\x0f\x46\x65tchDataSource\x12?.google.shopping.merchant.datasources.v1.FetchDataSourceRequest\x1a\x16.google.protobuf.Empty\"@\x82\xd3\xe4\x93\x02:\"5/datasources/v1/{name=accounts/*/dataSources/*}:fetch:\x01*\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xaa\x03\n+com.google.shopping.merchant.datasources.v1B\x10\x44\x61taSourcesProtoP\x01ZScloud.google.com/go/shopping/merchant/datasources/apiv1/datasourcespb;datasourcespb\xaa\x02\'Google.Shopping.Merchant.DataSources.V1\xca\x02\'Google\\Shopping\\Merchant\\DataSources\\V1\xea\x02+Google::Shopping::Merchant::DataSources::V1\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.v1.PrimaryProductDataSource", "google/shopping/merchant/datasources/v1/datasourcetypes.proto"],
    ["google.shopping.merchant.datasources.v1.FileInput", "google/shopping/merchant/datasources/v1/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 V1
          DataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1.DataSource").msgclass
          DataSource::Input = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1.DataSource.Input").enummodule
          GetDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1.GetDataSourceRequest").msgclass
          ListDataSourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1.ListDataSourcesRequest").msgclass
          ListDataSourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1.ListDataSourcesResponse").msgclass
          CreateDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1.CreateDataSourceRequest").msgclass
          UpdateDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1.UpdateDataSourceRequest").msgclass
          FetchDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1.FetchDataSourceRequest").msgclass
          DeleteDataSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1.DeleteDataSourceRequest").msgclass
        end
      end
    end
  end
end
