AI-generated Key Takeaways
-
StoreBytesData.Builder is a builder for StoreBytesData objects.
-
The builder includes methods to set the bytes to be stored, the key associated with the bytes, and whether the bytes should be backed up to the cloud.
-
The build method is used to create and return the final StoreBytesData object.
A builder for StoreBytesData
objects.
Public Constructor Summary
|
Builder()
Constructor for the
StoreBytesData.Builder class.
|
Public Method Summary
| StoreBytesData |
build()
Builds and returns the
StoreBytesData object.
|
| StoreBytesData.Builder |
setBytes(byte[] bytes)
Sets the raw bytes to be stored with Block Store.
|
| StoreBytesData.Builder | |
| StoreBytesData.Builder |
setShouldBackupToCloud(boolean shouldBackupToCloud)
Sets whether the bytes to be stored should be backed up to the cloud in the
next sync.
|
Inherited Method Summary
Public Constructors
public Builder ()
Constructor for the
StoreBytesData.Builder class.
Public Methods
public StoreBytesData build ()
Builds and returns the StoreBytesData
object.
public StoreBytesData.Builder setBytes (byte[] bytes)
Sets the raw bytes to be stored with Block Store. See
BlockstoreClient.MAX_SIZE for the maximum size allowed for a key-bytes
entry.
public StoreBytesData.Builder setKey (String key)
Sets the key with which the bytes are associated with. See
BlockstoreClient.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
BlockstoreClient.DEFAULT_BYTES_DATA_KEY when stored into Block Store.
public StoreBytesData.Builder setShouldBackupToCloud (boolean shouldBackupToCloud)
Sets whether the bytes to be stored should be backed up to the cloud in the next sync.