Drive API v2 (revision 47)



com.google.api.services.drive.model
Class Comment

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.drive.model.Comment
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public final class Comment
extends GenericJson

A JSON representation of a comment on a file in Google Drive.

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-api-java-client/wiki/Json

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

Author:
Google, Inc.

Nested Class Summary
static class Comment.Context
          The context of the file which is being commented on.
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
Comment()
           
 
Method Summary
 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.
 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.
 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 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(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(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.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Comment

public Comment()
Method Detail

getAnchor

public java.lang.String getAnchor()
A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties. The value returned may be null.


setAnchor

public Comment setAnchor(java.lang.String anchor)
A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties. The value set may be null.


getAuthor

public User getAuthor()
The user who wrote this comment. The value returned may be null.


setAuthor

public Comment setAuthor(User author)
The user who wrote this comment. The value set may be null.


getCommentId

public java.lang.String getCommentId()
The ID of the comment. The value returned may be null.


setCommentId

public Comment setCommentId(java.lang.String commentId)
The ID of the comment. The value set may be null.


getContent

public java.lang.String getContent()
The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content. The value returned may be null.


setContent

public Comment setContent(java.lang.String content)
The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content. The value set may be null.


getContext

public Comment.Context getContext()
The context of the file which is being commented on. The value returned may be null.


setContext

public Comment setContext(Comment.Context context)
The context of the file which is being commented on. The value set may be null.


getCreatedDate

public DateTime getCreatedDate()
The date when this comment was first created. The value returned may be null.


setCreatedDate

public Comment setCreatedDate(DateTime createdDate)
The date when this comment was first created. The value set may be null.


getDeleted

public java.lang.Boolean getDeleted()
Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed. The value returned may be null.


setDeleted

public Comment setDeleted(java.lang.Boolean deleted)
Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed. The value set may be null.


getFileId

public java.lang.String getFileId()
The file which this comment is addressing. The value returned may be null.


setFileId

public Comment setFileId(java.lang.String fileId)
The file which this comment is addressing. The value set may be null.


getFileTitle

public java.lang.String getFileTitle()
The title of the file which this comment is addressing. The value returned may be null.


setFileTitle

public Comment setFileTitle(java.lang.String fileTitle)
The title of the file which this comment is addressing. The value set may be null.


getHtmlContent

public java.lang.String getHtmlContent()
HTML formatted content for this comment. The value returned may be null.


setHtmlContent

public Comment setHtmlContent(java.lang.String htmlContent)
HTML formatted content for this comment. The value set may be null.


getKind

public java.lang.String getKind()
This is always drive#comment. The value returned may be null.


setKind

public Comment setKind(java.lang.String kind)
This is always drive#comment. The value set may be null.


getModifiedDate

public DateTime getModifiedDate()
The date when this comment or any of its replies were last modified. The value returned may be null.


setModifiedDate

public Comment setModifiedDate(DateTime modifiedDate)
The date when this comment or any of its replies were last modified. The value set may be null.


getReplies

public java.util.List<CommentReply> getReplies()
Replies to this post. The value returned may be null.


setReplies

public Comment setReplies(java.util.List<CommentReply> replies)
Replies to this post. The value set may be null.


getSelfLink

public java.lang.String getSelfLink()
A link back to this comment. The value returned may be null.


setSelfLink

public Comment setSelfLink(java.lang.String selfLink)
A link back to this comment. The value set may be null.


getStatus

public java.lang.String getStatus()
The status of this comment. Status can be changed by posting a reply to a comment with the desired status. - "open" - The comment is still open. - "resolved" - The comment has been resolved by one of its replies. The value returned may be null.


setStatus

public Comment setStatus(java.lang.String status)
The status of this comment. Status can be changed by posting a reply to a comment with the desired status. - "open" - The comment is still open. - "resolved" - The comment has been resolved by one of its replies. The value set may be null.