public final class

PutDocumentsRequest.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.app.PutDocumentsRequest.Builder

Overview

Builder for PutDocumentsRequest objects.

Summary

Constructors
publicBuilder()

Methods
public PutDocumentsRequest.BuilderaddDocuments(java.util.Collection<java.lang.Object> documents)

Adds a collection of annotated Document documents to the request.

public PutDocumentsRequest.BuilderaddDocuments(java.lang.Object documents[])

Adds one or more annotated Document documents to the request.

public PutDocumentsRequest.BuilderaddGenericDocuments(java.util.Collection<GenericDocument> documents)

Adds a collection of GenericDocument objects to the request.

public PutDocumentsRequest.BuilderaddGenericDocuments(GenericDocument documents[])

Adds one or more GenericDocument objects to the request.

public PutDocumentsRequestbuild()

Creates a new PutDocumentsRequest object.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public PutDocumentsRequest.Builder addGenericDocuments(GenericDocument documents[])

Adds one or more GenericDocument objects to the request.

public PutDocumentsRequest.Builder addGenericDocuments(java.util.Collection<GenericDocument> documents)

Adds a collection of GenericDocument objects to the request.

public PutDocumentsRequest.Builder addDocuments(java.lang.Object documents[])

Adds one or more annotated Document documents to the request.

Parameters:

documents: annotated Document documents.

public PutDocumentsRequest.Builder addDocuments(java.util.Collection<java.lang.Object> documents)

Adds a collection of annotated Document documents to the request.

Parameters:

documents: annotated Document documents.

public PutDocumentsRequest build()

Creates a new PutDocumentsRequest object.