RemoveByDocumentIdRequest.Builder


public static final class RemoveByDocumentIdRequest.Builder
extends Object

java.lang.Object
   ↳ android.app.appsearch.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

Added in API level 31
public Builder (String namespace)

Creates a RemoveByDocumentIdRequest.Builder instance.

Parameters
namespace String: This value cannot be null.

Public methods

addIds

Added in API level 31
public RemoveByDocumentIdRequest.Builder addIds (String... ids)

Adds one or more document IDs to the request.

Parameters
ids String: This value cannot be null.

Returns
RemoveByDocumentIdRequest.Builder This value cannot be null.

addIds

Added in API level 31
public RemoveByDocumentIdRequest.Builder addIds (Collection<String> ids)

Adds a collection of IDs to the request.

Parameters
ids Collection: This value cannot be null.

Returns
RemoveByDocumentIdRequest.Builder This value cannot be null.

build

Added in API level 31
public RemoveByDocumentIdRequest build ()

Builds a new RemoveByDocumentIdRequest.

Returns
RemoveByDocumentIdRequest This value cannot be null.