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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Promotion() |
| Modifier and Type | Method and Description |
|---|---|
Promotion |
clone() |
List<Promotion.BodyLines> |
getBodyLines()
An array of block objects for this promotion.
|
String |
getDisplayLink()
An abridged version of this search's result URL, e.g.
|
String |
getHtmlTitle()
The title of the promotion, in HTML.
|
Promotion.Image |
getImage()
Image belonging to a promotion.
|
String |
getLink()
The URL of the promotion.
|
String |
getTitle()
The title of the promotion.
|
Promotion |
set(String fieldName,
Object value) |
Promotion |
setBodyLines(List<Promotion.BodyLines> bodyLines)
An array of block objects for this promotion.
|
Promotion |
setDisplayLink(String displayLink)
An abridged version of this search's result URL, e.g.
|
Promotion |
setHtmlTitle(String htmlTitle)
The title of the promotion, in HTML.
|
Promotion |
setImage(Promotion.Image image)
Image belonging to a promotion.
|
Promotion |
setLink(String link)
The URL of the promotion.
|
Promotion |
setTitle(String title)
The title of the promotion.
|
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 List<Promotion.BodyLines> getBodyLines()
null for nonepublic Promotion setBodyLines(List<Promotion.BodyLines> bodyLines)
bodyLines - bodyLines or null for nonepublic String getDisplayLink()
null for nonepublic Promotion setDisplayLink(String displayLink)
displayLink - displayLink or null for nonepublic String getHtmlTitle()
null for nonepublic Promotion setHtmlTitle(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 String getLink()
null for nonepublic Promotion setLink(String link)
link - link or null for nonepublic String getTitle()
null for nonepublic Promotion setTitle(String title)
title - title or null for nonepublic Promotion set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Promotion clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.