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 the specified file.
|
Drive.Files.Insert |
Drive.Files.insert(File content)
Insert a new file.
|
Drive.Files.Insert |
Drive.Files.insert(File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Insert a new file.
|
Drive.Files.Patch |
Drive.Files.patch(java.lang.String fileId,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update |
Drive.Files.update(java.lang.String fileId,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update |
Drive.Files.update(java.lang.String fileId,
File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Updates file metadata and/or content.
|
Constructor and Description |
---|
Copy(java.lang.String fileId,
File content)
Creates a copy of the specified file.
|
Insert(File content)
Insert a new file.
|
Insert(File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Insert a new file.
|
Patch(java.lang.String fileId,
File content)
Updates file metadata and/or content.
|
Update(java.lang.String fileId,
File content)
Updates file metadata and/or content.
|
Update(java.lang.String fileId,
File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Updates file 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(java.lang.String fieldName,
java.lang.Object value) |
File |
File.setAlternateLink(java.lang.String alternateLink)
A link for opening the file in a relevant Google editor or viewer.
|
File |
File.setAppDataContents(java.lang.Boolean appDataContents)
Whether this file is in the Application Data folder.
|
File |
File.setCanComment(java.lang.Boolean canComment)
Deprecated: use capabilities/canComment.
|
File |
File.setCanReadRevisions(java.lang.Boolean canReadRevisions)
Deprecated: use capabilities/canReadRevisions.
|
File |
File.setCapabilities(File.Capabilities capabilities)
Capabilities the current user has on this file.
|
File |
File.setCopyable(java.lang.Boolean copyable)
Deprecated: use capabilities/canCopy.
|
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.setCreatedDate(com.google.api.client.util.DateTime createdDate)
Create time for this file (formatted RFC 3339 timestamp).
|
File |
File.setDefaultOpenWithLink(java.lang.String defaultOpenWithLink)
A link to open this file with the user's default app for this file.
|
File |
File.setDescription(java.lang.String description)
A short description of the file.
|
File |
File.setDownloadUrl(java.lang.String downloadUrl)
Short lived download URL for the file.
|
File |
File.setDriveId(java.lang.String driveId)
ID of the shared drive the file resides in.
|
File |
File.setEditable(java.lang.Boolean editable)
Deprecated: use capabilities/canEdit.
|
File |
File.setEmbedLink(java.lang.String embedLink)
A link for embedding the file.
|
File |
File.setEtag(java.lang.String etag)
ETag of the file.
|
File |
File.setExplicitlyTrashed(java.lang.Boolean explicitlyTrashed)
Whether this file has been explicitly trashed, as opposed to recursively trashed.
|
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 with trailing text that does not appear to be part of
the extension removed.
|
File |
File.setFileSize(java.lang.Long fileSize)
The size of the file in bytes.
|
File |
File.setFolderColorRgb(java.lang.String folderColorRgb)
Folder color as an RGB hex string if the file is a folder.
|
File |
File.setFullFileExtension(java.lang.String fullFileExtension)
The full file extension; extracted from the title.
|
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 link to the file's icon.
|
File |
File.setId(java.lang.String id)
The ID of the file.
|
File |
File.setImageMediaMetadata(File.ImageMediaMetadata imageMediaMetadata)
Metadata about image media.
|
File |
File.setIndexableText(File.IndexableText indexableText)
Indexable text attributes for the file (can only be written)
|
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)
The type of file.
|
File |
File.setLabels(File.Labels labels)
A group of labels for the file.
|
File |
File.setLastModifyingUser(User lastModifyingUser)
The last user to modify this file.
|
File |
File.setLastModifyingUserName(java.lang.String lastModifyingUserName)
Name of the last user to modify this file.
|
File |
File.setLastViewedByMeDate(com.google.api.client.util.DateTime lastViewedByMeDate)
Last time this file was viewed by the user (formatted RFC 3339 timestamp).
|
File |
File.setMarkedViewedByMeDate(com.google.api.client.util.DateTime markedViewedByMeDate)
Deprecated.
|
File |
File.setMd5Checksum(java.lang.String md5Checksum)
An MD5 checksum for the content of this file.
|
File |
File.setMimeType(java.lang.String mimeType)
The MIME type of the file.
|
File |
File.setModifiedByMeDate(com.google.api.client.util.DateTime modifiedByMeDate)
Last time this file was modified by the user (formatted RFC 3339 timestamp).
|
File |
File.setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
Last time this file was modified by anyone (formatted RFC 3339 timestamp).
|
File |
File.setOpenWithLinks(java.util.Map<java.lang.String,java.lang.String> openWithLinks)
A map of the id of each of the user's apps to a link to open this file with that app.
|
File |
File.setOriginalFilename(java.lang.String originalFilename)
The original filename of the uploaded content if available, or else the original value of the
title field.
|
File |
File.setOwnedByMe(java.lang.Boolean ownedByMe)
Whether the file is owned by the current user.
|
File |
File.setOwnerNames(java.util.List<java.lang.String> ownerNames)
Name(s) of the owner(s) of this file.
|
File |
File.setOwners(java.util.List<User> owners)
The owner(s) of this file.
|
File |
File.setParents(java.util.List<ParentReference> parents)
Collection of parent folders which contain this 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 list of permissions for users with access to this file.
|
File |
File.setProperties(java.util.List<Property> properties)
The list of properties.
|
File |
File.setQuotaBytesUsed(java.lang.Long quotaBytesUsed)
The number of quota bytes used by this file.
|
File |
File.setSelfLink(java.lang.String selfLink)
A link back to this file.
|
File |
File.setShareable(java.lang.Boolean shareable)
Deprecated: use capabilities/canShare.
|
File |
File.setShared(java.lang.Boolean shared)
Whether the file has been shared.
|
File |
File.setSharedWithMeDate(com.google.api.client.util.DateTime sharedWithMeDate)
Time at which this file was shared with the user (formatted RFC 3339 timestamp).
|
File |
File.setSharingUser(User sharingUser)
User that shared the item with the current user, if available.
|
File |
File.setShortcutDetails(File.ShortcutDetails shortcutDetails)
Shortcut file details.
|
File |
File.setSpaces(java.util.List<java.lang.String> spaces)
The list of spaces which contain the file.
|
File |
File.setTeamDriveId(java.lang.String teamDriveId)
Deprecated - use driveId instead.
|
File |
File.setThumbnail(File.Thumbnail thumbnail)
A thumbnail for the file.
|
File |
File.setThumbnailLink(java.lang.String thumbnailLink)
A short-lived link to the file's thumbnail.
|
File |
File.setThumbnailVersion(java.lang.Long thumbnailVersion)
The thumbnail version for use in thumbnail cache invalidation.
|
File |
File.setTitle(java.lang.String title)
The title of this file.
|
File |
File.setTrashedDate(com.google.api.client.util.DateTime trashedDate)
The time that the item was trashed (formatted RFC 3339 timestamp).
|
File |
File.setTrashingUser(User trashingUser)
If the file has been explicitly trashed, the user who trashed it.
|
File |
File.setUserPermission(Permission userPermission)
The permissions for the authenticated user on this file.
|
File |
File.setVersion(java.lang.Long version)
A monotonically increasing version number for the file.
|
File |
File.setVideoMediaMetadata(File.VideoMediaMetadata videoMediaMetadata)
Metadata about video media.
|
File |
File.setWebContentLink(java.lang.String webContentLink)
A link for downloading the content of the file in a browser using cookie based authentication.
|
File |
File.setWebViewLink(java.lang.String webViewLink)
A link only available on public folders for viewing their static web assets (HTML, CSS, JS,
etc) via Google Drive's Website Hosting.
|
File |
File.setWritersCanShare(java.lang.Boolean writersCanShare)
Whether writers can share the document with other users.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<File> |
FileList.getItems()
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.setItems(java.util.List<File> items)
The list of files.
|