FirebaseOptions.Builder

public final 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

public Builder()

Constructs an empty builder.

Builder

public Builder(@NonNullFirebaseOptions options)

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 methods

build

public @NonNullFirebaseOptions build()

setApplicationId

public @NonNullFirebaseOptions.Builder setApplicationId(@NonNullString applicationId)

setDatabaseUrl

public @NonNullFirebaseOptions.Builder setDatabaseUrl(@NullableString databaseUrl)

setGcmSenderId

public @NonNullFirebaseOptions.Builder setGcmSenderId(@NullableString gcmSenderId)

setStorageBucket

public @NonNullFirebaseOptions.Builder setStorageBucket(@NullableString storageBucket)

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.