target.apidocs.com.google.api.services.youtube.model.ChannelStatistics.html Maven / Gradle / Ivy
ChannelStatistics (YouTube Data API v3 v3-rev20210410-1.31.0)
com.google.api.services.youtube.model
Class ChannelStatistics
- 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.ChannelStatistics
-
public final class ChannelStatistics
extends GenericJson
Statistics about a channel: number of subscribers, number of videos in the channel, etc.
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
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
ChannelStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ChannelStatistics
clone()
BigInteger
getCommentCount()
The number of comments for the channel.
Boolean
getHiddenSubscriberCount()
Whether or not the number of subscribers is shown for this user.
BigInteger
getSubscriberCount()
The number of subscribers that the channel has.
BigInteger
getVideoCount()
The number of videos uploaded to the channel.
BigInteger
getViewCount()
The number of times the channel has been viewed.
ChannelStatistics
set(String fieldName,
Object value)
ChannelStatistics
setCommentCount(BigInteger commentCount)
The number of comments for the channel.
ChannelStatistics
setHiddenSubscriberCount(Boolean hiddenSubscriberCount)
Whether or not the number of subscribers is shown for this user.
ChannelStatistics
setSubscriberCount(BigInteger subscriberCount)
The number of subscribers that the channel has.
ChannelStatistics
setVideoCount(BigInteger videoCount)
The number of videos uploaded to the channel.
ChannelStatistics
setViewCount(BigInteger viewCount)
The number of times the channel has been viewed.
-
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
-
getCommentCount
public BigInteger getCommentCount()
The number of comments for the channel.
- Returns:
- value or
null
for none
-
setCommentCount
public ChannelStatistics setCommentCount(BigInteger commentCount)
The number of comments for the channel.
- Parameters:
commentCount
- commentCount or null
for none
-
getHiddenSubscriberCount
public Boolean getHiddenSubscriberCount()
Whether or not the number of subscribers is shown for this user.
- Returns:
- value or
null
for none
-
setHiddenSubscriberCount
public ChannelStatistics setHiddenSubscriberCount(Boolean hiddenSubscriberCount)
Whether or not the number of subscribers is shown for this user.
- Parameters:
hiddenSubscriberCount
- hiddenSubscriberCount or null
for none
-
getSubscriberCount
public BigInteger getSubscriberCount()
The number of subscribers that the channel has.
- Returns:
- value or
null
for none
-
setSubscriberCount
public ChannelStatistics setSubscriberCount(BigInteger subscriberCount)
The number of subscribers that the channel has.
- Parameters:
subscriberCount
- subscriberCount or null
for none
-
getVideoCount
public BigInteger getVideoCount()
The number of videos uploaded to the channel.
- Returns:
- value or
null
for none
-
setVideoCount
public ChannelStatistics setVideoCount(BigInteger videoCount)
The number of videos uploaded to the channel.
- Parameters:
videoCount
- videoCount or null
for none
-
getViewCount
public BigInteger getViewCount()
The number of times the channel has been viewed.
- Returns:
- value or
null
for none
-
setViewCount
public ChannelStatistics setViewCount(BigInteger viewCount)
The number of times the channel has been viewed.
- Parameters:
viewCount
- viewCount or null
for none
-
set
public ChannelStatistics set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public ChannelStatistics clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.