| Package | Description |
|---|---|
| com.google.api.services.drive | |
| com.google.api.services.drive.model |
| Modifier and Type | Method and Description |
|---|---|
Drive.Files.Insert |
Drive.Files.insert(File content)
Inserts a file, and any settable metadata or blob content sent with the request.
|
Drive.Files.Insert |
Drive.Files.insert(File content,
AbstractInputStreamContent mediaContent)
Inserts a file, and any settable metadata or blob content sent with the request.
|
Drive.Files.Patch |
Drive.Files.patch(String id,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update |
Drive.Files.update(String id,
File content)
Updates file metadata and/or content
Create a request for the method "files.update".
|
Drive.Files.Update |
Drive.Files.update(String id,
File content,
AbstractInputStreamContent mediaContent)
Updates file metadata and/or content
Create a request for the method "files.update".
|
| Constructor and Description |
|---|
Drive.Files.Insert(File content)
Inserts a file, and any settable metadata or blob content sent with the request.
|
Drive.Files.Insert(File content,
AbstractInputStreamContent mediaContent)
Inserts a file, and any settable metadata or blob content sent with the request.
|
Drive.Files.Patch(String id,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update(String id,
File content)
Updates file metadata and/or content
Create a request for the method "files.update".
|
Drive.Files.Update(String id,
File content,
AbstractInputStreamContent mediaContent)
Updates file metadata and/or content
Create a request for the method "files.update".
|
| Modifier and Type | Method and Description |
|---|---|
File |
File.clone() |
File |
File.set(String fieldName,
Object value) |
File |
File.setCreatedDate(DateTime createdDate)
Create time for this file (formatted RFC 3339 timestamp).
|
File |
File.setDescription(String description)
A short description of the file
|
File |
File.setDownloadUrl(String downloadUrl) |
File |
File.setEtag(String etag)
ETag of the file.
|
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.setId(String id)
The id of the file.
|
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)
Labels for the file.
|
File |
File.setLastViewedDate(DateTime lastViewedDate)
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 mimetype 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.setParentsCollection(List<File.ParentsCollection> parentsCollection)
Collection of parent folders which contain this file.
|
File |
File.setSelfLink(String selfLink)
A link back to this file.
|
File |
File.setTitle(String title)
The title of this file.
|
File |
File.setUserPermission(Permission userPermission)
The permissions for the authenticated user on this file.
|