java.lang.Object |
↳ |
com.google.firebase.storage.StorageMetadata.Builder |
Class Overview
Creates a StorageMetadata object.
Summary
[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 |
StorageMetadata :
The source of the metadata to build from.
|
Public Methods
sets the Cache Control for the StorageReference
Parameters |
cacheControl |
String :
the new Cache Control setting.
|
Changes the content Type of this associated StorageReference
Parameters |
contentType |
String :
the new Content Type.
|
public
StorageMetadata.Builder
setCustomMetadata
(String key, String value)
Sets custom metadata
Parameters |
key |
String :
the key of the new value |
value |
String :
the value to set.
|