目录

Drive.Comments

Class Info

public class Drive.Comments extends java.lang.Object

Drive.Comments class.

Nested Class Summary

Qualifier and Type

Class Name and Description

class

Drive.Comments.Create

Declaration of the Drive.Comments.Create class.

class

Drive.Comments.Delete

Declaration of the Drive.Comments.Delete class.

class

Drive.Comments.Get

Declaration of the Drive.Comments.Get class.

class

Drive.Comments.List

Declaration of the Drive.Comments.List class.

class

Drive.Comments.Update

Declaration of the Drive.Comments.Update class.

Public Constructor Summary

Constructor Name

Comments()

Constructs a Drive.Comments object.

Public Method Summary

Qualifier and Type

Method Name 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 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 Constructors

[h2]Drive.Comments

Constructor

Drive.Comments()

Constructs a Drive.Comments object.

Public Methods

[h2]create

Method

public Drive.Comments.Create create(String fileId, Comment content) throws java.io.IOException

Creates a comment on a file.

Parameters

Name

Description

fileId

File ID.

content

Comment content.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description.

Returns

Type

Description

Drive.Comments.Create

A Drive.Comments.Create object.

[h2]delete

Method

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

Deletes a comment on a file.

Parameters

Name

Description

fileId

File ID.

commentId

Comment ID.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Returns

Type

Description

Drive.Comments.Delete

A Drive.Comments.Delete object.

[h2]get

Method

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

Obtains a comment on a file.

Parameters

Name

Description

fileId

File ID.

commentId

Comment ID.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description.

Returns

Type

Description

Drive.Comments.Get

A Drive.Comments.Get object.

[h2]list

Method

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

Obtains a file comment list.

Parameters

Name

Description

fileId

File ID.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description.

Returns

Type

Description

Drive.Comments.List

A Drive.Comments.List object.

[h2]update

Method

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

Updates a file comment.

Parameters

Name

Description

fileId

File ID.

commentId

Comment ID.

content

Comment content.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description.

Returns

Type

Description

Drive.Comments.Update

A Drive.Comments.Update object.