PutDocumentsRequest


public final class PutDocumentsRequest
extends Object

java.lang.Object
   ↳ android.app.appsearch.PutDocumentsRequest


Encapsulates a request to index documents into an AppSearchSession database.

Summary

Nested classes

class PutDocumentsRequest.Builder

Builder for PutDocumentsRequest objects. 

Public methods

List<GenericDocument> getGenericDocuments()

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

List<GenericDocument> getTakenActionGenericDocuments()

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

Inherited methods

Public methods

getGenericDocuments

Added in API level 31
public List<GenericDocument> getGenericDocuments ()

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

Returns
List<GenericDocument> This value cannot be null.

getTakenActionGenericDocuments

Added in API level 35
public List<GenericDocument> getTakenActionGenericDocuments ()

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

See Builder#addTakenActionGenericDocuments(GenericDocument...).

Returns
List<GenericDocument> This value cannot be null.