All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.youtube.model.Playlist.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240514-2.0.0
Show newest version






Playlist (YouTube Data API v3 v3-rev20240417-2.0.0)












com.google.api.services.youtube.model

Class Playlist

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class Playlist
    extends com.google.api.client.json.GenericJson
    A *playlist* resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private. YouTube also uses playlists to identify special collections of videos for a channel, such as: - uploaded videos - favorite videos - positively rated (liked) videos - watch history - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods.

    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.
    • Constructor Detail

      • Playlist

        public Playlist()
    • Method Detail

      • getContentDetails

        public PlaylistContentDetails getContentDetails()
        The contentDetails object contains information like video count.
        Returns:
        value or null for none
      • setContentDetails

        public Playlist setContentDetails(PlaylistContentDetails contentDetails)
        The contentDetails object contains information like video count.
        Parameters:
        contentDetails - contentDetails or null for none
      • getEtag

        public String getEtag()
        Etag of this resource.
        Returns:
        value or null for none
      • setEtag

        public Playlist setEtag(String etag)
        Etag of this resource.
        Parameters:
        etag - etag or null for none
      • getId

        public String getId()
        The ID that YouTube uses to uniquely identify the playlist.
        Returns:
        value or null for none
      • setId

        public Playlist setId(String id)
        The ID that YouTube uses to uniquely identify the playlist.
        Parameters:
        id - id or null for none
      • getKind

        public String getKind()
        Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".
        Returns:
        value or null for none
      • setKind

        public Playlist setKind(String kind)
        Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".
        Parameters:
        kind - kind or null for none
      • getLocalizations

        public Map<String,PlaylistLocalization> getLocalizations()
        Localizations for different languages
        Returns:
        value or null for none
      • setLocalizations

        public Playlist setLocalizations(Map<String,PlaylistLocalization> localizations)
        Localizations for different languages
        Parameters:
        localizations - localizations or null for none
      • getPlayer

        public PlaylistPlayer getPlayer()
        The player object contains information that you would use to play the playlist in an embedded player.
        Returns:
        value or null for none
      • setPlayer

        public Playlist setPlayer(PlaylistPlayer player)
        The player object contains information that you would use to play the playlist in an embedded player.
        Parameters:
        player - player or null for none
      • getSnippet

        public PlaylistSnippet getSnippet()
        The snippet object contains basic details about the playlist, such as its title and description.
        Returns:
        value or null for none
      • setSnippet

        public Playlist setSnippet(PlaylistSnippet snippet)
        The snippet object contains basic details about the playlist, such as its title and description.
        Parameters:
        snippet - snippet or null for none
      • getStatus

        public PlaylistStatus getStatus()
        The status object contains status information for the playlist.
        Returns:
        value or null for none
      • setStatus

        public Playlist setStatus(PlaylistStatus status)
        The status object contains status information for the playlist.
        Parameters:
        status - status or null for none
      • set

        public Playlist set(String fieldName,
                            Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Playlist 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