pub struct GoogleCloudRetailV2CompleteQueryResponse {
pub attribute_results: Option<HashMap<String, GoogleCloudRetailV2CompleteQueryResponseAttributeResult>>,
pub attribution_token: Option<String>,
pub completion_results: Option<Vec<GoogleCloudRetailV2CompleteQueryResponseCompletionResult>>,
pub recent_search_results: Option<Vec<GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult>>,
}Expand description
Response of the autocomplete query.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations catalogs complete query projects (response)
Fields§
§attribute_results: Option<HashMap<String, GoogleCloudRetailV2CompleteQueryResponseAttributeResult>>A map of matched attribute suggestions. This field is only available for cloud-retail dataset. Current supported keys: * brands * categories
attribution_token: Option<String>A unique complete token. This should be included in the UserEvent.completion_detail for search events resulting from this completion, which enables accurate attribution of complete model performance.
completion_results: Option<Vec<GoogleCloudRetailV2CompleteQueryResponseCompletionResult>>Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
recent_search_results: Option<Vec<GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult>>Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
Trait Implementations§
Source§impl Clone for GoogleCloudRetailV2CompleteQueryResponse
impl Clone for GoogleCloudRetailV2CompleteQueryResponse
Source§fn clone(&self) -> GoogleCloudRetailV2CompleteQueryResponse
fn clone(&self) -> GoogleCloudRetailV2CompleteQueryResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more