SearchJob 方法的响应。
字段
matching_jobs
与指定 SearchJobsRequest 匹配的 Job 实体。
histogram_query_results
与指定的 SearchJobsRequest.histogram_queries 匹配的直方图结果。
next_page_token
用于指定下一页结果的起始位置的令牌。 如果没有更多结果,则此字段为空。
location_filters
服务应用于指定查询的位置过滤条件。如果任何过滤条件基于经纬度,则 Location.location_type 为 Location.LocationType.LOCATION_TYPE_UNSPECIFIED。
total_size
与指定查询匹配的作业数量。
注意:只有在总数小于 100,000 时,此大小才精确。
元数据
API 调用的其他信息,例如请求跟踪 ID。
broadened_query_jobs_count
如果启用了查询扩展,我们可能会附加扩展查询中的其他结果。此数字表示在 jobs 字段中返回的职位中有多少个来自扩大范围后的查询。这些结果始终位于作业列表的末尾。具体而言,如果值为 0 或未设置该字段,则作业列表中的所有作业都来自原始(未扩大范围)查询。如果此字段不为零,则后续请求(其偏移量在此结果集之后)应包含所有扩大范围后的结果。
spell_correction
拼写检查结果和更正。
实现
新
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>,
设置 [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>,
设置 [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
设置 [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>,
设置 [location_filters][crate::model::SearchJobsResponse::location_filters] 的值。
set_total_size
fn set_total_size<T: std::convert::Into<i32>>(self, v: T) -> Self
设置 [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>,
设置 [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>,
设置或清除 [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
设置 [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>,
设置 [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>,
设置或清除 [spell_correction][crate::model::SearchJobsResponse::spell_correction] 的值。