Class ProductsServiceGrpc.ProductsServiceStub (0.2.0)

public static final class ProductsServiceGrpc.ProductsServiceStub extends AbstractAsyncStub<ProductsServiceGrpc.ProductsServiceStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > ProductsServiceGrpc.ProductsServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

getProduct(GetProductRequest request, StreamObserver<Product> responseObserver)

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

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.

Parameters
Name Description
request GetProductRequest
responseObserver io.grpc.stub.StreamObserver<Product>

listProducts(ListProductsRequest request, StreamObserver<ListProductsResponse> responseObserver)

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

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.

Parameters
Name Description
request ListProductsRequest
responseObserver io.grpc.stub.StreamObserver<ListProductsResponse>