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 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(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 new file.
|
Create(File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Creates a new 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)
Output only.
|
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)
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.setFolderColorRgb(String folderColorRgb)
The color for a folder or a shortcut to a folder as an RGB hex string.
|
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.setIsAppAuthorized(Boolean isAppAuthorized)
Output only.
|
File |
File.setKind(String kind)
Output only.
|
File |
File.setLabelInfo(File.LabelInfo labelInfo)
Output only.
|
File |
File.setLastModifyingUser(User lastModifyingUser)
Output only.
|
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)
Output only.
|
File |
File.setMimeType(String mimeType)
The MIME type of the file.
|
File |
File.setModifiedByMe(Boolean modifiedByMe)
Output only.
|
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)
he 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)
Output only.
|
File |
File.setOwners(List<User> owners)
Output only.
|
File |
File.setParents(List<String> parents)
The ID of the parent folder containing the file.
|
File |
File.setPermissionIds(List<String> permissionIds)
Output only.
|
File |
File.setPermissions(List<Permission> permissions)
Output only.
|
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)
Output only.
|
File |
File.setResourceKey(String resourceKey)
Output only.
|
File |
File.setSha1Checksum(String sha1Checksum)
Output only.
|
File |
File.setSha256Checksum(String sha256Checksum)
Output only.
|
File |
File.setShared(Boolean shared)
Output only.
|
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)
Output only.
|
File |
File.setShortcutDetails(File.ShortcutDetails shortcutDetails)
Shortcut file details.
|
File |
File.setSize(Long size)
Output only.
|
File |
File.setSpaces(List<String> spaces)
Output only.
|
File |
File.setStarred(Boolean starred)
Whether the user has starred the file.
|
File |
File.setTeamDriveId(String teamDriveId)
Deprecated: Output only.
|
File |
File.setThumbnailLink(String thumbnailLink)
Output only.
|
File |
File.setThumbnailVersion(Long thumbnailVersion)
Output only.
|
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)
Output only.
|
File |
File.setVersion(Long version)
Output only.
|
File |
File.setVideoMediaMetadata(File.VideoMediaMetadata videoMediaMetadata)
Output only.
|
File |
File.setViewedByMe(Boolean viewedByMe)
Output only.
|
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)
Output only.
|
File |
File.setWebViewLink(String webViewLink)
Output only.
|
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–2024 Google. All rights reserved.