CommitBlobResponse


@ExperimentalAppSearchApi
class CommitBlobResponse


The response to provide batch operation results of commitBlobAsync.

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

Summary

Public constructors

Creates a CommitBlobResponse with given AppSearchBatchResult.

Public functions

AppSearchBatchResult<AppSearchBlobHandle!, Void!>

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

Unit
writeToParcel(dest: Parcel, flags: Int)

To be implemented by child classes.

Constants

CREATOR

Added in 1.1.0-alpha07
const val CREATORParcelable.Creator<CommitBlobResponse!>

Public constructors

CommitBlobResponse

Added in 1.1.0-alpha07
CommitBlobResponse(
    result: AppSearchBatchResult<AppSearchBlobHandle!, Void!>
)

Creates a CommitBlobResponse with given AppSearchBatchResult.

Public functions

getResult

Added in 1.1.0-alpha07
fun getResult(): AppSearchBatchResult<AppSearchBlobHandle!, Void!>

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

Returns
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

Added in 1.1.0-alpha07
fun writeToParcel(dest: Parcel, flags: Int): Unit

To be implemented by child classes.

This is purely for code sync purpose. Have writeToParcel here so we can keep "@Override" in child classes.