Cloud Storage API v1beta2 (revision 2)



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

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
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class StorageObject
extends GenericJson

An object.

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 Cloud Storage 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()

Author:
Google, Inc.

Nested Class Summary
static class StorageObject.Owner
          The owner of the object.
 
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()
           
 
Method Summary
 List<ObjectAccessControl> getAcl()
          Access controls on the object.
 String getBucket()
          The bucket containing this object.
 String getCacheControl()
          Cache-Control directive for the object data.
 Integer getComponentCount()
          Number of underlying components that make up this object.
 String getContentDisposition()
          Content-Disposition of the object data.
 String getContentEncoding()
          Content-Encoding of the object data.
 String getContentLanguage()
          Content-Language of the object data.
 String getContentType()
          Content-Type of the object data.
 String getCrc32c()
          CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
 String getEtag()
          HTTP 1.1 Entity tag for the object.
 Long getGeneration()
          The content generation of this object.
 String getId()
          The ID of the object.
 String getKind()
          The kind of item this is.
 String getMd5Hash()
          MD5 hash of the data; encoded using base64.
 String getMediaLink()
          Media download link.
 Map<String,String> getMetadata()
          User-provided metadata, in key/value pairs.
 Long getMetageneration()
          The generation of the metadata for this object at this generation.
 String getName()
          The name of this object.
 StorageObject.Owner getOwner()
          The owner of the object.
 String getSelfLink()
          The link to this object.
 com.google.common.primitives.UnsignedLong getSize()
          Content-Length of the data in bytes.
 DateTime getTimeDeleted()
          Deletion time of the object in RFC 3339 format.
 DateTime getUpdated()
          Modification time of the object metadata in RFC 3339 format.
 StorageObject setAcl(List<ObjectAccessControl> acl)
          Access controls on the object.
 StorageObject setBucket(String bucket)
          The bucket containing this object.
 StorageObject setCacheControl(String cacheControl)
          Cache-Control directive for the object data.
 StorageObject setComponentCount(Integer componentCount)
          Number of underlying components that make up this object.
 StorageObject setContentDisposition(String contentDisposition)
          Content-Disposition of the object data.
 StorageObject setContentEncoding(String contentEncoding)
          Content-Encoding of the object data.
 StorageObject setContentLanguage(String contentLanguage)
          Content-Language of the object data.
 StorageObject setContentType(String contentType)
          Content-Type of the object data.
 StorageObject setCrc32c(String crc32c)
          CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
 StorageObject setEtag(String etag)
          HTTP 1.1 Entity tag for the object.
 StorageObject setGeneration(Long generation)
          The content generation of this object.
 StorageObject setId(String id)
          The ID of the object.
 StorageObject setKind(String kind)
          The kind of item this is.
 StorageObject setMd5Hash(String md5Hash)
          MD5 hash of the data; encoded using base64.
 StorageObject setMediaLink(String mediaLink)
          Media download link.
 StorageObject setMetadata(Map<String,String> metadata)
          User-provided metadata, in key/value pairs.
 StorageObject setMetageneration(Long metageneration)
          The generation of the metadata for this object at this generation.
 StorageObject setName(String name)
          The name of this object.
 StorageObject setOwner(StorageObject.Owner owner)
          The owner of the object.
 StorageObject setSelfLink(String selfLink)
          The link to this object.
 StorageObject setSize(com.google.common.primitives.UnsignedLong size)
          Content-Length of the data in bytes.
 StorageObject setTimeDeleted(DateTime timeDeleted)
          Deletion time of the object in RFC 3339 format.
 StorageObject setUpdated(DateTime updated)
          Modification time of the object metadata 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

public StorageObject()
Method Detail

getAcl

public List<ObjectAccessControl> getAcl()
Access controls on the object. The value returned may be null.


setAcl

public StorageObject setAcl(List<ObjectAccessControl> acl)
Access controls on the object. The value set may be null.


getBucket

public String getBucket()
The bucket containing this object. The value returned may be null.


setBucket

public StorageObject setBucket(String bucket)
The bucket containing this object. The value set may be null.


getCacheControl

public String getCacheControl()
Cache-Control directive for the object data. The value returned may be null.


setCacheControl

public StorageObject setCacheControl(String cacheControl)
Cache-Control directive for the object data. The value set may be null.


getComponentCount

public Integer getComponentCount()
Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32. The value returned may be null.


setComponentCount

public StorageObject setComponentCount(Integer componentCount)
Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32. The value set may be null.


getContentDisposition

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


setContentDisposition

public StorageObject setContentDisposition(String contentDisposition)
Content-Disposition of the object data. The value set may be null.


getContentEncoding

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


setContentEncoding

public StorageObject setContentEncoding(String contentEncoding)
Content-Encoding of the object data. The value set may be null.


getContentLanguage

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


setContentLanguage

public StorageObject setContentLanguage(String contentLanguage)
Content-Language of the object data. 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 setContentType(String contentType)
Content-Type of the object data. The value set may be null.


getCrc32c

public String getCrc32c()
CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64. The value returned may be null.


setCrc32c

public StorageObject setCrc32c(String crc32c)
CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64. The value set may be null.


getEtag

public String getEtag()
HTTP 1.1 Entity tag for the object. The value returned may be null.


setEtag

public StorageObject setEtag(String etag)
HTTP 1.1 Entity tag for the object. The value set may be null.


getGeneration

public Long getGeneration()
The content generation of this object. Used for object versioning. The value returned may be null.


setGeneration

public StorageObject setGeneration(Long generation)
The content generation of this object. Used for object versioning. The value set may be null.


getId

public String getId()
The ID of the object. The value returned may be null.


setId

public StorageObject setId(String id)
The ID of the object. The value set may be null.


getKind

public String getKind()
The kind of item this is. For objects, this is always storage#object. The value returned may be null.


setKind

public StorageObject setKind(String kind)
The kind of item this is. For objects, this is always storage#object. The value set may be null.


getMd5Hash

public String getMd5Hash()
MD5 hash of the data; encoded using base64. The value returned may be null.


setMd5Hash

public StorageObject setMd5Hash(String md5Hash)
MD5 hash of the data; encoded using base64. The value set may be null.


getMediaLink

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


setMediaLink

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


getMetadata

public Map<String,String> getMetadata()
User-provided metadata, in key/value pairs. The value returned may be null.


setMetadata

public StorageObject setMetadata(Map<String,String> metadata)
User-provided metadata, in key/value pairs. The value set may be null.


getMetageneration

public Long getMetageneration()
The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation. The value returned may be null.


setMetageneration

public StorageObject setMetageneration(Long metageneration)
The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation. The value set may be null.


getName

public String getName()
The name of this object. Required if not specified by URL parameter. The value returned may be null.


setName

public StorageObject setName(String name)
The name of this object. Required if not specified by URL parameter. The value set may be null.


getOwner

public StorageObject.Owner getOwner()
The owner of the object. This will always be the uploader of the object. The value returned may be null.


setOwner

public StorageObject setOwner(StorageObject.Owner owner)
The owner of the object. This will always be the uploader of the object. The value set may be null.


getSelfLink

public String getSelfLink()
The link to this object. The value returned may be null.


setSelfLink

public StorageObject setSelfLink(String selfLink)
The link to this object. The value set may be null.


getSize

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


setSize

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


getTimeDeleted

public DateTime getTimeDeleted()
Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted. The value returned may be null.


setTimeDeleted

public StorageObject setTimeDeleted(DateTime timeDeleted)
Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted. The value set may be null.


getUpdated

public DateTime getUpdated()
Modification time of the object metadata in RFC 3339 format. The value returned may be null.


setUpdated

public StorageObject setUpdated(DateTime updated)
Modification time of the object metadata in RFC 3339 format. The value set may be null.