target.apidocs.com.google.api.services.youtube.model.PlaylistItemSnippet.html Maven / Gradle / Ivy
PlaylistItemSnippet (YouTube Data API v3 v3-rev20240417-2.0.0)
com.google.api.services.youtube.model
Class PlaylistItemSnippet
- 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.PlaylistItemSnippet
-
public final class PlaylistItemSnippet
extends com.google.api.client.json.GenericJson
Basic details about a playlist, including title, description and thumbnails. Basic details of a
YouTube Playlist item provided by the author. Next ID: 15
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
PlaylistItemSnippet()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
PlaylistItemSnippet
clone()
String
getChannelId()
The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
String
getChannelTitle()
Channel title for the channel that the playlist item belongs to.
String
getDescription()
The item's description.
String
getPlaylistId()
The ID that YouTube uses to uniquely identify thGe playlist that the playlist item is in.
Long
getPosition()
The order in which the item appears in the playlist.
com.google.api.client.util.DateTime
getPublishedAt()
The date and time that the item was added to the playlist.
ResourceId
getResourceId()
The id object contains information that can be used to uniquely identify the resource that is
included in the playlist as the playlist item.
ThumbnailDetails
getThumbnails()
A map of thumbnail images associated with the playlist item.
String
getTitle()
The item's title.
String
getVideoOwnerChannelId()
Channel id for the channel this video belongs to.
String
getVideoOwnerChannelTitle()
Channel title for the channel this video belongs to.
PlaylistItemSnippet
set(String fieldName,
Object value)
PlaylistItemSnippet
setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
PlaylistItemSnippet
setChannelTitle(String channelTitle)
Channel title for the channel that the playlist item belongs to.
PlaylistItemSnippet
setDescription(String description)
The item's description.
PlaylistItemSnippet
setPlaylistId(String playlistId)
The ID that YouTube uses to uniquely identify thGe playlist that the playlist item is in.
PlaylistItemSnippet
setPosition(Long position)
The order in which the item appears in the playlist.
PlaylistItemSnippet
setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time that the item was added to the playlist.
PlaylistItemSnippet
setResourceId(ResourceId resourceId)
The id object contains information that can be used to uniquely identify the resource that is
included in the playlist as the playlist item.
PlaylistItemSnippet
setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the playlist item.
PlaylistItemSnippet
setTitle(String title)
The item's title.
PlaylistItemSnippet
setVideoOwnerChannelId(String videoOwnerChannelId)
Channel id for the channel this video belongs to.
PlaylistItemSnippet
setVideoOwnerChannelTitle(String videoOwnerChannelTitle)
Channel title for the channel this video belongs to.
-
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
-
getChannelId
public String getChannelId()
The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
- Returns:
- value or
null
for none
-
setChannelId
public PlaylistItemSnippet setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
- Parameters:
channelId
- channelId or null
for none
-
getChannelTitle
public String getChannelTitle()
Channel title for the channel that the playlist item belongs to.
- Returns:
- value or
null
for none
-
setChannelTitle
public PlaylistItemSnippet setChannelTitle(String channelTitle)
Channel title for the channel that the playlist item belongs to.
- Parameters:
channelTitle
- channelTitle or null
for none
-
getDescription
public String getDescription()
The item's description.
- Returns:
- value or
null
for none
-
setDescription
public PlaylistItemSnippet setDescription(String description)
The item's description.
- Parameters:
description
- description or null
for none
-
getPlaylistId
public String getPlaylistId()
The ID that YouTube uses to uniquely identify thGe playlist that the playlist item is in.
- Returns:
- value or
null
for none
-
setPlaylistId
public PlaylistItemSnippet setPlaylistId(String playlistId)
The ID that YouTube uses to uniquely identify thGe playlist that the playlist item is in.
- Parameters:
playlistId
- playlistId or null
for none
-
getPosition
public Long getPosition()
The order in which the item appears in the playlist. The value uses a zero-based index, so the
first item has a position of 0, the second item has a position of 1, and so forth.
- Returns:
- value or
null
for none
-
setPosition
public PlaylistItemSnippet setPosition(Long position)
The order in which the item appears in the playlist. The value uses a zero-based index, so the
first item has a position of 0, the second item has a position of 1, and so forth.
- Parameters:
position
- position or null
for none
-
getPublishedAt
public com.google.api.client.util.DateTime getPublishedAt()
The date and time that the item was added to the playlist.
- Returns:
- value or
null
for none
-
setPublishedAt
public PlaylistItemSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time that the item was added to the playlist.
- Parameters:
publishedAt
- publishedAt or null
for none
-
getResourceId
public ResourceId getResourceId()
The id object contains information that can be used to uniquely identify the resource that is
included in the playlist as the playlist item.
- Returns:
- value or
null
for none
-
setResourceId
public PlaylistItemSnippet setResourceId(ResourceId resourceId)
The id object contains information that can be used to uniquely identify the resource that is
included in the playlist as the playlist item.
- Parameters:
resourceId
- resourceId or null
for none
-
getThumbnails
public ThumbnailDetails getThumbnails()
A map of thumbnail images associated with the playlist item. For each object in the map, the
key is the name of the thumbnail image, and the value is an object that contains other
information about the thumbnail.
- Returns:
- value or
null
for none
-
setThumbnails
public PlaylistItemSnippet setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the playlist item. For each object in the map, the
key is the name of the thumbnail image, and the value is an object that contains other
information about the thumbnail.
- Parameters:
thumbnails
- thumbnails or null
for none
-
getTitle
public String getTitle()
The item's title.
- Returns:
- value or
null
for none
-
setTitle
public PlaylistItemSnippet setTitle(String title)
The item's title.
- Parameters:
title
- title or null
for none
-
getVideoOwnerChannelId
public String getVideoOwnerChannelId()
Channel id for the channel this video belongs to.
- Returns:
- value or
null
for none
-
setVideoOwnerChannelId
public PlaylistItemSnippet setVideoOwnerChannelId(String videoOwnerChannelId)
Channel id for the channel this video belongs to.
- Parameters:
videoOwnerChannelId
- videoOwnerChannelId or null
for none
-
getVideoOwnerChannelTitle
public String getVideoOwnerChannelTitle()
Channel title for the channel this video belongs to.
- Returns:
- value or
null
for none
-
setVideoOwnerChannelTitle
public PlaylistItemSnippet setVideoOwnerChannelTitle(String videoOwnerChannelTitle)
Channel title for the channel this video belongs to.
- Parameters:
videoOwnerChannelTitle
- videoOwnerChannelTitle or null
for none
-
set
public PlaylistItemSnippet set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public PlaylistItemSnippet clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.