public class BlobInfo extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
BlobInfo.Builder
Builder for
BlobInfo. |
static class |
BlobInfo.ImmutableEmptyMap<K,V>
This class is meant for internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
List<Acl> |
acl()
Returns the blob's access control configuration.
|
BlobId |
blobId()
Returns the blob's identity.
|
String |
bucket()
Returns the name of the containing bucket.
|
static BlobInfo.Builder |
builder(BlobId blobId) |
static BlobInfo.Builder |
builder(BucketInfo bucketInfo,
String name)
Returns a
BlobInfo builder where blob identity is set using the provided values. |
static BlobInfo.Builder |
builder(BucketInfo bucketInfo,
String name,
Long generation)
Returns a
BlobInfo builder where blob identity is set using the provided values. |
static BlobInfo.Builder |
builder(String bucket,
String name)
Returns a
BlobInfo builder where blob identity is set using the provided values. |
static BlobInfo.Builder |
builder(String bucket,
String name,
Long generation)
Returns a
BlobInfo builder where blob identity is set using the provided values. |
String |
cacheControl()
Returns the blob's data cache control.
|
Integer |
componentCount()
Returns the number of components that make up this blob.
|
String |
contentDisposition()
Returns the blob's data content disposition.
|
String |
contentEncoding()
Returns the blob's data content encoding.
|
String |
contentLanguage()
Returns the blob's data content language.
|
String |
contentType()
Returns the blob's data content type.
|
String |
crc32c()
Returns the CRC32C checksum of blob's data as described in
RFC 4960, Appendix B; encoded in
base64 in big-endian order.
|
Long |
deleteTime()
Returns the deletion time of the blob.
|
boolean |
equals(Object obj) |
String |
etag()
Returns HTTP 1.1 Entity tag for the blob.
|
String |
generatedId()
Returns the service-generated for the blob.
|
Long |
generation()
Returns blob's data generation.
|
int |
hashCode() |
boolean |
isDirectory()
Returns
true if the current blob represents a directory. |
String |
md5()
Returns the MD5 hash of blob's data encoded in base64.
|
String |
mediaLink()
Returns the blob's media download link.
|
Map<String,String> |
metadata()
Returns blob's user provided metadata.
|
Long |
metageneration()
Returns blob's metageneration.
|
String |
name()
Returns the blob's name.
|
Acl.Entity |
owner()
Returns the blob's owner.
|
String |
selfLink()
Returns the URI of this blob as a string.
|
Long |
size()
Returns the content length of the data in bytes.
|
BlobInfo.Builder |
toBuilder()
Returns a builder for the current blob.
|
String |
toString() |
Long |
updateTime()
Returns the last modification time of the blob's metadata.
|
public BlobId blobId()
public String bucket()
public String generatedId()
public String name()
public String cacheControl()
public List<Acl> acl()
public Acl.Entity owner()
public Long size()
public String contentType()
public String contentEncoding()
public String contentDisposition()
public String contentLanguage()
public Integer componentCount()
Storage.compose(Storage.ComposeRequest) operation and are limited to a count of
1024, counting 1 for each non-composite component blob and componentCount for each composite
component blob. This value is set only for composite blobs.public String etag()
public String selfLink()
public String md5()
public String crc32c()
public String mediaLink()
public Long generation()
public Long metageneration()
public Long deleteTime()
public Long updateTime()
public boolean isDirectory()
true if the current blob represents a directory. This can only happen if the
blob is returned by Storage.list(String, Storage.BlobListOption...) when the
Storage.BlobListOption.currentDirectory() option is used. When this is the case only
blobId() and size() are set for the current blob: BlobId.name() ends
with the '/' character, BlobId.generation() returns null and size() is
0.public BlobInfo.Builder toBuilder()
public static BlobInfo.Builder builder(BucketInfo bucketInfo, String name)
BlobInfo builder where blob identity is set using the provided values.public static BlobInfo.Builder builder(String bucket, String name)
BlobInfo builder where blob identity is set using the provided values.public static BlobInfo.Builder builder(BucketInfo bucketInfo, String name, Long generation)
BlobInfo builder where blob identity is set using the provided values.public static BlobInfo.Builder builder(String bucket, String name, Long generation)
BlobInfo builder where blob identity is set using the provided values.public static BlobInfo.Builder builder(BlobId blobId)
Copyright © 2016 Google. All rights reserved.