PutDocumentsRequest.Builder

public static final class PutDocumentsRequest.Builder
extends Object

java.lang.Object
   ↳ androidx.appsearch.app.PutDocumentsRequest.Builder


Builder for PutDocumentsRequest objects.

Summary

Public constructors

Builder()

Public methods

PutDocumentsRequest.Builder addDocuments(Collection<?> documents)

Adds a collection of annotated Document documents to the request.

PutDocumentsRequest.Builder addDocuments(Object... documents)

Adds one or more annotated Document documents to the request.

PutDocumentsRequest.Builder addGenericDocuments(Collection<? extends GenericDocument> documents)

Adds a collection of GenericDocument objects to the request.

PutDocumentsRequest.Builder addGenericDocuments(GenericDocument... documents)

Adds one or more GenericDocument objects to the request.

PutDocumentsRequest build()

Creates a new PutDocumentsRequest object.

Inherited methods

Public constructors

Builder

public Builder ()