PutDocumentsRequest

public final class PutDocumentsRequest


Encapsulates a request to index documents into an AppSearchSession database.

Documents added to the request can be instances of classes annotated with androidx.appsearch.annotation.Document or instances of GenericDocument.

See also
putAsync

Summary

Nested types

public final class PutDocumentsRequest.Builder

Builder for PutDocumentsRequest objects.

Public methods

@NonNull List<GenericDocument>

Returns a list of GenericDocument objects that are part of this request.

Public methods

getGenericDocuments

Added in 1.1.0-alpha04
public @NonNull List<GenericDocumentgetGenericDocuments()

Returns a list of GenericDocument objects that are part of this request.