public interface CompletionSuggestionOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getAlternativePhrases(int index)
Alternative matching phrases for this suggestion.
|
com.google.protobuf.ByteString |
getAlternativePhrasesBytes(int index)
Alternative matching phrases for this suggestion.
|
int |
getAlternativePhrasesCount()
Alternative matching phrases for this suggestion.
|
List<String> |
getAlternativePhrasesList()
Alternative matching phrases for this suggestion.
|
long |
getFrequency()
Frequency of this suggestion.
|
double |
getGlobalScore()
Global score of this suggestion.
|
String |
getGroupId()
If two suggestions have the same groupId, they will not be
returned together.
|
com.google.protobuf.ByteString |
getGroupIdBytes()
If two suggestions have the same groupId, they will not be
returned together.
|
double |
getGroupScore()
The score of this suggestion within its group.
|
String |
getLanguageCode()
BCP-47 language code of this suggestion.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
BCP-47 language code of this suggestion.
|
CompletionSuggestion.RankingInfoCase |
getRankingInfoCase() |
String |
getSuggestion()
Required.
|
com.google.protobuf.ByteString |
getSuggestionBytes()
Required.
|
boolean |
hasFrequency()
Frequency of this suggestion.
|
boolean |
hasGlobalScore()
Global score of this suggestion.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasGlobalScore()
Global score of this suggestion. Control how this suggestion would be scored / ranked.
double global_score = 2;double getGlobalScore()
Global score of this suggestion. Control how this suggestion would be scored / ranked.
double global_score = 2;boolean hasFrequency()
Frequency of this suggestion. Will be used to rank suggestions when score is not available.
int64 frequency = 3;long getFrequency()
Frequency of this suggestion. Will be used to rank suggestions when score is not available.
int64 frequency = 3;String getSuggestion()
Required. The suggestion text.
string suggestion = 1 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.ByteString getSuggestionBytes()
Required. The suggestion text.
string suggestion = 1 [(.google.api.field_behavior) = REQUIRED];String getLanguageCode()
BCP-47 language code of this suggestion.
string language_code = 4;com.google.protobuf.ByteString getLanguageCodeBytes()
BCP-47 language code of this suggestion.
string language_code = 4;String 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 group_id = 5;com.google.protobuf.ByteString getGroupIdBytes()
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 group_id = 5;double getGroupScore()
The score of this suggestion within its group.
double group_score = 6;List<String> getAlternativePhrasesList()
Alternative matching phrases for this suggestion.
repeated string alternative_phrases = 7;int getAlternativePhrasesCount()
Alternative matching phrases for this suggestion.
repeated string alternative_phrases = 7;String getAlternativePhrases(int index)
Alternative matching phrases for this suggestion.
repeated string alternative_phrases = 7;index - The index of the element to return.com.google.protobuf.ByteString getAlternativePhrasesBytes(int index)
Alternative matching phrases for this suggestion.
repeated string alternative_phrases = 7;index - The index of the value to return.CompletionSuggestion.RankingInfoCase getRankingInfoCase()
Copyright © 2025 Google LLC. All rights reserved.