public final class GoogleCloudDiscoveryengineV1CompletionSuggestion
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleCloudDiscoveryengineV1CompletionSuggestion() |
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudDiscoveryengineV1CompletionSuggestion |
clone() |
List<String> |
getAlternativePhrases()
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.
|
Double |
getGroupScore()
The score of this suggestion within its group.
|
String |
getLanguageCode()
BCP-47 language code of this suggestion.
|
String |
getSuggestion()
Required.
|
GoogleCloudDiscoveryengineV1CompletionSuggestion |
set(String fieldName,
Object value) |
GoogleCloudDiscoveryengineV1CompletionSuggestion |
setAlternativePhrases(List<String> alternativePhrases)
Alternative matching phrases for this suggestion.
|
GoogleCloudDiscoveryengineV1CompletionSuggestion |
setFrequency(Long frequency)
Frequency of this suggestion.
|
GoogleCloudDiscoveryengineV1CompletionSuggestion |
setGlobalScore(Double globalScore)
Global score of this suggestion.
|
GoogleCloudDiscoveryengineV1CompletionSuggestion |
setGroupId(String groupId)
If two suggestions have the same groupId, they will not be returned together.
|
GoogleCloudDiscoveryengineV1CompletionSuggestion |
setGroupScore(Double groupScore)
The score of this suggestion within its group.
|
GoogleCloudDiscoveryengineV1CompletionSuggestion |
setLanguageCode(String languageCode)
BCP-47 language code of this suggestion.
|
GoogleCloudDiscoveryengineV1CompletionSuggestion |
setSuggestion(String suggestion)
Required.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic GoogleCloudDiscoveryengineV1CompletionSuggestion()
public List<String> getAlternativePhrases()
null for nonepublic GoogleCloudDiscoveryengineV1CompletionSuggestion setAlternativePhrases(List<String> alternativePhrases)
alternativePhrases - alternativePhrases or null for nonepublic Long getFrequency()
null for nonepublic GoogleCloudDiscoveryengineV1CompletionSuggestion setFrequency(Long frequency)
frequency - frequency or null for nonepublic Double getGlobalScore()
null for nonepublic GoogleCloudDiscoveryengineV1CompletionSuggestion setGlobalScore(Double globalScore)
globalScore - globalScore or null for nonepublic String getGroupId()
null for nonepublic GoogleCloudDiscoveryengineV1CompletionSuggestion setGroupId(String groupId)
groupId - groupId or null for nonepublic Double getGroupScore()
null for nonepublic GoogleCloudDiscoveryengineV1CompletionSuggestion setGroupScore(Double groupScore)
groupScore - groupScore or null for nonepublic String getLanguageCode()
null for nonepublic GoogleCloudDiscoveryengineV1CompletionSuggestion setLanguageCode(String languageCode)
languageCode - languageCode or null for nonepublic String getSuggestion()
null for nonepublic GoogleCloudDiscoveryengineV1CompletionSuggestion setSuggestion(String suggestion)
suggestion - suggestion or null for nonepublic GoogleCloudDiscoveryengineV1CompletionSuggestion set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GoogleCloudDiscoveryengineV1CompletionSuggestion clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.