ContentMetadataMutations


@UnstableApi
class ContentMetadataMutations


Defines multiple mutations on metadata value which are applied atomically. This class isn't thread safe.

Summary

Public constructors

Constructs a DefaultMetadataMutations.

Public functions

ContentMetadataMutations!

Adds a mutation to remove a metadata value.

ContentMetadataMutations!

Adds a mutation to set a metadata value.

ContentMetadataMutations!
@CanIgnoreReturnValue
set(name: String!, value: Long)

Adds a mutation to set a metadata value.

ContentMetadataMutations!

Adds a mutation to set a metadata value.

java-static ContentMetadataMutations!

Adds a mutation to set the KEY_CONTENT_LENGTH value, or to remove any existing value if LENGTH_UNSET is passed.

java-static ContentMetadataMutations!

Adds a mutation to set the KEY_REDIRECTED_URI value, or to remove any existing entry if null is passed.

Public constructors

ContentMetadataMutations

ContentMetadataMutations()

Constructs a DefaultMetadataMutations.

Public functions

remove

@CanIgnoreReturnValue
fun remove(name: String!): ContentMetadataMutations!

Adds a mutation to remove a metadata value.

Parameters
name: String!

The name of the metadata value.

Returns
ContentMetadataMutations!

This instance, for convenience.

set

@CanIgnoreReturnValue
fun set(name: String!, value: ByteArray!): ContentMetadataMutations!

Adds a mutation to set a metadata value.

Parameters
name: String!

The name of the metadata value.

value: ByteArray!

The value to be set.

Returns
ContentMetadataMutations!

This instance, for convenience.

set

@CanIgnoreReturnValue
fun set(name: String!, value: Long): ContentMetadataMutations!

Adds a mutation to set a metadata value.

Parameters
name: String!

The name of the metadata value.

value: Long

The value to be set.

Returns
ContentMetadataMutations!

This instance, for convenience.

set

@CanIgnoreReturnValue
fun set(name: String!, value: String!): ContentMetadataMutations!

Adds a mutation to set a metadata value.

Parameters
name: String!

The name of the metadata value.

value: String!

The value to be set.

Returns
ContentMetadataMutations!

This instance, for convenience.

setContentLength

java-static fun setContentLength(mutations: ContentMetadataMutations!, length: Long): ContentMetadataMutations!

Adds a mutation to set the KEY_CONTENT_LENGTH value, or to remove any existing value if LENGTH_UNSET is passed.

Parameters
mutations: ContentMetadataMutations!

The mutations to modify.

length: Long

The length value, or LENGTH_UNSET to remove any existing entry.

Returns
ContentMetadataMutations!

The mutations instance, for convenience.

setRedirectedUri

java-static fun setRedirectedUri(mutations: ContentMetadataMutations!, uri: Uri?): ContentMetadataMutations!

Adds a mutation to set the KEY_REDIRECTED_URI value, or to remove any existing entry if null is passed.

Parameters
mutations: ContentMetadataMutations!

The mutations to modify.

uri: Uri?

The Uri value, or null to remove any existing entry.

Returns
ContentMetadataMutations!

The mutations instance, for convenience.

Public properties

editedValues

val editedValues: (Mutable)Map<String!, Any!>!

removedValues

val removedValues: (Mutable)List<String!>!