|
||||||||||
| 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
| Nested Class Summary | |
|---|---|
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. |
| 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 a browser. |
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. |
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 |
getId()
The id of the file. |
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 filename when uploading this file. |
List<String> |
getOwnerNames()
Name(s) of the owner(s) of this file. |
List<ParentReference> |
getParents()
Collection of parent folders which contain this file. |
String |
getPermissionsLink()
A link to the permissions collection. |
Long |
getQuotaBytesUsed()
The number of quota bytes used by this file. |
HttpHeaders |
getResponseHeaders()
Returns the HTTP headers that were returned with the server response, or null. |
String |
getSelfLink()
A link back to this file. |
DateTime |
getSharedWithMeDate()
Time at which this file was shared with the user (formatted RFC 3339 timestamp). |
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. |
Boolean |
getWritersCanShare()
Whether writers can share the document with other users. |
File |
setAlternateLink(String alternateLink)
A link for opening the file in a browser. |
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 |
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 |
setId(String id)
The id of the file. |
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 filename when uploading this file. |
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 |
setPermissionsLink(String permissionsLink)
A link to the permissions collection. |
File |
setQuotaBytesUsed(Long quotaBytesUsed)
The number of quota bytes used by this file. |
void |
setResponseHeaders(HttpHeaders responseHeaders)
Sets the HTTP headers returned with the server response, or null. |
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 |
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 |
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 getMimeType()
null.
public File setMimeType(String mimeType)
null.
public String getThumbnailLink()
null.
public File setThumbnailLink(String thumbnailLink)
null.
public File.Labels getLabels()
null.
public File setLabels(File.Labels labels)
null.
public File.IndexableText getIndexableText()
null.
public File setIndexableText(File.IndexableText indexableText)
null.
public String getEtag()
null.
public File setEtag(String etag)
null.
public String getLastModifyingUserName()
null.
public File setLastModifyingUserName(String lastModifyingUserName)
null.
public Boolean getWritersCanShare()
null.
public File setWritersCanShare(Boolean writersCanShare)
null.
public String getId()
null.
public File setId(String id)
null.
public String getTitle()
null.
public File setTitle(String title)
null.
public List<String> getOwnerNames()
null.
public File setOwnerNames(List<String> ownerNames)
null.
public DateTime getSharedWithMeDate()
null.
public File setSharedWithMeDate(DateTime sharedWithMeDate)
null.
public DateTime getLastViewedByMeDate()
null.
public File setLastViewedByMeDate(DateTime lastViewedByMeDate)
null.
public List<ParentReference> getParents()
null.
public File setParents(List<ParentReference> parents)
null.
public Map<String,String> getExportLinks()
null.
public File setExportLinks(Map<String,String> exportLinks)
null.
public String getOriginalFilename()
null.
public File setOriginalFilename(String originalFilename)
null.
public String getDescription()
null.
public File setDescription(String description)
null.
public Boolean getEditable()
null.
public File setEditable(Boolean editable)
null.
public String getKind()
null.
public File setKind(String kind)
null.
public Long getQuotaBytesUsed()
null.
public File setQuotaBytesUsed(Long quotaBytesUsed)
null.
public Long getFileSize()
null.
public File setFileSize(Long fileSize)
null.
public DateTime getCreatedDate()
null.
public File setCreatedDate(DateTime createdDate)
null.
public String getMd5Checksum()
null.
public File setMd5Checksum(String md5Checksum)
null.
public String getEmbedLink()
null.
public File setEmbedLink(String embedLink)
null.
public String getAlternateLink()
null.
public File setAlternateLink(String alternateLink)
null.
public String getPermissionsLink()
null.
public File setPermissionsLink(String permissionsLink)
null.
public DateTime getModifiedByMeDate()
null.
public File setModifiedByMeDate(DateTime modifiedByMeDate)
null.
public String getDownloadUrl()
null.
public File setDownloadUrl(String downloadUrl)
null.
public Permission getUserPermission()
null.
public File setUserPermission(Permission userPermission)
null.
public String getFileExtension()
null.
public File setFileExtension(String fileExtension)
null.
public String getSelfLink()
null.
public File setSelfLink(String selfLink)
null.
public DateTime getModifiedDate()
null.
public File setModifiedDate(DateTime modifiedDate)
null.
public void setResponseHeaders(HttpHeaders responseHeaders)
null.
This member should only be non-null if this object was the top level element of a response. For
example, a request that returns a single File would include the response headers, while
a request which returns an array of File, would have a non-null response header in the
enclosing object only.
public HttpHeaders getResponseHeaders()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||