Class ProductServiceConnection (2.16.0)

This interface defines virtual methods for each of the user-facing overload sets in ProductServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type ProductServiceClient.

To create a concrete instance, see MakeProductServiceConnection().

For mocking, see retail_v2_mocks::MockProductServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateProduct(google::cloud::retail::v2::CreateProductRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::CreateProductRequest const &
Returns
Type Description
StatusOr< google::cloud::retail::v2::Product >

virtual GetProduct(google::cloud::retail::v2::GetProductRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::GetProductRequest const &
Returns
Type Description
StatusOr< google::cloud::retail::v2::Product >

virtual ListProducts(google::cloud::retail::v2::ListProductsRequest)

Parameter
Name Description
request google::cloud::retail::v2::ListProductsRequest
Returns
Type Description
StreamRange< google::cloud::retail::v2::Product >

virtual UpdateProduct(google::cloud::retail::v2::UpdateProductRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::UpdateProductRequest const &
Returns
Type Description
StatusOr< google::cloud::retail::v2::Product >

virtual DeleteProduct(google::cloud::retail::v2::DeleteProductRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::DeleteProductRequest const &
Returns
Type Description
Status

virtual ImportProducts(google::cloud::retail::v2::ImportProductsRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::ImportProductsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::ImportProductsResponse > >

virtual SetInventory(google::cloud::retail::v2::SetInventoryRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::SetInventoryRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::SetInventoryResponse > >

virtual AddFulfillmentPlaces(google::cloud::retail::v2::AddFulfillmentPlacesRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::AddFulfillmentPlacesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::AddFulfillmentPlacesResponse > >

virtual RemoveFulfillmentPlaces(google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::RemoveFulfillmentPlacesResponse > >

virtual AddLocalInventories(google::cloud::retail::v2::AddLocalInventoriesRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::AddLocalInventoriesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::AddLocalInventoriesResponse > >

virtual RemoveLocalInventories(google::cloud::retail::v2::RemoveLocalInventoriesRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::RemoveLocalInventoriesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::RemoveLocalInventoriesResponse > >