Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for RemoveByDocumentIdRequest
objects.
Summary
Public constructors
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# RemoveByDocumentIdRequest.Builder\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/appsearch/RemoveByDocumentIdRequest.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|--------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.app.appsearch.RemoveByDocumentIdRequest.Builder](#) |\n\nBuilder for [RemoveByDocumentIdRequest](/reference/kotlin/android/app/appsearch/RemoveByDocumentIdRequest) objects.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Builder](#Builder(kotlin.String))`(`namespace:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Creates a [RemoveByDocumentIdRequest.Builder](#) instance. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RemoveByDocumentIdRequest.Builder](#) | [addIds](#addIds(kotlin.String))`(`vararg` `ids:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Adds one or more document IDs to the request. |\n| [RemoveByDocumentIdRequest.Builder](#) | [addIds](#addIds(kotlin.collections.MutableCollection))`(`ids:` `[MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e`)` Adds a collection of IDs to the request. |\n| [RemoveByDocumentIdRequest](/reference/kotlin/android/app/appsearch/RemoveByDocumentIdRequest) | [build](#build())`()` Builds a new [RemoveByDocumentIdRequest](/reference/kotlin/android/app/appsearch/RemoveByDocumentIdRequest). |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder(namespace: String)\n```\n\nCreates a [RemoveByDocumentIdRequest.Builder](#) instance.\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------|\n| `namespace` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### addIds\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun addIds(vararg ids: String!): RemoveByDocumentIdRequest.Builder\n```\n\nAdds one or more document IDs to the request.\n\n| Parameters ||\n|-------|-----------------------------------------------------------------------------------------------------------------|\n| `ids` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: This value cannot be `null`. |\n\n| Return ||\n|----------------------------------------|------------------------------|\n| [RemoveByDocumentIdRequest.Builder](#) | This value cannot be `null`. |\n\n### addIds\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun addIds(ids: MutableCollection\u003cString!\u003e): RemoveByDocumentIdRequest.Builder\n```\n\nAdds a collection of IDs to the request.\n\n| Parameters ||\n|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ids` | [MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e: This value cannot be `null`. |\n\n| Return ||\n|----------------------------------------|------------------------------|\n| [RemoveByDocumentIdRequest.Builder](#) | This value cannot be `null`. |\n\n### build\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): RemoveByDocumentIdRequest\n```\n\nBuilds a new [RemoveByDocumentIdRequest](/reference/kotlin/android/app/appsearch/RemoveByDocumentIdRequest).\n\n| Return ||\n|------------------------------------------------------------------------------------------------|------------------------------|\n| [RemoveByDocumentIdRequest](/reference/kotlin/android/app/appsearch/RemoveByDocumentIdRequest) | This value cannot be `null`. |"]]