Struct gapi_grpc::google::cloud::talent::v4beta1::SearchJobsRequest[][src]

pub struct SearchJobsRequest {
    pub parent: String,
    pub search_mode: i32,
    pub request_metadata: Option<RequestMetadata>,
    pub job_query: Option<JobQuery>,
    pub enable_broadening: bool,
    pub require_precise_result_size: bool,
    pub histogram_queries: Vec<HistogramQuery>,
    pub job_view: i32,
    pub offset: i32,
    pub page_size: i32,
    pub page_token: String,
    pub order_by: String,
    pub diversification_level: i32,
    pub custom_ranking_info: Option<CustomRankingInfo>,
    pub disable_keyword_match: bool,
}

The Request body of the SearchJobs call.

Fields

parent: String

Required. The resource name of the tenant to search within.

The format is “projects/{project_id}/tenants/{tenant_id}”. For example, “projects/foo/tenant/bar”. If tenant id is unspecified, a default tenant is created. For example, “projects/foo”.

search_mode: i32

Mode of a search.

Defaults to [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].

request_metadata: Option<RequestMetadata>

Required. The meta information collected about the job searcher, used to improve the search quality of the service. The identifiers (such as user_id) are provided by users, and must be unique and consistent.

job_query: Option<JobQuery>

Query used to search against jobs, such as keyword, location filters, etc.

enable_broadening: bool

Controls whether to broaden the search when it produces sparse results. Broadened queries append results to the end of the matching results list.

Defaults to false.

require_precise_result_size: bool

Controls if the search job request requires the return of a precise count of the first 300 results. Setting this to true ensures consistency in the number of results per page. Best practice is to set this value to true if a client allows users to jump directly to a non-sequential search results page.

Enabling this flag may adversely impact performance.

Defaults to false.

histogram_queries: Vec<HistogramQuery>

An expression specifies a histogram request against matching jobs.

Expression syntax is an aggregation function call with histogram facets and other options.

Available aggregation function calls are:

Data types:

Built-in constants:

Built-in functions:

Job histogram facets:

Example expressions:

job_view: i32

The desired job attributes returned for jobs in the search response. Defaults to [JobView.JOB_VIEW_SMALL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_SMALL] if no value is specified.

offset: i32

An integer that specifies the current offset (that is, starting result location, amongst the jobs deemed by the API as relevant) in search results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is unset.

The maximum allowed value is 5000. Otherwise an error is thrown.

For example, 0 means to return results starting from the first matching job, and 10 means to return from the 11th job. This can be used for pagination, (for example, pageSize = 10 and offset = 10 means to return from the second page).

page_size: i32

A limit on the number of jobs returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100.

page_token: String

The token specifying the current offset within search results. See [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token] for an explanation of how to obtain the next set of query results.

order_by: String

The criteria determining how search results are sorted. Default is "relevance desc".

Supported options are:

diversification_level: i32

Controls whether highly similar jobs are returned next to each other in the search results. Jobs are identified as highly similar based on their titles, job categories, and locations. Highly similar results are clustered so that only one representative job of the cluster is displayed to the job seeker higher up in the results, with the other jobs being displayed lower down in the results.

Defaults to [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE] if no value is specified.

custom_ranking_info: Option<CustomRankingInfo>

Controls over how job documents get ranked on top of existing relevance score (determined by API algorithm).

disable_keyword_match: bool

Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a keyword match returns jobs that do not match given category filters when there are matching keywords. For example, for the query “program manager,” a result is returned even if the job posting has the title “software developer,” which doesn’t fall into “program manager” ontology, but does have “program manager” appearing in its description.

For queries like “cloud” that don’t contain title or location specific ontology, jobs with “cloud” keyword matches are returned regardless of this flag’s value.

Use [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4beta1.Company.keyword_searchable_job_custom_attributes] if company-specific globally matched custom field/attribute string values are needed. Enabling keyword match improves recall of subsequent search requests.

Defaults to false.

Implementations

impl SearchJobsRequest[src]

pub fn search_mode(&self) -> SearchMode[src]

Returns the enum value of search_mode, or the default if the field is set to an invalid enum value.

pub fn set_search_mode(&mut self, value: SearchMode)[src]

Sets search_mode to the provided enum value.

pub fn job_view(&self) -> JobView[src]

Returns the enum value of job_view, or the default if the field is set to an invalid enum value.

pub fn set_job_view(&mut self, value: JobView)[src]

Sets job_view to the provided enum value.

pub fn diversification_level(&self) -> DiversificationLevel[src]

Returns the enum value of diversification_level, or the default if the field is set to an invalid enum value.

pub fn set_diversification_level(&mut self, value: DiversificationLevel)[src]

Sets diversification_level to the provided enum value.

Trait Implementations

impl Clone for SearchJobsRequest[src]

impl Debug for SearchJobsRequest[src]

impl Default for SearchJobsRequest[src]

impl Message for SearchJobsRequest[src]

impl PartialEq<SearchJobsRequest> for SearchJobsRequest[src]

impl StructuralPartialEq for SearchJobsRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for SearchJobsRequest

impl Send for SearchJobsRequest

impl Sync for SearchJobsRequest

impl Unpin for SearchJobsRequest

impl UnwindSafe for SearchJobsRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]