target.apidocs.com.google.api.services.youtube.model.VideoStatistics.html Maven / Gradle / Ivy
VideoStatistics (YouTube Data API v3 v3-rev20240414-2.0.0)
com.google.api.services.youtube.model
Class VideoStatistics
- 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.VideoStatistics
-
public final class VideoStatistics
extends com.google.api.client.json.GenericJson
Statistics about the video, such as the number of times the video was viewed or liked.
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
VideoStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
VideoStatistics
clone()
BigInteger
getCommentCount()
The number of comments for the video.
BigInteger
getDislikeCount()
The number of users who have indicated that they disliked the video by giving it a negative
rating.
BigInteger
getFavoriteCount()
The number of users who currently have the video marked as a favorite video.
BigInteger
getLikeCount()
The number of users who have indicated that they liked the video by giving it a positive
rating.
BigInteger
getViewCount()
The number of times the video has been viewed.
VideoStatistics
set(String fieldName,
Object value)
VideoStatistics
setCommentCount(BigInteger commentCount)
The number of comments for the video.
VideoStatistics
setDislikeCount(BigInteger dislikeCount)
The number of users who have indicated that they disliked the video by giving it a negative
rating.
VideoStatistics
setFavoriteCount(BigInteger favoriteCount)
The number of users who currently have the video marked as a favorite video.
VideoStatistics
setLikeCount(BigInteger likeCount)
The number of users who have indicated that they liked the video by giving it a positive
rating.
VideoStatistics
setViewCount(BigInteger viewCount)
The number of times the video 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 video.
- Returns:
- value or
null
for none
-
setCommentCount
public VideoStatistics setCommentCount(BigInteger commentCount)
The number of comments for the video.
- Parameters:
commentCount
- commentCount or null
for none
-
getDislikeCount
public BigInteger getDislikeCount()
The number of users who have indicated that they disliked the video by giving it a negative
rating.
- Returns:
- value or
null
for none
-
setDislikeCount
public VideoStatistics setDislikeCount(BigInteger dislikeCount)
The number of users who have indicated that they disliked the video by giving it a negative
rating.
- Parameters:
dislikeCount
- dislikeCount or null
for none
-
getFavoriteCount
public BigInteger getFavoriteCount()
The number of users who currently have the video marked as a favorite video.
- Returns:
- value or
null
for none
-
setFavoriteCount
public VideoStatistics setFavoriteCount(BigInteger favoriteCount)
The number of users who currently have the video marked as a favorite video.
- Parameters:
favoriteCount
- favoriteCount or null
for none
-
getLikeCount
public BigInteger getLikeCount()
The number of users who have indicated that they liked the video by giving it a positive
rating.
- Returns:
- value or
null
for none
-
setLikeCount
public VideoStatistics setLikeCount(BigInteger likeCount)
The number of users who have indicated that they liked the video by giving it a positive
rating.
- Parameters:
likeCount
- likeCount or null
for none
-
getViewCount
public BigInteger getViewCount()
The number of times the video has been viewed.
- Returns:
- value or
null
for none
-
setViewCount
public VideoStatistics setViewCount(BigInteger viewCount)
The number of times the video has been viewed.
- Parameters:
viewCount
- viewCount or null
for none
-
set
public VideoStatistics set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public VideoStatistics clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy