public final class Comment extends 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.Context
The context of the file which is being commented on.
|
GenericData.Flags
AbstractMap.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 user who wrote this 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.
|
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.
|
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 user who wrote this 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(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(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, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 DateTime getCreatedDate()
null
for nonepublic Comment setCreatedDate(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 DateTime getModifiedDate()
null
for nonepublic Comment setModifiedDate(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 GenericJson
public Comment clone()
clone
in class GenericJson