public final class Comment
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 Drive API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Comment.Context
The context of the file which is being commented on.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Comment() |
| Modifier and Type | Method and Description |
|---|---|
Comment |
clone() |
java.lang.String |
getAnchor()
A region of the document represented as a JSON string.
|
User |
getAuthor()
The user who wrote this comment.
|
java.lang.String |
getCommentId()
The ID of the comment.
|
java.lang.String |
getContent()
The plain text content used to create this comment.
|
Comment.Context |
getContext()
The context of the file which is being commented on.
|
com.google.api.client.util.DateTime |
getCreatedDate()
The date when this comment was first created.
|
java.lang.Boolean |
getDeleted()
Whether this comment has been deleted.
|
java.lang.String |
getFileId()
The file which this comment is addressing.
|
java.lang.String |
getFileTitle()
The title of the file which this comment is addressing.
|
java.lang.String |
getHtmlContent()
HTML formatted content for this comment.
|
java.lang.String |
getKind()
This is always drive#comment.
|
com.google.api.client.util.DateTime |
getModifiedDate()
The date when this comment or any of its replies were last modified.
|
java.util.List<CommentReply> |
getReplies()
Replies to this post.
|
java.lang.String |
getSelfLink()
A link back to this comment.
|
java.lang.String |
getStatus()
The status of this comment.
|
Comment |
set(java.lang.String fieldName,
java.lang.Object value) |
Comment |
setAnchor(java.lang.String anchor)
A region of the document represented as a JSON string.
|
Comment |
setAuthor(User author)
The user who wrote this comment.
|
Comment |
setCommentId(java.lang.String commentId)
The ID of the comment.
|
Comment |
setContent(java.lang.String content)
The plain text content used to create this comment.
|
Comment |
setContext(Comment.Context context)
The context of the file which is being commented on.
|
Comment |
setCreatedDate(com.google.api.client.util.DateTime createdDate)
The date when this comment was first created.
|
Comment |
setDeleted(java.lang.Boolean deleted)
Whether this comment has been deleted.
|
Comment |
setFileId(java.lang.String fileId)
The file which this comment is addressing.
|
Comment |
setFileTitle(java.lang.String fileTitle)
The title of the file which this comment is addressing.
|
Comment |
setHtmlContent(java.lang.String htmlContent)
HTML formatted content for this comment.
|
Comment |
setKind(java.lang.String kind)
This is always drive#comment.
|
Comment |
setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
The date when this comment or any of its replies were last modified.
|
Comment |
setReplies(java.util.List<CommentReply> replies)
Replies to this post.
|
Comment |
setSelfLink(java.lang.String selfLink)
A link back to this comment.
|
Comment |
setStatus(java.lang.String status)
The status of this comment.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getAnchor()
null for nonepublic Comment setAnchor(java.lang.String anchor)
anchor - anchor or null for nonepublic User getAuthor()
null for nonepublic Comment setAuthor(User author)
author - author or null for nonepublic java.lang.String getCommentId()
null for nonepublic Comment setCommentId(java.lang.String commentId)
commentId - commentId or null for nonepublic java.lang.String getContent()
null for nonepublic Comment setContent(java.lang.String content)
content - content or null for nonepublic Comment.Context getContext()
null for nonepublic Comment setContext(Comment.Context context)
context - context or null for nonepublic com.google.api.client.util.DateTime getCreatedDate()
null for nonepublic Comment setCreatedDate(com.google.api.client.util.DateTime createdDate)
createdDate - createdDate or null for nonepublic java.lang.Boolean getDeleted()
null for nonepublic Comment setDeleted(java.lang.Boolean deleted)
deleted - deleted or null for nonepublic java.lang.String getFileId()
null for nonepublic Comment setFileId(java.lang.String fileId)
fileId - fileId or null for nonepublic java.lang.String getFileTitle()
null for nonepublic Comment setFileTitle(java.lang.String fileTitle)
fileTitle - fileTitle or null for nonepublic java.lang.String getHtmlContent()
null for nonepublic Comment setHtmlContent(java.lang.String htmlContent)
htmlContent - htmlContent or null for nonepublic java.lang.String getKind()
null for nonepublic Comment setKind(java.lang.String kind)
kind - kind or null for nonepublic com.google.api.client.util.DateTime getModifiedDate()
null for nonepublic Comment setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
modifiedDate - modifiedDate or null for nonepublic java.util.List<CommentReply> getReplies()
null for nonepublic Comment setReplies(java.util.List<CommentReply> replies)
replies - replies or null for nonepublic java.lang.String getSelfLink()
null for nonepublic Comment setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getStatus()
null for nonepublic Comment setStatus(java.lang.String status)
status - status or null for nonepublic Comment set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Comment clone()
clone in class com.google.api.client.json.GenericJson