Class DatasetServiceConnection (2.28.0)

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

To create a concrete instance, see MakeDatasetServiceConnection().

For mocking, see bigquerycontrol_v2_mocks::MockDatasetServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetDataset(google::cloud::bigquery::v2::GetDatasetRequest const &)

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

virtual InsertDataset(google::cloud::bigquery::v2::InsertDatasetRequest const &)

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

virtual PatchDataset(google::cloud::bigquery::v2::UpdateOrPatchDatasetRequest const &)

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

virtual UpdateDataset(google::cloud::bigquery::v2::UpdateOrPatchDatasetRequest const &)

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

virtual DeleteDataset(google::cloud::bigquery::v2::DeleteDatasetRequest const &)

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

virtual ListDatasets(google::cloud::bigquery::v2::ListDatasetsRequest)

Parameter
Name Description
request google::cloud::bigquery::v2::ListDatasetsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::v2::ListFormatDataset >

virtual UndeleteDataset(google::cloud::bigquery::v2::UndeleteDatasetRequest const &)

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