target.apidocs.com.google.api.services.drive.model.RevisionList.html Maven / Gradle / Ivy
RevisionList (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive.model
Class RevisionList
- 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.RevisionList
-
public final class RevisionList
extends com.google.api.client.json.GenericJson
A list of revisions of a file.
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
RevisionList()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
RevisionList
clone()
String
getEtag()
The ETag of the list.
List<Revision>
getItems()
The list of revisions.
String
getKind()
This is always drive#revisionList.
String
getNextPageToken()
The page token for the next page of revisions.
String
getSelfLink()
A link back to this list.
RevisionList
set(String fieldName,
Object value)
RevisionList
setEtag(String etag)
The ETag of the list.
RevisionList
setItems(List<Revision> items)
The list of revisions.
RevisionList
setKind(String kind)
This is always drive#revisionList.
RevisionList
setNextPageToken(String nextPageToken)
The page token for the next page of revisions.
RevisionList
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
-
getEtag
public String getEtag()
The ETag of the list.
- Returns:
- value or
null
for none
-
setEtag
public RevisionList setEtag(String etag)
The ETag of the list.
- Parameters:
etag
- etag or null
for none
-
getItems
public List<Revision> getItems()
The list of revisions. 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 RevisionList setItems(List<Revision> items)
The list of revisions. 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#revisionList.
- Returns:
- value or
null
for none
-
setKind
public RevisionList setKind(String kind)
This is always drive#revisionList.
- Parameters:
kind
- kind or null
for none
-
getNextPageToken
public String getNextPageToken()
The page token for the next page of revisions. This field will be absent if the end of the
revisions 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 RevisionList setNextPageToken(String nextPageToken)
The page token for the next page of revisions. This field will be absent if the end of the
revisions 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 RevisionList setSelfLink(String selfLink)
A link back to this list.
- Parameters:
selfLink
- selfLink or null
for none
-
set
public RevisionList set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public RevisionList clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2018 Google. All rights reserved.