target.apidocs.com.google.api.services.drive.Drive.Comments.html Maven / Gradle / Ivy
Drive.Comments (Google Drive API v2-rev20240521-2.0.0)
com.google.api.services.drive
Class Drive.Comments
- java.lang.Object
-
- com.google.api.services.drive.Drive.Comments
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
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
Constructors
Constructor and Description
Comments()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Drive.Comments.Delete
delete(String fileId,
String commentId)
Deletes a comment.
Drive.Comments.Get
get(String fileId,
String commentId)
Gets a comment by ID.
Drive.Comments.Insert
insert(String fileId,
Comment content)
Creates a new comment on the given file.
Drive.Comments.List
list(String fileId)
Lists a file's comments.
Drive.Comments.Patch
patch(String fileId,
String commentId,
Comment content)
Updates an existing comment.
Drive.Comments.Update
update(String fileId,
String commentId,
Comment content)
Updates an existing comment.
-
-
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.
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–2024 Google. All rights reserved.