Added in API level 31

Builder


class Builder
kotlin.Any
   ↳ android.app.appsearch.RemoveByDocumentIdRequest.Builder

Builder for RemoveByDocumentIdRequest objects.

Summary

Public constructors
Builder(namespace: String)

Creates a RemoveByDocumentIdRequest.Builder instance.

Public methods
RemoveByDocumentIdRequest.Builder
addIds(vararg ids: String!)

Adds one or more document IDs to the request.

RemoveByDocumentIdRequest.Builder

Adds a collection of IDs to the request.

RemoveByDocumentIdRequest

Builds a new RemoveByDocumentIdRequest.

Public constructors

Builder

Added in API level 31
Builder(namespace: String)

Creates a RemoveByDocumentIdRequest.Builder instance.

Parameters
namespace String: This value cannot be null.

Public methods

addIds

Added in API level 31
fun addIds(vararg ids: String!): RemoveByDocumentIdRequest.Builder

Adds one or more document IDs to the request.

Parameters
ids String!: This value cannot be null.
Return
RemoveByDocumentIdRequest.Builder This value cannot be null.

addIds

Added in API level 31
fun addIds(ids: MutableCollection<String!>): RemoveByDocumentIdRequest.Builder

Adds a collection of IDs to the request.

Parameters
ids MutableCollection<String!>: This value cannot be null.
Return
RemoveByDocumentIdRequest.Builder This value cannot be null.

build

Added in API level 31
fun build(): RemoveByDocumentIdRequest

Builds a new RemoveByDocumentIdRequest.

Return
RemoveByDocumentIdRequest This value cannot be null.