RemoveByDocumentIdRequest.Builder

public static final class RemoveByDocumentIdRequest.Builder
extends Object

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


Builder for RemoveByDocumentIdRequest objects.

Summary

Public constructors

Builder(String namespace)

Creates a RemoveByDocumentIdRequest.Builder instance.

Public methods

RemoveByDocumentIdRequest.Builder addIds(String... ids)

Adds one or more document IDs to the request.

RemoveByDocumentIdRequest.Builder addIds(Collection<String> ids)

Adds a collection of IDs to the request.

RemoveByDocumentIdRequest build()

Builds a new RemoveByDocumentIdRequest.

Inherited methods

Public constructors

Builder

public Builder (String namespace)

Creates a RemoveByDocumentIdRequest.Builder instance.

Parameters
namespace String

Public methods

addIds

public RemoveByDocumentIdRequest.Builder addIds (String... ids)

Adds one or more document IDs to the request.

Parameters
ids String

Returns
RemoveByDocumentIdRequest.Builder

addIds

public RemoveByDocumentIdRequest.Builder addIds (Collection<String> ids)

Adds a collection of IDs to the request.

Parameters
ids Collection

Returns
RemoveByDocumentIdRequest.Builder