Cloud Storage API v1beta1 (revision 22)



com.google.api.services.storage.model
Class StorageObject.Media

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.storage.model.StorageObject.Media
All Implemented Interfaces:
Cloneable, Map<String,Object>
Enclosing class:
StorageObject

public static final class StorageObject.Media
extends GenericJson

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
 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.
 com.google.common.primitives.UnsignedLong 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 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(com.google.common.primitives.UnsignedLong 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
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

StorageObject.Media

public StorageObject.Media()
Method Detail

getAlgorithm

public String getAlgorithm()
Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. The value returned may be null.


setAlgorithm

public StorageObject.Media setAlgorithm(String algorithm)
Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. The value set may be null.


getContentType

public String getContentType()
Content-Type of the object data. The value returned may be null.


setContentType

public StorageObject.Media setContentType(String contentType)
Content-Type of the object data. The value set may be null.


getData

public String getData()
URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. The value returned may be null.


setData

public StorageObject.Media setData(String data)
URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. The value set may be null.


getHash

public String getHash()
Hash of the data. Required if a hash algorithm is provided. The value returned may be null.


setHash

public StorageObject.Media setHash(String hash)
Hash of the data. Required if a hash algorithm is provided. The value set may be null.


getLength

public com.google.common.primitives.UnsignedLong getLength()
Content-Length of the data in bytes. The value returned may be null.


setLength

public StorageObject.Media setLength(com.google.common.primitives.UnsignedLong length)
Content-Length of the data in bytes. The value set may be null.


getLink

public String getLink()
Media download link. The value returned may be null.


setLink

public StorageObject.Media setLink(String link)
Media download link. The value set may be null.


getTimeCreated

public DateTime getTimeCreated()
Creation time of the data in RFC 3339 format. The value returned may be null.


setTimeCreated

public StorageObject.Media setTimeCreated(DateTime timeCreated)
Creation time of the data in RFC 3339 format. The value set may be null.