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