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(java.lang.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 new file.
|
Drive.Files.Create |
Drive.Files.create(File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Creates a new file.
|
Drive.Files.Update |
Drive.Files.update(java.lang.String fileId,
File content)
Updates a file's metadata and/or content with patch semantics.
|
Drive.Files.Update |
Drive.Files.update(java.lang.String fileId,
File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Updates a file's metadata and/or content with patch semantics.
|
Constructor and Description |
---|
Copy(java.lang.String fileId,
File content)
Creates a copy of a file and applies any requested updates with patch semantics.
|
Create(File content)
Creates a new file.
|
Create(File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Creates a new file.
|
Update(java.lang.String fileId,
File content)
Updates a file's metadata and/or content with patch semantics.
|
Update(java.lang.String fileId,
File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Updates a file's metadata and/or content with patch semantics.
|
Modifier and Type | Method and Description |
---|---|
File |
File.clone() |
File |
Change.getFile()
The updated state of the file.
|
File |
File.set(java.lang.String fieldName,
java.lang.Object value) |
File |
File.setAppProperties(java.util.Map<java.lang.String,java.lang.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.setCopyRequiresWriterPermission(java.lang.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(java.lang.String description)
A short description of the file.
|
File |
File.setDriveId(java.lang.String driveId)
ID of the shared drive the file resides in.
|
File |
File.setExplicitlyTrashed(java.lang.Boolean explicitlyTrashed)
Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent
folder.
|
File |
File.setExportLinks(java.util.Map<java.lang.String,java.lang.String> exportLinks)
Links for exporting Google Docs to specific formats.
|
File |
File.setFileExtension(java.lang.String fileExtension)
The final component of fullFileExtension.
|
File |
File.setFolderColorRgb(java.lang.String folderColorRgb)
The color for a folder as an RGB hex string.
|
File |
File.setFullFileExtension(java.lang.String fullFileExtension)
The full file extension extracted from the name field.
|
File |
File.setHasAugmentedPermissions(java.lang.Boolean hasAugmentedPermissions)
Whether there are permissions directly on this file.
|
File |
File.setHasThumbnail(java.lang.Boolean hasThumbnail)
Whether this file has a thumbnail.
|
File |
File.setHeadRevisionId(java.lang.String headRevisionId)
The ID of the file's head revision.
|
File |
File.setIconLink(java.lang.String iconLink)
A static, unauthenticated link to the file's icon.
|
File |
File.setId(java.lang.String id)
The ID of the file.
|
File |
File.setImageMediaMetadata(File.ImageMediaMetadata imageMediaMetadata)
Additional metadata about image media, if available.
|
File |
File.setIsAppAuthorized(java.lang.Boolean isAppAuthorized)
Whether the file was created or opened by the requesting app.
|
File |
File.setKind(java.lang.String kind)
Identifies what kind of resource this is.
|
File |
File.setLastModifyingUser(User lastModifyingUser)
The last user to modify the file.
|
File |
File.setMd5Checksum(java.lang.String md5Checksum)
The MD5 checksum for the content of the file.
|
File |
File.setMimeType(java.lang.String mimeType)
The MIME type of the file.
|
File |
File.setModifiedByMe(java.lang.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(java.lang.String name)
The name of the file.
|
File |
File.setOriginalFilename(java.lang.String originalFilename)
The original filename of the uploaded content if available, or else the original value of the
name field.
|
File |
File.setOwnedByMe(java.lang.Boolean ownedByMe)
Whether the user owns the file.
|
File |
File.setOwners(java.util.List<User> owners)
The owners of the file.
|
File |
File.setParents(java.util.List<java.lang.String> parents)
The IDs of the parent folders which contain the file.
|
File |
File.setPermissionIds(java.util.List<java.lang.String> permissionIds)
List of permission IDs for users with access to this file.
|
File |
File.setPermissions(java.util.List<Permission> permissions)
The full list of permissions for the file.
|
File |
File.setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
A collection of arbitrary key-value pairs which are visible to all apps.
|
File |
File.setQuotaBytesUsed(java.lang.Long quotaBytesUsed)
The number of storage quota bytes used by the file.
|
File |
File.setShared(java.lang.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(java.lang.Long size)
The size of the file's content in bytes.
|
File |
File.setSpaces(java.util.List<java.lang.String> spaces)
The list of spaces which contain the file.
|
File |
File.setStarred(java.lang.Boolean starred)
Whether the user has starred the file.
|
File |
File.setTeamDriveId(java.lang.String teamDriveId)
Deprecated - use driveId instead.
|
File |
File.setThumbnailLink(java.lang.String thumbnailLink)
A short-lived link to the file's thumbnail, if available.
|
File |
File.setThumbnailVersion(java.lang.Long thumbnailVersion)
The thumbnail version for use in thumbnail cache invalidation.
|
File |
File.setTrashed(java.lang.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(java.lang.Long version)
A monotonically increasing version number for the file.
|
File |
File.setVideoMediaMetadata(File.VideoMediaMetadata videoMediaMetadata)
Additional metadata about video media.
|
File |
File.setViewedByMe(java.lang.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(java.lang.Boolean viewersCanCopyContent)
Deprecated - use copyRequiresWriterPermission instead.
|
File |
File.setWebContentLink(java.lang.String webContentLink)
A link for downloading the content of the file in a browser.
|
File |
File.setWebViewLink(java.lang.String webViewLink)
A link for opening the file in a relevant Google editor or viewer in a browser.
|
File |
File.setWritersCanShare(java.lang.Boolean writersCanShare)
Whether users with only writer permission can modify the file's permissions.
|
Modifier and Type | Method and Description |
---|---|
java.util.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(java.util.List<File> files)
The list of files.
|