target.apidocs.com.google.api.services.customsearch.model.Promotion.html Maven / Gradle / Ivy
Promotion (Custom Search API v1-rev20200401-1.30.9)
com.google.api.services.customsearch.model
Class Promotion
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.customsearch.model.Promotion
-
public final class Promotion
extends GenericJson
Model definition for Promotion.
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 CustomSearch API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
static class
Promotion.BodyLines
Model definition for PromotionBodyLines.
static class
Promotion.Image
Model definition for PromotionImage.
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Promotion()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Promotion
clone()
List<Promotion.BodyLines>
getBodyLines()
String
getDisplayLink()
String
getHtmlTitle()
Promotion.Image
getImage()
String
getLink()
String
getTitle()
Promotion
set(String fieldName,
Object value)
Promotion
setBodyLines(List<Promotion.BodyLines> bodyLines)
Promotion
setDisplayLink(String displayLink)
Promotion
setHtmlTitle(String htmlTitle)
Promotion
setImage(Promotion.Image image)
Promotion
setLink(String link)
Promotion
setTitle(String title)
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getBodyLines
public List<Promotion.BodyLines> getBodyLines()
- Returns:
- value or
null
for none
-
setBodyLines
public Promotion setBodyLines(List<Promotion.BodyLines> bodyLines)
- Parameters:
bodyLines
- bodyLines or null
for none
-
getDisplayLink
public String getDisplayLink()
- Returns:
- value or
null
for none
-
setDisplayLink
public Promotion setDisplayLink(String displayLink)
- Parameters:
displayLink
- displayLink or null
for none
-
getHtmlTitle
public String getHtmlTitle()
- Returns:
- value or
null
for none
-
setHtmlTitle
public Promotion setHtmlTitle(String htmlTitle)
- Parameters:
htmlTitle
- htmlTitle or null
for none
-
getImage
public Promotion.Image getImage()
- Returns:
- value or
null
for none
-
setImage
public Promotion setImage(Promotion.Image image)
- Parameters:
image
- image or null
for none
-
getLink
public String getLink()
- Returns:
- value or
null
for none
-
getTitle
public String getTitle()
- Returns:
- value or
null
for none
-
set
public Promotion set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Promotion clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy