Class ProductsServiceGrpc.ProductsServiceFutureStub (0.3.0)

public static final class ProductsServiceGrpc.ProductsServiceFutureStub extends AbstractFutureStub<ProductsServiceGrpc.ProductsServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service ProductsService.

Service to use Product resource. This service works for products with online channel only.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > ProductsServiceGrpc.ProductsServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected ProductsServiceGrpc.ProductsServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ProductsServiceGrpc.ProductsServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

getProduct(GetProductRequest request)

public ListenableFuture<Product> getProduct(GetProductRequest request)

Retrieves the processed product from your Merchant Center account. After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.

Parameter
Name Description
request GetProductRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Product>

listProducts(ListProductsRequest request)

public ListenableFuture<ListProductsResponse> listProducts(ListProductsRequest request)

Lists the processed products in your Merchant Center account. The response might contain fewer items than specified by pageSize. Rely on pageToken to determine if there are more items to be requested. After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.

Parameter
Name Description
request ListProductsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListProductsResponse>