public class Drive.Files.List extends DriveRequest<FileList>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
List()
Lists the user's files.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getCorpora()
Bodies of items (files/documents) to which the query applies.
|
String |
getCorpus()
Deprecated: The source of files to list.
|
String |
getDriveId()
ID of the shared drive to search.
|
Boolean |
getIncludeItemsFromAllDrives()
Whether both My Drive and shared drive items should be included in results.
|
String |
getIncludeLabels()
A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
|
String |
getIncludePermissionsForView()
Specifies which additional view's permissions to include in the response.
|
Boolean |
getIncludeTeamDriveItems()
Deprecated: Use `includeItemsFromAllDrives` instead.
|
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 corpora.
|
Boolean |
getSupportsAllDrives()
Whether the requesting application supports both My Drives and shared drives.
|
Boolean |
getSupportsTeamDrives()
Deprecated: Use `supportsAllDrives` instead.
|
String |
getTeamDriveId()
Deprecated: Use `driveId` instead.
|
boolean |
isIncludeItemsFromAllDrives()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isIncludeTeamDriveItems()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isSupportsAllDrives()
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 |
set$Xgafv(String $Xgafv)
V1 error format.
|
Drive.Files.List |
setAccessToken(String accessToken)
OAuth access token.
|
Drive.Files.List |
setAlt(String alt)
Data format for response.
|
Drive.Files.List |
setCallback(String callback)
JSONP
|
Drive.Files.List |
setCorpora(String corpora)
Bodies of items (files/documents) to which the query applies.
|
Drive.Files.List |
setCorpus(String corpus)
Deprecated: The source of files to list.
|
Drive.Files.List |
setDriveId(String driveId)
ID of the shared drive to search.
|
Drive.Files.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Files.List |
setIncludeItemsFromAllDrives(Boolean includeItemsFromAllDrives)
Whether both My Drive and shared drive items should be included in results.
|
Drive.Files.List |
setIncludeLabels(String includeLabels)
A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
|
Drive.Files.List |
setIncludePermissionsForView(String includePermissionsForView)
Specifies which additional view's permissions to include in the response.
|
Drive.Files.List |
setIncludeTeamDriveItems(Boolean includeTeamDriveItems)
Deprecated: Use `includeItemsFromAllDrives` instead.
|
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)
Available to use for quota purposes for server-side applications.
|
Drive.Files.List |
setSpaces(String spaces)
A comma-separated list of spaces to query within the corpora.
|
Drive.Files.List |
setSupportsAllDrives(Boolean supportsAllDrives)
Whether the requesting application supports both My Drives and shared drives.
|
Drive.Files.List |
setSupportsTeamDrives(Boolean supportsTeamDrives)
Deprecated: Use `supportsAllDrives` instead.
|
Drive.Files.List |
setTeamDriveId(String teamDriveId)
Deprecated: Use `driveId` instead.
|
Drive.Files.List |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Drive.Files.List |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected 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>
IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<FileList>
IOException
public Drive.Files.List set$Xgafv(String $Xgafv)
DriveRequest
set$Xgafv
in class DriveRequest<FileList>
public Drive.Files.List setAccessToken(String accessToken)
DriveRequest
setAccessToken
in class DriveRequest<FileList>
public Drive.Files.List setAlt(String alt)
DriveRequest
setAlt
in class DriveRequest<FileList>
public Drive.Files.List setCallback(String callback)
DriveRequest
setCallback
in class DriveRequest<FileList>
public Drive.Files.List setFields(String fields)
DriveRequest
setFields
in class DriveRequest<FileList>
public Drive.Files.List setKey(String key)
DriveRequest
setKey
in class DriveRequest<FileList>
public Drive.Files.List setOauthToken(String oauthToken)
DriveRequest
setOauthToken
in class DriveRequest<FileList>
public Drive.Files.List setPrettyPrint(Boolean prettyPrint)
DriveRequest
setPrettyPrint
in class DriveRequest<FileList>
public Drive.Files.List setQuotaUser(String quotaUser)
DriveRequest
setQuotaUser
in class DriveRequest<FileList>
public Drive.Files.List setUploadType(String uploadType)
DriveRequest
setUploadType
in class DriveRequest<FileList>
public Drive.Files.List setUploadProtocol(String uploadProtocol)
DriveRequest
setUploadProtocol
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 String getDriveId()
public Drive.Files.List setDriveId(String driveId)
public Boolean getIncludeItemsFromAllDrives()
public Drive.Files.List setIncludeItemsFromAllDrives(Boolean includeItemsFromAllDrives)
public boolean isIncludeItemsFromAllDrives()
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 both My Drive and shared drive items should be included in results.
public String getIncludeLabels()
public Drive.Files.List setIncludeLabels(String includeLabels)
public String getIncludePermissionsForView()
public Drive.Files.List setIncludePermissionsForView(String includePermissionsForView)
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
.
Deprecated: Use `includeItemsFromAllDrives` instead.
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 getSupportsAllDrives()
public Drive.Files.List setSupportsAllDrives(Boolean supportsAllDrives)
public boolean isSupportsAllDrives()
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 both My Drives and shared drives.
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
.
Deprecated: Use `supportsAllDrives` instead.
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–2024 Google. All rights reserved.