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.Flags| Constructor and Description |
|---|
PromotedItem() |
| Modifier and Type | Method and Description |
|---|---|
PromotedItem |
clone() |
java.lang.String |
getCustomMessage()
A custom message to display for this promotion.
|
PromotedItemId |
getId()
Identifies the promoted item.
|
java.lang.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(java.lang.String fieldName,
java.lang.Object value) |
PromotedItem |
setCustomMessage(java.lang.String customMessage)
A custom message to display for this promotion.
|
PromotedItem |
setId(PromotedItemId id)
Identifies the promoted item.
|
PromotedItem |
setPromotedByContentOwner(java.lang.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, valuespublic java.lang.String getCustomMessage()
null for nonepublic PromotedItem setCustomMessage(java.lang.String customMessage)
customMessage - customMessage or null for nonepublic PromotedItemId getId()
null for nonepublic PromotedItem setId(PromotedItemId id)
id - id or null for nonepublic java.lang.Boolean getPromotedByContentOwner()
null for nonepublic PromotedItem setPromotedByContentOwner(java.lang.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(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic PromotedItem clone()
clone in class com.google.api.client.json.GenericJson