public class GrpcProductServiceStub extends ProductServiceStub
gRPC stub implementation for the ProductService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcProductServiceStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcProductServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(ProductServiceStubSettings settings)
public static final GrpcProductServiceStub create(ProductServiceStubSettings settings)
Parameter
Returns
Exceptions
Constructors
GrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext)
protected GrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcProductServiceStub, using the given settings. This is protected
so that it is easy to make a subclass, but otherwise, the static factory methods should be
preferred.
Parameters
GrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcProductServiceStub, using the given settings. This is protected
so that it is easy to make a subclass, but otherwise, the static factory methods should be
preferred.
Parameters
Methods
addFulfillmentPlacesCallable()
public UnaryCallable<AddFulfillmentPlacesRequest,Operation> addFulfillmentPlacesCallable()
Returns
Overrides
addFulfillmentPlacesOperationCallable()
public OperationCallable<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse,AddFulfillmentPlacesMetadata> addFulfillmentPlacesOperationCallable()
Returns
Overrides
addLocalInventoriesCallable()
public UnaryCallable<AddLocalInventoriesRequest,Operation> addLocalInventoriesCallable()
Returns
Overrides
addLocalInventoriesOperationCallable()
public OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata> addLocalInventoriesOperationCallable()
Returns
Overrides
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
close()
public final void close()
Overrides
createProductCallable()
public UnaryCallable<CreateProductRequest,Product> createProductCallable()
Returns
Overrides
deleteProductCallable()
public UnaryCallable<DeleteProductRequest,Empty> deleteProductCallable()
Returns
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns
Overrides
getProductCallable()
public UnaryCallable<GetProductRequest,Product> getProductCallable()
Returns
Overrides
importProductsCallable()
public UnaryCallable<ImportProductsRequest,Operation> importProductsCallable()
Returns
Overrides
importProductsOperationCallable()
public OperationCallable<ImportProductsRequest,ImportProductsResponse,ImportMetadata> importProductsOperationCallable()
Returns
Overrides
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
listProductsCallable()
public UnaryCallable<ListProductsRequest,ListProductsResponse> listProductsCallable()
Returns
Overrides
listProductsPagedCallable()
public UnaryCallable<ListProductsRequest,ProductServiceClient.ListProductsPagedResponse> listProductsPagedCallable()
Returns
Overrides
removeFulfillmentPlacesCallable()
public UnaryCallable<RemoveFulfillmentPlacesRequest,Operation> removeFulfillmentPlacesCallable()
Returns
Overrides
removeFulfillmentPlacesOperationCallable()
public OperationCallable<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse,RemoveFulfillmentPlacesMetadata> removeFulfillmentPlacesOperationCallable()
Returns
Overrides
removeLocalInventoriesCallable()
public UnaryCallable<RemoveLocalInventoriesRequest,Operation> removeLocalInventoriesCallable()
Returns
Overrides
removeLocalInventoriesOperationCallable()
public OperationCallable<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse,RemoveLocalInventoriesMetadata> removeLocalInventoriesOperationCallable()
Returns
Overrides
setInventoryCallable()
public UnaryCallable<SetInventoryRequest,Operation> setInventoryCallable()
Returns
Overrides
setInventoryOperationCallable()
public OperationCallable<SetInventoryRequest,SetInventoryResponse,SetInventoryMetadata> setInventoryOperationCallable()
Returns
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
updateProductCallable()
public UnaryCallable<UpdateProductRequest,Product> updateProductCallable()
Returns
Overrides