Class ProductServiceGrpc.ProductServiceStub

public static final class ProductServiceGrpc.ProductServiceStub extends AbstractAsyncStub<ProductServiceGrpc.ProductServiceStub>

Service for ingesting Product information of the customer's website.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > ProductServiceGrpc.ProductServiceStub

Methods

addFulfillmentPlaces(AddFulfillmentPlacesRequest request, StreamObserver<Operation> responseObserver)

public void addFulfillmentPlaces(AddFulfillmentPlacesRequest request, StreamObserver<Operation> responseObserver)

Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the 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 queried by GetProduct or ListProducts. This feature is only available for users who have Retail Search enabled. Please submit a form here to contact cloud sales if you are interested in using Retail Search.

Parameters
NameDescription
requestAddFulfillmentPlacesRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

build(Channel channel, CallOptions callOptions)

protected ProductServiceGrpc.ProductServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
ProductServiceGrpc.ProductServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createProduct(CreateProductRequest request, StreamObserver<Product> responseObserver)

public void createProduct(CreateProductRequest request, StreamObserver<Product> responseObserver)

Creates a Product.

Parameters
NameDescription
requestCreateProductRequest
responseObserverio.grpc.stub.StreamObserver<Product>

deleteProduct(DeleteProductRequest request, StreamObserver<Empty> responseObserver)

public void deleteProduct(DeleteProductRequest request, StreamObserver<Empty> responseObserver)

Deletes a Product.

Parameters
NameDescription
requestDeleteProductRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getProduct(GetProductRequest request, StreamObserver<Product> responseObserver)

public void getProduct(GetProductRequest request, StreamObserver<Product> responseObserver)

Gets a Product.

Parameters
NameDescription
requestGetProductRequest
responseObserverio.grpc.stub.StreamObserver<Product>

importProducts(ImportProductsRequest request, StreamObserver<Operation> responseObserver)

public void importProducts(ImportProductsRequest request, StreamObserver<Operation> responseObserver)

Bulk import of multiple Products. 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 Products to be successfully updated.

Parameters
NameDescription
requestImportProductsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

listProducts(ListProductsRequest request, StreamObserver<ListProductsResponse> responseObserver)

public void listProducts(ListProductsRequest request, StreamObserver<ListProductsResponse> responseObserver)

Gets a list of Products.

Parameters
NameDescription
requestListProductsRequest
responseObserverio.grpc.stub.StreamObserver<ListProductsResponse>

removeFulfillmentPlaces(RemoveFulfillmentPlacesRequest request, StreamObserver<Operation> responseObserver)

public void removeFulfillmentPlaces(RemoveFulfillmentPlacesRequest request, StreamObserver<Operation> responseObserver)

Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the 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 queried by GetProduct or ListProducts. This feature is only available for users who have Retail Search enabled. Please submit a form here to contact cloud sales if you are interested in using Retail Search.

Parameters
NameDescription
requestRemoveFulfillmentPlacesRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

setInventory(SetInventoryRequest request, StreamObserver<Operation> responseObserver)

public void setInventory(SetInventoryRequest request, StreamObserver<Operation> responseObserver)

Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the 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 queried by GetProduct or ListProducts. When inventory is updated with CreateProduct and 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 or UpdateProduct request. If no inventory fields are set in 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, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature is only available for users who have Retail Search enabled. Please submit a form here to contact cloud sales if you are interested in using Retail Search.

Parameters
NameDescription
requestSetInventoryRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateProduct(UpdateProductRequest request, StreamObserver<Product> responseObserver)

public void updateProduct(UpdateProductRequest request, StreamObserver<Product> responseObserver)

Updates a Product.

Parameters
NameDescription
requestUpdateProductRequest
responseObserverio.grpc.stub.StreamObserver<Product>