target.apidocs.com.google.api.services.drive.model.CommentList.html Maven / Gradle / Ivy
CommentList (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive.model
Class CommentList
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.CommentList
-
public final class CommentList
extends com.google.api.client.json.GenericJson
A list of comments on a file in Google Drive.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Drive API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
CommentList()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CommentList
clone()
List<Comment>
getItems()
The list of comments.
String
getKind()
This is always drive#commentList.
String
getNextLink()
A link to the next page of comments.
String
getNextPageToken()
The page token for the next page of comments.
String
getSelfLink()
A link back to this list.
CommentList
set(String fieldName,
Object value)
CommentList
setItems(List<Comment> items)
The list of comments.
CommentList
setKind(String kind)
This is always drive#commentList.
CommentList
setNextLink(String nextLink)
A link to the next page of comments.
CommentList
setNextPageToken(String nextPageToken)
The page token for the next page of comments.
CommentList
setSelfLink(String selfLink)
A link back to this list.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getItems
public List<Comment> getItems()
The list of comments. If nextPageToken is populated, then this list may be incomplete and an
additional page of results should be fetched.
- Returns:
- value or
null
for none
-
setItems
public CommentList setItems(List<Comment> items)
The list of comments. If nextPageToken is populated, then this list may be incomplete and an
additional page of results should be fetched.
- Parameters:
items
- items or null
for none
-
getKind
public String getKind()
This is always drive#commentList.
- Returns:
- value or
null
for none
-
setKind
public CommentList setKind(String kind)
This is always drive#commentList.
- Parameters:
kind
- kind or null
for none
-
getNextLink
public String getNextLink()
A link to the next page of comments.
- Returns:
- value or
null
for none
-
setNextLink
public CommentList setNextLink(String nextLink)
A link to the next page of comments.
- Parameters:
nextLink
- nextLink or null
for none
-
getNextPageToken
public String getNextPageToken()
The page token for the next page of comments. This will be absent if the end of the comments
list has been reached. If the token is rejected for any reason, it should be discarded, and
pagination should be restarted from the first page of results.
- Returns:
- value or
null
for none
-
setNextPageToken
public CommentList setNextPageToken(String nextPageToken)
The page token for the next page of comments. This will be absent if the end of the comments
list has been reached. If the token is rejected for any reason, it should be discarded, and
pagination should be restarted from the first page of results.
- Parameters:
nextPageToken
- nextPageToken or null
for none
-
getSelfLink
public String getSelfLink()
A link back to this list.
- Returns:
- value or
null
for none
-
setSelfLink
public CommentList setSelfLink(String selfLink)
A link back to this list.
- Parameters:
selfLink
- selfLink or null
for none
-
set
public CommentList set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public CommentList clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2018 Google. All rights reserved.