Package | Description |
---|---|
com.google.api.services.drive | |
com.google.api.services.drive.model |
Modifier and Type | Method and Description |
---|---|
Drive.Files.Copy |
Drive.Files.copy(String fileId,
File content)
Creates a copy of a file and applies any requested updates with patch semantics.
|
Drive.Files.Create |
Drive.Files.create(File content)
Creates a file.
|
Drive.Files.Create |
Drive.Files.create(File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Creates a file.
|
Drive.Files.Update |
Drive.Files.update(String fileId,
File content)
Updates a file's metadata and/or content.
|
Drive.Files.Update |
Drive.Files.update(String fileId,
File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Updates a file's metadata and/or content.
|
Constructor and Description |
---|
Copy(String fileId,
File content)
Creates a copy of a file and applies any requested updates with patch semantics.
|
Create(File content)
Creates a file.
|
Create(File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Creates a file.
|
Update(String fileId,
File content)
Updates a file's metadata and/or content.
|
Update(String fileId,
File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Updates a file's metadata and/or content.
|
Modifier and Type | Method and Description |
---|---|
File |
File.clone() |
File |
Change.getFile()
The updated state of the file.
|
File |
File.set(String fieldName,
Object value) |
File |
File.setAppProperties(Map<String,String> appProperties)
A collection of arbitrary key-value pairs which are private to the requesting app.
|
File |
File.setCapabilities(File.Capabilities capabilities)
Capabilities the current user has on this file.
|
File |
File.setContentHints(File.ContentHints contentHints)
Additional information about the content of the file.
|
File |
File.setContentRestrictions(List<ContentRestriction> contentRestrictions)
Restrictions for accessing the content of the file.
|
File |
File.setCopyRequiresWriterPermission(Boolean copyRequiresWriterPermission)
Whether the options to copy, print, or download this file, should be disabled for readers and
commenters.
|
File |
File.setCreatedTime(com.google.api.client.util.DateTime createdTime)
The time at which the file was created (RFC 3339 date-time).
|
File |
File.setDescription(String description)
A short description of the file.
|
File |
File.setDriveId(String driveId)
ID of the shared drive the file resides in.
|
File |
File.setExplicitlyTrashed(Boolean explicitlyTrashed)
Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent
folder.
|
File |
File.setExportLinks(Map<String,String> exportLinks)
Links for exporting Docs Editors files to specific formats.
|
File |
File.setFileExtension(String fileExtension)
The final component of fullFileExtension.
|
File |
File.setFolderColorRgb(String folderColorRgb)
The color for a folder or shortcut to a folder as an RGB hex string.
|
File |
File.setFullFileExtension(String fullFileExtension)
The full file extension extracted from the name field.
|
File |
File.setHasAugmentedPermissions(Boolean hasAugmentedPermissions)
Whether there are permissions directly on this file.
|
File |
File.setHasThumbnail(Boolean hasThumbnail)
Whether this file has a thumbnail.
|
File |
File.setHeadRevisionId(String headRevisionId)
The ID of the file's head revision.
|
File |
File.setIconLink(String iconLink)
A static, unauthenticated link to the file's icon.
|
File |
File.setId(String id)
The ID of the file.
|
File |
File.setImageMediaMetadata(File.ImageMediaMetadata imageMediaMetadata)
Additional metadata about image media, if available.
|
File |
File.setIsAppAuthorized(Boolean isAppAuthorized)
Whether the file was created or opened by the requesting app.
|
File |
File.setKind(String kind)
Identifies what kind of resource this is.
|
File |
File.setLabelInfo(File.LabelInfo labelInfo)
An overview of the labels on the file.
|
File |
File.setLastModifyingUser(User lastModifyingUser)
The last user to modify the file.
|
File |
File.setLinkShareMetadata(File.LinkShareMetadata linkShareMetadata)
Contains details about the link URLs that clients are using to refer to this item.
|
File |
File.setMd5Checksum(String md5Checksum)
The MD5 checksum for the content of the file.
|
File |
File.setMimeType(String mimeType)
The MIME type of the file.
|
File |
File.setModifiedByMe(Boolean modifiedByMe)
Whether the file has been modified by this user.
|
File |
File.setModifiedByMeTime(com.google.api.client.util.DateTime modifiedByMeTime)
The last time the file was modified by the user (RFC 3339 date-time).
|
File |
File.setModifiedTime(com.google.api.client.util.DateTime modifiedTime)
The last time the file was modified by anyone (RFC 3339 date-time).
|
File |
File.setName(String name)
The name of the file.
|
File |
File.setOriginalFilename(String originalFilename)
The original filename of the uploaded content if available, or else the original value of the
name field.
|
File |
File.setOwnedByMe(Boolean ownedByMe)
Whether the user owns the file.
|
File |
File.setOwners(List<User> owners)
The owner of this file.
|
File |
File.setParents(List<String> parents)
The IDs of the parent folders which contain the file.
|
File |
File.setPermissionIds(List<String> permissionIds)
List of permission IDs for users with access to this file.
|
File |
File.setPermissions(List<Permission> permissions)
The full list of permissions for the file.
|
File |
File.setProperties(Map<String,String> properties)
A collection of arbitrary key-value pairs which are visible to all apps.
|
File |
File.setQuotaBytesUsed(Long quotaBytesUsed)
The number of storage quota bytes used by the file.
|
File |
File.setResourceKey(String resourceKey)
A key needed to access the item via a shared link.
|
File |
File.setSha1Checksum(String sha1Checksum)
The SHA1 checksum associated with this file, if available.
|
File |
File.setSha256Checksum(String sha256Checksum)
The SHA256 checksum associated with this file, if available.
|
File |
File.setShared(Boolean shared)
Whether the file has been shared.
|
File |
File.setSharedWithMeTime(com.google.api.client.util.DateTime sharedWithMeTime)
The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
|
File |
File.setSharingUser(User sharingUser)
The user who shared the file with the requesting user, if applicable.
|
File |
File.setShortcutDetails(File.ShortcutDetails shortcutDetails)
Shortcut file details.
|
File |
File.setSize(Long size)
The size of the file's content in bytes.
|
File |
File.setSpaces(List<String> spaces)
The list of spaces which contain the file.
|
File |
File.setStarred(Boolean starred)
Whether the user has starred the file.
|
File |
File.setTeamDriveId(String teamDriveId)
Deprecated - use driveId instead.
|
File |
File.setThumbnailLink(String thumbnailLink)
A short-lived link to the file's thumbnail, if available.
|
File |
File.setThumbnailVersion(Long thumbnailVersion)
The thumbnail version for use in thumbnail cache invalidation.
|
File |
File.setTrashed(Boolean trashed)
Whether the file has been trashed, either explicitly or from a trashed parent folder.
|
File |
File.setTrashedTime(com.google.api.client.util.DateTime trashedTime)
The time that the item was trashed (RFC 3339 date-time).
|
File |
File.setTrashingUser(User trashingUser)
If the file has been explicitly trashed, the user who trashed it.
|
File |
File.setVersion(Long version)
A monotonically increasing version number for the file.
|
File |
File.setVideoMediaMetadata(File.VideoMediaMetadata videoMediaMetadata)
Additional metadata about video media.
|
File |
File.setViewedByMe(Boolean viewedByMe)
Whether the file has been viewed by this user.
|
File |
File.setViewedByMeTime(com.google.api.client.util.DateTime viewedByMeTime)
The last time the file was viewed by the user (RFC 3339 date-time).
|
File |
File.setViewersCanCopyContent(Boolean viewersCanCopyContent)
Deprecated - use copyRequiresWriterPermission instead.
|
File |
File.setWebContentLink(String webContentLink)
A link for downloading the content of the file in a browser.
|
File |
File.setWebViewLink(String webViewLink)
A link for opening the file in a relevant Google editor or viewer in a browser.
|
File |
File.setWritersCanShare(Boolean writersCanShare)
Whether users with only writer permission can modify the file's permissions.
|
Modifier and Type | Method and Description |
---|---|
List<File> |
FileList.getFiles()
The list of files.
|
Modifier and Type | Method and Description |
---|---|
Change |
Change.setFile(File file)
The updated state of the file.
|
Modifier and Type | Method and Description |
---|---|
FileList |
FileList.setFiles(List<File> files)
The list of files.
|
Copyright © 2011–2023 Google. All rights reserved.