Class JobServiceConnection (2.31.0)

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

To create a concrete instance, see MakeJobServiceConnection().

For mocking, see bigquerycontrol_v2_mocks::MockJobServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CancelJob(google::cloud::bigquery::v2::CancelJobRequest const &)

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

virtual GetJob(google::cloud::bigquery::v2::GetJobRequest const &)

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

virtual InsertJob(google::cloud::bigquery::v2::InsertJobRequest const &)

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

virtual DeleteJob(google::cloud::bigquery::v2::DeleteJobRequest const &)

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

virtual ListJobs(google::cloud::bigquery::v2::ListJobsRequest)

Parameter
Name Description
request google::cloud::bigquery::v2::ListJobsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::v2::ListFormatJob >

virtual GetQueryResults(google::cloud::bigquery::v2::GetQueryResultsRequest const &)

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

virtual Query(google::cloud::bigquery::v2::PostQueryRequest const &)

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