Class ProductServiceConnection (2.17.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::retail::v2::CreateProductRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Product >

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

Parameter
NameDescription
request google::cloud::retail::v2::GetProductRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Product >

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

Parameter
NameDescription
request google::cloud::retail::v2::ListProductsRequest
Returns
TypeDescription
StreamRange< google::cloud::retail::v2::Product >

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

Parameter
NameDescription
request google::cloud::retail::v2::UpdateProductRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Product >

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

Parameter
NameDescription
request google::cloud::retail::v2::DeleteProductRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::retail::v2::ImportProductsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::ImportProductsResponse > >

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

Parameter
NameDescription
request google::cloud::retail::v2::SetInventoryRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::SetInventoryResponse > >

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

Parameter
NameDescription
request google::cloud::retail::v2::AddFulfillmentPlacesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::AddFulfillmentPlacesResponse > >

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

Parameter
NameDescription
request google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::RemoveFulfillmentPlacesResponse > >

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

Parameter
NameDescription
request google::cloud::retail::v2::AddLocalInventoriesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::AddLocalInventoriesResponse > >

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

Parameter
NameDescription
request google::cloud::retail::v2::RemoveLocalInventoriesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::RemoveLocalInventoriesResponse > >