public final class Promotion
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 |
Promotion.BodyLines
Block object belonging to a promotion.
|
static class |
Promotion.Image
Image belonging to a promotion.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Promotion() |
| Modifier and Type | Method and Description |
|---|---|
Promotion |
clone() |
java.util.List<Promotion.BodyLines> |
getBodyLines()
An array of block objects for this promotion.
|
java.lang.String |
getDisplayLink()
An abridged version of this search's result URL, e.g.
|
java.lang.String |
getHtmlTitle()
The title of the promotion, in HTML.
|
Promotion.Image |
getImage()
Image belonging to a promotion.
|
java.lang.String |
getLink()
The URL of the promotion.
|
java.lang.String |
getTitle()
The title of the promotion.
|
Promotion |
set(java.lang.String fieldName,
java.lang.Object value) |
Promotion |
setBodyLines(java.util.List<Promotion.BodyLines> bodyLines)
An array of block objects for this promotion.
|
Promotion |
setDisplayLink(java.lang.String displayLink)
An abridged version of this search's result URL, e.g.
|
Promotion |
setHtmlTitle(java.lang.String htmlTitle)
The title of the promotion, in HTML.
|
Promotion |
setImage(Promotion.Image image)
Image belonging to a promotion.
|
Promotion |
setLink(java.lang.String link)
The URL of the promotion.
|
Promotion |
setTitle(java.lang.String title)
The title of the promotion.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.util.List<Promotion.BodyLines> getBodyLines()
null for nonepublic Promotion setBodyLines(java.util.List<Promotion.BodyLines> bodyLines)
bodyLines - bodyLines or null for nonepublic java.lang.String getDisplayLink()
null for nonepublic Promotion setDisplayLink(java.lang.String displayLink)
displayLink - displayLink or null for nonepublic java.lang.String getHtmlTitle()
null for nonepublic Promotion setHtmlTitle(java.lang.String htmlTitle)
htmlTitle - htmlTitle or null for nonepublic Promotion.Image getImage()
null for nonepublic Promotion setImage(Promotion.Image image)
image - image or null for nonepublic java.lang.String getLink()
null for nonepublic Promotion setLink(java.lang.String link)
link - link or null for nonepublic java.lang.String getTitle()
null for nonepublic Promotion setTitle(java.lang.String title)
title - title or null for nonepublic Promotion set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Promotion clone()
clone in class com.google.api.client.json.GenericJson