StorageMetadata
class StorageMetadata
Metadata for a StorageReference. Metadata stores default attributes such as size and content type. You may also store custom metadata key value pairs. Metadata values may be used to authorize operations using declarative validation rules.
Summary
Nested types |
|---|
class StorageMetadata.BuilderCreates a StorageMetadata object. |
Public constructors |
|---|
|
Creates a |
Public functions |
|
|---|---|
String? |
|
String? |
|
String? |
|
String? |
|
String? |
|
String? |
|
Long |
|
String? |
getCustomMetadata(key: String)Returns custom metadata for a |
(Mutable)Set<String!> |
|
String? |
|
String? |
|
String? |
|
String? |
getName() |
String |
getPath() |
StorageReference? |
|
Long |
|
Long |
Public constructors
StorageMetadata
StorageMetadata()
Creates a StorageMetadata object to hold metadata for a StorageReference
Public functions
getBucket
fun getBucket(): String?
| Returns | |
|---|---|
String? |
the owning Google Cloud Storage bucket for the |
getCacheControl
fun getCacheControl(): String?
| Returns | |
|---|---|
String? |
the Cache Control setting of the |
getContentDisposition
fun getContentDisposition(): String?
| Returns | |
|---|---|
String? |
the content disposition of the |
getContentEncoding
fun getContentEncoding(): String?
| Returns | |
|---|---|
String? |
the content encoding for the |
getContentLanguage
fun getContentLanguage(): String?
| Returns | |
|---|---|
String? |
the content language for the |
getContentType
fun getContentType(): String?
| Returns | |
|---|---|
String? |
the content type of the |
getCreationTimeMillis
fun getCreationTimeMillis(): Long
| Returns | |
|---|---|
Long |
the time the |
getCustomMetadata
fun getCustomMetadata(key: String): String?
Returns custom metadata for a StorageReference
| Parameters | |
|---|---|
key: String |
The key for which the metadata should be returned |
| Returns | |
|---|---|
String? |
the metadata stored in the object the given key. |
getGeneration
fun getGeneration(): String?
| Returns | |
|---|---|
String? |
a version String indicating what version of the |
getMetadataGeneration
fun getMetadataGeneration(): String?
| Returns | |
|---|---|
String? |
a version String indicating the version of this |
getReference
fun getReference(): StorageReference?
| Returns | |
|---|---|
StorageReference? |
the associated |
getSizeBytes
fun getSizeBytes(): Long
| Returns | |
|---|---|
Long |
the stored Size in bytes of the |
getUpdatedTimeMillis
fun getUpdatedTimeMillis(): Long
| Returns | |
|---|---|
Long |
the time the |