| 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,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Inserts a file, and any settable metadata or blob content sent with the request.
|
Drive.Files.Patch |
Drive.Files.patch(java.lang.String id,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update |
Drive.Files.update(java.lang.String id,
File content)
Updates file metadata and/or content
Create a request for the method "files.update".
|
Drive.Files.Update |
Drive.Files.update(java.lang.String id,
File content,
com.google.api.client.http.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,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Inserts a file, and any settable metadata or blob content sent with the request.
|
Drive.Files.Patch(java.lang.String id,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update(java.lang.String id,
File content)
Updates file metadata and/or content
Create a request for the method "files.update".
|
Drive.Files.Update(java.lang.String id,
File content,
com.google.api.client.http.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(java.lang.String fieldName,
java.lang.Object value) |
File |
File.setCreatedDate(com.google.api.client.util.DateTime createdDate)
Create time for this file (formatted RFC 3339 timestamp).
|
File |
File.setDescription(java.lang.String description)
A short description of the file
|
File |
File.setDownloadUrl(java.lang.String downloadUrl) |
File |
File.setEtag(java.lang.String etag)
ETag of the file.
|
File |
File.setFileExtension(java.lang.String fileExtension)
The file extension used when downloading this file.
|
File |
File.setFileSize(java.lang.Long fileSize)
The size of the file in bytes.
|
File |
File.setId(java.lang.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(java.lang.String kind)
The type of file.
|
File |
File.setLabels(File.Labels labels)
Labels for the file.
|
File |
File.setLastViewedDate(com.google.api.client.util.DateTime lastViewedDate)
Last time this file was viewed by the user (formatted RFC 3339 timestamp).
|
File |
File.setMd5Checksum(java.lang.String md5Checksum)
An MD5 checksum for the content of this file.
|
File |
File.setMimeType(java.lang.String mimeType)
The mimetype 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.setParentsCollection(java.util.List<File.ParentsCollection> parentsCollection)
Collection of parent folders which contain this file.
|
File |
File.setSelfLink(java.lang.String selfLink)
A link back to this file.
|
File |
File.setTitle(java.lang.String title)
The title of this file.
|
File |
File.setUserPermission(Permission userPermission)
The permissions for the authenticated user on this file.
|