|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<java.lang.String,java.lang.Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.services.drive.model.File
public final class File
The metadata for a file.
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-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders()
is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
Nested Class Summary | |
---|---|
static class |
File.ImageMediaMetadata
Metadata about image media. |
static class |
File.IndexableText
Indexable text attributes for the file (can only be written) |
static class |
File.Labels
A group of labels for the file. |
static class |
File.Thumbnail
Thumbnail for the file. |
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData |
---|
GenericData.Flags |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
File()
|
Method Summary | |
---|---|
java.lang.String |
getAlternateLink()
A link for opening the file in using a relevant Google editor or viewer. |
DateTime |
getCreatedDate()
Create time for this file (formatted ISO8601 timestamp). |
java.lang.String |
getDescription()
A short description of the file. |
java.lang.String |
getDownloadUrl()
Short term download URL for the file. |
java.lang.Boolean |
getEditable()
Whether the file can be edited by the current user. |
java.lang.String |
getEmbedLink()
A link for embedding the file. |
java.lang.String |
getEtag()
ETag of the file. |
java.lang.Boolean |
getExplicitlyTrashed()
Whether this file has been explicitly trashed, as opposed to recursively trashed. |
java.util.Map<java.lang.String,java.lang.String> |
getExportLinks()
Links for exporting Google Docs to specific formats. |
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 |
getIconLink()
A link to the file's icon. |
java.lang.String |
getId()
The id of the file. |
File.ImageMediaMetadata |
getImageMediaMetadata()
Metadata about image media. |
File.IndexableText |
getIndexableText()
Indexable text attributes for the file (can only be written) The value returned may be null . |
java.lang.String |
getKind()
The type of file. |
File.Labels |
getLabels()
A group of labels for the file. |
java.lang.String |
getLastModifyingUserName()
Name of the last user to modify this file. |
DateTime |
getLastViewedByMeDate()
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 MIME type of the file. |
DateTime |
getModifiedByMeDate()
Last time this file was modified by the user (formatted RFC 3339 timestamp). |
DateTime |
getModifiedDate()
Last time this file was modified by anyone (formatted RFC 3339 timestamp). |
java.lang.String |
getOriginalFilename()
The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. |
java.util.List<java.lang.String> |
getOwnerNames()
Name(s) of the owner(s) of this file. |
java.util.List<ParentReference> |
getParents()
Collection of parent folders which contain this file. |
java.lang.Long |
getQuotaBytesUsed()
The number of quota bytes used by this file. |
java.lang.String |
getSelfLink()
A link back to this file. |
java.lang.Boolean |
getShared()
Whether the file has been shared. |
DateTime |
getSharedWithMeDate()
Time at which this file was shared with the user (formatted RFC 3339 timestamp). |
File.Thumbnail |
getThumbnail()
Thumbnail for the file. |
java.lang.String |
getThumbnailLink()
A link to the file's thumbnail. |
java.lang.String |
getTitle()
The title of this file. |
Permission |
getUserPermission()
The permissions for the authenticated user on this file. |
java.lang.String |
getWebContentLink()
A link for downloading the content of the file in a browser using cookie based authentication. |
java.lang.String |
getWebViewLink()
A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting. |
java.lang.Boolean |
getWritersCanShare()
Whether writers can share the document with other users. |
File |
setAlternateLink(java.lang.String alternateLink)
A link for opening the file in using a relevant Google editor or viewer. |
File |
setCreatedDate(DateTime createdDate)
Create time for this file (formatted ISO8601 timestamp). |
File |
setDescription(java.lang.String description)
A short description of the file. |
File |
setDownloadUrl(java.lang.String downloadUrl)
Short term download URL for the file. |
File |
setEditable(java.lang.Boolean editable)
Whether the file can be edited by the current user. |
File |
setEmbedLink(java.lang.String embedLink)
A link for embedding the file. |
File |
setEtag(java.lang.String etag)
ETag of the file. |
File |
setExplicitlyTrashed(java.lang.Boolean explicitlyTrashed)
Whether this file has been explicitly trashed, as opposed to recursively trashed. |
File |
setExportLinks(java.util.Map<java.lang.String,java.lang.String> exportLinks)
Links for exporting Google Docs to specific formats. |
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 |
setIconLink(java.lang.String iconLink)
A link to the file's icon. |
File |
setId(java.lang.String id)
The id of the file. |
File |
setImageMediaMetadata(File.ImageMediaMetadata imageMediaMetadata)
Metadata about image media. |
File |
setIndexableText(File.IndexableText indexableText)
Indexable text attributes for the file (can only be written) The value set may be null . |
File |
setKind(java.lang.String kind)
The type of file. |
File |
setLabels(File.Labels labels)
A group of labels for the file. |
File |
setLastModifyingUserName(java.lang.String lastModifyingUserName)
Name of the last user to modify this file. |
File |
setLastViewedByMeDate(DateTime lastViewedByMeDate)
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 MIME type of the file. |
File |
setModifiedByMeDate(DateTime modifiedByMeDate)
Last time this file was modified by the user (formatted RFC 3339 timestamp). |
File |
setModifiedDate(DateTime modifiedDate)
Last time this file was modified by anyone (formatted RFC 3339 timestamp). |
File |
setOriginalFilename(java.lang.String originalFilename)
The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. |
File |
setOwnerNames(java.util.List<java.lang.String> ownerNames)
Name(s) of the owner(s) of this file. |
File |
setParents(java.util.List<ParentReference> parents)
Collection of parent folders which contain this file. |
File |
setQuotaBytesUsed(java.lang.Long quotaBytesUsed)
The number of quota bytes used by this file. |
File |
setSelfLink(java.lang.String selfLink)
A link back to this file. |
File |
setShared(java.lang.Boolean shared)
Whether the file has been shared. |
File |
setSharedWithMeDate(DateTime sharedWithMeDate)
Time at which this file was shared with the user (formatted RFC 3339 timestamp). |
File |
setThumbnail(File.Thumbnail thumbnail)
Thumbnail for the file. |
File |
setThumbnailLink(java.lang.String thumbnailLink)
A link to the file's thumbnail. |
File |
setTitle(java.lang.String title)
The title of this file. |
File |
setUserPermission(Permission userPermission)
The permissions for the authenticated user on this file. |
File |
setWebContentLink(java.lang.String webContentLink)
A link for downloading the content of the file in a browser using cookie based authentication. |
File |
setWebViewLink(java.lang.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 |
setWritersCanShare(java.lang.Boolean writersCanShare)
Whether writers can share the document with other users. |
Methods inherited from class com.google.api.client.json.GenericJson |
---|
clone, getFactory, setFactory, toPrettyString, toString |
Methods inherited from class com.google.api.client.util.GenericData |
---|
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys |
Methods inherited from class java.util.AbstractMap |
---|
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public File()
Method Detail |
---|
public java.lang.String getAlternateLink()
null
.
public File setAlternateLink(java.lang.String alternateLink)
null
.
public DateTime getCreatedDate()
null
.
public File setCreatedDate(DateTime createdDate)
null
.
public java.lang.String getDescription()
null
.
public File setDescription(java.lang.String description)
null
.
public java.lang.String getDownloadUrl()
null
.
public File setDownloadUrl(java.lang.String downloadUrl)
null
.
public java.lang.Boolean getEditable()
null
.
public File setEditable(java.lang.Boolean editable)
null
.
public java.lang.String getEmbedLink()
null
.
public File setEmbedLink(java.lang.String embedLink)
null
.
public java.lang.String getEtag()
null
.
public File setEtag(java.lang.String etag)
null
.
public java.lang.Boolean getExplicitlyTrashed()
null
.
public File setExplicitlyTrashed(java.lang.Boolean explicitlyTrashed)
null
.
public java.util.Map<java.lang.String,java.lang.String> getExportLinks()
null
.
public File setExportLinks(java.util.Map<java.lang.String,java.lang.String> exportLinks)
null
.
public java.lang.String getFileExtension()
null
.
public File setFileExtension(java.lang.String fileExtension)
null
.
public java.lang.Long getFileSize()
null
.
public File setFileSize(java.lang.Long fileSize)
null
.
public java.lang.String getIconLink()
null
.
public File setIconLink(java.lang.String iconLink)
null
.
public java.lang.String getId()
null
.
public File setId(java.lang.String id)
null
.
public File.ImageMediaMetadata getImageMediaMetadata()
null
.
public File setImageMediaMetadata(File.ImageMediaMetadata imageMediaMetadata)
null
.
public File.IndexableText getIndexableText()
null
.
public File setIndexableText(File.IndexableText indexableText)
null
.
public java.lang.String getKind()
null
.
public File setKind(java.lang.String kind)
null
.
public File.Labels getLabels()
null
.
public File setLabels(File.Labels labels)
null
.
public java.lang.String getLastModifyingUserName()
null
.
public File setLastModifyingUserName(java.lang.String lastModifyingUserName)
null
.
public DateTime getLastViewedByMeDate()
null
.
public File setLastViewedByMeDate(DateTime lastViewedByMeDate)
null
.
public java.lang.String getMd5Checksum()
null
.
public File setMd5Checksum(java.lang.String md5Checksum)
null
.
public java.lang.String getMimeType()
null
.
public File setMimeType(java.lang.String mimeType)
null
.
public DateTime getModifiedByMeDate()
null
.
public File setModifiedByMeDate(DateTime modifiedByMeDate)
null
.
public DateTime getModifiedDate()
null
.
public File setModifiedDate(DateTime modifiedDate)
null
.
public java.lang.String getOriginalFilename()
null
.
public File setOriginalFilename(java.lang.String originalFilename)
null
.
public java.util.List<java.lang.String> getOwnerNames()
null
.
public File setOwnerNames(java.util.List<java.lang.String> ownerNames)
null
.
public java.util.List<ParentReference> getParents()
null
.
public File setParents(java.util.List<ParentReference> parents)
null
.
public java.lang.Long getQuotaBytesUsed()
null
.
public File setQuotaBytesUsed(java.lang.Long quotaBytesUsed)
null
.
public java.lang.String getSelfLink()
null
.
public File setSelfLink(java.lang.String selfLink)
null
.
public java.lang.Boolean getShared()
null
.
public File setShared(java.lang.Boolean shared)
null
.
public DateTime getSharedWithMeDate()
null
.
public File setSharedWithMeDate(DateTime sharedWithMeDate)
null
.
public File.Thumbnail getThumbnail()
null
.
public File setThumbnail(File.Thumbnail thumbnail)
null
.
public java.lang.String getThumbnailLink()
null
.
public File setThumbnailLink(java.lang.String thumbnailLink)
null
.
public java.lang.String getTitle()
null
.
public File setTitle(java.lang.String title)
null
.
public Permission getUserPermission()
null
.
public File setUserPermission(Permission userPermission)
null
.
public java.lang.String getWebContentLink()
null
.
public File setWebContentLink(java.lang.String webContentLink)
null
.
public java.lang.String getWebViewLink()
null
.
public File setWebViewLink(java.lang.String webViewLink)
null
.
public java.lang.Boolean getWritersCanShare()
null
.
public File setWritersCanShare(java.lang.Boolean writersCanShare)
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |