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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Comment() |
| Modifier and Type | Method and Description |
|---|---|
Comment |
clone() |
String |
getAnchor()
A region of the document represented as a JSON string.
|
User |
getAuthor()
The author of the comment.
|
String |
getCommentId()
The ID of the comment.
|
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.
|
Boolean |
getDeleted()
Whether this comment has been deleted.
|
String |
getFileId()
The file which this comment is addressing.
|
String |
getFileTitle()
The title of the file which this comment is addressing.
|
String |
getHtmlContent()
HTML formatted content for this comment.
|
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.
|
List<CommentReply> |
getReplies()
Replies to this post.
|
String |
getSelfLink()
A link back to this comment.
|
String |
getStatus()
The status of this comment.
|
Comment |
set(String fieldName,
Object value) |
Comment |
setAnchor(String anchor)
A region of the document represented as a JSON string.
|
Comment |
setAuthor(User author)
The author of the comment.
|
Comment |
setCommentId(String commentId)
The ID of the comment.
|
Comment |
setContent(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(Boolean deleted)
Whether this comment has been deleted.
|
Comment |
setFileId(String fileId)
The file which this comment is addressing.
|
Comment |
setFileTitle(String fileTitle)
The title of the file which this comment is addressing.
|
Comment |
setHtmlContent(String htmlContent)
HTML formatted content for this comment.
|
Comment |
setKind(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(List<CommentReply> replies)
Replies to this post.
|
Comment |
setSelfLink(String selfLink)
A link back to this comment.
|
Comment |
setStatus(String status)
The status of this comment.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAnchor()
null for nonepublic Comment setAnchor(String anchor)
anchor - anchor or null for nonepublic User getAuthor()
null for nonepublic Comment setAuthor(User author)
author - author or null for nonepublic String getCommentId()
null for nonepublic Comment setCommentId(String commentId)
commentId - commentId or null for nonepublic String getContent()
null for nonepublic Comment setContent(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 Boolean getDeleted()
null for nonepublic Comment setDeleted(Boolean deleted)
deleted - deleted or null for nonepublic String getFileId()
null for nonepublic Comment setFileId(String fileId)
fileId - fileId or null for nonepublic String getFileTitle()
null for nonepublic Comment setFileTitle(String fileTitle)
fileTitle - fileTitle or null for nonepublic String getHtmlContent()
null for nonepublic Comment setHtmlContent(String htmlContent)
htmlContent - htmlContent or null for nonepublic String getKind()
null for nonepublic Comment setKind(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 List<CommentReply> getReplies()
null for nonepublic Comment setReplies(List<CommentReply> replies)
replies - replies or null for nonepublic String getSelfLink()
null for nonepublic Comment setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getStatus()
null for nonepublic Comment setStatus(String status)
status - status or null for nonepublic Comment set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Comment clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.