目录

CommentList

Class Info

public final class CommentList extends GenericJson

File permission class.

Public Constructor Summary

Constructor Name

CommentList()

Constructs a CommentList object.

Public Method Summary

Qualifier and Type

Method Name and Description

CommentList

clone()

Clones a CommentList object.

String

getCategory()

Obtains the resource type. The value is always drive#commentList.

List<Comment>

getComments()

Obtains the comment list. If nextCursor has a value, the returned list is incomplete and the query needs to continue.

String

getNextCursor()

Obtains the next page cursor for query. If nextCursor is empty, there is no next page.

CommentList

set(String fieldName, Object value)

Sets a custom attribute and its value.

CommentList

setCategory(String category)

Sets the resource type. The value is always drive#commentList.

String

setComments(List<Comment> comments)

Sets a comment list.

CommentList

setNextCursor(String nextCursor)

Sets the next page cursor for query. If nextCursor is empty, there is no next page.

Public Constructors

[h2]CommentList

Constructor

CommentList()

Constructs a CommentList object.

Public Methods

[h2]clone

Method

public CommentList clone()

Clones a CommentList object.

Returns

Type

Description

CommentList

A CommentList object.

[h2]getCategory

Method

public String getCategory()

Obtains the resource type. The value is always drive#commentList.

Returns

Type

Description

String

Resource type. The value is always drive#commentList.

[h2]getComments

Method

public List<Comment> getComments()

Obtains the comment list. If nextCursor has a value, the returned list is incomplete and the query needs to continue.

Returns

Type

Description

List<Comment>

Comment list. If nextCursor has a value, the returned list is incomplete and the query needs to continue.

[h2]getNextCursor

Method

public String getNextCursor()

Obtains the next page cursor for query. If nextCursor is empty, there is no next page.

Returns

Type

Description

String

Next page cursor for query. If nextCursor is empty, there is no next page.

[h2]set

Method

public CommentList set(String fieldName, Object value)

Sets a custom attribute and its value.

Parameters

Name

Description

fieldName

Attribute name.

value

Attribute value.

Returns

Type

Description

CommentList

A CommentList object.

[h2]setCategory

Method

public CommentList setCategory(String category)

Sets the resource type. The value is always drive#commentList.

Parameters

Name

Description

category

Resource type. The value is always drive#commentList.

Returns

Type

Description

CommentList

A CommentList object.

[h2]setComments

Method

public CommentList setComments(List<Comment> comments)

Sets a comment list.

Parameters

Name

Description

comments

Comment list.

Returns

Type

Description

CommentList

A CommentList object.

[h2]setNextCursor

Method

public CommentList setNextCursor(String nextCursor)

Sets the next page cursor for query. If nextCursor is empty, there is no next page.

Parameters

Name

Description

nextCursor

Next page cursor for query.

Returns

Type

Description

CommentList

A CommentList object.