Also: Google
Play services
public class StorageMetadata extends Object
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.
Nested Class Summary
class | StorageMetadata.Builder | Creates a StorageMetadata object. |
Public Constructor Summary
StorageMetadata()
Creates a
StorageMetadata
object to hold metadata for a StorageReference
|
Public Method Summary
String | |
String | |
String | |
String | |
String | |
String | |
long | |
String | |
Set<String> | |
String | |
String | |
String | |
String |
getName()
|
String |
getPath()
|
StorageReference | |
long | |
long |
Inherited Method Summary
Public Constructors
public StorageMetadata ()
Also:
Google Play services
Creates a StorageMetadata
object to hold metadata for a StorageReference
Public Methods
public String getBucket ()
Also: Google
Play services
Returns
- the owning Google Cloud Storage bucket for the
StorageReference
public String getCacheControl ()
Also:
Google Play services
Returns
- the Cache Control setting of the
StorageReference
public String getContentDisposition ()
Also:
Google Play services
Returns
- the content disposition of the
StorageReference
public String getContentEncoding ()
Also:
Google Play services
Returns
- the content encoding for the
StorageReference
public String getContentLanguage ()
Also:
Google Play services
Returns
- the content language for the
StorageReference
public String getContentType ()
Also: Google
Play services
Returns
- the content type of the
StorageReference
.
public long getCreationTimeMillis ()
Also:
Google Play services
Returns
- the time the
StorageReference
was created.
public String getCustomMetadata (String key)
Also:
Google Play services
Returns custom metadata for a StorageReference
Parameters
key | The key for which the metadata should be returned |
---|
Returns
- the metadata stored in the object the given key.
public Set<String> getCustomMetadataKeys ()
Also:
Google Play services
Returns
- the keys for custom metadata.
public String getGeneration ()
Also: Google
Play services
Returns
- a version String indicating what version of the
StorageReference
public String getMd5Hash ()
Also: Google
Play services
Returns
- the MD5Hash of the
StorageReference
object
public String getMetadataGeneration ()
Also:
Google Play services
Returns
- a version String indicating the version of this
StorageMetadata
public String getName ()
Also: Google
Play services
Returns
- a simple name of the
StorageReference
object
public StorageReference getReference ()
Also: Google
Play services
Returns
- the associated
StorageReference
for which this metadata belongs to.
public long getSizeBytes ()
Also: Google
Play services
Returns
- the stored Size in bytes of the
StorageReference
object
public long getUpdatedTimeMillis ()
Also:
Google Play services
Returns
- the time the
StorageReference
was last updated.