Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class CompletionSuggestion.
Autocomplete suggestions that are imported from Customer.
Generated from protobuf message google.cloud.discoveryengine.v1.CompletionSuggestion
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ global_score
float
Global score of this suggestion. Control how this suggestion would be scored / ranked.
↳ frequency
int|string
Frequency of this suggestion. Will be used to rank suggestions when score is not available.
↳ suggestion
string
Required. The suggestion text.
↳ language_code
string
BCP-47 language code of this suggestion.
↳ group_id
string
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
array
Alternative matching phrases for this suggestion.
getGlobalScore
Global score of this suggestion. Control how this suggestion would be scored / ranked.
float
hasGlobalScore
setGlobalScore
Global score of this suggestion. Control how this suggestion would be scored / ranked.
var
float
$this
getFrequency
Frequency of this suggestion. Will be used to rank suggestions when score is not available.
int|string
hasFrequency
setFrequency
Frequency of this suggestion. Will be used to rank suggestions when score is not available.
var
int|string
$this
getSuggestion
Required. The suggestion text.
string
setSuggestion
Required. The suggestion text.
var
string
$this
getLanguageCode
BCP-47 language code of this suggestion.
string
setLanguageCode
BCP-47 language code of this suggestion.
var
string
$this
getGroupId
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.
string
setGroupId
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.
var
string
$this
getGroupScore
The score of this suggestion within its group.
float
setGroupScore
The score of this suggestion within its group.
var
float
$this
getAlternativePhrases
Alternative matching phrases for this suggestion.
setAlternativePhrases
Alternative matching phrases for this suggestion.
var
string[]
$this
getRankingInfo
string