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: http://code.google.com/p/google-http-java-client/wiki/JSON
| Modifier and Type | Class and Description |
|---|---|
static class |
Comment.QuotedFileContent
The file content to which the comment refers, typically within the anchor region.
|
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 created the comment.
|
java.lang.String |
getContent()
The plain text content of the comment.
|
com.google.api.client.util.DateTime |
getCreatedTime()
The time at which the comment was created (RFC 3339 date-time).
|
java.lang.Boolean |
getDeleted()
Whether the comment has been deleted.
|
java.lang.String |
getHtmlContent()
The content of the comment with HTML formatting.
|
java.lang.String |
getId()
The ID of the comment.
|
java.lang.String |
getKind()
This is always drive#comment.
|
com.google.api.client.util.DateTime |
getModifiedTime()
The last time the comment or any of its replies was modified (RFC 3339 date-time).
|
Comment.QuotedFileContent |
getQuotedFileContent()
The file content to which the comment refers, typically within the anchor region.
|
java.util.List<Reply> |
getReplies()
The full list of replies to the comment in chronological order.
|
java.lang.Boolean |
getResolved()
Whether the comment has been resolved by one of its replies.
|
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 created the comment.
|
Comment |
setContent(java.lang.String content)
The plain text content of the comment.
|
Comment |
setCreatedTime(com.google.api.client.util.DateTime createdTime)
The time at which the comment was created (RFC 3339 date-time).
|
Comment |
setDeleted(java.lang.Boolean deleted)
Whether the comment has been deleted.
|
Comment |
setHtmlContent(java.lang.String htmlContent)
The content of the comment with HTML formatting.
|
Comment |
setId(java.lang.String id)
The ID of the comment.
|
Comment |
setKind(java.lang.String kind)
This is always drive#comment.
|
Comment |
setModifiedTime(com.google.api.client.util.DateTime modifiedTime)
The last time the comment or any of its replies was modified (RFC 3339 date-time).
|
Comment |
setQuotedFileContent(Comment.QuotedFileContent quotedFileContent)
The file content to which the comment refers, typically within the anchor region.
|
Comment |
setReplies(java.util.List<Reply> replies)
The full list of replies to the comment in chronological order.
|
Comment |
setResolved(java.lang.Boolean resolved)
Whether the comment has been resolved by one of its replies.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic 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 getContent()
null for nonepublic Comment setContent(java.lang.String content)
content - content or null for nonepublic com.google.api.client.util.DateTime getCreatedTime()
null for nonepublic Comment setCreatedTime(com.google.api.client.util.DateTime createdTime)
createdTime - createdTime 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 getHtmlContent()
null for nonepublic Comment setHtmlContent(java.lang.String htmlContent)
htmlContent - htmlContent or null for nonepublic java.lang.String getId()
null for nonepublic Comment setId(java.lang.String id)
id - id 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 getModifiedTime()
null for nonepublic Comment setModifiedTime(com.google.api.client.util.DateTime modifiedTime)
modifiedTime - modifiedTime or null for nonepublic Comment.QuotedFileContent getQuotedFileContent()
null for nonepublic Comment setQuotedFileContent(Comment.QuotedFileContent quotedFileContent)
quotedFileContent - quotedFileContent or null for nonepublic java.util.List<Reply> getReplies()
null for nonepublic Comment setReplies(java.util.List<Reply> replies)
replies - replies or null for nonepublic java.lang.Boolean getResolved()
null for nonepublic Comment setResolved(java.lang.Boolean resolved)
resolved - resolved 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