# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/conversions/v1beta/conversionsources.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/protobuf/timestamp_pb'


descriptor_data = "\nCgoogle/shopping/merchant/conversions/v1beta/conversionsources.proto\x12+google.shopping.merchant.conversions.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\x1fgoogle/protobuf/timestamp.proto\"\xaa\x06\n\x10\x43onversionSource\x12\x66\n\x15google_analytics_link\x18\x03 \x01(\x0b\x32@.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLinkB\x03\xe0\x41\x05H\x00\x12m\n\x1bmerchant_center_destination\x18\x04 \x01(\x0b\x32\x46.google.shopping.merchant.conversions.v1beta.MerchantCenterDestinationH\x00\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x08\x12W\n\x05state\x18\x05 \x01(\x0e\x32\x43.google.shopping.merchant.conversions.v1beta.ConversionSource.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x61\n\ncontroller\x18\x07 \x01(\x0e\x32H.google.shopping.merchant.conversions.v1beta.ConversionSource.ControllerB\x03\xe0\x41\x03\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08\x41RCHIVED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\"N\n\nController\x12\x1a\n\x16\x43ONTROLLER_UNSPECIFIED\x10\x00\x12\x0c\n\x08MERCHANT\x10\x01\x12\x16\n\x12YOUTUBE_AFFILIATES\x10\x02:\x90\x01\xea\x41\x8c\x01\n+merchantapi.googleapis.com/ConversionSource\x12\x38\x61\x63\x63ounts/{account}/conversionSources/{conversion_source}*\x11\x63onversionSources2\x10\x63onversionSourceB\r\n\x0bsource_data\"\xef\x04\n\x13\x41ttributionSettings\x12-\n attribution_lookback_window_days\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12q\n\x11\x61ttribution_model\x18\x02 \x01(\x0e\x32Q.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModelB\x03\xe0\x41\x02\x12p\n\x0f\x63onversion_type\x18\x03 \x03(\x0b\x32O.google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionTypeB\x06\xe0\x41\x06\xe0\x41\x05\x1a\x38\n\x0e\x43onversionType\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06report\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\"\x89\x02\n\x10\x41ttributionModel\x12!\n\x1d\x41TTRIBUTION_MODEL_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x43ROSS_CHANNEL_LAST_CLICK\x10\x01\x12\x1c\n\x18\x41\x44S_PREFERRED_LAST_CLICK\x10\x02\x12\x1d\n\x19\x43ROSS_CHANNEL_DATA_DRIVEN\x10\x05\x12\x1d\n\x19\x43ROSS_CHANNEL_FIRST_CLICK\x10\x06\x12\x18\n\x14\x43ROSS_CHANNEL_LINEAR\x10\x07\x12 \n\x1c\x43ROSS_CHANNEL_POSITION_BASED\x10\x08\x12\x1c\n\x18\x43ROSS_CHANNEL_TIME_DECAY\x10\t\"\xae\x01\n\x13GoogleAnalyticsLink\x12\x1b\n\x0bproperty_id\x18\x01 \x01(\x03\x42\x06\xe0\x41\x02\xe0\x41\x05\x12\x63\n\x14\x61ttribution_settings\x18\x02 \x01(\x0b\x32@.google.shopping.merchant.conversions.v1beta.AttributionSettingsB\x03\xe0\x41\x03\x12\x15\n\x08property\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xd1\x01\n\x19MerchantCenterDestination\x12\x18\n\x0b\x64\x65stination\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x14\x61ttribution_settings\x18\x02 \x01(\x0b\x32@.google.shopping.merchant.conversions.v1beta.AttributionSettingsB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcurrency_code\x18\x04 \x01(\tB\x03\xe0\x41\x02\"\xc3\x01\n\x1d\x43reateConversionSourceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+merchantapi.googleapis.com/ConversionSource\x12]\n\x11\x63onversion_source\x18\x02 \x01(\x0b\x32=.google.shopping.merchant.conversions.v1beta.ConversionSourceB\x03\xe0\x41\x02\"\xb4\x01\n\x1dUpdateConversionSourceRequest\x12]\n\x11\x63onversion_source\x18\x01 \x01(\x0b\x32=.google.shopping.merchant.conversions.v1beta.ConversionSourceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"b\n\x1d\x44\x65leteConversionSourceRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+merchantapi.googleapis.com/ConversionSource\"d\n\x1fUndeleteConversionSourceRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+merchantapi.googleapis.com/ConversionSource\"_\n\x1aGetConversionSourceRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+merchantapi.googleapis.com/ConversionSource\"\xaf\x01\n\x1cListConversionSourcesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+merchantapi.googleapis.com/ConversionSource\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\x12\x19\n\x0cshow_deleted\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x93\x01\n\x1dListConversionSourcesResponse\x12Y\n\x12\x63onversion_sources\x18\x01 \x03(\x0b\x32=.google.shopping.merchant.conversions.v1beta.ConversionSource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xd2\x0c\n\x18\x43onversionSourcesService\x12\x94\x02\n\x16\x43reateConversionSource\x12J.google.shopping.merchant.conversions.v1beta.CreateConversionSourceRequest\x1a=.google.shopping.merchant.conversions.v1beta.ConversionSource\"o\xda\x41\x18parent,conversion_source\x82\xd3\xe4\x93\x02N\"9/conversions/v1beta/{parent=accounts/*}/conversionSources:\x11\x63onversion_source\x12\xac\x02\n\x16UpdateConversionSource\x12J.google.shopping.merchant.conversions.v1beta.UpdateConversionSourceRequest\x1a=.google.shopping.merchant.conversions.v1beta.ConversionSource\"\x86\x01\xda\x41\x1d\x63onversion_source,update_mask\x82\xd3\xe4\x93\x02`2K/conversions/v1beta/{conversion_source.name=accounts/*/conversionSources/*}:\x11\x63onversion_source\x12\xc6\x01\n\x16\x44\x65leteConversionSource\x12J.google.shopping.merchant.conversions.v1beta.DeleteConversionSourceRequest\x1a\x16.google.protobuf.Empty\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/conversions/v1beta/{name=accounts/*/conversionSources/*}\x12\xf6\x01\n\x18UndeleteConversionSource\x12L.google.shopping.merchant.conversions.v1beta.UndeleteConversionSourceRequest\x1a=.google.shopping.merchant.conversions.v1beta.ConversionSource\"M\x82\xd3\xe4\x93\x02G\"B/conversions/v1beta/{name=accounts/*/conversionSources/*}:undelete:\x01*\x12\xe7\x01\n\x13GetConversionSource\x12G.google.shopping.merchant.conversions.v1beta.GetConversionSourceRequest\x1a=.google.shopping.merchant.conversions.v1beta.ConversionSource\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/conversions/v1beta/{name=accounts/*/conversionSources/*}\x12\xfa\x01\n\x15ListConversionSources\x12I.google.shopping.merchant.conversions.v1beta.ListConversionSourcesRequest\x1aJ.google.shopping.merchant.conversions.v1beta.ListConversionSourcesResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/conversions/v1beta/{parent=accounts/*}/conversionSources\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xdf\x01\n/com.google.shopping.merchant.conversions.v1betaB\x16\x43onversionSourcesProtoP\x01ZWcloud.google.com/go/shopping/merchant/conversions/apiv1beta/conversionspb;conversionspb\xea\x41\x38\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}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.protobuf.Timestamp", "google/protobuf/timestamp.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 Conversions
        module V1beta
          ConversionSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ConversionSource").msgclass
          ConversionSource::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ConversionSource.State").enummodule
          ConversionSource::Controller = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ConversionSource.Controller").enummodule
          AttributionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.AttributionSettings").msgclass
          AttributionSettings::ConversionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType").msgclass
          AttributionSettings::AttributionModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel").enummodule
          GoogleAnalyticsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink").msgclass
          MerchantCenterDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.MerchantCenterDestination").msgclass
          CreateConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.CreateConversionSourceRequest").msgclass
          UpdateConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.UpdateConversionSourceRequest").msgclass
          DeleteConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.DeleteConversionSourceRequest").msgclass
          UndeleteConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.UndeleteConversionSourceRequest").msgclass
          GetConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.GetConversionSourceRequest").msgclass
          ListConversionSourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ListConversionSourcesRequest").msgclass
          ListConversionSourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ListConversionSourcesResponse").msgclass
        end
      end
    end
  end
end
