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

StoreBytesData

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

public class StoreBytesData implements Parcelable


Data passed by apps to Block Store.

Summary

Nested types

public final class StoreBytesData.Builder

A builder for StoreBytesData objects.

Constants

static final Parcelable.Creator<StoreBytesData>

Public fields

final byte[]
final String

The key with which the bytes are associated.

Public methods

byte[]

Raw bytes passed from apps to Block Store.

String

The key with which the bytes are associated.

boolean

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

void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<StoreBytesDataCREATOR

Public fields

bytes

public final byte[] bytes

key

public final String key

The key with which the bytes are associated.

If the key was never explicitly set when building StoreBytesData, then the default key DEFAULT_BYTES_DATA_KEY is associated with the bytes and will be returned.

Public methods

getBytes

public byte[] getBytes()

Raw bytes passed from apps to Block Store.

getKey

public String getKey()

The key with which the bytes are associated.

If the key was never explicitly set when building the StoreBytesData, then the default key DEFAULT_BYTES_DATA_KEY is associated with the bytes and therefore will be returned.

shouldBackupToCloud

public boolean shouldBackupToCloud()

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

writeToParcel

public void writeToParcel(Parcel dest, int flags)