| 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 the specified file.
|
Drive.Files.Insert |
Drive.Files.insert(File content)
Inserts a new file.
|
Drive.Files.Insert |
Drive.Files.insert(File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Inserts a new file.
|
Drive.Files.Patch |
Drive.Files.patch(String fileId,
File content)
Updates a file's metadata and/or content.
|
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 the specified file.
|
Insert(File content)
Inserts a new file.
|
Insert(File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Inserts a new file.
|
Patch(String fileId,
File content)
Updates a file's metadata and/or content.
|
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.setAlternateLink(String alternateLink)
Output only.
|
File |
File.setAppDataContents(Boolean appDataContents)
Output only.
|
File |
File.setCanComment(Boolean canComment)
Output only.
|
File |
File.setCanReadRevisions(Boolean canReadRevisions)
Output only.
|
File |
File.setCapabilities(File.Capabilities capabilities)
Output only.
|
File |
File.setContentRestrictions(List<ContentRestriction> contentRestrictions)
Restrictions for accessing the content of the file.
|
File |
File.setCopyable(Boolean copyable)
Output only.
|
File |
File.setCopyRequiresWriterPermission(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(String defaultOpenWithLink)
Output only.
|
File |
File.setDescription(String description)
A short description of the file.
|
File |
File.setDownloadUrl(String downloadUrl)
Output only.
|
File |
File.setDriveId(String driveId)
Output only.
|
File |
File.setEditable(Boolean editable)
Output only.
|
File |
File.setEmbedLink(String embedLink)
Output only.
|
File |
File.setEtag(String etag)
Output only.
|
File |
File.setExplicitlyTrashed(Boolean explicitlyTrashed)
Output only.
|
File |
File.setExportLinks(Map<String,String> exportLinks)
Output only.
|
File |
File.setFileExtension(String fileExtension)
Output only.
|
File |
File.setFileSize(Long fileSize)
Output only.
|
File |
File.setFolderColorRgb(String folderColorRgb)
Folder color as an RGB hex string if the file is a folder or a shortcut to a folder.
|
File |
File.setFullFileExtension(String fullFileExtension)
Output only.
|
File |
File.setHasAugmentedPermissions(Boolean hasAugmentedPermissions)
Output only.
|
File |
File.setHasThumbnail(Boolean hasThumbnail)
Output only.
|
File |
File.setHeadRevisionId(String headRevisionId)
Output only.
|
File |
File.setIconLink(String iconLink)
Output only.
|
File |
File.setId(String id)
The ID of the file.
|
File |
File.setImageMediaMetadata(File.ImageMediaMetadata imageMediaMetadata)
Output only.
|
File |
File.setIndexableText(File.IndexableText indexableText)
Indexable text attributes for the file (can only be written)
|
File |
File.setIsAppAuthorized(Boolean isAppAuthorized)
Output only.
|
File |
File.setKind(String kind)
Output only.
|
File |
File.setLabelInfo(File.LabelInfo labelInfo)
Output only.
|
File |
File.setLabels(File.Labels labels)
A group of labels for the file.
|
File |
File.setLastModifyingUser(User lastModifyingUser)
Output only.
|
File |
File.setLastModifyingUserName(String lastModifyingUserName)
Output only.
|
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.setLinkShareMetadata(File.LinkShareMetadata linkShareMetadata)
Contains details about the link URLs that clients are using to refer to this item.
|
File |
File.setMarkedViewedByMeDate(com.google.api.client.util.DateTime markedViewedByMeDate)
Deprecated.
|
File |
File.setMd5Checksum(String md5Checksum)
Output only.
|
File |
File.setMimeType(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(Map<String,String> openWithLinks)
Output only.
|
File |
File.setOriginalFilename(String originalFilename)
The original filename of the uploaded content if available, or else the original value of the
`title` field.
|
File |
File.setOwnedByMe(Boolean ownedByMe)
Output only.
|
File |
File.setOwnerNames(List<String> ownerNames)
Output only.
|
File |
File.setOwners(List<User> owners)
Output only.
|
File |
File.setParents(List<ParentReference> parents)
Collection of parent folders which contain this file.
|
File |
File.setPermissionIds(List<String> permissionIds)
Output only.
|
File |
File.setPermissions(List<Permission> permissions)
Output only.
|
File |
File.setProperties(List<Property> properties)
The list of properties.
|
File |
File.setQuotaBytesUsed(Long quotaBytesUsed)
Output only.
|
File |
File.setResourceKey(String resourceKey)
Output only.
|
File |
File.setSelfLink(String selfLink)
Output only.
|
File |
File.setSha1Checksum(String sha1Checksum)
Output only.
|
File |
File.setSha256Checksum(String sha256Checksum)
Output only.
|
File |
File.setShareable(Boolean shareable)
Output only.
|
File |
File.setShared(Boolean shared)
Output only.
|
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)
Output only.
|
File |
File.setShortcutDetails(File.ShortcutDetails shortcutDetails)
Shortcut file details.
|
File |
File.setSpaces(List<String> spaces)
Output only.
|
File |
File.setTeamDriveId(String teamDriveId)
Output only.
|
File |
File.setThumbnail(File.Thumbnail thumbnail)
A thumbnail for the file.
|
File |
File.setThumbnailLink(String thumbnailLink)
Output only.
|
File |
File.setThumbnailVersion(Long thumbnailVersion)
Output only.
|
File |
File.setTitle(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)
Output only.
|
File |
File.setUserPermission(Permission userPermission)
Output only.
|
File |
File.setVersion(Long version)
Output only.
|
File |
File.setVideoMediaMetadata(File.VideoMediaMetadata videoMediaMetadata)
Output only.
|
File |
File.setWebContentLink(String webContentLink)
Output only.
|
File |
File.setWebViewLink(String webViewLink)
Output only.
|
File |
File.setWritersCanShare(Boolean writersCanShare)
Whether writers can share the document with other users.
|
| Modifier and Type | Method and Description |
|---|---|
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(List<File> items)
The list of files.
|
Copyright © 2011–2024 Google. All rights reserved.