# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/shopping/merchant/inventories/v1beta/regionalinventory.proto for package 'google.shopping.merchant.inventories.v1beta' # Original file comments: # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require 'grpc' require 'google/shopping/merchant/inventories/v1beta/regionalinventory_pb' module Google module Shopping module Merchant module Inventories module V1beta module RegionalInventoryService # Service to manage regional inventory for products. There is also separate # `regions` resource and API to manage regions definitions. class Service include ::GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode self.service_name = 'google.shopping.merchant.inventories.v1beta.RegionalInventoryService' # Lists the `RegionalInventory` resources for the given product in your # merchant account. The response might contain fewer items than specified by # `pageSize`. If `pageToken` was returned in previous request, it can be # used to obtain additional results. # # `RegionalInventory` resources are listed per product for a given account. rpc :ListRegionalInventories, ::Google::Shopping::Merchant::Inventories::V1beta::ListRegionalInventoriesRequest, ::Google::Shopping::Merchant::Inventories::V1beta::ListRegionalInventoriesResponse # Inserts a `RegionalInventory` to a given product in your # merchant account. # # Replaces the full `RegionalInventory` resource if an entry with the same # [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region] # already exists for the product. # # It might take up to 30 minutes for the new or updated `RegionalInventory` # resource to appear in products. rpc :InsertRegionalInventory, ::Google::Shopping::Merchant::Inventories::V1beta::InsertRegionalInventoryRequest, ::Google::Shopping::Merchant::Inventories::V1beta::RegionalInventory # Deletes the specified `RegionalInventory` resource from the given product # in your merchant account. It might take up to an hour for the # `RegionalInventory` to be deleted from the specific product. # Once you have received a successful delete response, wait for that # period before attempting a delete again. rpc :DeleteRegionalInventory, ::Google::Shopping::Merchant::Inventories::V1beta::DeleteRegionalInventoryRequest, ::Google::Protobuf::Empty end Stub = Service.rpc_stub_class end end end end end end