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 v3. 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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SubscriptionSnippet() |
Modifier and Type | Method and Description |
---|---|
SubscriptionSnippet |
clone() |
String |
getChannelId()
The ID that YouTube uses to uniquely identify the subscriber's channel.
|
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 |
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.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getChannelId()
null
for nonepublic SubscriptionSnippet setChannelId(String channelId)
channelId
- channelId or null
for nonepublic String getDescription()
null
for nonepublic SubscriptionSnippet setDescription(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 String getTitle()
null
for nonepublic SubscriptionSnippet setTitle(String title)
title
- title or null
for nonepublic SubscriptionSnippet set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public SubscriptionSnippet clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.