Struct google_api_proto::google::cloud::retail::v2beta::SearchResponse
source · pub struct SearchResponse {
pub results: Vec<SearchResult>,
pub facets: Vec<Facet>,
pub total_size: i32,
pub corrected_query: String,
pub attribution_token: String,
pub next_page_token: String,
pub query_expansion_info: Option<QueryExpansionInfo>,
pub redirect_uri: String,
pub applied_controls: Vec<String>,
pub invalid_condition_boost_specs: Vec<ConditionBoostSpec>,
pub experiment_info: Vec<ExperimentInfo>,
}
Expand description
Response message for [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] method.
Fields§
§results: Vec<SearchResult>
A list of matched items. The order represents the ranking.
facets: Vec<Facet>
Results of facets requested by user.
total_size: i32
The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.retail.v2beta.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.retail.v2beta.SearchResponse.total_size] that matches.
corrected_query: String
Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
attribution_token: String
A unique search token. This should be included in the [UserEvent][google.cloud.retail.v2beta.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance.
next_page_token: String
A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2beta.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
query_expansion_info: Option<QueryExpansionInfo>
Query expansion information for the returned results.
redirect_uri: String
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.retail.v2beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.retail.v2beta.SearchResponse.attribution_token] are set in the response.
applied_controls: Vec<String>
The fully qualified resource name of applied controls.
invalid_condition_boost_specs: Vec<ConditionBoostSpec>
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
experiment_info: Vec<ExperimentInfo>
Metadata related to A/B testing [Experiment][] associated with this response. Only exists when an experiment is triggered.
Trait Implementations§
source§impl Clone for SearchResponse
impl Clone for SearchResponse
source§fn clone(&self) -> SearchResponse
fn clone(&self) -> SearchResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchResponse
impl Debug for SearchResponse
source§impl Default for SearchResponse
impl Default for SearchResponse
source§impl Message for SearchResponse
impl Message for SearchResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SearchResponse
impl PartialEq for SearchResponse
source§fn eq(&self, other: &SearchResponse) -> bool
fn eq(&self, other: &SearchResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchResponse
Auto Trait Implementations§
impl Freeze for SearchResponse
impl RefUnwindSafe for SearchResponse
impl Send for SearchResponse
impl Sync for SearchResponse
impl Unpin for SearchResponse
impl UnwindSafe for SearchResponse
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