{% setvar book_path %}/android/reference/kotlin/_book.yaml{% endsetvar %} {% include "/android/_dackka-meta-tags.html" %}

DeleteBytesRequest.Builder

{% setvar page_path %}com/google/android/gms/auth/blockstore/DeleteBytesRequest.Builder.html{% endsetvar %} {% setvar doc_root_path %}/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_kotlin_switcher2.md" %}

class DeleteBytesRequest.Builder


A builder for DeleteBytesRequest objects.

Summary

Public constructors

Constructor for the Builder class.

Public functions

DeleteBytesRequest!

Builds and returns the DeleteBytesRequest object.

DeleteBytesRequest.Builder!

Sets whether or not all app's Block Store data should be deleted.

DeleteBytesRequest.Builder!

Sets the list of keys whose associated data, if any, should be deleted.

Public constructors

Builder

Builder()

Constructor for the Builder class.

Public functions

build

fun build(): DeleteBytesRequest!

Builds and returns the DeleteBytesRequest object.

setDeleteAll

@CanIgnoreReturnValue
fun setDeleteAll(deleteAll: Boolean): DeleteBytesRequest.Builder!

Sets whether or not all app's Block Store data should be deleted.

The default is false.

Note that if deleteAll is set to true, then you should NOT set any other deletion criterion; that is, keys should be empty. Otherwise, an IllegalStateException will be thrown.

setKeys

@CanIgnoreReturnValue
fun setKeys(keys: (Mutable)List<String!>!): DeleteBytesRequest.Builder!

Sets the list of keys whose associated data, if any, should be deleted.

The default value is an empty list, which means that no key-based filtering will be performed. In other words, no data will be deleted if the key list is empty and no other criterion is provided.

Note that the app data that was stored without an explicit key can be deleted with the default key DEFAULT_BYTES_DATA_KEY.