Class DataStoreServiceConnection (2.32.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 >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status