public final class PromotedItem
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 YouTube Data 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
PromotedItem() |
| Modifier and Type | Method and Description |
|---|---|
PromotedItem |
clone() |
String |
getCustomMessage()
A custom message to display for this promotion.
|
PromotedItemId |
getId()
Identifies the promoted item.
|
Boolean |
getPromotedByContentOwner()
If true, the content owner's name will be used when displaying the promotion.
|
InvideoTiming |
getTiming()
The temporal position within the video where the promoted item will be displayed.
|
PromotedItem |
set(String fieldName,
Object value) |
PromotedItem |
setCustomMessage(String customMessage)
A custom message to display for this promotion.
|
PromotedItem |
setId(PromotedItemId id)
Identifies the promoted item.
|
PromotedItem |
setPromotedByContentOwner(Boolean promotedByContentOwner)
If true, the content owner's name will be used when displaying the promotion.
|
PromotedItem |
setTiming(InvideoTiming timing)
The temporal position within the video where the promoted item will be displayed.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCustomMessage()
null for nonepublic PromotedItem setCustomMessage(String customMessage)
customMessage - customMessage or null for nonepublic PromotedItemId getId()
null for nonepublic PromotedItem setId(PromotedItemId id)
id - id or null for nonepublic Boolean getPromotedByContentOwner()
null for nonepublic PromotedItem setPromotedByContentOwner(Boolean promotedByContentOwner)
promotedByContentOwner - promotedByContentOwner or null for nonepublic InvideoTiming getTiming()
null for nonepublic PromotedItem setTiming(InvideoTiming timing)
timing - timing or null for nonepublic PromotedItem set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic PromotedItem clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2018 Google. All rights reserved.