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 v3. 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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CommentSnippet() |
Modifier and Type | Method and Description |
---|---|
CommentSnippet |
clone() |
CommentSnippetAuthorChannelId |
getAuthorChannelId() |
String |
getAuthorChannelUrl()
Link to the author's YouTube channel, if any.
|
String |
getAuthorDisplayName()
The name of the user who posted the comment.
|
String |
getAuthorProfileImageUrl()
The URL for the avatar of the user who posted the comment.
|
Boolean |
getCanRate()
Whether the current viewer can rate this comment.
|
String |
getChannelId()
The id of the corresponding YouTube channel.
|
Long |
getLikeCount()
The total number of likes this comment has received.
|
String |
getModerationStatus()
The comment's moderation status.
|
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 originally published.
|
String |
getTextDisplay()
The comment's text.
|
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 the comment was last updated.
|
String |
getVideoId()
The ID of the video the comment refers to, if any.
|
String |
getViewerRating()
The rating the viewer has given to this comment.
|
CommentSnippet |
set(String fieldName,
Object value) |
CommentSnippet |
setAuthorChannelId(CommentSnippetAuthorChannelId authorChannelId) |
CommentSnippet |
setAuthorChannelUrl(String authorChannelUrl)
Link to the author's YouTube channel, if any.
|
CommentSnippet |
setAuthorDisplayName(String authorDisplayName)
The name of the user who posted the comment.
|
CommentSnippet |
setAuthorProfileImageUrl(String authorProfileImageUrl)
The URL for the avatar of the user who posted the comment.
|
CommentSnippet |
setCanRate(Boolean canRate)
Whether the current viewer can rate this comment.
|
CommentSnippet |
setChannelId(String channelId)
The id of the corresponding YouTube channel.
|
CommentSnippet |
setLikeCount(Long likeCount)
The total number of likes this comment has received.
|
CommentSnippet |
setModerationStatus(String moderationStatus)
The comment's moderation status.
|
CommentSnippet |
setParentId(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 originally published.
|
CommentSnippet |
setTextDisplay(String textDisplay)
The comment's text.
|
CommentSnippet |
setTextOriginal(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 the comment was last updated.
|
CommentSnippet |
setVideoId(String videoId)
The ID of the video the comment refers to, if any.
|
CommentSnippet |
setViewerRating(String viewerRating)
The rating the viewer has given to this comment.
|
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 CommentSnippetAuthorChannelId getAuthorChannelId()
null
for nonepublic CommentSnippet setAuthorChannelId(CommentSnippetAuthorChannelId authorChannelId)
authorChannelId
- authorChannelId or null
for nonepublic String getAuthorChannelUrl()
null
for nonepublic CommentSnippet setAuthorChannelUrl(String authorChannelUrl)
authorChannelUrl
- authorChannelUrl or null
for nonepublic String getAuthorDisplayName()
null
for nonepublic CommentSnippet setAuthorDisplayName(String authorDisplayName)
authorDisplayName
- authorDisplayName or null
for nonepublic String getAuthorProfileImageUrl()
null
for nonepublic CommentSnippet setAuthorProfileImageUrl(String authorProfileImageUrl)
authorProfileImageUrl
- authorProfileImageUrl or null
for nonepublic Boolean getCanRate()
null
for nonepublic CommentSnippet setCanRate(Boolean canRate)
canRate
- canRate or null
for nonepublic String getChannelId()
null
for nonepublic CommentSnippet setChannelId(String channelId)
channelId
- channelId or null
for nonepublic Long getLikeCount()
null
for nonepublic CommentSnippet setLikeCount(Long likeCount)
likeCount
- likeCount or null
for nonepublic String getModerationStatus()
null
for nonepublic CommentSnippet setModerationStatus(String moderationStatus)
moderationStatus
- moderationStatus or null
for nonepublic String getParentId()
null
for nonepublic CommentSnippet setParentId(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 String getTextDisplay()
null
for nonepublic CommentSnippet setTextDisplay(String textDisplay)
textDisplay
- textDisplay or null
for nonepublic String getTextOriginal()
null
for nonepublic CommentSnippet setTextOriginal(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 String getVideoId()
null
for nonepublic CommentSnippet setVideoId(String videoId)
videoId
- videoId or null
for nonepublic String getViewerRating()
null
for nonepublic CommentSnippet setViewerRating(String viewerRating)
viewerRating
- viewerRating or null
for nonepublic CommentSnippet set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public CommentSnippet clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.