public final class File
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Drive API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
File.IndexableText
Indexable text attributes for the file (can only be written)
|
static class |
File.Labels
Labels for the file.
|
static class |
File.ParentsCollection
Model definition for FileParentsCollection.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
File() |
Modifier and Type | Method and Description |
---|---|
File |
clone() |
com.google.api.client.util.DateTime |
getCreatedDate()
Create time for this file (formatted RFC 3339 timestamp).
|
java.lang.String |
getDescription()
A short description of the file
|
java.lang.String |
getDownloadUrl() |
java.lang.String |
getEtag()
ETag of the file.
|
java.lang.String |
getFileExtension()
The file extension used when downloading this file.
|
java.lang.Long |
getFileSize()
The size of the file in bytes.
|
java.lang.String |
getId()
The id of the file.
|
File.IndexableText |
getIndexableText()
Indexable text attributes for the file (can only be written)
|
java.lang.String |
getKind()
The type of file.
|
File.Labels |
getLabels()
Labels for the file.
|
com.google.api.client.util.DateTime |
getLastViewedDate()
Last time this file was viewed by the user (formatted RFC 3339 timestamp).
|
java.lang.String |
getMd5Checksum()
An MD5 checksum for the content of this file.
|
java.lang.String |
getMimeType()
The mimetype of the file
|
com.google.api.client.util.DateTime |
getModifiedByMeDate()
Last time this file was modified by the user (formatted RFC 3339 timestamp).
|
com.google.api.client.util.DateTime |
getModifiedDate()
Last time this file was modified by anyone (formatted RFC 3339 timestamp).
|
java.util.List<File.ParentsCollection> |
getParentsCollection()
Collection of parent folders which contain this file.
|
java.lang.String |
getSelfLink()
A link back to this file.
|
java.lang.String |
getTitle()
The title of this file.
|
Permission |
getUserPermission()
The permissions for the authenticated user on this file.
|
File |
set(java.lang.String fieldName,
java.lang.Object value) |
File |
setCreatedDate(com.google.api.client.util.DateTime createdDate)
Create time for this file (formatted RFC 3339 timestamp).
|
File |
setDescription(java.lang.String description)
A short description of the file
|
File |
setDownloadUrl(java.lang.String downloadUrl) |
File |
setEtag(java.lang.String etag)
ETag of the file.
|
File |
setFileExtension(java.lang.String fileExtension)
The file extension used when downloading this file.
|
File |
setFileSize(java.lang.Long fileSize)
The size of the file in bytes.
|
File |
setId(java.lang.String id)
The id of the file.
|
File |
setIndexableText(File.IndexableText indexableText)
Indexable text attributes for the file (can only be written)
|
File |
setKind(java.lang.String kind)
The type of file.
|
File |
setLabels(File.Labels labels)
Labels for the file.
|
File |
setLastViewedDate(com.google.api.client.util.DateTime lastViewedDate)
Last time this file was viewed by the user (formatted RFC 3339 timestamp).
|
File |
setMd5Checksum(java.lang.String md5Checksum)
An MD5 checksum for the content of this file.
|
File |
setMimeType(java.lang.String mimeType)
The mimetype of the file
|
File |
setModifiedByMeDate(com.google.api.client.util.DateTime modifiedByMeDate)
Last time this file was modified by the user (formatted RFC 3339 timestamp).
|
File |
setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
Last time this file was modified by anyone (formatted RFC 3339 timestamp).
|
File |
setParentsCollection(java.util.List<File.ParentsCollection> parentsCollection)
Collection of parent folders which contain this file.
|
File |
setSelfLink(java.lang.String selfLink)
A link back to this file.
|
File |
setTitle(java.lang.String title)
The title of this file.
|
File |
setUserPermission(Permission userPermission)
The permissions for the authenticated user on this file.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public com.google.api.client.util.DateTime getCreatedDate()
null
for nonepublic File setCreatedDate(com.google.api.client.util.DateTime createdDate)
createdDate
- createdDate or null
for nonepublic java.lang.String getDescription()
null
for nonepublic File setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.String getDownloadUrl()
null
for nonepublic File setDownloadUrl(java.lang.String downloadUrl)
downloadUrl
- downloadUrl or null
for nonepublic java.lang.String getEtag()
null
for nonepublic File setEtag(java.lang.String etag)
etag
- etag or null
for nonepublic java.lang.String getFileExtension()
null
for nonepublic File setFileExtension(java.lang.String fileExtension)
fileExtension
- fileExtension or null
for nonepublic java.lang.Long getFileSize()
null
for nonepublic File setFileSize(java.lang.Long fileSize)
fileSize
- fileSize or null
for nonepublic java.lang.String getId()
null
for nonepublic File setId(java.lang.String id)
id
- id or null
for nonepublic File.IndexableText getIndexableText()
null
for nonepublic File setIndexableText(File.IndexableText indexableText)
indexableText
- indexableText or null
for nonepublic java.lang.String getKind()
null
for nonepublic File setKind(java.lang.String kind)
kind
- kind or null
for nonepublic File.Labels getLabels()
null
for nonepublic File setLabels(File.Labels labels)
labels
- labels or null
for nonepublic com.google.api.client.util.DateTime getLastViewedDate()
null
for nonepublic File setLastViewedDate(com.google.api.client.util.DateTime lastViewedDate)
lastViewedDate
- lastViewedDate or null
for nonepublic java.lang.String getMd5Checksum()
null
for nonepublic File setMd5Checksum(java.lang.String md5Checksum)
md5Checksum
- md5Checksum or null
for nonepublic java.lang.String getMimeType()
null
for nonepublic File setMimeType(java.lang.String mimeType)
mimeType
- mimeType or null
for nonepublic com.google.api.client.util.DateTime getModifiedByMeDate()
null
for nonepublic File setModifiedByMeDate(com.google.api.client.util.DateTime modifiedByMeDate)
modifiedByMeDate
- modifiedByMeDate or null
for nonepublic com.google.api.client.util.DateTime getModifiedDate()
null
for nonepublic File setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
modifiedDate
- modifiedDate or null
for nonepublic java.util.List<File.ParentsCollection> getParentsCollection()
null
for nonepublic File setParentsCollection(java.util.List<File.ParentsCollection> parentsCollection)
parentsCollection
- parentsCollection or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic File setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic java.lang.String getTitle()
null
for nonepublic File setTitle(java.lang.String title)
title
- title or null
for nonepublic Permission getUserPermission()
null
for nonepublic File setUserPermission(Permission userPermission)
userPermission
- userPermission or null
for nonepublic File set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public File clone()
clone
in class com.google.api.client.json.GenericJson