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

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

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






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












com.google.api.services.youtube.model

Class ActivitySnippet

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


    public final class ActivitySnippet
    extends com.google.api.client.json.GenericJson
    Basic details about an activity, including title, description, thumbnails, activity type and group. Next ID: 12

    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

      • ActivitySnippet

        public ActivitySnippet()
    • Method Detail

      • getChannelId

        public String getChannelId()
        The ID that YouTube uses to uniquely identify the channel associated with the activity.
        Returns:
        value or null for none
      • setChannelId

        public ActivitySnippet setChannelId(String channelId)
        The ID that YouTube uses to uniquely identify the channel associated with the activity.
        Parameters:
        channelId - channelId or null for none
      • getChannelTitle

        public String getChannelTitle()
        Channel title for the channel responsible for this activity
        Returns:
        value or null for none
      • setChannelTitle

        public ActivitySnippet setChannelTitle(String channelTitle)
        Channel title for the channel responsible for this activity
        Parameters:
        channelTitle - channelTitle or null for none
      • getDescription

        public String getDescription()
        The description of the resource primarily associated with the activity. @mutable youtube.activities.insert
        Returns:
        value or null for none
      • setDescription

        public ActivitySnippet setDescription(String description)
        The description of the resource primarily associated with the activity. @mutable youtube.activities.insert
        Parameters:
        description - description or null for none
      • getGroupId

        public String getGroupId()
        The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
        Returns:
        value or null for none
      • setGroupId

        public ActivitySnippet setGroupId(String groupId)
        The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
        Parameters:
        groupId - groupId or null for none
      • getPublishedAt

        public com.google.api.client.util.DateTime getPublishedAt()
        The date and time that the video was uploaded.
        Returns:
        value or null for none
      • setPublishedAt

        public ActivitySnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt)
        The date and time that the video was uploaded.
        Parameters:
        publishedAt - publishedAt or null for none
      • getThumbnails

        public ThumbnailDetails getThumbnails()
        A map of thumbnail images associated with the resource that is primarily associated with the activity. 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 ActivitySnippet setThumbnails(ThumbnailDetails thumbnails)
        A map of thumbnail images associated with the resource that is primarily associated with the activity. 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 title of the resource primarily associated with the activity.
        Returns:
        value or null for none
      • setTitle

        public ActivitySnippet setTitle(String title)
        The title of the resource primarily associated with the activity.
        Parameters:
        title - title or null for none
      • getType

        public String getType()
        The type of activity that the resource describes.
        Returns:
        value or null for none
      • setType

        public ActivitySnippet setType(String type)
        The type of activity that the resource describes.
        Parameters:
        type - type or null for none
      • clone

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