FirebaseOptions.Builder

classFirebaseOptions.Builder


Builder for constructing FirebaseOptions.

Summary

Public constructors

Constructs an empty builder.

Initializes the builder's values from the options object.

Public constructors

Builder

Builder()

Constructs an empty builder.

Builder

Builder(options: FirebaseOptions)

Initializes the builder's values from the options object.

The new builder is not backed by this objects values, that is changes made to the new builder don't change the values of the origin object.

Public functions

build

fun build(): FirebaseOptions

setApiKey

fun setApiKey(apiKey: String): FirebaseOptions.Builder

setApplicationId

fun setApplicationId(applicationId: String): FirebaseOptions.Builder

setDatabaseUrl

fun setDatabaseUrl(databaseUrl: String?): FirebaseOptions.Builder

setGcmSenderId

fun setGcmSenderId(gcmSenderId: String?): FirebaseOptions.Builder

setProjectId

fun setProjectId(projectId: String?): FirebaseOptions.Builder

setStorageBucket

fun setStorageBucket(storageBucket: String?): FirebaseOptions.Builder

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.