All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.drive.Drive.Comments.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240903-2.0.0
Show newest version






Drive.Comments (Drive API v2-rev20180830-1.26.0)












com.google.api.services.drive

Class Drive.Comments

  • Enclosing class:
    Drive


    public class Drive.Comments
    extends Object
    The "comments" collection of methods.
    • Constructor Detail

      • Comments

        public Comments()
    • Method Detail

      • delete

        public Drive.Comments.Delete delete(String fileId,
                                            String commentId)
                                     throws IOException
        Deletes a comment. Create a request for the method "comments.delete". This request holds the parameters needed by 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:
        IOException
      • get

        public Drive.Comments.Get get(String fileId,
                                      String commentId)
                               throws IOException
        Gets a comment by ID. Create a request for the method "comments.get". This request holds the parameters needed by 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:
        IOException
      • insert

        public Drive.Comments.Insert insert(String fileId,
                                            Comment content)
                                     throws 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 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:
        IOException
      • list

        public Drive.Comments.List list(String fileId)
                                 throws IOException
        Lists a file's comments. Create a request for the method "comments.list". This request holds the parameters needed by 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:
        IOException
      • patch

        public Drive.Comments.Patch patch(String fileId,
                                          String commentId,
                                          Comment content)
                                   throws 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 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:
        IOException
      • update

        public Drive.Comments.Update update(String fileId,
                                            String commentId,
                                            Comment content)
                                     throws IOException
        Updates an existing comment. Create a request for the method "comments.update". This request holds the parameters needed by 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:
        IOException

Copyright © 2011–2018 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy