Added in API level 31

PutDocumentsRequest


class PutDocumentsRequest
kotlin.Any
   ↳ android.app.appsearch.PutDocumentsRequest

Encapsulates a request to index documents into an AppSearchSession database.

Summary

Nested classes

Builder for PutDocumentsRequest objects.

Public methods
MutableList<GenericDocument!>

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

MutableList<GenericDocument!>

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

Public methods

getGenericDocuments

Added in API level 31
fun getGenericDocuments(): MutableList<GenericDocument!>

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

Return
MutableList<GenericDocument!> This value cannot be null.

getTakenActionGenericDocuments

Added in API level 35
fun getTakenActionGenericDocuments(): MutableList<GenericDocument!>

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

See Builder#addTakenActionGenericDocuments(GenericDocument...).

Return
MutableList<GenericDocument!> This value cannot be null.