FirebaseOptions.Builder

public static final class FirebaseOptions.Builder extends Object

Builder for constructing FirebaseOptions.

Public Constructor Summary

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

Public Method Summary

FirebaseOptions
build()
Builds the FirebaseOptions instance from the previously set options.
FirebaseOptions.Builder
setConnectTimeout(int connectTimeout)
Sets the connect timeout for outgoing HTTP (REST) connections made by the SDK.
FirebaseOptions.Builder
setCredentials(GoogleCredentials credentials)
Sets the GoogleCredentials to use to authenticate the SDK.
FirebaseOptions.Builder
setDatabaseAuthVariableOverride(Map<String, Object> databaseAuthVariableOverride)
Sets the auth variable to be used by the Realtime Database rules.
FirebaseOptions.Builder
setDatabaseUrl(String databaseUrl)
Sets the Realtime Database URL to use for data storage.
FirebaseOptions.Builder
setFirestoreOptions(FirestoreOptions firestoreOptions)
Sets the FirestoreOptions used to initialize Firestore in the FirestoreClient API.
FirebaseOptions.Builder
setHttpTransport(HttpTransport httpTransport)
Sets the HttpTransport used to make remote HTTP calls.
FirebaseOptions.Builder
setJsonFactory(JsonFactory jsonFactory)
Sets the JsonFactory used to parse JSON when making remote HTTP calls.
FirebaseOptions.Builder
setProjectId(String projectId)
Sets the Google Cloud project ID that should be associated with an app.
FirebaseOptions.Builder
setReadTimeout(int readTimeout)
Sets the read timeout for outgoing HTTP (REST) calls made by the SDK.
FirebaseOptions.Builder
setServiceAccountId(String serviceAccountId)
Sets the client email address of the service account that should be associated with an app.
FirebaseOptions.Builder
setStorageBucket(String storageBucket)
Sets the name of the Google Cloud Storage bucket for reading and writing application data.
FirebaseOptions.Builder
setThreadManager(ThreadManager threadManager)
Sets the ThreadManager used to initialize thread pools and thread factories for Firebase apps.

Inherited Method Summary

Public Constructors

public Builder ()

Constructs an empty builder.

public Builder (FirebaseOptions options)

Initializes the builder's values from the options object.

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

Public Methods

public FirebaseOptions build ()

Builds the FirebaseOptions instance from the previously set options.

Returns