public class Drive.Files.List extends DriveRequest<FileList>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
List()
Lists or searches files.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getCorpora()
Comma-separated list of bodies of items (files/documents) to which the query applies.
|
String |
getCorpus()
The source of files to list.
|
Boolean |
getIncludeTeamDriveItems()
Whether Team Drive items should be included in results.
|
String |
getOrderBy()
A comma-separated list of sort keys.
|
Integer |
getPageSize()
The maximum number of files to return per page.
|
String |
getPageToken()
The token for continuing a previous list request on the next page.
|
String |
getQ()
A query for filtering the file results.
|
String |
getSpaces()
A comma-separated list of spaces to query within the corpus.
|
Boolean |
getSupportsTeamDrives()
Whether the requesting application supports Team Drives.
|
String |
getTeamDriveId()
ID of Team Drive to search.
|
boolean |
isIncludeTeamDriveItems()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
boolean |
isSupportsTeamDrives()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
Drive.Files.List |
set(String parameterName,
Object value) |
Drive.Files.List |
setAlt(String alt)
Data format for the response.
|
Drive.Files.List |
setCorpora(String corpora)
Comma-separated list of bodies of items (files/documents) to which the query applies.
|
Drive.Files.List |
setCorpus(String corpus)
The source of files to list.
|
Drive.Files.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Files.List |
setIncludeTeamDriveItems(Boolean includeTeamDriveItems)
Whether Team Drive items should be included in results.
|
Drive.Files.List |
setKey(String key)
API key.
|
Drive.Files.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Files.List |
setOrderBy(String orderBy)
A comma-separated list of sort keys.
|
Drive.Files.List |
setPageSize(Integer pageSize)
The maximum number of files to return per page.
|
Drive.Files.List |
setPageToken(String pageToken)
The token for continuing a previous list request on the next page.
|
Drive.Files.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Files.List |
setQ(String q)
A query for filtering the file results.
|
Drive.Files.List |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Drive.Files.List |
setSpaces(String spaces)
A comma-separated list of spaces to query within the corpus.
|
Drive.Files.List |
setSupportsTeamDrives(Boolean supportsTeamDrives)
Whether the requesting application supports Team Drives.
|
Drive.Files.List |
setTeamDriveId(String teamDriveId)
ID of Team Drive to search.
|
Drive.Files.List |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected List()
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Drive.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<FileList>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<FileList>IOExceptionpublic Drive.Files.List setAlt(String alt)
DriveRequestsetAlt in class DriveRequest<FileList>public Drive.Files.List setFields(String fields)
DriveRequestsetFields in class DriveRequest<FileList>public Drive.Files.List setKey(String key)
DriveRequestsetKey in class DriveRequest<FileList>public Drive.Files.List setOauthToken(String oauthToken)
DriveRequestsetOauthToken in class DriveRequest<FileList>public Drive.Files.List setPrettyPrint(Boolean prettyPrint)
DriveRequestsetPrettyPrint in class DriveRequest<FileList>public Drive.Files.List setQuotaUser(String quotaUser)
DriveRequestsetQuotaUser in class DriveRequest<FileList>public Drive.Files.List setUserIp(String userIp)
DriveRequestsetUserIp in class DriveRequest<FileList>public String getCorpora()
public Drive.Files.List setCorpora(String corpora)
public String getCorpus()
public Drive.Files.List setCorpus(String corpus)
public Boolean getIncludeTeamDriveItems()
public Drive.Files.List setIncludeTeamDriveItems(Boolean includeTeamDriveItems)
public boolean isIncludeTeamDriveItems()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Whether Team Drive items should be included in results.
public String getOrderBy()
public Drive.Files.List setOrderBy(String orderBy)
public Integer getPageSize()
public Drive.Files.List setPageSize(Integer pageSize)
public String getPageToken()
public Drive.Files.List setPageToken(String pageToken)
public String getQ()
public Drive.Files.List setQ(String q)
public String getSpaces()
public Drive.Files.List setSpaces(String spaces)
public Boolean getSupportsTeamDrives()
public Drive.Files.List setSupportsTeamDrives(Boolean supportsTeamDrives)
public boolean isSupportsTeamDrives()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Whether the requesting application supports Team Drives.
public String getTeamDriveId()
public Drive.Files.List setTeamDriveId(String teamDriveId)
public Drive.Files.List set(String parameterName, Object value)
set in class DriveRequest<FileList>Copyright © 2011–2018 Google. All rights reserved.