target.apidocs.com.google.api.services.youtube.model.SubscriptionSnippet.html Maven / Gradle / Ivy
SubscriptionSnippet (YouTube Data API v3 v3-rev20240417-2.0.0)
com.google.api.services.youtube.model
Class SubscriptionSnippet
- 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.SubscriptionSnippet
-
public final class SubscriptionSnippet
extends com.google.api.client.json.GenericJson
Basic details about a subscription, including title, description and thumbnails of the subscribed
item.
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
SubscriptionSnippet()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
SubscriptionSnippet
clone()
String
getChannelId()
The ID that YouTube uses to uniquely identify the subscriber's channel.
String
getChannelTitle()
Channel title for the channel that the subscription belongs to.
String
getDescription()
The subscription's details.
com.google.api.client.util.DateTime
getPublishedAt()
The date and time that the subscription was created.
ResourceId
getResourceId()
The id object contains information about the channel that the user subscribed to.
ThumbnailDetails
getThumbnails()
A map of thumbnail images associated with the video.
String
getTitle()
The subscription's title.
SubscriptionSnippet
set(String fieldName,
Object value)
SubscriptionSnippet
setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the subscriber's channel.
SubscriptionSnippet
setChannelTitle(String channelTitle)
Channel title for the channel that the subscription belongs to.
SubscriptionSnippet
setDescription(String description)
The subscription's details.
SubscriptionSnippet
setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time that the subscription was created.
SubscriptionSnippet
setResourceId(ResourceId resourceId)
The id object contains information about the channel that the user subscribed to.
SubscriptionSnippet
setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the video.
SubscriptionSnippet
setTitle(String title)
The subscription's title.
-
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 subscriber's channel.
- Returns:
- value or
null
for none
-
setChannelId
public SubscriptionSnippet setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the subscriber's channel.
- Parameters:
channelId
- channelId or null
for none
-
getChannelTitle
public String getChannelTitle()
Channel title for the channel that the subscription belongs to.
- Returns:
- value or
null
for none
-
setChannelTitle
public SubscriptionSnippet setChannelTitle(String channelTitle)
Channel title for the channel that the subscription belongs to.
- Parameters:
channelTitle
- channelTitle or null
for none
-
getDescription
public String getDescription()
The subscription's details.
- Returns:
- value or
null
for none
-
setDescription
public SubscriptionSnippet setDescription(String description)
The subscription's details.
- Parameters:
description
- description or null
for none
-
getPublishedAt
public com.google.api.client.util.DateTime getPublishedAt()
The date and time that the subscription was created.
- Returns:
- value or
null
for none
-
setPublishedAt
public SubscriptionSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time that the subscription was created.
- Parameters:
publishedAt
- publishedAt or null
for none
-
getResourceId
public ResourceId getResourceId()
The id object contains information about the channel that the user subscribed to.
- Returns:
- value or
null
for none
-
setResourceId
public SubscriptionSnippet setResourceId(ResourceId resourceId)
The id object contains information about the channel that the user subscribed to.
- Parameters:
resourceId
- resourceId or null
for none
-
getThumbnails
public ThumbnailDetails getThumbnails()
A map of thumbnail images associated with the video. 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 SubscriptionSnippet setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the video. 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 subscription's title.
- Returns:
- value or
null
for none
-
setTitle
public SubscriptionSnippet setTitle(String title)
The subscription's title.
- Parameters:
title
- title or null
for none
-
set
public SubscriptionSnippet set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public SubscriptionSnippet 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