# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/accounts/v1/online_return_policy.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/shopping/type/types_pb'
require 'google/type/date_pb'


descriptor_data = "\n?google/shopping/merchant/accounts/v1/online_return_policy.proto\x12$google.shopping.merchant.accounts.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/shopping/type/types.proto\x1a\x16google/type/date.proto\"c\n\x1cGetOnlineReturnPolicyRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-merchantapi.googleapis.com/OnlineReturnPolicy\"\xc5\x01\n\x1f\x43reateOnlineReturnPolicyRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-merchantapi.googleapis.com/OnlineReturnPolicy\x12[\n\x14online_return_policy\x18\x02 \x01(\x0b\x32\x38.google.shopping.merchant.accounts.v1.OnlineReturnPolicyB\x03\xe0\x41\x02\"f\n\x1f\x44\x65leteOnlineReturnPolicyRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-merchantapi.googleapis.com/OnlineReturnPolicy\"\x99\x01\n\x1fListOnlineReturnPoliciesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-merchantapi.googleapis.com/OnlineReturnPolicy\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\"\x95\x01\n ListOnlineReturnPoliciesResponse\x12X\n\x16online_return_policies\x18\x01 \x03(\x0b\x32\x38.google.shopping.merchant.accounts.v1.OnlineReturnPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf8\x11\n\x12OnlineReturnPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1d\n\x10return_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x05label\x18\x03 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x01\x12\x19\n\tcountries\x18\x04 \x03(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12T\n\x06policy\x18\x05 \x01(\x0b\x32?.google.shopping.merchant.accounts.v1.OnlineReturnPolicy.PolicyB\x03\xe0\x41\x01\x12j\n\x12seasonal_overrides\x18\x0e \x03(\x0b\x32I.google.shopping.merchant.accounts.v1.OnlineReturnPolicy.SeasonalOverrideB\x03\xe0\x41\x01\x12\x63\n\x0erestocking_fee\x18\x06 \x01(\x0b\x32\x46.google.shopping.merchant.accounts.v1.OnlineReturnPolicy.RestockingFeeB\x03\xe0\x41\x01\x12\x62\n\x0ereturn_methods\x18\x07 \x03(\x0e\x32\x45.google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ReturnMethodB\x03\xe0\x41\x01\x12\x64\n\x0fitem_conditions\x18\x08 \x03(\x0e\x32\x46.google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ItemConditionB\x03\xe0\x41\x01\x12l\n\x13return_shipping_fee\x18\t \x01(\x0b\x32J.google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ReturnShippingFeeB\x03\xe0\x41\x01\x12\x1e\n\x11return_policy_uri\x18\n \x01(\tB\x03\xe0\x41\x02\x12\'\n\x15\x61\x63\x63\x65pt_defective_only\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12%\n\x13process_refund_days\x18\x0c \x01(\x05\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12!\n\x0f\x61\x63\x63\x65pt_exchange\x18\r \x01(\x08\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x12q\n\x13return_label_source\x18\x0f \x01(\x0e\x32J.google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ReturnLabelSourceB\x03\xe0\x41\x01H\x03\x88\x01\x01\x1a\xf0\x01\n\x11ReturnShippingFee\x12\x62\n\x04type\x18\x01 \x01(\x0e\x32O.google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ReturnShippingFee.TypeB\x03\xe0\x41\x02\x12.\n\tfixed_fee\x18\x02 \x01(\x0b\x32\x1b.google.shopping.type.Price\"G\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x1e\n\x1a\x43USTOMER_PAYING_ACTUAL_FEE\x10\x02\x1a\x62\n\rRestockingFee\x12\x30\n\tfixed_fee\x18\x01 \x01(\x0b\x32\x1b.google.shopping.type.PriceH\x00\x12\x17\n\rmicro_percent\x18\x02 \x01(\x05H\x00\x42\x06\n\x04type\x1a\xd1\x01\n\x06Policy\x12R\n\x04type\x18\x01 \x01(\x0e\x32\x44.google.shopping.merchant.accounts.v1.OnlineReturnPolicy.Policy.Type\x12\x0c\n\x04\x64\x61ys\x18\x02 \x01(\x03\"e\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12!\n\x1dNUMBER_OF_DAYS_AFTER_DELIVERY\x10\x01\x12\x0e\n\nNO_RETURNS\x10\x02\x12\x14\n\x10LIFETIME_RETURNS\x10\x03\x1a\xd4\x01\n\x10SeasonalOverride\x12\x15\n\x0breturn_days\x18\x05 \x01(\x05H\x00\x12.\n\x11return_until_date\x18\x06 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x12\n\x05label\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12*\n\nstart_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12(\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x42\x0f\n\rreturn_window\"X\n\x0cReturnMethod\x12\x1d\n\x19RETURN_METHOD_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42Y_MAIL\x10\x01\x12\x0c\n\x08IN_STORE\x10\x02\x12\x0e\n\nAT_A_KIOSK\x10\x03\"B\n\rItemCondition\x12\x1e\n\x1aITEM_CONDITION_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x08\n\x04USED\x10\x02\"\x81\x01\n\x11ReturnLabelSource\x12#\n\x1fRETURN_LABEL_SOURCE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x44OWNLOAD_AND_PRINT\x10\x01\x12\x12\n\x0eIN_THE_PACKAGE\x10\x02\x12\x1b\n\x17\x43USTOMER_RESPONSIBILITY\x10\x03:\x96\x01\xea\x41\x92\x01\n-merchantapi.googleapis.com/OnlineReturnPolicy\x12\x37\x61\x63\x63ounts/{account}/onlineReturnPolicies/{return_policy}*\x14onlineReturnPolicies2\x12onlineReturnPolicyB\x18\n\x16_accept_defective_onlyB\x16\n\x14_process_refund_daysB\x12\n\x10_accept_exchangeB\x16\n\x14_return_label_source2\x89\x08\n\x19OnlineReturnPolicyService\x12\xdb\x01\n\x15GetOnlineReturnPolicy\x12\x42.google.shopping.merchant.accounts.v1.GetOnlineReturnPolicyRequest\x1a\x38.google.shopping.merchant.accounts.v1.OnlineReturnPolicy\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/accounts/v1/{name=accounts/*/onlineReturnPolicies/*}\x12\xf1\x01\n\x18ListOnlineReturnPolicies\x12\x45.google.shopping.merchant.accounts.v1.ListOnlineReturnPoliciesRequest\x1a\x46.google.shopping.merchant.accounts.v1.ListOnlineReturnPoliciesResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/accounts/v1/{parent=accounts/*}/onlineReturnPolicies\x12\x8e\x02\n\x18\x43reateOnlineReturnPolicy\x12\x45.google.shopping.merchant.accounts.v1.CreateOnlineReturnPolicyRequest\x1a\x38.google.shopping.merchant.accounts.v1.OnlineReturnPolicy\"q\xda\x41\x1bparent,online_return_policy\x82\xd3\xe4\x93\x02M\"5/accounts/v1/{parent=accounts/*}/onlineReturnPolicies:\x14online_return_policy\x12\xbf\x01\n\x18\x44\x65leteOnlineReturnPolicy\x12\x45.google.shopping.merchant.accounts.v1.DeleteOnlineReturnPolicyRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/accounts/v1/{name=accounts/*/onlineReturnPolicies/*}\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x8a\x02\n(com.google.shopping.merchant.accounts.v1B\x17OnlineReturnPolicyProtoP\x01ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;accountspb\xaa\x02$Google.Shopping.Merchant.Accounts.V1\xca\x02$Google\\Shopping\\Merchant\\Accounts\\V1\xea\x02(Google::Shopping::Merchant::Accounts::V1b\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.type.Price", "google/shopping/type/types.proto"],
    ["google.type.Date", "google/type/date.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 Accounts
        module V1
          GetOnlineReturnPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.GetOnlineReturnPolicyRequest").msgclass
          CreateOnlineReturnPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.CreateOnlineReturnPolicyRequest").msgclass
          DeleteOnlineReturnPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.DeleteOnlineReturnPolicyRequest").msgclass
          ListOnlineReturnPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.ListOnlineReturnPoliciesRequest").msgclass
          ListOnlineReturnPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.ListOnlineReturnPoliciesResponse").msgclass
          OnlineReturnPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy").msgclass
          OnlineReturnPolicy::ReturnShippingFee = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ReturnShippingFee").msgclass
          OnlineReturnPolicy::ReturnShippingFee::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ReturnShippingFee.Type").enummodule
          OnlineReturnPolicy::RestockingFee = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy.RestockingFee").msgclass
          OnlineReturnPolicy::Policy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy.Policy").msgclass
          OnlineReturnPolicy::Policy::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy.Policy.Type").enummodule
          OnlineReturnPolicy::SeasonalOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy.SeasonalOverride").msgclass
          OnlineReturnPolicy::ReturnMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ReturnMethod").enummodule
          OnlineReturnPolicy::ItemCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ItemCondition").enummodule
          OnlineReturnPolicy::ReturnLabelSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ReturnLabelSource").enummodule
        end
      end
    end
  end
end
