public final class StorageObject
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 Cloud Storage JSON API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
StorageObject.Owner
The owner of the object.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
StorageObject() |
Modifier and Type | Method and Description |
---|---|
StorageObject |
clone() |
java.util.List<ObjectAccessControl> |
getAcl()
Access controls on the object.
|
java.lang.String |
getBucket()
The bucket containing this object.
|
java.lang.String |
getCacheControl()
Cache-Control directive for the object data.
|
java.lang.Integer |
getComponentCount()
Number of underlying components that make up this object.
|
java.lang.String |
getContentDisposition()
Content-Disposition of the object data.
|
java.lang.String |
getContentEncoding()
Content-Encoding of the object data.
|
java.lang.String |
getContentLanguage()
Content-Language of the object data.
|
java.lang.String |
getContentType()
Content-Type of the object data.
|
java.lang.String |
getCrc32c()
CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
|
java.lang.String |
getEtag()
HTTP 1.1 Entity tag for the object.
|
java.lang.Long |
getGeneration()
The content generation of this object.
|
java.lang.String |
getId()
The ID of the object.
|
java.lang.String |
getKind()
The kind of item this is.
|
java.lang.String |
getMd5Hash()
MD5 hash of the data; encoded using base64.
|
java.lang.String |
getMediaLink()
Media download link.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
User-provided metadata, in key/value pairs.
|
java.lang.Long |
getMetageneration()
The generation of the metadata for this object at this generation.
|
java.lang.String |
getName()
The name of this object.
|
StorageObject.Owner |
getOwner()
The owner of the object.
|
java.lang.String |
getSelfLink()
The link to this object.
|
java.math.BigInteger |
getSize()
Content-Length of the data in bytes.
|
java.lang.String |
getStorageClass()
Storage class of the object.
|
com.google.api.client.util.DateTime |
getTimeDeleted()
Deletion time of the object in RFC 3339 format.
|
com.google.api.client.util.DateTime |
getUpdated()
Modification time of the object metadata in RFC 3339 format.
|
StorageObject |
set(java.lang.String fieldName,
java.lang.Object value) |
StorageObject |
setAcl(java.util.List<ObjectAccessControl> acl)
Access controls on the object.
|
StorageObject |
setBucket(java.lang.String bucket)
The bucket containing this object.
|
StorageObject |
setCacheControl(java.lang.String cacheControl)
Cache-Control directive for the object data.
|
StorageObject |
setComponentCount(java.lang.Integer componentCount)
Number of underlying components that make up this object.
|
StorageObject |
setContentDisposition(java.lang.String contentDisposition)
Content-Disposition of the object data.
|
StorageObject |
setContentEncoding(java.lang.String contentEncoding)
Content-Encoding of the object data.
|
StorageObject |
setContentLanguage(java.lang.String contentLanguage)
Content-Language of the object data.
|
StorageObject |
setContentType(java.lang.String contentType)
Content-Type of the object data.
|
StorageObject |
setCrc32c(java.lang.String crc32c)
CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
|
StorageObject |
setEtag(java.lang.String etag)
HTTP 1.1 Entity tag for the object.
|
StorageObject |
setGeneration(java.lang.Long generation)
The content generation of this object.
|
StorageObject |
setId(java.lang.String id)
The ID of the object.
|
StorageObject |
setKind(java.lang.String kind)
The kind of item this is.
|
StorageObject |
setMd5Hash(java.lang.String md5Hash)
MD5 hash of the data; encoded using base64.
|
StorageObject |
setMediaLink(java.lang.String mediaLink)
Media download link.
|
StorageObject |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
User-provided metadata, in key/value pairs.
|
StorageObject |
setMetageneration(java.lang.Long metageneration)
The generation of the metadata for this object at this generation.
|
StorageObject |
setName(java.lang.String name)
The name of this object.
|
StorageObject |
setOwner(StorageObject.Owner owner)
The owner of the object.
|
StorageObject |
setSelfLink(java.lang.String selfLink)
The link to this object.
|
StorageObject |
setSize(java.math.BigInteger size)
Content-Length of the data in bytes.
|
StorageObject |
setStorageClass(java.lang.String storageClass)
Storage class of the object.
|
StorageObject |
setTimeDeleted(com.google.api.client.util.DateTime timeDeleted)
Deletion time of the object in RFC 3339 format.
|
StorageObject |
setUpdated(com.google.api.client.util.DateTime updated)
Modification time of the object metadata in RFC 3339 format.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.util.List<ObjectAccessControl> getAcl()
null
for nonepublic StorageObject setAcl(java.util.List<ObjectAccessControl> acl)
acl
- acl or null
for nonepublic java.lang.String getBucket()
null
for nonepublic StorageObject setBucket(java.lang.String bucket)
bucket
- bucket or null
for nonepublic java.lang.String getCacheControl()
null
for nonepublic StorageObject setCacheControl(java.lang.String cacheControl)
cacheControl
- cacheControl or null
for nonepublic java.lang.Integer getComponentCount()
null
for nonepublic StorageObject setComponentCount(java.lang.Integer componentCount)
componentCount
- componentCount or null
for nonepublic java.lang.String getContentDisposition()
null
for nonepublic StorageObject setContentDisposition(java.lang.String contentDisposition)
contentDisposition
- contentDisposition or null
for nonepublic java.lang.String getContentEncoding()
null
for nonepublic StorageObject setContentEncoding(java.lang.String contentEncoding)
contentEncoding
- contentEncoding or null
for nonepublic java.lang.String getContentLanguage()
null
for nonepublic StorageObject setContentLanguage(java.lang.String contentLanguage)
contentLanguage
- contentLanguage or null
for nonepublic java.lang.String getContentType()
null
for nonepublic StorageObject setContentType(java.lang.String contentType)
contentType
- contentType or null
for nonepublic java.lang.String getCrc32c()
null
for nonepublic StorageObject setCrc32c(java.lang.String crc32c)
crc32c
- crc32c or null
for nonepublic java.lang.String getEtag()
null
for nonepublic StorageObject setEtag(java.lang.String etag)
etag
- etag or null
for nonepublic java.lang.Long getGeneration()
null
for nonepublic StorageObject setGeneration(java.lang.Long generation)
generation
- generation or null
for nonepublic java.lang.String getId()
null
for nonepublic StorageObject setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic StorageObject setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getMd5Hash()
null
for nonepublic StorageObject setMd5Hash(java.lang.String md5Hash)
md5Hash
- md5Hash or null
for nonepublic java.lang.String getMediaLink()
null
for nonepublic StorageObject setMediaLink(java.lang.String mediaLink)
mediaLink
- mediaLink or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getMetadata()
null
for nonepublic StorageObject setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata
- metadata or null
for nonepublic java.lang.Long getMetageneration()
null
for nonepublic StorageObject setMetageneration(java.lang.Long metageneration)
metageneration
- metageneration or null
for nonepublic java.lang.String getName()
null
for nonepublic StorageObject setName(java.lang.String name)
name
- name or null
for nonepublic StorageObject.Owner getOwner()
null
for nonepublic StorageObject setOwner(StorageObject.Owner owner)
owner
- owner or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic StorageObject setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic java.math.BigInteger getSize()
null
for nonepublic StorageObject setSize(java.math.BigInteger size)
size
- size or null
for nonepublic java.lang.String getStorageClass()
null
for nonepublic StorageObject setStorageClass(java.lang.String storageClass)
storageClass
- storageClass or null
for nonepublic com.google.api.client.util.DateTime getTimeDeleted()
null
for nonepublic StorageObject setTimeDeleted(com.google.api.client.util.DateTime timeDeleted)
timeDeleted
- timeDeleted or null
for nonepublic com.google.api.client.util.DateTime getUpdated()
null
for nonepublic StorageObject setUpdated(com.google.api.client.util.DateTime updated)
updated
- updated or null
for nonepublic StorageObject set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public StorageObject clone()
clone
in class com.google.api.client.json.GenericJson