Struct googapis::google::cloud::talent::v4beta1::SearchProfilesRequest[][src]

pub struct SearchProfilesRequest {
    pub parent: String,
    pub request_metadata: Option<RequestMetadata>,
    pub profile_query: Option<ProfileQuery>,
    pub page_size: i32,
    pub page_token: String,
    pub offset: i32,
    pub disable_spell_check: bool,
    pub order_by: String,
    pub case_sensitive_sort: bool,
    pub histogram_queries: Vec<HistogramQuery>,
    pub result_set_id: String,
    pub strict_keywords_search: bool,
}
Expand description

The request body of the SearchProfiles 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/tenants/bar”.

request_metadata: Option<RequestMetadata>

Required. The meta information collected about the profile search user. This is used to improve the search quality of the service. These values are provided by users, and must be precise and consistent.

profile_query: Option<ProfileQuery>

Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.

page_size: i32

A limit on the number of profiles returned in the search results. A value above the default value 10 can increase search response time.

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

page_token: String

The pageToken, similar to offset enables users of the API to paginate through the search results. To retrieve the first page of results, set the pageToken to empty. The search response includes a [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] field that can be used to populate the pageToken field for the next page of results. Using pageToken instead of offset increases the performance of the API, especially compared to larger offset values.

offset: i32

An integer that specifies the current offset (that is, starting result) in search results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] is unset.

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

For example, 0 means to search from the first profile, and 10 means to search from the 11th profile. This can be used for pagination, for example pageSize = 10 and offset = 10 means to search from the second page.

disable_spell_check: bool

This flag controls the spell-check feature. If false, the service attempts to correct a misspelled query.

For example, “enginee” is corrected to “engineer”.

order_by: String

The criteria that determines how search results are sorted. Defaults is “relevance desc” if no value is specified.

Supported options are:

case_sensitive_sort: bool

When sort by field is based on alphabetical order, sort values case sensitively (based on ASCII) when the value is set to true. Default value is case in-sensitive sort (false).

histogram_queries: Vec<HistogramQuery>

A list of expressions specifies histogram requests against matching profiles for [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].

The expression syntax looks like a function definition with parameters.

Function syntax: function_name(histogram_facet[, list of buckets])

Data types:

Built-in constants:

Built-in functions:

Histogram Facets:

Example expressions:

result_set_id: String

An id that uniquely identifies the result set of a [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call. The id should be retrieved from the [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] message returned from a previous invocation of [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles].

A result set is an ordered list of search results.

If this field is not set, a new result set is computed based on the [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query]. A new [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] is returned as a handle to access this result set.

If this field is set, the service will ignore the resource and [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query] values, and simply retrieve a page of results from the corresponding result set. In this case, one and only one of [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] or [offset][google.cloud.talent.v4beta1.SearchProfilesRequest.offset] must be set.

A typical use case is to invoke [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] without this field, then use the resulting [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] in [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] to page through the results.

strict_keywords_search: bool

This flag is used to indicate whether the service will attempt to understand synonyms and terms related to the search query or treat the query “as is” when it generates a set of results. By default this flag is set to false, thus allowing expanded results to also be returned. For example a search for “software engineer” might also return candidates who have experience in jobs similar to software engineer positions. By setting this flag to true, the service will only attempt to deliver candidates has software engineer in his/her global fields by treating “software engineer” as a keyword.

It is recommended to provide a feature in the UI (such as a checkbox) to allow recruiters to set this flag to true if they intend to search for longer boolean strings.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more