Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# StorageMetadata.Builder

extends Object

java.lang.Object
↳ | com.google.firebase.storage.StorageMetadata.Builder

## Class Overview

Creates a StorageMetadata object.

## Summary

Public Constructors
| StorageMetadata.Builder() Creates an empty set of metadata.
| StorageMetadata.Builder(StorageMetadata original) Used to create a modified version of the original set of metadata.

Public Methods
StorageMetadata | build()
StorageMetadata.Builder | setCacheControl(String cacheControl) sets the Cache Control for the `StorageReference`
StorageMetadata.Builder | setContentDisposition(String contentDisposition)
StorageMetadata.Builder | setContentEncoding(String contentEncoding) Changes the content encoding for the `StorageReference`
StorageMetadata.Builder | setContentLanguage(String contentLanguage) Changes the content language for the `StorageReference`
StorageMetadata.Builder | setContentType(String contentType) Changes the content Type of this associated `StorageReference`
StorageMetadata.Builder | setCustomMetadata(String key, String value) Sets custom metadata

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public StorageMetadata.Builder ()

Creates an empty set of metadata.

#### public StorageMetadata.Builder (StorageMetadata original)

Used to create a modified version of the original set of metadata.

##### Parameters

original | The source of the metadata to build from.

## Public Methods

#### public StorageMetadata build ()

#### public StorageMetadata.Builder setCacheControl (String cacheControl)

sets the Cache Control for the `StorageReference`

##### Parameters

cacheControl | the new Cache Control setting.

#### public StorageMetadata.Builder setContentDisposition (String contentDisposition)

##### Parameters

contentDisposition | changes the content disposition for the `StorageReference`

#### public StorageMetadata.Builder setContentEncoding (String contentEncoding)

Changes the content encoding for the `StorageReference`

##### Parameters

contentEncoding | the new encoding to use.

#### public StorageMetadata.Builder setContentLanguage (String contentLanguage)

Changes the content language for the `StorageReference`

##### Parameters

contentLanguage | the new content language.

#### public StorageMetadata.Builder setContentType (String contentType)

Changes the content Type of this associated `StorageReference`

##### Parameters

contentType | the new Content Type.

#### public StorageMetadata.Builder setCustomMetadata (String key, String value)

Sets custom metadata

##### Parameters

key | the key of the new value
value | the value to set.