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)
Insert a new file.
|
Drive.Files.Insert |
Drive.Files.insert(File content,
AbstractInputStreamContent mediaContent)
Insert a new file.
|
Drive.Files.Patch |
Drive.Files.patch(String fileId,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update |
Drive.Files.update(String fileId,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update |
Drive.Files.update(String fileId,
File content,
AbstractInputStreamContent mediaContent)
Updates file metadata and/or content.
|
Constructor and Description |
---|
Drive.Files.Copy(String fileId,
File content)
Creates a copy of the specified file.
|
Drive.Files.Insert(File content)
Insert a new file.
|
Drive.Files.Insert(File content,
AbstractInputStreamContent mediaContent)
Insert a new file.
|
Drive.Files.Patch(String fileId,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update(String fileId,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update(String fileId,
File content,
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(String fieldName,
Object value) |
File |
File.setAlternateLink(String alternateLink)
A link for opening the file in using a relevant Google editor or viewer.
|
File |
File.setAppDataContents(Boolean appDataContents)
Whether this file is in the appdata folder.
|
File |
File.setCopyable(Boolean copyable)
Whether the file can be copied by the current user.
|
File |
File.setCreatedDate(DateTime createdDate)
Create time for this file (formatted ISO8601 timestamp).
|
File |
File.setDefaultOpenWithLink(String defaultOpenWithLink)
A link to open this file with the user's default app for this file.
|
File |
File.setDescription(String description)
A short description of the file.
|
File |
File.setDownloadUrl(String downloadUrl)
Short lived download URL for the file.
|
File |
File.setEditable(Boolean editable)
Whether the file can be edited by the current user.
|
File |
File.setEmbedLink(String embedLink)
A link for embedding the file.
|
File |
File.setEtag(String etag)
ETag of the file.
|
File |
File.setExplicitlyTrashed(Boolean explicitlyTrashed)
Whether this file has been explicitly trashed, as opposed to recursively trashed.
|
File |
File.setExportLinks(Map<String,String> exportLinks)
Links for exporting Google Docs to specific formats.
|
File |
File.setFileExtension(String fileExtension)
The file extension used when downloading this file.
|
File |
File.setFileSize(Long fileSize)
The size of the file in bytes.
|
File |
File.setHeadRevisionId(String headRevisionId)
The ID of the file's head revision.
|
File |
File.setIconLink(String iconLink)
A link to the file's icon.
|
File |
File.setId(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.setKind(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(String lastModifyingUserName)
Name of the last user to modify this file.
|
File |
File.setLastViewedByMeDate(DateTime lastViewedByMeDate)
Last time this file was viewed by the user (formatted RFC 3339 timestamp).
|
File |
File.setMd5Checksum(String md5Checksum)
An MD5 checksum for the content of this file.
|
File |
File.setMimeType(String mimeType)
The MIME type of the file.
|
File |
File.setModifiedByMeDate(DateTime modifiedByMeDate)
Last time this file was modified by the user (formatted RFC 3339 timestamp).
|
File |
File.setModifiedDate(DateTime modifiedDate)
Last time this file was modified by anyone (formatted RFC 3339 timestamp).
|
File |
File.setOpenWithLinks(Map<String,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(String originalFilename)
The original filename if the file was uploaded manually, or the original title if the file was
inserted through the API.
|
File |
File.setOwnerNames(List<String> ownerNames)
Name(s) of the owner(s) of this file.
|
File |
File.setOwners(List<User> owners)
The owner(s) of this file.
|
File |
File.setParents(List<ParentReference> parents)
Collection of parent folders which contain this file.
|
File |
File.setProperties(List<Property> properties)
The list of properties.
|
File |
File.setQuotaBytesUsed(Long quotaBytesUsed)
The number of quota bytes used by this file.
|
File |
File.setSelfLink(String selfLink)
A link back to this file.
|
File |
File.setShared(Boolean shared)
Whether the file has been shared.
|
File |
File.setSharedWithMeDate(DateTime sharedWithMeDate)
Time at which this file was shared with the user (formatted RFC 3339 timestamp).
|
File |
File.setThumbnail(File.Thumbnail thumbnail)
Thumbnail for the file.
|
File |
File.setThumbnailLink(String thumbnailLink)
A link to the file's thumbnail.
|
File |
File.setTitle(String title)
The title of this file.
|
File |
File.setUserPermission(Permission userPermission)
The permissions for the authenticated user on this file.
|
File |
File.setWebContentLink(String webContentLink)
A link for downloading the content of the file in a browser using cookie based authentication.
|
File |
File.setWebViewLink(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(Boolean writersCanShare)
Whether writers can share the document with other users.
|
Modifier and Type | Method and Description |
---|---|
List<File> |
FileList.getItems()
The actual 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 actual list of files.
|