public static final class ProductServiceGrpc.ProductServiceStub extends io.grpc.stub.AbstractAsyncStub<ProductServiceGrpc.ProductServiceStub>
Service for ingesting [Product][google.cloud.retail.v2beta.Product] information of the customer's website.
| Modifier and Type | Method and Description |
|---|---|
void |
addFulfillmentPlaces(AddFulfillmentPlacesRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Incrementally adds place IDs to
[Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids].
|
void |
addLocalInventories(AddLocalInventoriesRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Updates local inventory information for a
[Product][google.cloud.retail.v2beta.Product] at a list of places, while
respecting the last update timestamps of each inventory field.
|
protected ProductServiceGrpc.ProductServiceStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
createProduct(CreateProductRequest request,
io.grpc.stub.StreamObserver<Product> responseObserver)
Creates a [Product][google.cloud.retail.v2beta.Product].
|
void |
deleteProduct(DeleteProductRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a [Product][google.cloud.retail.v2beta.Product].
|
void |
getProduct(GetProductRequest request,
io.grpc.stub.StreamObserver<Product> responseObserver)
Gets a [Product][google.cloud.retail.v2beta.Product].
|
void |
importProducts(ImportProductsRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Bulk import of multiple [Product][google.cloud.retail.v2beta.Product]s.
|
void |
listProducts(ListProductsRequest request,
io.grpc.stub.StreamObserver<ListProductsResponse> responseObserver)
Gets a list of [Product][google.cloud.retail.v2beta.Product]s.
|
void |
removeFulfillmentPlaces(RemoveFulfillmentPlacesRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Incrementally removes place IDs from a
[Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids].
|
void |
removeLocalInventories(RemoveLocalInventoriesRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Remove local inventory information for a
[Product][google.cloud.retail.v2beta.Product] at a list of places at a
removal timestamp.
|
void |
setInventory(SetInventoryRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Updates inventory information for a
[Product][google.cloud.retail.v2beta.Product] while respecting the last
update timestamps of each inventory field.
|
void |
updateProduct(UpdateProductRequest request,
io.grpc.stub.StreamObserver<Product> responseObserver)
Updates a [Product][google.cloud.retail.v2beta.Product].
|
protected ProductServiceGrpc.ProductServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<ProductServiceGrpc.ProductServiceStub>public void createProduct(CreateProductRequest request, io.grpc.stub.StreamObserver<Product> responseObserver)
Creates a [Product][google.cloud.retail.v2beta.Product].
public void getProduct(GetProductRequest request, io.grpc.stub.StreamObserver<Product> responseObserver)
Gets a [Product][google.cloud.retail.v2beta.Product].
public void listProducts(ListProductsRequest request, io.grpc.stub.StreamObserver<ListProductsResponse> responseObserver)
Gets a list of [Product][google.cloud.retail.v2beta.Product]s.
public void updateProduct(UpdateProductRequest request, io.grpc.stub.StreamObserver<Product> responseObserver)
Updates a [Product][google.cloud.retail.v2beta.Product].
public void deleteProduct(DeleteProductRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a [Product][google.cloud.retail.v2beta.Product].
public void importProducts(ImportProductsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Bulk import of multiple [Product][google.cloud.retail.v2beta.Product]s. Request processing may be synchronous. Non-existing items are created. Note that it is possible for a subset of the [Product][google.cloud.retail.v2beta.Product]s to be successfully updated.
public void setInventory(SetInventoryRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Updates inventory information for a [Product][google.cloud.retail.v2beta.Product] while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.Product] to exist before updating fulfillment information. If the request is valid, the update is enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. When inventory is updated with [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct], the specified inventory field value(s) overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update times for the specified inventory fields are overwritten by the times of the [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] or [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] request. If no inventory fields are set in [CreateProductRequest.product][google.cloud.retail.v2beta.CreateProductRequest.product], then any pre-existing inventory information for this product is used. If no inventory fields are set in [SetInventoryRequest.set_mask][google.cloud.retail.v2beta.SetInventoryRequest.set_mask], then any existing inventory information is preserved. Pre-existing inventory information can only be updated with [ProductService.SetInventory][google.cloud.retail.v2beta.ProductService.SetInventory], [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces], and [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. The returned [Operation][google.longrunning.Operation]s is obsolete after one day, and the [GetOperation][google.longrunning.Operations.GetOperation] API returns `NOT_FOUND` afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates are not marked as [done][google.longrunning.Operation.done] until they are obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
public void addFulfillmentPlaces(AddFulfillmentPlacesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Incrementally adds place IDs to [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.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.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
public void removeFulfillmentPlaces(RemoveFulfillmentPlacesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Incrementally removes place IDs from a [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.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.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
public void addLocalInventories(AddLocalInventoriesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Updates local inventory information for a [Product][google.cloud.retail.v2beta.Product] at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.Product] to exist before updating inventory 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.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. Local inventory information can only be modified using this method. [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] has no effect on local inventories. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
public void removeLocalInventories(RemoveLocalInventoriesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Remove local inventory information for a [Product][google.cloud.retail.v2beta.Product] at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. Local inventory information can only be removed using this method. [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] has no effect on local inventories. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
Copyright © 2022 Google LLC. All rights reserved.