public final class FileInfo
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 App Engine Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
FileInfo() |
Modifier and Type | Method and Description |
---|---|
FileInfo |
clone() |
java.lang.String |
getMimeType()
The MIME type of the file.Defaults to the value from Google Cloud Storage.
|
java.lang.String |
getSha1Sum()
The SHA1 hash of the file, in hex.
|
java.lang.String |
getSourceUrl()
URL source to use to fetch this file.
|
FileInfo |
set(java.lang.String fieldName,
java.lang.Object value) |
FileInfo |
setMimeType(java.lang.String mimeType)
The MIME type of the file.Defaults to the value from Google Cloud Storage.
|
FileInfo |
setSha1Sum(java.lang.String sha1Sum)
The SHA1 hash of the file, in hex.
|
FileInfo |
setSourceUrl(java.lang.String sourceUrl)
URL source to use to fetch this file.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getMimeType()
null
for nonepublic FileInfo setMimeType(java.lang.String mimeType)
mimeType
- mimeType or null
for nonepublic java.lang.String getSha1Sum()
null
for nonepublic FileInfo setSha1Sum(java.lang.String sha1Sum)
sha1Sum
- sha1Sum or null
for nonepublic java.lang.String getSourceUrl()
null
for nonepublic FileInfo setSourceUrl(java.lang.String sourceUrl)
sourceUrl
- sourceUrl or null
for nonepublic FileInfo set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public FileInfo clone()
clone
in class com.google.api.client.json.GenericJson