public final class SearchResponse
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 |
---|
SearchResponse() |
Modifier and Type | Method and Description |
---|---|
SearchResponse |
clone() |
ResponseDebugInfo |
getDebugInfo()
Debugging information about the response.
|
ErrorInfo |
getErrorInfo()
Error information about the response.
|
java.util.List<FacetResult> |
getFacetResults()
Repeated facet results.
|
java.lang.Boolean |
getHasMoreResults()
Whether there are more search results matching the query.
|
QueryInterpretation |
getQueryInterpretation()
Query interpretation result for user query.
|
java.lang.Long |
getResultCountEstimate()
The estimated result count for this query.
|
java.lang.Long |
getResultCountExact()
The exact result count for this query.
|
ResultCounts |
getResultCounts()
Expanded result count information.
|
java.util.List<SearchResult> |
getResults()
Results from a search query.
|
java.util.List<SpellResult> |
getSpellResults()
Suggested spelling for the query.
|
java.util.List<StructuredResult> |
getStructuredResults()
Structured results for the user query.
|
SearchResponse |
set(java.lang.String fieldName,
java.lang.Object value) |
SearchResponse |
setDebugInfo(ResponseDebugInfo debugInfo)
Debugging information about the response.
|
SearchResponse |
setErrorInfo(ErrorInfo errorInfo)
Error information about the response.
|
SearchResponse |
setFacetResults(java.util.List<FacetResult> facetResults)
Repeated facet results.
|
SearchResponse |
setHasMoreResults(java.lang.Boolean hasMoreResults)
Whether there are more search results matching the query.
|
SearchResponse |
setQueryInterpretation(QueryInterpretation queryInterpretation)
Query interpretation result for user query.
|
SearchResponse |
setResultCountEstimate(java.lang.Long resultCountEstimate)
The estimated result count for this query.
|
SearchResponse |
setResultCountExact(java.lang.Long resultCountExact)
The exact result count for this query.
|
SearchResponse |
setResultCounts(ResultCounts resultCounts)
Expanded result count information.
|
SearchResponse |
setResults(java.util.List<SearchResult> results)
Results from a search query.
|
SearchResponse |
setSpellResults(java.util.List<SpellResult> spellResults)
Suggested spelling for the query.
|
SearchResponse |
setStructuredResults(java.util.List<StructuredResult> structuredResults)
Structured results for the user query.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public ResponseDebugInfo getDebugInfo()
null
for nonepublic SearchResponse setDebugInfo(ResponseDebugInfo debugInfo)
debugInfo
- debugInfo or null
for nonepublic ErrorInfo getErrorInfo()
null
for nonepublic SearchResponse setErrorInfo(ErrorInfo errorInfo)
errorInfo
- errorInfo or null
for nonepublic java.util.List<FacetResult> getFacetResults()
null
for nonepublic SearchResponse setFacetResults(java.util.List<FacetResult> facetResults)
facetResults
- facetResults or null
for nonepublic java.lang.Boolean getHasMoreResults()
null
for nonepublic SearchResponse setHasMoreResults(java.lang.Boolean hasMoreResults)
hasMoreResults
- hasMoreResults or null
for nonepublic QueryInterpretation getQueryInterpretation()
null
for nonepublic SearchResponse setQueryInterpretation(QueryInterpretation queryInterpretation)
queryInterpretation
- queryInterpretation or null
for nonepublic java.lang.Long getResultCountEstimate()
null
for nonepublic SearchResponse setResultCountEstimate(java.lang.Long resultCountEstimate)
resultCountEstimate
- resultCountEstimate or null
for nonepublic java.lang.Long getResultCountExact()
null
for nonepublic SearchResponse setResultCountExact(java.lang.Long resultCountExact)
resultCountExact
- resultCountExact or null
for nonepublic ResultCounts getResultCounts()
null
for nonepublic SearchResponse setResultCounts(ResultCounts resultCounts)
resultCounts
- resultCounts or null
for nonepublic java.util.List<SearchResult> getResults()
null
for nonepublic SearchResponse setResults(java.util.List<SearchResult> results)
results
- results or null
for nonepublic java.util.List<SpellResult> getSpellResults()
null
for nonepublic SearchResponse setSpellResults(java.util.List<SpellResult> spellResults)
spellResults
- spellResults or null
for nonepublic java.util.List<StructuredResult> getStructuredResults()
null
for nonepublic SearchResponse setStructuredResults(java.util.List<StructuredResult> structuredResults)
structuredResults
- structuredResults or null
for nonepublic SearchResponse set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SearchResponse clone()
clone
in class com.google.api.client.json.GenericJson