Class CompletionSuggestion (0.12.2)

CompletionSuggestion(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Autocomplete suggestions that are imported from Customer.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
global_score float
Global score of this suggestion. Control how this suggestion would be scored / ranked. This field is a member of oneof_ ranking_info.
frequency int
Frequency of this suggestion. Will be used to rank suggestions when score is not available. This field is a member of oneof_ ranking_info.
suggestion str
Required. The suggestion text.
language_code str
BCP-47 language code of this suggestion.
group_id str
If two suggestions have the same groupId, they will not be returned together. Instead the one ranked higher will be returned. This can be used to deduplicate semantically identical suggestions.
group_score float
The score of this suggestion within its group.
alternative_phrases MutableSequence[str]
Alternative matching phrases for this suggestion.