StorageMetadata
public class StorageMetadata
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.
Summary
Nested types |
|---|
public class StorageMetadata.BuilderCreates a StorageMetadata object. |
Public constructors |
|---|
|
Creates a |
Public methods |
|
|---|---|
@Nullable String |
|
@Nullable String |
|
@Nullable String |
|
@Nullable String |
|
@Nullable String |
|
@Nullable String |
|
long |
|
@Nullable String |
getCustomMetadata(@NonNull String key)Returns custom metadata for a |
@NonNull Set<String> |
|
@Nullable String |
|
@Nullable String |
|
@Nullable String |
|
@Nullable String |
getName() |
@NonNull String |
getPath() |
@Nullable StorageReference |
|
long |
|
long |
Public constructors
StorageMetadata
public StorageMetadata()
Creates a StorageMetadata object to hold metadata for a StorageReference
Public methods
getBucket
public @Nullable String getBucket()
| Returns | |
|---|---|
@Nullable String |
the owning Google Cloud Storage bucket for the |
getCacheControl
public @Nullable String getCacheControl()
| Returns | |
|---|---|
@Nullable String |
the Cache Control setting of the |
getContentDisposition
public @Nullable String getContentDisposition()
| Returns | |
|---|---|
@Nullable String |
the content disposition of the |
getContentEncoding
public @Nullable String getContentEncoding()
| Returns | |
|---|---|
@Nullable String |
the content encoding for the |
getContentLanguage
public @Nullable String getContentLanguage()
| Returns | |
|---|---|
@Nullable String |
the content language for the |
getContentType
public @Nullable String getContentType()
| Returns | |
|---|---|
@Nullable String |
the content type of the |
getCreationTimeMillis
public long getCreationTimeMillis()
| Returns | |
|---|---|
long |
the time the |
getCustomMetadata
public @Nullable String getCustomMetadata(@NonNull String key)
Returns custom metadata for a StorageReference
getGeneration
public @Nullable String getGeneration()
| Returns | |
|---|---|
@Nullable String |
a version String indicating what version of the |
getMd5Hash
public @Nullable String getMd5Hash()
| Returns | |
|---|---|
@Nullable String |
the MD5Hash of the |
getMetadataGeneration
public @Nullable String getMetadataGeneration()
| Returns | |
|---|---|
@Nullable String |
a version String indicating the version of this |
getName
public @Nullable String getName()
| Returns | |
|---|---|
@Nullable String |
a simple name of the |
getPath
public @NonNull String getPath()
| Returns | |
|---|---|
@NonNull String |
the path of the |
getReference
public @Nullable StorageReference getReference()
| Returns | |
|---|---|
@Nullable StorageReference |
the associated |
getSizeBytes
public long getSizeBytes()
| Returns | |
|---|---|
long |
the stored Size in bytes of the |
getUpdatedTimeMillis
public long getUpdatedTimeMillis()
| Returns | |
|---|---|
long |
the time the |