CompletionResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Resource that represents completion results.
Attributes | |
---|---|
Name | Description |
suggestion |
str
The suggestion for the query. |
attributes |
MutableMapping[str, google.cloud.retail_v2alpha.types.CustomAttribute]
Custom attributes for the suggestion term. - For "user-data", the attributes are additional custom attributes ingested through BigQuery. - For "cloud-retail", the attributes are product attributes generated by Cloud Retail. It requires UserEvent.product_details is imported properly. |
facets |
MutableSequence[google.cloud.retail_v2alpha.types.SearchResponse.Facet]
Facet information for the suggestion term. Gives the number of items resulting from a search with this suggestion term for each facet. This is an experimental feature for limited customers. Please reach out to the support team if you would like to receive this information. |
total_product_count |
int
Total number of products associated with a search with this suggestion. This is an experimental feature for limited customers. Please reach out to the support team if you would like to receive this information. |
Classes
AttributesEntry
AttributesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |