public final class CommentThreadSnippet extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CommentThreadSnippet() |
Modifier and Type | Method and Description |
---|---|
CommentThreadSnippet |
clone() |
Boolean |
getCanReply()
Whether the current viewer of the thread can reply to it.
|
String |
getChannelId()
The YouTube channel the comments in the thread refer to or the channel with the video the
comments refer to.
|
Boolean |
getIsPublic()
Whether the thread (and therefore all its comments) is visible to all YouTube users.
|
Comment |
getTopLevelComment()
The top level comment of this thread.
|
Long |
getTotalReplyCount()
The total number of replies (not including the top level comment).
|
String |
getVideoId()
The ID of the video the comments refer to, if any.
|
CommentThreadSnippet |
set(String fieldName,
Object value) |
CommentThreadSnippet |
setCanReply(Boolean canReply)
Whether the current viewer of the thread can reply to it.
|
CommentThreadSnippet |
setChannelId(String channelId)
The YouTube channel the comments in the thread refer to or the channel with the video the
comments refer to.
|
CommentThreadSnippet |
setIsPublic(Boolean isPublic)
Whether the thread (and therefore all its comments) is visible to all YouTube users.
|
CommentThreadSnippet |
setTopLevelComment(Comment topLevelComment)
The top level comment of this thread.
|
CommentThreadSnippet |
setTotalReplyCount(Long totalReplyCount)
The total number of replies (not including the top level comment).
|
CommentThreadSnippet |
setVideoId(String videoId)
The ID of the video the comments refer to, if any.
|
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 Boolean getCanReply()
null
for nonepublic CommentThreadSnippet setCanReply(Boolean canReply)
canReply
- canReply or null
for nonepublic String getChannelId()
null
for nonepublic CommentThreadSnippet setChannelId(String channelId)
channelId
- channelId or null
for nonepublic Boolean getIsPublic()
null
for nonepublic CommentThreadSnippet setIsPublic(Boolean isPublic)
isPublic
- isPublic or null
for nonepublic Comment getTopLevelComment()
null
for nonepublic CommentThreadSnippet setTopLevelComment(Comment topLevelComment)
topLevelComment
- topLevelComment or null
for nonepublic Long getTotalReplyCount()
null
for nonepublic CommentThreadSnippet setTotalReplyCount(Long totalReplyCount)
totalReplyCount
- totalReplyCount or null
for nonepublic String getVideoId()
null
for nonepublic CommentThreadSnippet setVideoId(String videoId)
videoId
- videoId or null
for nonepublic CommentThreadSnippet set(String fieldName, Object value)
set
in class GenericJson
public CommentThreadSnippet clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.