
target.apidocs.com.google.api.services.youtube.model.PromotedItemId.html Maven / Gradle / Ivy
PromotedItemId (YouTube Data API v3-rev20190415-1.28.0)
com.google.api.services.youtube.model
Class PromotedItemId
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.youtube.model.PromotedItemId
-
public final class PromotedItemId
extends com.google.api.client.json.GenericJson
Describes a single promoted item id. It is a union of various possible types.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.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
PromotedItemId()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
PromotedItemId
clone()
String
getRecentlyUploadedBy()
If type is recentUpload, this field identifies the channel from which to take the recent
upload.
String
getType()
Describes the type of the promoted item.
String
getVideoId()
If the promoted item represents a video, this field represents the unique YouTube ID
identifying it.
String
getWebsiteUrl()
If the promoted item represents a website, this field represents the url pointing to the
website.
PromotedItemId
set(String fieldName,
Object value)
PromotedItemId
setRecentlyUploadedBy(String recentlyUploadedBy)
If type is recentUpload, this field identifies the channel from which to take the recent
upload.
PromotedItemId
setType(String type)
Describes the type of the promoted item.
PromotedItemId
setVideoId(String videoId)
If the promoted item represents a video, this field represents the unique YouTube ID
identifying it.
PromotedItemId
setWebsiteUrl(String websiteUrl)
If the promoted item represents a website, this field represents the url pointing to the
website.
-
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, 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
-
getRecentlyUploadedBy
public String getRecentlyUploadedBy()
If type is recentUpload, this field identifies the channel from which to take the recent
upload. If missing, the channel is assumed to be the same channel for which the
invideoPromotion is set.
- Returns:
- value or
null
for none
-
setRecentlyUploadedBy
public PromotedItemId setRecentlyUploadedBy(String recentlyUploadedBy)
If type is recentUpload, this field identifies the channel from which to take the recent
upload. If missing, the channel is assumed to be the same channel for which the
invideoPromotion is set.
- Parameters:
recentlyUploadedBy
- recentlyUploadedBy or null
for none
-
getType
public String getType()
Describes the type of the promoted item.
- Returns:
- value or
null
for none
-
setType
public PromotedItemId setType(String type)
Describes the type of the promoted item.
- Parameters:
type
- type or null
for none
-
getVideoId
public String getVideoId()
If the promoted item represents a video, this field represents the unique YouTube ID
identifying it. This field will be present only if type has the value video.
- Returns:
- value or
null
for none
-
setVideoId
public PromotedItemId setVideoId(String videoId)
If the promoted item represents a video, this field represents the unique YouTube ID
identifying it. This field will be present only if type has the value video.
- Parameters:
videoId
- videoId or null
for none
-
getWebsiteUrl
public String getWebsiteUrl()
If the promoted item represents a website, this field represents the url pointing to the
website. This field will be present only if type has the value website.
- Returns:
- value or
null
for none
-
setWebsiteUrl
public PromotedItemId setWebsiteUrl(String websiteUrl)
If the promoted item represents a website, this field represents the url pointing to the
website. This field will be present only if type has the value website.
- Parameters:
websiteUrl
- websiteUrl or null
for none
-
set
public PromotedItemId set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public PromotedItemId clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy