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-rev20241027-2.0.0
Show newest version






Drive.Comments (Google Drive API v3-rev20240730-2.0.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

      • create

        public Drive.Comments.Create create(String fileId,
                                            Comment content)
                                     throws IOException
        Creates a comment on a file. Create a request for the method "comments.create". 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
      • 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
      • 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
      • update

        public Drive.Comments.Update update(String fileId,
                                            String commentId,
                                            Comment content)
                                     throws IOException
        Updates a comment with patch semantics. 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–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy