Class EngineServiceConnection (2.24.0)

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

To create a concrete instance, see MakeEngineServiceConnection().

For mocking, see discoveryengine_v1_mocks::MockEngineServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateEngine(google::cloud::discoveryengine::v1::CreateEngineRequest const &)

Parameter
Name Description
request google::cloud::discoveryengine::v1::CreateEngineRequest const &
Returns
Type Description
future< StatusOr< google::cloud::discoveryengine::v1::Engine > >

virtual DeleteEngine(google::cloud::discoveryengine::v1::DeleteEngineRequest const &)

Parameter
Name Description
request google::cloud::discoveryengine::v1::DeleteEngineRequest const &
Returns
Type Description
future< StatusOr< google::cloud::discoveryengine::v1::DeleteEngineMetadata > >

virtual UpdateEngine(google::cloud::discoveryengine::v1::UpdateEngineRequest const &)

Parameter
Name Description
request google::cloud::discoveryengine::v1::UpdateEngineRequest const &
Returns
Type Description
StatusOr< google::cloud::discoveryengine::v1::Engine >

virtual GetEngine(google::cloud::discoveryengine::v1::GetEngineRequest const &)

Parameter
Name Description
request google::cloud::discoveryengine::v1::GetEngineRequest const &
Returns
Type Description
StatusOr< google::cloud::discoveryengine::v1::Engine >

virtual ListEngines(google::cloud::discoveryengine::v1::ListEnginesRequest)

Parameter
Name Description
request google::cloud::discoveryengine::v1::ListEnginesRequest
Returns
Type Description
StreamRange< google::cloud::discoveryengine::v1::Engine >