{% 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/_java_switcher2.md" %}

public final class DeleteBytesRequest.Builder


A builder for DeleteBytesRequest objects.

Summary

Public constructors

Constructor for the Builder class.

Public methods

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

public Builder()

Constructor for the Builder class.

Public methods

build

public DeleteBytesRequest build()

Builds and returns the DeleteBytesRequest object.

setDeleteAll

@CanIgnoreReturnValue
public DeleteBytesRequest.Builder setDeleteAll(boolean deleteAll)

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
public DeleteBytesRequest.Builder setKeys(List<String> keys)

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.