public final class SuggestResult
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 Cloud Search 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.Flags
Constructor and Description |
---|
SuggestResult() |
Modifier and Type | Method and Description |
---|---|
SuggestResult |
clone() |
PeopleSuggestion |
getPeopleSuggestion()
This is present when the suggestion indicates a person.
|
QuerySuggestion |
getQuerySuggestion()
This field will be present if the suggested query is a word/phrase completion.
|
Source |
getSource()
The source of the suggestion.
|
java.lang.String |
getSuggestedQuery()
The suggested query that will be used for search, when the user clicks on the suggestion
|
SuggestResult |
set(java.lang.String fieldName,
java.lang.Object value) |
SuggestResult |
setPeopleSuggestion(PeopleSuggestion peopleSuggestion)
This is present when the suggestion indicates a person.
|
SuggestResult |
setQuerySuggestion(QuerySuggestion querySuggestion)
This field will be present if the suggested query is a word/phrase completion.
|
SuggestResult |
setSource(Source source)
The source of the suggestion.
|
SuggestResult |
setSuggestedQuery(java.lang.String suggestedQuery)
The suggested query that will be used for search, when the user clicks on the suggestion
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public PeopleSuggestion getPeopleSuggestion()
null
for nonepublic SuggestResult setPeopleSuggestion(PeopleSuggestion peopleSuggestion)
peopleSuggestion
- peopleSuggestion or null
for nonepublic QuerySuggestion getQuerySuggestion()
null
for nonepublic SuggestResult setQuerySuggestion(QuerySuggestion querySuggestion)
querySuggestion
- querySuggestion or null
for nonepublic Source getSource()
null
for nonepublic SuggestResult setSource(Source source)
source
- source or null
for nonepublic java.lang.String getSuggestedQuery()
null
for nonepublic SuggestResult setSuggestedQuery(java.lang.String suggestedQuery)
suggestedQuery
- suggestedQuery or null
for nonepublic SuggestResult set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SuggestResult clone()
clone
in class com.google.api.client.json.GenericJson