Drive API v2 (revision 47)



com.google.api.services.drive
Class Drive.Comments

java.lang.Object
  extended by com.google.api.services.drive.Drive.Comments
Enclosing class:
Drive

public class Drive.Comments
extends java.lang.Object

The "comments" collection of methods.


Nested Class Summary
 class Drive.Comments.Delete
           
 class Drive.Comments.Get
           
 class Drive.Comments.Insert
           
 class Drive.Comments.List
           
 class Drive.Comments.Patch
           
 class Drive.Comments.Update
           
 
Constructor Summary
Drive.Comments()
           
 
Method Summary
 Drive.Comments.Delete delete(java.lang.String fileId, java.lang.String commentId)
          Deletes a comment.
 Drive.Comments.Get get(java.lang.String fileId, java.lang.String commentId)
          Gets a comment by ID.
 Drive.Comments.Insert insert(java.lang.String fileId, Comment content)
          Creates a new comment on the given file.
 Drive.Comments.List list(java.lang.String fileId)
          Lists a file's comments.
 Drive.Comments.Patch patch(java.lang.String fileId, java.lang.String commentId, Comment content)
          Updates an existing comment.
 Drive.Comments.Update update(java.lang.String fileId, java.lang.String commentId, Comment content)
          Updates an existing comment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Drive.Comments

public Drive.Comments()
Method Detail

delete

public Drive.Comments.Delete delete(java.lang.String fileId,
                                    java.lang.String commentId)
                             throws java.io.IOException
Deletes a comment. Create a request for the method "comments.delete". This request holds the parameters needed by the the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
fileId - The ID of the file.
commentId - The ID of the comment.
Returns:
the request
Throws:
java.io.IOException

get

public Drive.Comments.Get get(java.lang.String fileId,
                              java.lang.String commentId)
                       throws java.io.IOException
Gets a comment by ID. Create a request for the method "comments.get". This request holds the parameters needed by the the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
fileId - The ID of the file.
commentId - The ID of the comment.
Returns:
the request
Throws:
java.io.IOException

insert

public Drive.Comments.Insert insert(java.lang.String fileId,
                                    Comment content)
                             throws java.io.IOException
Creates a new comment on the given file. Create a request for the method "comments.insert". This request holds the parameters needed by the the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
fileId - The ID of the file.
content - the Comment
Returns:
the request
Throws:
java.io.IOException

list

public Drive.Comments.List list(java.lang.String fileId)
                         throws java.io.IOException
Lists a file's comments. Create a request for the method "comments.list". This request holds the parameters needed by the the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
fileId - The ID of the file.
Returns:
the request
Throws:
java.io.IOException

patch

public Drive.Comments.Patch patch(java.lang.String fileId,
                                  java.lang.String commentId,
                                  Comment content)
                           throws java.io.IOException
Updates an existing comment. This method supports patch semantics. Create a request for the method "comments.patch". This request holds the parameters needed by the the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
fileId - The ID of the file.
commentId - The ID of the comment.
content - the Comment
Returns:
the request
Throws:
java.io.IOException

update

public Drive.Comments.Update update(java.lang.String fileId,
                                    java.lang.String commentId,
                                    Comment content)
                             throws java.io.IOException
Updates an existing comment. Create a request for the method "comments.update". This request holds the parameters needed by the the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
fileId - The ID of the file.
commentId - The ID of the comment.
content - the Comment
Returns:
the request
Throws:
java.io.IOException