target.apidocs.com.google.api.services.drive.Drive.Comments.html Maven / Gradle / Ivy
Drive.Comments (Google Drive API v3-rev20240123-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.Create
class
Drive.Comments.Delete
class
Drive.Comments.Get
class
Drive.Comments.List
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.Create
create(String fileId,
Comment content)
Creates a comment on a file.
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.List
list(String fileId)
Lists a file's comments.
Drive.Comments.Update
update(String fileId,
String commentId,
Comment content)
Updates a comment with patch semantics.
-
-
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.