{% setvar book_path %}/android/reference/kotlin/_book.yaml{% endsetvar %} {% 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/_kotlin_switcher2.md" %}

class StoreBytesData.Builder


A builder for StoreBytesData objects.

Summary

Public constructors

Constructor for the Builder class.

Public functions

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!

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

Public constructors

Builder

Builder()

Constructor for the Builder class.

Public functions

build

fun build(): StoreBytesData!

Builds and returns the StoreBytesData object.

setBytes

@CanIgnoreReturnValue
fun setBytes(bytes: ByteArray!): StoreBytesData.Builder!

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
fun setKey(key: String!): StoreBytesData.Builder!

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
fun setShouldBackupToCloud(shouldBackupToCloud: Boolean): StoreBytesData.Builder!

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