public final class SubscriptionSnippet
extends com.google.api.client.json.GenericJson
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. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
SubscriptionSnippet() |
Modifier and Type | Method and Description |
---|---|
SubscriptionSnippet |
clone() |
java.lang.String |
getChannelId()
The ID that YouTube uses to uniquely identify the subscriber's channel.
|
java.lang.String |
getChannelTitle()
Channel title for the channel that the subscription belongs to.
|
java.lang.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.
|
java.lang.String |
getTitle()
The subscription's title.
|
SubscriptionSnippet |
set(java.lang.String fieldName,
java.lang.Object value) |
SubscriptionSnippet |
setChannelId(java.lang.String channelId)
The ID that YouTube uses to uniquely identify the subscriber's channel.
|
SubscriptionSnippet |
setChannelTitle(java.lang.String channelTitle)
Channel title for the channel that the subscription belongs to.
|
SubscriptionSnippet |
setDescription(java.lang.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(java.lang.String title)
The subscription's title.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getChannelId()
null
for nonepublic SubscriptionSnippet setChannelId(java.lang.String channelId)
channelId
- channelId or null
for nonepublic java.lang.String getChannelTitle()
null
for nonepublic SubscriptionSnippet setChannelTitle(java.lang.String channelTitle)
channelTitle
- channelTitle or null
for nonepublic java.lang.String getDescription()
null
for nonepublic SubscriptionSnippet setDescription(java.lang.String description)
description
- description or null
for nonepublic com.google.api.client.util.DateTime getPublishedAt()
null
for nonepublic SubscriptionSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt)
publishedAt
- publishedAt or null
for nonepublic ResourceId getResourceId()
null
for nonepublic SubscriptionSnippet setResourceId(ResourceId resourceId)
resourceId
- resourceId or null
for nonepublic ThumbnailDetails getThumbnails()
null
for nonepublic SubscriptionSnippet setThumbnails(ThumbnailDetails thumbnails)
thumbnails
- thumbnails or null
for nonepublic java.lang.String getTitle()
null
for nonepublic SubscriptionSnippet setTitle(java.lang.String title)
title
- title or null
for nonepublic SubscriptionSnippet set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SubscriptionSnippet clone()
clone
in class com.google.api.client.json.GenericJson