public abstract static class BlobInfo.Builder extends Object
BlobInfo
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract BlobInfo |
build()
Creates a
BlobInfo object. |
abstract BlobInfo.Builder |
setAcl(List<Acl> acl)
Sets the blob's access control configuration.
|
abstract BlobInfo.Builder |
setBlobId(BlobId blobId)
Sets the blob identity.
|
abstract BlobInfo.Builder |
setCacheControl(String cacheControl)
Sets the blob's data cache control.
|
abstract BlobInfo.Builder |
setContentDisposition(String contentDisposition)
Sets the blob's data content disposition.
|
abstract BlobInfo.Builder |
setContentEncoding(String contentEncoding)
Sets the blob's data content encoding.
|
abstract BlobInfo.Builder |
setContentLanguage(String contentLanguage)
Sets the blob's data content language.
|
abstract BlobInfo.Builder |
setContentType(String contentType)
Sets the blob's data content type.
|
abstract BlobInfo.Builder |
setCrc32c(String crc32c)
Sets the CRC32C checksum of blob's data as described in RFC 4960, Appendix B; encoded in
base64 in big-endian order.
|
abstract BlobInfo.Builder |
setCrc32cFromHexString(String crc32cHexString)
Sets the CRC32C checksum of blob's data as described in RFC 4960, Appendix B; from hex
string.
|
abstract BlobInfo.Builder |
setEventBasedHold(Boolean eventBasedHold)
Sets the blob's event-based hold.
|
abstract BlobInfo.Builder |
setMd5(String md5)
Sets the MD5 hash of blob's data.
|
abstract BlobInfo.Builder |
setMd5FromHexString(String md5HexString)
Sets the MD5 hash of blob's data from hex string.
|
abstract BlobInfo.Builder |
setMetadata(Map<String,String> metadata)
Sets the blob's user provided metadata.
|
abstract BlobInfo.Builder |
setStorageClass(StorageClass storageClass)
Sets the blob's storage class.
|
abstract BlobInfo.Builder |
setTemporaryHold(Boolean temporaryHold)
Sets the blob's temporary hold.
|
public abstract BlobInfo.Builder setBlobId(BlobId blobId)
public abstract BlobInfo.Builder setContentType(String contentType)
public abstract BlobInfo.Builder setContentDisposition(String contentDisposition)
public abstract BlobInfo.Builder setContentLanguage(String contentLanguage)
public abstract BlobInfo.Builder setContentEncoding(String contentEncoding)
public abstract BlobInfo.Builder setCacheControl(String cacheControl)
public abstract BlobInfo.Builder setAcl(List<Acl> acl)
public abstract BlobInfo.Builder setMd5(String md5)
public abstract BlobInfo.Builder setMd5FromHexString(String md5HexString)
public abstract BlobInfo.Builder setCrc32c(String crc32c)
public abstract BlobInfo.Builder setCrc32cFromHexString(String crc32cHexString)
public abstract BlobInfo.Builder setStorageClass(StorageClass storageClass)
public abstract BlobInfo.Builder setMetadata(Map<String,String> metadata)
@BetaApi public abstract BlobInfo.Builder setEventBasedHold(Boolean eventBasedHold)
@BetaApi public abstract BlobInfo.Builder setTemporaryHold(Boolean temporaryHold)
public abstract BlobInfo build()
BlobInfo
object.Copyright © 2019 Google LLC. All rights reserved.