# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/cloud/retail/v2/product_service.proto for package 'Google.Cloud.Retail.V2' # Original file comments: # Copyright 2020 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/cloud/retail/v2/product_service_pb' module Google module Cloud module Retail module V2 module ProductService # Service for ingesting [Product][google.cloud.retail.v2.Product] information # of the customer's website. class Service include ::GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode self.service_name = 'google.cloud.retail.v2.ProductService' # Creates a [Product][google.cloud.retail.v2.Product]. rpc :CreateProduct, ::Google::Cloud::Retail::V2::CreateProductRequest, ::Google::Cloud::Retail::V2::Product # Gets a [Product][google.cloud.retail.v2.Product]. rpc :GetProduct, ::Google::Cloud::Retail::V2::GetProductRequest, ::Google::Cloud::Retail::V2::Product # Gets a list of [Product][google.cloud.retail.v2.Product]s. rpc :ListProducts, ::Google::Cloud::Retail::V2::ListProductsRequest, ::Google::Cloud::Retail::V2::ListProductsResponse # Updates a [Product][google.cloud.retail.v2.Product]. rpc :UpdateProduct, ::Google::Cloud::Retail::V2::UpdateProductRequest, ::Google::Cloud::Retail::V2::Product # Deletes a [Product][google.cloud.retail.v2.Product]. rpc :DeleteProduct, ::Google::Cloud::Retail::V2::DeleteProductRequest, ::Google::Protobuf::Empty # Bulk import of multiple [Product][google.cloud.retail.v2.Product]s. # # Request processing may be synchronous. No partial updating is supported. # Non-existing items are created. # # Note that it is possible for a subset of the # [Product][google.cloud.retail.v2.Product]s to be successfully updated. rpc :ImportProducts, ::Google::Cloud::Retail::V2::ImportProductsRequest, ::Google::Longrunning::Operation # Updates inventory information for a # [Product][google.cloud.retail.v2.Product] while respecting the last update # timestamps of each inventory field. # # This process is asynchronous and does not require the # [Product][google.cloud.retail.v2.Product] to exist before updating # fulfillment information. If the request is valid, the update will be # enqueued and processed downstream. As a consequence, when a response is # returned, updates are not immediately manifested in the # [Product][google.cloud.retail.v2.Product] queried by # [GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or # [ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. # # When inventory is updated with # [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and # [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the # specified inventory field value(s) will overwrite any existing value(s) # while ignoring the last update time for this field. Furthermore, the last # update time for the specified inventory fields will be overwritten to the # time of the # [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or # [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] # request. # # If no inventory fields are set in # [CreateProductRequest.product][google.cloud.retail.v2.CreateProductRequest.product], # then any pre-existing inventory information for this product will be used. # # If no inventory fields are set in [UpdateProductRequest.set_mask][], # then any existing inventory information will be preserved. # # Pre-existing inventory information can only be updated with # [SetInventory][google.cloud.retail.v2.ProductService.SetInventory], # [AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces], # and # [RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]. # # This feature is only available for users who have Retail Search enabled. # Please submit a form [here](https://cloud.google.com/contact) to contact # cloud sales if you are interested in using Retail Search. rpc :SetInventory, ::Google::Cloud::Retail::V2::SetInventoryRequest, ::Google::Longrunning::Operation # Incrementally adds place IDs to # [Product.fulfillment_info.place_ids][google.cloud.retail.v2.FulfillmentInfo.place_ids]. # # This process is asynchronous and does not require the # [Product][google.cloud.retail.v2.Product] to exist before updating # fulfillment information. If the request is valid, the update will be # enqueued and processed downstream. As a consequence, when a response is # returned, the added place IDs are not immediately manifested in the # [Product][google.cloud.retail.v2.Product] queried by # [GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or # [ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. # # This feature is only available for users who have Retail Search enabled. # Please submit a form [here](https://cloud.google.com/contact) to contact # cloud sales if you are interested in using Retail Search. rpc :AddFulfillmentPlaces, ::Google::Cloud::Retail::V2::AddFulfillmentPlacesRequest, ::Google::Longrunning::Operation # Incrementally removes place IDs from a # [Product.fulfillment_info.place_ids][google.cloud.retail.v2.FulfillmentInfo.place_ids]. # # This process is asynchronous and does not require the # [Product][google.cloud.retail.v2.Product] to exist before updating # fulfillment information. If the request is valid, the update will be # enqueued and processed downstream. As a consequence, when a response is # returned, the removed place IDs are not immediately manifested in the # [Product][google.cloud.retail.v2.Product] queried by # [GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or # [ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. # # This feature is only available for users who have Retail Search enabled. # Please submit a form [here](https://cloud.google.com/contact) to contact # cloud sales if you are interested in using Retail Search. rpc :RemoveFulfillmentPlaces, ::Google::Cloud::Retail::V2::RemoveFulfillmentPlacesRequest, ::Google::Longrunning::Operation end Stub = Service.rpc_stub_class end end end end end