public final class Result
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 Custom Search API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Result.Image
Image belonging to a custom search result.
|
static class |
Result.Labels
Refinement label associated with a custom search result.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Result() |
| Modifier and Type | Method and Description |
|---|---|
Result |
clone() |
String |
getCacheId()
Indicates the ID of Google's cached version of the search result.
|
String |
getDisplayLink()
An abridged version of this search result’s URL, e.g.
|
String |
getFileFormat()
The file format of the search result.
|
String |
getFormattedUrl()
The URL displayed after the snippet for each search result.
|
String |
getHtmlFormattedUrl()
The HTML-formatted URL displayed after the snippet for each search result.
|
String |
getHtmlSnippet()
The snippet of the search result, in HTML.
|
String |
getHtmlTitle()
The title of the search result, in HTML.
|
Result.Image |
getImage()
Image belonging to a custom search result.
|
String |
getKind()
A unique identifier for the type of current object.
|
List<Result.Labels> |
getLabels()
Encapsulates all information about refinement labels.
|
String |
getLink()
The full URL to which the search result is pointing, e.g.
|
String |
getMime()
The MIME type of the search result.
|
Map<String,Object> |
getPagemap()
Contains [PageMap](https://developers.google.com/custom-search/docs/structured_data#pagemaps)
information for this search result.
|
String |
getSnippet()
The snippet of the search result, in plain text.
|
String |
getTitle()
The title of the search result, in plain text.
|
Result |
set(String fieldName,
Object value) |
Result |
setCacheId(String cacheId)
Indicates the ID of Google's cached version of the search result.
|
Result |
setDisplayLink(String displayLink)
An abridged version of this search result’s URL, e.g.
|
Result |
setFileFormat(String fileFormat)
The file format of the search result.
|
Result |
setFormattedUrl(String formattedUrl)
The URL displayed after the snippet for each search result.
|
Result |
setHtmlFormattedUrl(String htmlFormattedUrl)
The HTML-formatted URL displayed after the snippet for each search result.
|
Result |
setHtmlSnippet(String htmlSnippet)
The snippet of the search result, in HTML.
|
Result |
setHtmlTitle(String htmlTitle)
The title of the search result, in HTML.
|
Result |
setImage(Result.Image image)
Image belonging to a custom search result.
|
Result |
setKind(String kind)
A unique identifier for the type of current object.
|
Result |
setLabels(List<Result.Labels> labels)
Encapsulates all information about refinement labels.
|
Result |
setLink(String link)
The full URL to which the search result is pointing, e.g.
|
Result |
setMime(String mime)
The MIME type of the search result.
|
Result |
setPagemap(Map<String,Object> pagemap)
Contains [PageMap](https://developers.google.com/custom-search/docs/structured_data#pagemaps)
information for this search result.
|
Result |
setSnippet(String snippet)
The snippet of the search result, in plain text.
|
Result |
setTitle(String title)
The title of the search result, in plain text.
|
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 String getCacheId()
null for nonepublic Result setCacheId(String cacheId)
cacheId - cacheId or null for nonepublic String getDisplayLink()
null for nonepublic Result setDisplayLink(String displayLink)
displayLink - displayLink or null for nonepublic String getFileFormat()
null for nonepublic Result setFileFormat(String fileFormat)
fileFormat - fileFormat or null for nonepublic String getFormattedUrl()
null for nonepublic Result setFormattedUrl(String formattedUrl)
formattedUrl - formattedUrl or null for nonepublic String getHtmlFormattedUrl()
null for nonepublic Result setHtmlFormattedUrl(String htmlFormattedUrl)
htmlFormattedUrl - htmlFormattedUrl or null for nonepublic String getHtmlSnippet()
null for nonepublic Result setHtmlSnippet(String htmlSnippet)
htmlSnippet - htmlSnippet or null for nonepublic String getHtmlTitle()
null for nonepublic Result setHtmlTitle(String htmlTitle)
htmlTitle - htmlTitle or null for nonepublic Result.Image getImage()
null for nonepublic Result setImage(Result.Image image)
image - image or null for nonepublic String getKind()
null for nonepublic Result setKind(String kind)
kind - kind or null for nonepublic List<Result.Labels> getLabels()
null for nonepublic Result setLabels(List<Result.Labels> labels)
labels - labels or null for nonepublic String getLink()
null for nonepublic Result setLink(String link)
link - link or null for nonepublic String getMime()
null for nonepublic Result setMime(String mime)
mime - mime or null for nonepublic Map<String,Object> getPagemap()
null for nonepublic Result setPagemap(Map<String,Object> pagemap)
pagemap - pagemap or null for nonepublic String getSnippet()
null for nonepublic Result setSnippet(String snippet)
snippet - snippet or null for nonepublic String getTitle()
null for nonepublic Result setTitle(String title)
title - title or null for nonepublic Result set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Result clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.