public class Drive.Files.List extends DriveRequest<FileList>
com.google.api.client.util.GenericData.Flags
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() |
java.lang.String |
getCorpora()
Bodies of items (files/documents) to which the query applies.
|
java.lang.String |
getCorpus()
The source of files to list.
|
java.lang.String |
getDriveId()
ID of the shared drive to search.
|
java.lang.Boolean |
getIncludeItemsFromAllDrives()
Deprecated - Whether both My Drive and shared drive items should be included in results.
|
java.lang.Boolean |
getIncludeTeamDriveItems()
Deprecated use includeItemsFromAllDrives instead.
|
java.lang.String |
getOrderBy()
A comma-separated list of sort keys.
|
java.lang.Integer |
getPageSize()
The maximum number of files to return per page.
|
java.lang.String |
getPageToken()
The token for continuing a previous list request on the next page.
|
java.lang.String |
getQ()
A query for filtering the file results.
|
java.lang.String |
getSpaces()
A comma-separated list of spaces to query within the corpus.
|
java.lang.Boolean |
getSupportsAllDrives()
Deprecated - Whether the requesting application supports both My Drives and shared drives.
|
java.lang.Boolean |
getSupportsTeamDrives()
Deprecated use supportsAllDrives instead.
|
java.lang.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(java.lang.String parameterName,
java.lang.Object value) |
Drive.Files.List |
setAlt(java.lang.String alt)
Data format for the response.
|
Drive.Files.List |
setCorpora(java.lang.String corpora)
Bodies of items (files/documents) to which the query applies.
|
Drive.Files.List |
setCorpus(java.lang.String corpus)
The source of files to list.
|
Drive.Files.List |
setDriveId(java.lang.String driveId)
ID of the shared drive to search.
|
Drive.Files.List |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Files.List |
setIncludeItemsFromAllDrives(java.lang.Boolean includeItemsFromAllDrives)
Deprecated - Whether both My Drive and shared drive items should be included in results.
|
Drive.Files.List |
setIncludeTeamDriveItems(java.lang.Boolean includeTeamDriveItems)
Deprecated use includeItemsFromAllDrives instead.
|
Drive.Files.List |
setKey(java.lang.String key)
API key.
|
Drive.Files.List |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Files.List |
setOrderBy(java.lang.String orderBy)
A comma-separated list of sort keys.
|
Drive.Files.List |
setPageSize(java.lang.Integer pageSize)
The maximum number of files to return per page.
|
Drive.Files.List |
setPageToken(java.lang.String pageToken)
The token for continuing a previous list request on the next page.
|
Drive.Files.List |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Files.List |
setQ(java.lang.String q)
A query for filtering the file results.
|
Drive.Files.List |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Drive.Files.List |
setSpaces(java.lang.String spaces)
A comma-separated list of spaces to query within the corpus.
|
Drive.Files.List |
setSupportsAllDrives(java.lang.Boolean supportsAllDrives)
Deprecated - Whether the requesting application supports both My Drives and shared drives.
|
Drive.Files.List |
setSupportsTeamDrives(java.lang.Boolean supportsTeamDrives)
Deprecated use supportsAllDrives instead.
|
Drive.Files.List |
setTeamDriveId(java.lang.String teamDriveId)
Deprecated use driveId instead.
|
Drive.Files.List |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
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 java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<FileList>
java.io.IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<FileList>
java.io.IOException
public Drive.Files.List setAlt(java.lang.String alt)
DriveRequest
setAlt
in class DriveRequest<FileList>
public Drive.Files.List setFields(java.lang.String fields)
DriveRequest
setFields
in class DriveRequest<FileList>
public Drive.Files.List setKey(java.lang.String key)
DriveRequest
setKey
in class DriveRequest<FileList>
public Drive.Files.List setOauthToken(java.lang.String oauthToken)
DriveRequest
setOauthToken
in class DriveRequest<FileList>
public Drive.Files.List setPrettyPrint(java.lang.Boolean prettyPrint)
DriveRequest
setPrettyPrint
in class DriveRequest<FileList>
public Drive.Files.List setQuotaUser(java.lang.String quotaUser)
DriveRequest
setQuotaUser
in class DriveRequest<FileList>
public Drive.Files.List setUserIp(java.lang.String userIp)
DriveRequest
setUserIp
in class DriveRequest<FileList>
public java.lang.String getCorpora()
public Drive.Files.List setCorpora(java.lang.String corpora)
public java.lang.String getCorpus()
public Drive.Files.List setCorpus(java.lang.String corpus)
public java.lang.String getDriveId()
public Drive.Files.List setDriveId(java.lang.String driveId)
public java.lang.Boolean getIncludeItemsFromAllDrives()
public Drive.Files.List setIncludeItemsFromAllDrives(java.lang.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
.
Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results.
public java.lang.Boolean getIncludeTeamDriveItems()
public Drive.Files.List setIncludeTeamDriveItems(java.lang.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 java.lang.String getOrderBy()
public Drive.Files.List setOrderBy(java.lang.String orderBy)
public java.lang.Integer getPageSize()
public Drive.Files.List setPageSize(java.lang.Integer pageSize)
public java.lang.String getPageToken()
public Drive.Files.List setPageToken(java.lang.String pageToken)
public java.lang.String getQ()
public Drive.Files.List setQ(java.lang.String q)
public java.lang.String getSpaces()
public Drive.Files.List setSpaces(java.lang.String spaces)
public java.lang.Boolean getSupportsAllDrives()
public Drive.Files.List setSupportsAllDrives(java.lang.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
.
Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
public java.lang.Boolean getSupportsTeamDrives()
public Drive.Files.List setSupportsTeamDrives(java.lang.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 java.lang.String getTeamDriveId()
public Drive.Files.List setTeamDriveId(java.lang.String teamDriveId)
public Drive.Files.List set(java.lang.String parameterName, java.lang.Object value)
set
in class DriveRequest<FileList>