|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<String,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 |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
File()
|
|
| Method Summary | |
|---|---|
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). |
String |
getDescription()
A short description of the file. |
String |
getDownloadUrl()
Short term download URL for the file. |
Boolean |
getEditable()
Whether the file can be edited by the current user. |
String |
getEmbedLink()
A link for embedding the file. |
String |
getEtag()
ETag of the file. |
Boolean |
getExplicitlyTrashed()
Whether this file has been explicitly trashed, as opposed to recursively trashed. |
Map<String,String> |
getExportLinks()
Links for exporting Google Docs to specific formats. |
String |
getFileExtension()
The file extension used when downloading this file. |
Long |
getFileSize()
The size of the file in bytes. |
String |
getIconLink()
A link to the file's icon. |
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. |
String |
getKind()
The type of file. |
File.Labels |
getLabels()
A group of labels for the file. |
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). |
String |
getMd5Checksum()
An MD5 checksum for the content of this file. |
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). |
String |
getOriginalFilename()
The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. |
List<String> |
getOwnerNames()
Name(s) of the owner(s) of this file. |
List<ParentReference> |
getParents()
Collection of parent folders which contain this file. |
Long |
getQuotaBytesUsed()
The number of quota bytes used by this file. |
String |
getSelfLink()
A link back to this file. |
DateTime |
getSharedWithMeDate()
Time at which this file was shared with the user (formatted RFC 3339 timestamp). |
File.Thumbnail |
getThumbnail()
Thumbnail for the file. |
String |
getThumbnailLink()
A link to the file's thumbnail. |
String |
getTitle()
The title of this file. |
Permission |
getUserPermission()
The permissions for the authenticated user on this file. |
String |
getWebContentLink()
A link for downloading the content of the file in a browser using cookie based authentication. |
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. |
Boolean |
getWritersCanShare()
Whether writers can share the document with other users. |
File |
setAlternateLink(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(String description)
A short description of the file. |
File |
setDownloadUrl(String downloadUrl)
Short term download URL for the file. |
File |
setEditable(Boolean editable)
Whether the file can be edited by the current user. |
File |
setEmbedLink(String embedLink)
A link for embedding the file. |
File |
setEtag(String etag)
ETag of the file. |
File |
setExplicitlyTrashed(Boolean explicitlyTrashed)
Whether this file has been explicitly trashed, as opposed to recursively trashed. |
File |
setExportLinks(Map<String,String> exportLinks)
Links for exporting Google Docs to specific formats. |
File |
setFileExtension(String fileExtension)
The file extension used when downloading this file. |
File |
setFileSize(Long fileSize)
The size of the file in bytes. |
File |
setIconLink(String iconLink)
A link to the file's icon. |
File |
setId(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(String kind)
The type of file. |
File |
setLabels(File.Labels labels)
A group of labels for the file. |
File |
setLastModifyingUserName(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(String md5Checksum)
An MD5 checksum for the content of this file. |
File |
setMimeType(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(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(List<String> ownerNames)
Name(s) of the owner(s) of this file. |
File |
setParents(List<ParentReference> parents)
Collection of parent folders which contain this file. |
File |
setQuotaBytesUsed(Long quotaBytesUsed)
The number of quota bytes used by this file. |
File |
setSelfLink(String selfLink)
A link back to this file. |
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(String thumbnailLink)
A link to the file's thumbnail. |
File |
setTitle(String title)
The title of this file. |
File |
setUserPermission(Permission userPermission)
The permissions for the authenticated user on this file. |
File |
setWebContentLink(String webContentLink)
A link for downloading the content of the file in a browser using cookie based authentication. |
File |
setWebViewLink(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(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 String getAlternateLink()
null.
public File setAlternateLink(String alternateLink)
null.
public DateTime getCreatedDate()
null.
public File setCreatedDate(DateTime createdDate)
null.
public String getDescription()
null.
public File setDescription(String description)
null.
public String getDownloadUrl()
null.
public File setDownloadUrl(String downloadUrl)
null.
public Boolean getEditable()
null.
public File setEditable(Boolean editable)
null.
public String getEmbedLink()
null.
public File setEmbedLink(String embedLink)
null.
public String getEtag()
null.
public File setEtag(String etag)
null.
public Boolean getExplicitlyTrashed()
null.
public File setExplicitlyTrashed(Boolean explicitlyTrashed)
null.
public Map<String,String> getExportLinks()
null.
public File setExportLinks(Map<String,String> exportLinks)
null.
public String getFileExtension()
null.
public File setFileExtension(String fileExtension)
null.
public Long getFileSize()
null.
public File setFileSize(Long fileSize)
null.
public String getIconLink()
null.
public File setIconLink(String iconLink)
null.
public String getId()
null.
public File setId(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 String getKind()
null.
public File setKind(String kind)
null.
public File.Labels getLabels()
null.
public File setLabels(File.Labels labels)
null.
public String getLastModifyingUserName()
null.
public File setLastModifyingUserName(String lastModifyingUserName)
null.
public DateTime getLastViewedByMeDate()
null.
public File setLastViewedByMeDate(DateTime lastViewedByMeDate)
null.
public String getMd5Checksum()
null.
public File setMd5Checksum(String md5Checksum)
null.
public String getMimeType()
null.
public File setMimeType(String mimeType)
null.
public DateTime getModifiedByMeDate()
null.
public File setModifiedByMeDate(DateTime modifiedByMeDate)
null.
public DateTime getModifiedDate()
null.
public File setModifiedDate(DateTime modifiedDate)
null.
public String getOriginalFilename()
null.
public File setOriginalFilename(String originalFilename)
null.
public List<String> getOwnerNames()
null.
public File setOwnerNames(List<String> ownerNames)
null.
public List<ParentReference> getParents()
null.
public File setParents(List<ParentReference> parents)
null.
public Long getQuotaBytesUsed()
null.
public File setQuotaBytesUsed(Long quotaBytesUsed)
null.
public String getSelfLink()
null.
public File setSelfLink(String selfLink)
null.
public DateTime getSharedWithMeDate()
null.
public File setSharedWithMeDate(DateTime sharedWithMeDate)
null.
public File.Thumbnail getThumbnail()
null.
public File setThumbnail(File.Thumbnail thumbnail)
null.
public String getThumbnailLink()
null.
public File setThumbnailLink(String thumbnailLink)
null.
public String getTitle()
null.
public File setTitle(String title)
null.
public Permission getUserPermission()
null.
public File setUserPermission(Permission userPermission)
null.
public String getWebContentLink()
null.
public File setWebContentLink(String webContentLink)
null.
public String getWebViewLink()
null.
public File setWebViewLink(String webViewLink)
null.
public Boolean getWritersCanShare()
null.
public File setWritersCanShare(Boolean writersCanShare)
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||