{% include "/android/_dackka-meta-tags.html" %}

StoreBytesData.Builder

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

public final class StoreBytesData.Builder


A builder for StoreBytesData objects.

Summary

Public constructors

Constructor for the Builder class.

Public methods

StoreBytesData

Builds and returns the StoreBytesData object.

StoreBytesData.Builder

Sets the raw bytes to be stored with Block Store.

StoreBytesData.Builder

Sets the key with which the bytes are associated.

StoreBytesData.Builder
@CanIgnoreReturnValue
setShouldBackupToCloud(boolean shouldBackupToCloud)

Sets whether the bytes to be stored should be backed up to the cloud in the next sync.

Public constructors

Builder

public Builder()

Constructor for the Builder class.

Public methods

build

public StoreBytesData build()

Builds and returns the StoreBytesData object.

setBytes

@CanIgnoreReturnValue
public StoreBytesData.Builder setBytes(byte[] bytes)

Sets the raw bytes to be stored with Block Store. See MAX_SIZE for the maximum size allowed for a key-bytes entry.

setKey

@CanIgnoreReturnValue
public StoreBytesData.Builder setKey(String key)

Sets the key with which the bytes are associated. See MAX_SIZE for the maximum size allowed for a key-bytes entry.

If setKey is never invoked, the bytes will be associated with the default key DEFAULT_BYTES_DATA_KEY when stored into Block Store.

setShouldBackupToCloud

@CanIgnoreReturnValue
public StoreBytesData.Builder setShouldBackupToCloud(boolean shouldBackupToCloud)

Sets whether the bytes to be stored should be backed up to the cloud in the next sync.