public final class CommentThreadSnippet
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. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
CommentThreadSnippet() |
Modifier and Type | Method and Description |
---|---|
CommentThreadSnippet |
clone() |
java.lang.Boolean |
getCanReply()
Whether the current viewer of the thread can reply to it.
|
java.lang.String |
getChannelId()
The YouTube channel the comments in the thread refer to or the channel with the video the
comments refer to.
|
java.lang.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.
|
java.lang.Long |
getTotalReplyCount()
The total number of replies (not including the top level comment).
|
java.lang.String |
getVideoId()
The ID of the video the comments refer to, if any.
|
CommentThreadSnippet |
set(java.lang.String fieldName,
java.lang.Object value) |
CommentThreadSnippet |
setCanReply(java.lang.Boolean canReply)
Whether the current viewer of the thread can reply to it.
|
CommentThreadSnippet |
setChannelId(java.lang.String channelId)
The YouTube channel the comments in the thread refer to or the channel with the video the
comments refer to.
|
CommentThreadSnippet |
setIsPublic(java.lang.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(java.lang.Long totalReplyCount)
The total number of replies (not including the top level comment).
|
CommentThreadSnippet |
setVideoId(java.lang.String videoId)
The ID of the video the comments refer to, if any.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Boolean getCanReply()
null
for nonepublic CommentThreadSnippet setCanReply(java.lang.Boolean canReply)
canReply
- canReply or null
for nonepublic java.lang.String getChannelId()
null
for nonepublic CommentThreadSnippet setChannelId(java.lang.String channelId)
channelId
- channelId or null
for nonepublic java.lang.Boolean getIsPublic()
null
for nonepublic CommentThreadSnippet setIsPublic(java.lang.Boolean isPublic)
isPublic
- isPublic or null
for nonepublic Comment getTopLevelComment()
null
for nonepublic CommentThreadSnippet setTopLevelComment(Comment topLevelComment)
topLevelComment
- topLevelComment or null
for nonepublic java.lang.Long getTotalReplyCount()
null
for nonepublic CommentThreadSnippet setTotalReplyCount(java.lang.Long totalReplyCount)
totalReplyCount
- totalReplyCount or null
for nonepublic java.lang.String getVideoId()
null
for nonepublic CommentThreadSnippet setVideoId(java.lang.String videoId)
videoId
- videoId or null
for nonepublic CommentThreadSnippet set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public CommentThreadSnippet clone()
clone
in class com.google.api.client.json.GenericJson