PutDocumentsRequest


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

Builder for PutDocumentsRequest objects.

Public functions

(Mutable)List<GenericDocument!>

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

(Mutable)List<GenericDocument!>

Returns a list of GenericDocument objects containing taken action metrics that are part of this request.

Public functions

getGenericDocuments

Added in 1.1.0-alpha06
fun getGenericDocuments(): (Mutable)List<GenericDocument!>

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

getTakenActionGenericDocuments

Added in 1.1.0-alpha06
fun getTakenActionGenericDocuments(): (Mutable)List<GenericDocument!>

Returns a list of GenericDocument objects containing taken action metrics that are part of this request.

See addTakenActions.