目录

class info
public class Drive.Comments extends java.lang.Object
Drive.Comments class.

Nested Class Summary

TypeNameDesc
classDrive.Comments.CreateDeclaration of the Drive.Comments.Create class.
classDrive.Comments.DeleteDeclaration of the Drive.Comments.Delete class.
classDrive.Comments.GetDeclaration of the Drive.Comments.Get class.
classDrive.Comments.ListDeclaration of the Drive.Comments.List class.
classDrive.Comments.UpdateDeclaration of the Drive.Comments.Update class.

Public Constructor Summary

Constructor name

Comments()

Constructor for the Drive.Comments class.

Public Method Summary

Return typeMethod name
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 on a file.

Drive.Comments.Get

get(String fileId, String commentId)

Obtains a comment on a file.

Drive.Comments.List

list(String fileId)

Obtains a file comment list.

Drive.Comments.Update

update(String fileId, String commentId, Comment content)

Updates a file comment.

Public Constructor

constructor
Drive.Comments()
Constructs a Drive.Comments object.

Public Methods

Method
public Drive.Comments.Create create(String fileId, Comment content) throws java.io.IOException
Creates a comment on a file.

Parameters

Parameter nameParameter desc
fileIdFile ID.
contentComment content.

Throws

Parameter nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Return

typedesc
Drive.Comments.CreateA Drive.Comments.Create object.
Method


public Drive.Comments.Delete delete(String fileId, String commentId) throws java.io.IOException

Deletes a comment on a file.

Parameters

Parameter nameParameter desc
fileIdFile ID.
commentIdComment ID.

Throws

Parameter nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Return

typedesc
Drive.Comments.DeleteA Drive.Comments.Delete object.
Method


public Drive.Comments.Get get(String fileId, String commentId) throws java.io.IOException

Obtains a comment on a file.

Parameters

Parameter nameParameter desc
fileIdFile ID.
commentIdComment ID.

Throws

Parameter nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Return

typedesc
Drive.Comments.GetA Drive.Comments.Get object.
Method


public Drive.Comments.List list(String fileId) throws java.io.IOException

Obtains a file comment list.

Parameters

Parameter nameParameter desc
fileIdFile ID.

Throws

Parameter nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Return

typedesc
Drive.Comments.ListA Drive.Comments.List object.
Method


public Drive.Comments.Update update(String fileId, String commentId, Comment content) throws java.io.IOException

Updates a file comment.

Parameters

Parameter nameParameter desc
fileIdFile ID.
commentIdComment ID.
contentComment content.

Throws

Parameter nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Return

typedesc
Drive.Comments.UpdateA Drive.Comments.Update object.