Class ModelServiceConnection (2.29.0-rc)

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

To create a concrete instance, see MakeModelServiceConnection().

For mocking, see bigquerycontrol_v2_mocks::MockModelServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetModel(google::cloud::bigquery::v2::GetModelRequest const &)

Parameter
Name Description
request google::cloud::bigquery::v2::GetModelRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::v2::Model >

virtual ListModels(google::cloud::bigquery::v2::ListModelsRequest)

Parameter
Name Description
request google::cloud::bigquery::v2::ListModelsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::v2::Model >

virtual PatchModel(google::cloud::bigquery::v2::PatchModelRequest const &)

Parameter
Name Description
request google::cloud::bigquery::v2::PatchModelRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::v2::Model >

virtual DeleteModel(google::cloud::bigquery::v2::DeleteModelRequest const &)

Parameter
Name Description
request google::cloud::bigquery::v2::DeleteModelRequest const &
Returns
Type Description
Status