Response for SearchJob method.
Fields
matching_jobs
The Job entities that match the specified SearchJobsRequest.
histogram_query_results
The histogram results that match with specified SearchJobsRequest.histogram_queries.
next_page_token
The token that specifies the starting position of the next page of results. This field is empty if there are no more results.
location_filters
The location filters that the service applied to the specified query. If any filters are lat-lng based, the Location.location_type is Location.LocationType.LOCATION_TYPE_UNSPECIFIED.
total_size
Number of jobs that match the specified query.
Note: This size is precise only if the total is less than 100,000.
metadata
Additional information for the API invocation, such as the request tracking id.
broadened_query_jobs_count
If query broadening is enabled, we may append additional results from the broadened query. This number indicates how many of the jobs returned in the jobs field are from the broadened query. These results are always at the end of the jobs list. In particular, a value of 0, or if the field isn't set, all the jobs in the jobs list are from the original (without broadening) query. If this field is non-zero, subsequent requests with offset after this result set should contain all broadened results.
spell_correction
The spell checking result, and correction.
Implementations
new
fn new() -> Self
set_matching_jobs
fn set_matching_jobs<T, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
V: std::convert::Into<crate::model::search_jobs_response::MatchingJob>,
Sets the value of [matching_jobs][crate::model::SearchJobsResponse::matching_jobs].
set_histogram_query_results
fn set_histogram_query_results<T, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
V: std::convert::Into<crate::model::HistogramQueryResult>,
Sets the value of [histogram_query_results][crate::model::SearchJobsResponse::histogram_query_results].
set_next_page_token
fn set_next_page_token<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
Sets the value of [next_page_token][crate::model::SearchJobsResponse::next_page_token].
set_location_filters
fn set_location_filters<T, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
V: std::convert::Into<crate::model::Location>,
Sets the value of [location_filters][crate::model::SearchJobsResponse::location_filters].
set_total_size
fn set_total_size<T: std::convert::Into<i32>>(self, v: T) -> Self
Sets the value of [total_size][crate::model::SearchJobsResponse::total_size].
set_metadata
fn set_metadata<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::ResponseMetadata>,
Sets the value of [metadata][crate::model::SearchJobsResponse::metadata].
set_or_clear_metadata
fn set_or_clear_metadata<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::ResponseMetadata>,
Sets or clears the value of [metadata][crate::model::SearchJobsResponse::metadata].
set_broadened_query_jobs_count
fn set_broadened_query_jobs_count<T: std::convert::Into<i32>>(self, v: T) -> Self
Sets the value of [broadened_query_jobs_count][crate::model::SearchJobsResponse::broadened_query_jobs_count].
set_spell_correction
fn set_spell_correction<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::SpellingCorrection>,
Sets the value of [spell_correction][crate::model::SearchJobsResponse::spell_correction].
set_or_clear_spell_correction
fn set_or_clear_spell_correction<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::SpellingCorrection>,
Sets or clears the value of [spell_correction][crate::model::SearchJobsResponse::spell_correction].