Also: Google Play
services
public static class StorageMetadata.Builder extends Object
Creates a StorageMetadata object.
Public Constructor Summary
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 Method Summary
StorageMetadata |
build()
|
String | |
String | |
String | |
String | |
String | |
StorageMetadata.Builder | |
StorageMetadata.Builder |
setContentDisposition(String
contentDisposition)
Changes the content disposition for the
StorageReference
|
StorageMetadata.Builder | |
StorageMetadata.Builder | |
StorageMetadata.Builder | |
StorageMetadata.Builder |
Inherited Method Summary
Public Constructors
public StorageMetadata.Builder (StorageMetadata original)
Also:
Google Play services
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 String getCacheControl ()
Returns
- the Cache Control header for the
StorageReference
public String getContentDisposition ()
Returns
- the content disposition for the
StorageReference
public String getContentEncoding ()
Returns
- the content encoding for the
StorageReference
public String getContentLanguage ()
Returns
- the content language for the
StorageReference
public String getContentType ()
Returns
- the Content Type of this associated
StorageReference
public StorageMetadata.Builder setCacheControl (String cacheControl)
Also:
Google Play services
Sets the Cache Control header for the StorageReference
Parameters
cacheControl | the new Cache Control setting. |
---|
public StorageMetadata.Builder setContentDisposition (String contentDisposition)
Also:
Google Play services
Changes the content disposition for the StorageReference
Parameters
contentDisposition | the new content disposition to use. |
---|
public StorageMetadata.Builder setContentEncoding (String contentEncoding)
Also:
Google Play services
Changes the content encoding for the StorageReference
Parameters
contentEncoding | the new encoding to use. |
---|
public StorageMetadata.Builder setContentLanguage (String contentLanguage)
Also:
Google Play services
Changes the content language for the StorageReference
Parameters
contentLanguage | the new content language. |
---|
public StorageMetadata.Builder setContentType (String contentType)
Also:
Google Play services
Changes the content Type of this associated StorageReference
Parameters
contentType | the new Content Type. |
---|
public StorageMetadata.Builder setCustomMetadata (String key, String value)
Also:
Google Play services
Sets custom metadata
Parameters
key | the key of the new value |
---|---|
value | the value to set. |