public final class CommentSnippet
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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
CommentSnippet() |
| Modifier and Type | Method and Description |
|---|---|
CommentSnippet |
clone() |
java.lang.Object |
getAuthorChannelId()
The id of the author's YouTube channel, if any.
|
java.lang.String |
getAuthorChannelUrl()
Link to the author's YouTube channel, if any.
|
java.lang.String |
getAuthorDisplayName()
The name of the user who posted the comment.
|
java.lang.String |
getAuthorProfileImageUrl()
The URL for the avatar of the user who posted the comment.
|
java.lang.Boolean |
getCanRate()
Whether the current viewer can rate this comment.
|
java.lang.String |
getChannelId()
The id of the corresponding YouTube channel.
|
java.lang.Long |
getLikeCount()
The total number of likes this comment has received.
|
java.lang.String |
getModerationStatus()
The comment's moderation status.
|
java.lang.String |
getParentId()
The unique id of the parent comment, only set for replies.
|
com.google.api.client.util.DateTime |
getPublishedAt()
The date and time when the comment was orignally published.
|
java.lang.String |
getTextDisplay()
The comment's text.
|
java.lang.String |
getTextOriginal()
The comment's original raw text as initially posted or last updated.
|
com.google.api.client.util.DateTime |
getUpdatedAt()
The date and time when was last updated .
|
java.lang.String |
getVideoId()
The ID of the video the comment refers to, if any.
|
java.lang.String |
getViewerRating()
The rating the viewer has given to this comment.
|
CommentSnippet |
set(java.lang.String fieldName,
java.lang.Object value) |
CommentSnippet |
setAuthorChannelId(java.lang.Object authorChannelId)
The id of the author's YouTube channel, if any.
|
CommentSnippet |
setAuthorChannelUrl(java.lang.String authorChannelUrl)
Link to the author's YouTube channel, if any.
|
CommentSnippet |
setAuthorDisplayName(java.lang.String authorDisplayName)
The name of the user who posted the comment.
|
CommentSnippet |
setAuthorProfileImageUrl(java.lang.String authorProfileImageUrl)
The URL for the avatar of the user who posted the comment.
|
CommentSnippet |
setCanRate(java.lang.Boolean canRate)
Whether the current viewer can rate this comment.
|
CommentSnippet |
setChannelId(java.lang.String channelId)
The id of the corresponding YouTube channel.
|
CommentSnippet |
setLikeCount(java.lang.Long likeCount)
The total number of likes this comment has received.
|
CommentSnippet |
setModerationStatus(java.lang.String moderationStatus)
The comment's moderation status.
|
CommentSnippet |
setParentId(java.lang.String parentId)
The unique id of the parent comment, only set for replies.
|
CommentSnippet |
setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time when the comment was orignally published.
|
CommentSnippet |
setTextDisplay(java.lang.String textDisplay)
The comment's text.
|
CommentSnippet |
setTextOriginal(java.lang.String textOriginal)
The comment's original raw text as initially posted or last updated.
|
CommentSnippet |
setUpdatedAt(com.google.api.client.util.DateTime updatedAt)
The date and time when was last updated .
|
CommentSnippet |
setVideoId(java.lang.String videoId)
The ID of the video the comment refers to, if any.
|
CommentSnippet |
setViewerRating(java.lang.String viewerRating)
The rating the viewer has given to this comment.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Object getAuthorChannelId()
null for nonepublic CommentSnippet setAuthorChannelId(java.lang.Object authorChannelId)
authorChannelId - authorChannelId or null for nonepublic java.lang.String getAuthorChannelUrl()
null for nonepublic CommentSnippet setAuthorChannelUrl(java.lang.String authorChannelUrl)
authorChannelUrl - authorChannelUrl or null for nonepublic java.lang.String getAuthorDisplayName()
null for nonepublic CommentSnippet setAuthorDisplayName(java.lang.String authorDisplayName)
authorDisplayName - authorDisplayName or null for nonepublic java.lang.String getAuthorProfileImageUrl()
null for nonepublic CommentSnippet setAuthorProfileImageUrl(java.lang.String authorProfileImageUrl)
authorProfileImageUrl - authorProfileImageUrl or null for nonepublic java.lang.Boolean getCanRate()
null for nonepublic CommentSnippet setCanRate(java.lang.Boolean canRate)
canRate - canRate or null for nonepublic java.lang.String getChannelId()
null for nonepublic CommentSnippet setChannelId(java.lang.String channelId)
channelId - channelId or null for nonepublic java.lang.Long getLikeCount()
null for nonepublic CommentSnippet setLikeCount(java.lang.Long likeCount)
likeCount - likeCount or null for nonepublic java.lang.String getModerationStatus()
null for nonepublic CommentSnippet setModerationStatus(java.lang.String moderationStatus)
moderationStatus - moderationStatus or null for nonepublic java.lang.String getParentId()
null for nonepublic CommentSnippet setParentId(java.lang.String parentId)
parentId - parentId or null for nonepublic com.google.api.client.util.DateTime getPublishedAt()
null for nonepublic CommentSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt)
publishedAt - publishedAt or null for nonepublic java.lang.String getTextDisplay()
null for nonepublic CommentSnippet setTextDisplay(java.lang.String textDisplay)
textDisplay - textDisplay or null for nonepublic java.lang.String getTextOriginal()
null for nonepublic CommentSnippet setTextOriginal(java.lang.String textOriginal)
textOriginal - textOriginal or null for nonepublic com.google.api.client.util.DateTime getUpdatedAt()
null for nonepublic CommentSnippet setUpdatedAt(com.google.api.client.util.DateTime updatedAt)
updatedAt - updatedAt or null for nonepublic java.lang.String getVideoId()
null for nonepublic CommentSnippet setVideoId(java.lang.String videoId)
videoId - videoId or null for nonepublic java.lang.String getViewerRating()
null for nonepublic CommentSnippet setViewerRating(java.lang.String viewerRating)
viewerRating - viewerRating or null for nonepublic CommentSnippet set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic CommentSnippet clone()
clone in class com.google.api.client.json.GenericJson