target.apidocs.com.google.api.services.youtube.model.ActivitySnippet.html Maven / Gradle / Ivy
ActivitySnippet (YouTube Data API v3 v3-rev20240417-2.0.0)
com.google.api.services.youtube.model
Class ActivitySnippet
- 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.ActivitySnippet
-
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.
-
-
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
ActivitySnippet()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ActivitySnippet
clone()
String
getChannelId()
The ID that YouTube uses to uniquely identify the channel associated with the activity.
String
getChannelTitle()
Channel title for the channel responsible for this activity
String
getDescription()
The description of the resource primarily associated with the activity.
String
getGroupId()
The group ID associated with the activity.
com.google.api.client.util.DateTime
getPublishedAt()
The date and time that the video was uploaded.
ThumbnailDetails
getThumbnails()
A map of thumbnail images associated with the resource that is primarily associated with the
activity.
String
getTitle()
The title of the resource primarily associated with the activity.
String
getType()
The type of activity that the resource describes.
ActivitySnippet
set(String fieldName,
Object value)
ActivitySnippet
setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the channel associated with the activity.
ActivitySnippet
setChannelTitle(String channelTitle)
Channel title for the channel responsible for this activity
ActivitySnippet
setDescription(String description)
The description of the resource primarily associated with the activity.
ActivitySnippet
setGroupId(String groupId)
The group ID associated with the activity.
ActivitySnippet
setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time that the video was uploaded.
ActivitySnippet
setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the resource that is primarily associated with the
activity.
ActivitySnippet
setTitle(String title)
The title of the resource primarily associated with the activity.
ActivitySnippet
setType(String type)
The type of activity that the resource describes.
-
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 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
-
set
public ActivitySnippet set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
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