Class ProductServiceConnection (2.27.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 PurgeProducts(google::cloud::retail::v2::PurgeProductsRequest const &)

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

virtual PurgeProducts(NoAwaitTag, google::cloud::retail::v2::PurgeProductsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::retail::v2::PurgeProductsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual PurgeProducts(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::PurgeProductsResponse > >

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 ImportProducts(NoAwaitTag, google::cloud::retail::v2::ImportProductsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::retail::v2::ImportProductsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ImportProducts(google::longrunning::Operation const &)