Class DataStoreServiceConnection (2.29.0)

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

To create a concrete instance, see MakeDataStoreServiceConnection().

For mocking, see discoveryengine_v1_mocks::MockDataStoreServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateDataStore(google::cloud::discoveryengine::v1::CreateDataStoreRequest const &)

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

virtual CreateDataStore(NoAwaitTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::discoveryengine::v1::CreateDataStoreRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::discoveryengine::v1::DataStore > >

virtual GetDataStore(google::cloud::discoveryengine::v1::GetDataStoreRequest const &)

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

virtual ListDataStores(google::cloud::discoveryengine::v1::ListDataStoresRequest)

Parameter
Name Description
request google::cloud::discoveryengine::v1::ListDataStoresRequest
Returns
Type Description
StreamRange< google::cloud::discoveryengine::v1::DataStore >

virtual DeleteDataStore(google::cloud::discoveryengine::v1::DeleteDataStoreRequest const &)

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

virtual DeleteDataStore(NoAwaitTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::discoveryengine::v1::DeleteDataStoreRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::discoveryengine::v1::DeleteDataStoreMetadata > >

virtual UpdateDataStore(google::cloud::discoveryengine::v1::UpdateDataStoreRequest const &)

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