Class JobServiceConnection (2.22.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 talent_v4_mocks::MockJobServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateJob(google::cloud::talent::v4::CreateJobRequest const &)

Parameter
NameDescription
request google::cloud::talent::v4::CreateJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::talent::v4::Job >

virtual BatchCreateJobs(google::cloud::talent::v4::BatchCreateJobsRequest const &)

Parameter
NameDescription
request google::cloud::talent::v4::BatchCreateJobsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::talent::v4::BatchCreateJobsResponse > >

virtual GetJob(google::cloud::talent::v4::GetJobRequest const &)

Parameter
NameDescription
request google::cloud::talent::v4::GetJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::talent::v4::Job >

virtual UpdateJob(google::cloud::talent::v4::UpdateJobRequest const &)

Parameter
NameDescription
request google::cloud::talent::v4::UpdateJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::talent::v4::Job >

virtual BatchUpdateJobs(google::cloud::talent::v4::BatchUpdateJobsRequest const &)

Parameter
NameDescription
request google::cloud::talent::v4::BatchUpdateJobsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::talent::v4::BatchUpdateJobsResponse > >

virtual DeleteJob(google::cloud::talent::v4::DeleteJobRequest const &)

Parameter
NameDescription
request google::cloud::talent::v4::DeleteJobRequest const &
Returns
TypeDescription
Status

virtual BatchDeleteJobs(google::cloud::talent::v4::BatchDeleteJobsRequest const &)

Parameter
NameDescription
request google::cloud::talent::v4::BatchDeleteJobsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::talent::v4::BatchDeleteJobsResponse > >

virtual ListJobs(google::cloud::talent::v4::ListJobsRequest)

Parameter
NameDescription
request google::cloud::talent::v4::ListJobsRequest
Returns
TypeDescription
StreamRange< google::cloud::talent::v4::Job >

virtual SearchJobs(google::cloud::talent::v4::SearchJobsRequest const &)

Parameter
NameDescription
request google::cloud::talent::v4::SearchJobsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::talent::v4::SearchJobsResponse >

virtual SearchJobsForAlert(google::cloud::talent::v4::SearchJobsRequest const &)

Parameter
NameDescription
request google::cloud::talent::v4::SearchJobsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::talent::v4::SearchJobsResponse >