|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<String,Object> com.google.api.client.util.GenericData com.google.api.client.json.GenericJson com.google.api.services.storage.model.StorageObject.Media
public static final class StorageObject.Media
Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
Nested Class Summary |
---|
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 | |
---|---|
StorageObject.Media()
|
Method Summary | |
---|---|
StorageObject.Media |
clone()
|
byte[] |
decodeData()
URL-safe Base64-encoded data. |
StorageObject.Media |
encodeData(byte[] data)
URL-safe Base64-encoded data. |
String |
getAlgorithm()
Hash algorithm used. |
String |
getContentType()
Content-Type of the object data. |
String |
getData()
URL-safe Base64-encoded data. |
String |
getHash()
Hash of the data. |
BigInteger |
getLength()
Content-Length of the data in bytes. |
String |
getLink()
Media download link. |
DateTime |
getTimeCreated()
Creation time of the data in RFC 3339 format. |
StorageObject.Media |
set(String fieldName,
Object value)
|
StorageObject.Media |
setAlgorithm(String algorithm)
Hash algorithm used. |
StorageObject.Media |
setContentType(String contentType)
Content-Type of the object data. |
StorageObject.Media |
setData(String data)
URL-safe Base64-encoded data. |
StorageObject.Media |
setHash(String hash)
Hash of the data. |
StorageObject.Media |
setLength(BigInteger length)
Content-Length of the data in bytes. |
StorageObject.Media |
setLink(String link)
Media download link. |
StorageObject.Media |
setTimeCreated(DateTime timeCreated)
Creation time of the data in RFC 3339 format. |
Methods inherited from class com.google.api.client.json.GenericJson |
---|
getFactory, setFactory, toPrettyString, toString |
Methods inherited from class com.google.api.client.util.GenericData |
---|
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, 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 StorageObject.Media()
Method Detail |
---|
public String getAlgorithm()
null
for nonepublic StorageObject.Media setAlgorithm(String algorithm)
algorithm
- algorithm or null
for nonepublic String getContentType()
null
for nonepublic StorageObject.Media setContentType(String contentType)
contentType
- contentType or null
for nonepublic String getData()
null
for nonedecodeData()
public byte[] decodeData()
null
for nonegetData()
public StorageObject.Media setData(String data)
data
- data or null
for none#encodeData()
public StorageObject.Media encodeData(byte[] data)
The value is encoded Base64 or {@code null} for none.
public String getHash()
null
for nonepublic StorageObject.Media setHash(String hash)
hash
- hash or null
for nonepublic BigInteger getLength()
null
for nonepublic StorageObject.Media setLength(BigInteger length)
length
- length or null
for nonepublic String getLink()
null
for nonepublic StorageObject.Media setLink(String link)
link
- link or null
for nonepublic DateTime getTimeCreated()
null
for nonepublic StorageObject.Media setTimeCreated(DateTime timeCreated)
timeCreated
- timeCreated or null
for nonepublic StorageObject.Media set(String fieldName, Object value)
set
in class GenericJson
public StorageObject.Media clone()
clone
in class GenericJson
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |