StorageMetadata

actual class StorageMetadata(source)
expect class StorageMetadata(source)

The metadata of an object in Cloud Storage, as the Android SDK's StorageMetadata: the server-set fields are read from a fetched object, the settable fields are built with Builder (chained setters or, from Kotlin, properties: storageMetadata { contentType = "text/plain" }).

actual class StorageMetadata(source)
actual class StorageMetadata(source)

Constructors

Link copied to clipboard
actual constructor()
expect constructor()
actual constructor()
actual constructor()

Types

Link copied to clipboard
actual class Builder
expect class Builder

Builds the settable metadata, from scratch or from an existing StorageMetadata.

actual class Builder
actual class Builder

Properties

Link copied to clipboard
actual val bucket: String?
expect val bucket: String?

The bucket, once fetched.

actual val bucket: String?
actual val bucket: String?
Link copied to clipboard
actual val cacheControl: String?
expect val cacheControl: String?

The Cache-Control header.

actual val cacheControl: String?
actual val cacheControl: String?
Link copied to clipboard

The Content-Disposition header.

Link copied to clipboard
actual val contentEncoding: String?
expect val contentEncoding: String?

The Content-Encoding header.

actual val contentEncoding: String?
actual val contentEncoding: String?
Link copied to clipboard
actual val contentLanguage: String?
expect val contentLanguage: String?

The Content-Language header.

actual val contentLanguage: String?
actual val contentLanguage: String?
Link copied to clipboard
actual val contentType: String?
expect val contentType: String?

The Content-Type header.

actual val contentType: String?
actual val contentType: String?
Link copied to clipboard

When the object was created, in milliseconds since the epoch; 0 until fetched.

Link copied to clipboard

The keys of the custom metadata.

Link copied to clipboard
actual val generation: String?
expect val generation: String?

The object's generation, once fetched.

actual val generation: String?
actual val generation: String?
Link copied to clipboard
actual val md5Hash: String?
expect val md5Hash: String?

The MD5 hash of the content, once fetched.

actual val md5Hash: String?
actual val md5Hash: String?
Link copied to clipboard

The metadata's generation, once fetched.

Link copied to clipboard
actual val name: String?
expect val name: String?

The object's name (the last path segment), once fetched.

actual val name: String?
actual val name: String?
Link copied to clipboard
actual val path: String
expect val path: String

The object's full path; empty until fetched.

actual val path: String
actual val path: String
Link copied to clipboard

The reference of the object, once fetched.

Link copied to clipboard
actual val sizeBytes: Long
expect val sizeBytes: Long

The size in bytes; 0 until fetched.

actual val sizeBytes: Long
actual val sizeBytes: Long
Link copied to clipboard

When the object was last updated, in milliseconds since the epoch; 0 until fetched.

Functions

Link copied to clipboard
actual fun getCustomMetadata(key: String): String?
expect fun getCustomMetadata(key: String): String?

The custom metadata value of key, or null if it is not set.

actual fun getCustomMetadata(key: String): String?
actual fun getCustomMetadata(key: String): String?
Link copied to clipboard
open override fun toString(): String