target.apidocs.com.google.api.services.youtube.model.ActivityContentDetails.html Maven / Gradle / Ivy
ActivityContentDetails (YouTube Data API v3 v3-rev20240909-2.0.0)
com.google.api.services.youtube.model
Class ActivityContentDetails
- 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.ActivityContentDetails
-
public final class ActivityContentDetails
extends com.google.api.client.json.GenericJson
Details about the content of an activity: the video that was shared, the channel that was
subscribed to, etc.
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 v3. 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
ActivityContentDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ActivityContentDetails
clone()
ActivityContentDetailsBulletin
getBulletin()
The bulletin object contains details about a channel bulletin post.
ActivityContentDetailsChannelItem
getChannelItem()
The channelItem object contains details about a resource which was added to a channel.
ActivityContentDetailsComment
getComment()
The comment object contains information about a resource that received a comment.
ActivityContentDetailsFavorite
getFavorite()
The favorite object contains information about a video that was marked as a favorite video.
ActivityContentDetailsLike
getLike()
The like object contains information about a resource that received a positive (like) rating.
ActivityContentDetailsPlaylistItem
getPlaylistItem()
The playlistItem object contains information about a new playlist item.
ActivityContentDetailsPromotedItem
getPromotedItem()
The promotedItem object contains details about a resource which is being promoted.
ActivityContentDetailsRecommendation
getRecommendation()
The recommendation object contains information about a recommended resource.
ActivityContentDetailsSocial
getSocial()
The social object contains details about a social network post.
ActivityContentDetailsSubscription
getSubscription()
The subscription object contains information about a channel that a user subscribed to.
ActivityContentDetailsUpload
getUpload()
The upload object contains information about the uploaded video.
ActivityContentDetails
set(String fieldName,
Object value)
ActivityContentDetails
setBulletin(ActivityContentDetailsBulletin bulletin)
The bulletin object contains details about a channel bulletin post.
ActivityContentDetails
setChannelItem(ActivityContentDetailsChannelItem channelItem)
The channelItem object contains details about a resource which was added to a channel.
ActivityContentDetails
setComment(ActivityContentDetailsComment comment)
The comment object contains information about a resource that received a comment.
ActivityContentDetails
setFavorite(ActivityContentDetailsFavorite favorite)
The favorite object contains information about a video that was marked as a favorite video.
ActivityContentDetails
setLike(ActivityContentDetailsLike like)
The like object contains information about a resource that received a positive (like) rating.
ActivityContentDetails
setPlaylistItem(ActivityContentDetailsPlaylistItem playlistItem)
The playlistItem object contains information about a new playlist item.
ActivityContentDetails
setPromotedItem(ActivityContentDetailsPromotedItem promotedItem)
The promotedItem object contains details about a resource which is being promoted.
ActivityContentDetails
setRecommendation(ActivityContentDetailsRecommendation recommendation)
The recommendation object contains information about a recommended resource.
ActivityContentDetails
setSocial(ActivityContentDetailsSocial social)
The social object contains details about a social network post.
ActivityContentDetails
setSubscription(ActivityContentDetailsSubscription subscription)
The subscription object contains information about a channel that a user subscribed to.
ActivityContentDetails
setUpload(ActivityContentDetailsUpload upload)
The upload object contains information about the uploaded video.
-
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
-
getBulletin
public ActivityContentDetailsBulletin getBulletin()
The bulletin object contains details about a channel bulletin post. This object is only present
if the snippet.type is bulletin.
- Returns:
- value or
null
for none
-
setBulletin
public ActivityContentDetails setBulletin(ActivityContentDetailsBulletin bulletin)
The bulletin object contains details about a channel bulletin post. This object is only present
if the snippet.type is bulletin.
- Parameters:
bulletin
- bulletin or null
for none
-
getChannelItem
public ActivityContentDetailsChannelItem getChannelItem()
The channelItem object contains details about a resource which was added to a channel. This
property is only present if the snippet.type is channelItem.
- Returns:
- value or
null
for none
-
setChannelItem
public ActivityContentDetails setChannelItem(ActivityContentDetailsChannelItem channelItem)
The channelItem object contains details about a resource which was added to a channel. This
property is only present if the snippet.type is channelItem.
- Parameters:
channelItem
- channelItem or null
for none
-
getComment
public ActivityContentDetailsComment getComment()
The comment object contains information about a resource that received a comment. This property
is only present if the snippet.type is comment.
- Returns:
- value or
null
for none
-
setComment
public ActivityContentDetails setComment(ActivityContentDetailsComment comment)
The comment object contains information about a resource that received a comment. This property
is only present if the snippet.type is comment.
- Parameters:
comment
- comment or null
for none
-
getFavorite
public ActivityContentDetailsFavorite getFavorite()
The favorite object contains information about a video that was marked as a favorite video.
This property is only present if the snippet.type is favorite.
- Returns:
- value or
null
for none
-
setFavorite
public ActivityContentDetails setFavorite(ActivityContentDetailsFavorite favorite)
The favorite object contains information about a video that was marked as a favorite video.
This property is only present if the snippet.type is favorite.
- Parameters:
favorite
- favorite or null
for none
-
getLike
public ActivityContentDetailsLike getLike()
The like object contains information about a resource that received a positive (like) rating.
This property is only present if the snippet.type is like.
- Returns:
- value or
null
for none
-
setLike
public ActivityContentDetails setLike(ActivityContentDetailsLike like)
The like object contains information about a resource that received a positive (like) rating.
This property is only present if the snippet.type is like.
- Parameters:
like
- like or null
for none
-
getPlaylistItem
public ActivityContentDetailsPlaylistItem getPlaylistItem()
The playlistItem object contains information about a new playlist item. This property is only
present if the snippet.type is playlistItem.
- Returns:
- value or
null
for none
-
setPlaylistItem
public ActivityContentDetails setPlaylistItem(ActivityContentDetailsPlaylistItem playlistItem)
The playlistItem object contains information about a new playlist item. This property is only
present if the snippet.type is playlistItem.
- Parameters:
playlistItem
- playlistItem or null
for none
-
getPromotedItem
public ActivityContentDetailsPromotedItem getPromotedItem()
The promotedItem object contains details about a resource which is being promoted. This
property is only present if the snippet.type is promotedItem.
- Returns:
- value or
null
for none
-
setPromotedItem
public ActivityContentDetails setPromotedItem(ActivityContentDetailsPromotedItem promotedItem)
The promotedItem object contains details about a resource which is being promoted. This
property is only present if the snippet.type is promotedItem.
- Parameters:
promotedItem
- promotedItem or null
for none
-
getRecommendation
public ActivityContentDetailsRecommendation getRecommendation()
The recommendation object contains information about a recommended resource. This property is
only present if the snippet.type is recommendation.
- Returns:
- value or
null
for none
-
setRecommendation
public ActivityContentDetails setRecommendation(ActivityContentDetailsRecommendation recommendation)
The recommendation object contains information about a recommended resource. This property is
only present if the snippet.type is recommendation.
- Parameters:
recommendation
- recommendation or null
for none
-
getSocial
public ActivityContentDetailsSocial getSocial()
The social object contains details about a social network post. This property is only present
if the snippet.type is social.
- Returns:
- value or
null
for none
-
setSocial
public ActivityContentDetails setSocial(ActivityContentDetailsSocial social)
The social object contains details about a social network post. This property is only present
if the snippet.type is social.
- Parameters:
social
- social or null
for none
-
getSubscription
public ActivityContentDetailsSubscription getSubscription()
The subscription object contains information about a channel that a user subscribed to. This
property is only present if the snippet.type is subscription.
- Returns:
- value or
null
for none
-
setSubscription
public ActivityContentDetails setSubscription(ActivityContentDetailsSubscription subscription)
The subscription object contains information about a channel that a user subscribed to. This
property is only present if the snippet.type is subscription.
- Parameters:
subscription
- subscription or null
for none
-
getUpload
public ActivityContentDetailsUpload getUpload()
The upload object contains information about the uploaded video. This property is only present
if the snippet.type is upload.
- Returns:
- value or
null
for none
-
setUpload
public ActivityContentDetails setUpload(ActivityContentDetailsUpload upload)
The upload object contains information about the uploaded video. This property is only present
if the snippet.type is upload.
- Parameters:
upload
- upload or null
for none
-
set
public ActivityContentDetails set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ActivityContentDetails clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy