FirebaseOptions.Builder

public static final class FirebaseOptions.Builder extends Object

Builder for constructing FirebaseOptions.

Public Constructor Summary

FirebaseOptions.Builder()
Constructs an empty builder.
FirebaseOptions.Builder(FirebaseOptions options)
Initializes the builder's values from the options object.

Public Method Summary

FirebaseOptions
build()
FirebaseOptions.Builder
setApiKey(String apiKey)
FirebaseOptions.Builder
setApplicationId(String applicationId)
FirebaseOptions.Builder
setDatabaseUrl(String databaseUrl)
FirebaseOptions.Builder
setGcmSenderId(String gcmSenderId)
FirebaseOptions.Builder
setStorageBucket(String storageBucket)

Inherited Method Summary

Public Constructors

public FirebaseOptions.Builder ()

Constructs an empty builder.

public FirebaseOptions.Builder (FirebaseOptions 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

public FirebaseOptions build ()

public FirebaseOptions.Builder setApiKey (String apiKey)

public FirebaseOptions.Builder setApplicationId (String applicationId)

public FirebaseOptions.Builder setDatabaseUrl (String databaseUrl)

public FirebaseOptions.Builder setGcmSenderId (String gcmSenderId)

public FirebaseOptions.Builder setStorageBucket (String storageBucket)

Send feedback about...

Need help? Visit our support page.