target.apidocs.com.google.api.services.youtube.model.CommentThreadSnippet.html Maven / Gradle / Ivy
CommentThreadSnippet (YouTube Data API v3 v3-rev20210410-1.31.0)
com.google.api.services.youtube.model
Class CommentThreadSnippet
- 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.CommentThreadSnippet
-
public final class CommentThreadSnippet
extends GenericJson
Basic details about a comment thread.
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
CommentThreadSnippet()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
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
-
getCanReply
public Boolean getCanReply()
Whether the current viewer of the thread can reply to it. This is viewer specific - other
viewers may see a different value for this field.
- Returns:
- value or
null
for none
-
setCanReply
public CommentThreadSnippet setCanReply(Boolean canReply)
Whether the current viewer of the thread can reply to it. This is viewer specific - other
viewers may see a different value for this field.
- Parameters:
canReply
- canReply or null
for none
-
getChannelId
public String getChannelId()
The YouTube channel the comments in the thread refer to or the channel with the video the
comments refer to. If video_id isn't set the comments refer to the channel itself.
- Returns:
- value or
null
for none
-
setChannelId
public CommentThreadSnippet setChannelId(String channelId)
The YouTube channel the comments in the thread refer to or the channel with the video the
comments refer to. If video_id isn't set the comments refer to the channel itself.
- Parameters:
channelId
- channelId or null
for none
-
getIsPublic
public Boolean getIsPublic()
Whether the thread (and therefore all its comments) is visible to all YouTube users.
- Returns:
- value or
null
for none
-
setIsPublic
public CommentThreadSnippet setIsPublic(Boolean isPublic)
Whether the thread (and therefore all its comments) is visible to all YouTube users.
- Parameters:
isPublic
- isPublic or null
for none
-
getTopLevelComment
public Comment getTopLevelComment()
The top level comment of this thread.
- Returns:
- value or
null
for none
-
setTopLevelComment
public CommentThreadSnippet setTopLevelComment(Comment topLevelComment)
The top level comment of this thread.
- Parameters:
topLevelComment
- topLevelComment or null
for none
-
getTotalReplyCount
public Long getTotalReplyCount()
The total number of replies (not including the top level comment).
- Returns:
- value or
null
for none
-
setTotalReplyCount
public CommentThreadSnippet setTotalReplyCount(Long totalReplyCount)
The total number of replies (not including the top level comment).
- Parameters:
totalReplyCount
- totalReplyCount or null
for none
-
getVideoId
public String getVideoId()
The ID of the video the comments refer to, if any. No video_id implies a channel discussion
comment.
- Returns:
- value or
null
for none
-
setVideoId
public CommentThreadSnippet setVideoId(String videoId)
The ID of the video the comments refer to, if any. No video_id implies a channel discussion
comment.
- Parameters:
videoId
- videoId or null
for none
-
set
public CommentThreadSnippet set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public CommentThreadSnippet clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.