Struct google_api_proto::google::cloud::talent::v4::job_service_client::JobServiceClient
source · pub struct JobServiceClient<T> { /* private fields */ }
Expand description
A service handles job management, including job CRUD, enumeration and search.
Implementations§
source§impl<T> JobServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> JobServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> JobServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_job(
&mut self,
request: impl IntoRequest<CreateJobRequest>,
) -> Result<Response<Job>, Status>
pub async fn create_job( &mut self, request: impl IntoRequest<CreateJobRequest>, ) -> Result<Response<Job>, Status>
Creates a new job.
Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.
sourcepub async fn batch_create_jobs(
&mut self,
request: impl IntoRequest<BatchCreateJobsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_create_jobs( &mut self, request: impl IntoRequest<BatchCreateJobsRequest>, ) -> Result<Response<Operation>, Status>
Begins executing a batch create jobs operation.
sourcepub async fn get_job(
&mut self,
request: impl IntoRequest<GetJobRequest>,
) -> Result<Response<Job>, Status>
pub async fn get_job( &mut self, request: impl IntoRequest<GetJobRequest>, ) -> Result<Response<Job>, Status>
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
sourcepub async fn update_job(
&mut self,
request: impl IntoRequest<UpdateJobRequest>,
) -> Result<Response<Job>, Status>
pub async fn update_job( &mut self, request: impl IntoRequest<UpdateJobRequest>, ) -> Result<Response<Job>, Status>
Updates specified job.
Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.
sourcepub async fn batch_update_jobs(
&mut self,
request: impl IntoRequest<BatchUpdateJobsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_update_jobs( &mut self, request: impl IntoRequest<BatchUpdateJobsRequest>, ) -> Result<Response<Operation>, Status>
Begins executing a batch update jobs operation.
sourcepub async fn delete_job(
&mut self,
request: impl IntoRequest<DeleteJobRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_job( &mut self, request: impl IntoRequest<DeleteJobRequest>, ) -> Result<Response<()>, Status>
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
sourcepub async fn batch_delete_jobs(
&mut self,
request: impl IntoRequest<BatchDeleteJobsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_delete_jobs( &mut self, request: impl IntoRequest<BatchDeleteJobsRequest>, ) -> Result<Response<Operation>, Status>
Begins executing a batch delete jobs operation.
sourcepub async fn list_jobs(
&mut self,
request: impl IntoRequest<ListJobsRequest>,
) -> Result<Response<ListJobsResponse>, Status>
pub async fn list_jobs( &mut self, request: impl IntoRequest<ListJobsRequest>, ) -> Result<Response<ListJobsResponse>, Status>
Lists jobs by filter.
sourcepub async fn search_jobs(
&mut self,
request: impl IntoRequest<SearchJobsRequest>,
) -> Result<Response<SearchJobsResponse>, Status>
pub async fn search_jobs( &mut self, request: impl IntoRequest<SearchJobsRequest>, ) -> Result<Response<SearchJobsResponse>, Status>
Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.
sourcepub async fn search_jobs_for_alert(
&mut self,
request: impl IntoRequest<SearchJobsRequest>,
) -> Result<Response<SearchJobsResponse>, Status>
pub async fn search_jobs_for_alert( &mut self, request: impl IntoRequest<SearchJobsRequest>, ) -> Result<Response<SearchJobsResponse>, Status>
Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers.
This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.
Trait Implementations§
source§impl<T: Clone> Clone for JobServiceClient<T>
impl<T: Clone> Clone for JobServiceClient<T>
source§fn clone(&self) -> JobServiceClient<T>
fn clone(&self) -> JobServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for JobServiceClient<T>
impl<T> RefUnwindSafe for JobServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for JobServiceClient<T>where
T: Send,
impl<T> Sync for JobServiceClient<T>where
T: Sync,
impl<T> Unpin for JobServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for JobServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request