public final class SearchResult
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 |
---|
SearchResult() |
Modifier and Type | Method and Description |
---|---|
SearchResult |
clone() |
java.util.List<SearchResult> |
getClusteredResults()
If source is clustered, provide list of clustered results.
|
ResultDebugInfo |
getDebugInfo()
Debugging information about this search result.
|
Metadata |
getMetadata()
Metadata of the search result.
|
Snippet |
getSnippet()
The concatenation of all snippets (summaries) available for this result.
|
java.lang.String |
getTitle()
Title of the search result.
|
java.lang.String |
getUrl()
The URL of the search result.
|
SearchResult |
set(java.lang.String fieldName,
java.lang.Object value) |
SearchResult |
setClusteredResults(java.util.List<SearchResult> clusteredResults)
If source is clustered, provide list of clustered results.
|
SearchResult |
setDebugInfo(ResultDebugInfo debugInfo)
Debugging information about this search result.
|
SearchResult |
setMetadata(Metadata metadata)
Metadata of the search result.
|
SearchResult |
setSnippet(Snippet snippet)
The concatenation of all snippets (summaries) available for this result.
|
SearchResult |
setTitle(java.lang.String title)
Title of the search result.
|
SearchResult |
setUrl(java.lang.String url)
The URL of the search result.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<SearchResult> getClusteredResults()
null
for nonepublic SearchResult setClusteredResults(java.util.List<SearchResult> clusteredResults)
clusteredResults
- clusteredResults or null
for nonepublic ResultDebugInfo getDebugInfo()
null
for nonepublic SearchResult setDebugInfo(ResultDebugInfo debugInfo)
debugInfo
- debugInfo or null
for nonepublic Metadata getMetadata()
null
for nonepublic SearchResult setMetadata(Metadata metadata)
metadata
- metadata or null
for nonepublic Snippet getSnippet()
null
for nonepublic SearchResult setSnippet(Snippet snippet)
snippet
- snippet or null
for nonepublic java.lang.String getTitle()
null
for nonepublic SearchResult setTitle(java.lang.String title)
title
- title or null
for nonepublic java.lang.String getUrl()
null
for nonepublic SearchResult setUrl(java.lang.String url)
url
- url or null
for nonepublic SearchResult set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SearchResult clone()
clone
in class com.google.api.client.json.GenericJson