CommitBlobResponse


class CommitBlobResponse : Parcelable

The response to provide batch operation results of AppSearchSession.commitBlob.

This class is used to retrieve the result of a batch commit operation on a collection of blob handles.

Summary

Inherited constants
Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.

Public methods
AppSearchBatchResult<AppSearchBlobHandle!, Void!>

Returns the AppSearchBatchResult object containing the results of the commit operation for each AppSearchBlobHandle.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Public constructors

CommitBlobResponse

CommitBlobResponse(result: AppSearchBatchResult<AppSearchBlobHandle!, Void!>)

Creates a CommitBlobResponse with given AppSearchBatchResult.

Parameters
result AppSearchBatchResult<AppSearchBlobHandle!, Void!>: This value cannot be null.

Public methods

getResult

fun getResult(): AppSearchBatchResult<AppSearchBlobHandle!, Void!>

Returns the AppSearchBatchResult object containing the results of the commit operation for each AppSearchBlobHandle.

Return
AppSearchBatchResult<AppSearchBlobHandle!, Void!> A AppSearchBatchResult maps AppSearchBlobHandles which is a unique identifier for a specific blob being committed to the outcome of that commit. If the operation was successful, the result for that handle is null; if there was an error, the result contains an AppSearchResult with details of the failure.

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

static val CREATOR: Parcelable.Creator<CommitBlobResponse!>