public final class Subscription
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 |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
Subscription |
clone() |
SubscriptionContentDetails |
getContentDetails()
The contentDetails object contains basic statistics about the subscription.
|
String |
getEtag()
Etag of this resource.
|
String |
getId()
The ID that YouTube uses to uniquely identify the subscription.
|
String |
getKind()
Identifies what kind of resource this is.
|
SubscriptionSnippet |
getSnippet()
The snippet object contains basic details about the subscription, including its title and the
channel that the user subscribed to.
|
SubscriptionSubscriberSnippet |
getSubscriberSnippet()
The subscriberSnippet object contains basic details about the subscriber.
|
Subscription |
set(String fieldName,
Object value) |
Subscription |
setContentDetails(SubscriptionContentDetails contentDetails)
The contentDetails object contains basic statistics about the subscription.
|
Subscription |
setEtag(String etag)
Etag of this resource.
|
Subscription |
setId(String id)
The ID that YouTube uses to uniquely identify the subscription.
|
Subscription |
setKind(String kind)
Identifies what kind of resource this is.
|
Subscription |
setSnippet(SubscriptionSnippet snippet)
The snippet object contains basic details about the subscription, including its title and the
channel that the user subscribed to.
|
Subscription |
setSubscriberSnippet(SubscriptionSubscriberSnippet subscriberSnippet)
The subscriberSnippet object contains basic details about the subscriber.
|
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 SubscriptionContentDetails getContentDetails()
null
for nonepublic Subscription setContentDetails(SubscriptionContentDetails contentDetails)
contentDetails
- contentDetails or null
for nonepublic String getEtag()
null
for nonepublic Subscription setEtag(String etag)
etag
- etag or null
for nonepublic String getId()
null
for nonepublic Subscription setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic Subscription setKind(String kind)
kind
- kind or null
for nonepublic SubscriptionSnippet getSnippet()
null
for nonepublic Subscription setSnippet(SubscriptionSnippet snippet)
snippet
- snippet or null
for nonepublic SubscriptionSubscriberSnippet getSubscriberSnippet()
null
for nonepublic Subscription setSubscriberSnippet(SubscriptionSubscriberSnippet subscriberSnippet)
subscriberSnippet
- subscriberSnippet or null
for nonepublic Subscription set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Subscription clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.