Class TableServiceConnection (2.31.0-rc)

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

To create a concrete instance, see MakeTableServiceConnection().

For mocking, see bigquerycontrol_v2_mocks::MockTableServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetTable(google::cloud::bigquery::v2::GetTableRequest const &)

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

virtual InsertTable(google::cloud::bigquery::v2::InsertTableRequest const &)

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

virtual PatchTable(google::cloud::bigquery::v2::UpdateOrPatchTableRequest const &)

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

virtual UpdateTable(google::cloud::bigquery::v2::UpdateOrPatchTableRequest const &)

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

virtual DeleteTable(google::cloud::bigquery::v2::DeleteTableRequest const &)

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

virtual ListTables(google::cloud::bigquery::v2::ListTablesRequest)

Parameter
Name Description
request google::cloud::bigquery::v2::ListTablesRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::v2::ListFormatTable >