| java.lang.Object | |
| ↳ | com.google.firebase.FirebaseOptions.Builder |
Builder for constructing FirebaseOptions.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Builder()
Constructs an empty builder.
| |||||||||||
|
Builder(FirebaseOptions options)
Initializes the builder's values from the options object.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| FirebaseOptions |
build()
Builds the
FirebaseOptions instance from the previously set options. | ||||||||||
| FirebaseOptions.Builder |
setCredential(FirebaseCredential credential)
This method is deprecated.
Use
setCredentials(GoogleCredentials).
| ||||||||||
| 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 |
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) | ||||||||||
| 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. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs an empty builder.
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.
Builds the FirebaseOptions instance from the previously set options.
FirebaseOptions instance created from the previously set options.
This method is deprecated.
Use setCredentials(GoogleCredentials).
Sets the FirebaseCredential to use to authenticate the SDK.
| credential | A FirebaseCredential used to authenticate the SDK. See FirebaseCredentials for default implementations. |
|---|
Builder instance is returned so subsequent calls can be chained.Sets the GoogleCredentials to use to authenticate the SDK.
See Initialize the SDK for code samples and detailed documentation.
| credentials | A
GoogleCredentials
instance used to authenticate the SDK. |
|---|
Builder instance is returned so subsequent calls can be chained.
Sets the auth variable to be used by the Realtime Database rules.
When set, security rules for Realtime Database actions are evaluated using the provided
auth object. During evaluation the object is available on the auth variable. Use
this option to enforce schema validation and additional security for this app instance.
If this option is not provided, security rules are bypassed entirely for this app
instance. If this option is set to null, security rules are evaluated against an
unauthenticated user. That is, the auth variable is null.
See Authenticate with limited privileges for code samples and detailed documentation.
| databaseAuthVariableOverride | The value to use for the auth variable in
the security rules for Realtime Database actions. |
|---|
Builder instance is returned so subsequent calls can be chained.
Sets the Realtime Database URL to use for data storage.
See Initialize the SDK for code samples and detailed documentation.
| databaseUrl | The Realtime Database URL to use for data storage. |
|---|
Builder instance is returned so subsequent calls can be chained.
Sets the HttpTransport used to make remote HTTP calls. A reasonable default
is used if not explicitly set. The transport specified by calling this method is
used by all services of the SDK, except for FirebaseDatabase.
| httpTransport | An HttpTransport instance |
|---|
Builder instance is returned so subsequent calls can be chained.
Sets the JsonFactory used to parse JSON when making remote HTTP calls. A
reasonable default is used if not explicitly set.
| jsonFactory | A JsonFactory instance. |
|---|
Builder instance is returned so subsequent calls can be chained.
Sets the name of the Google Cloud Storage bucket for reading and writing application data.
The same credential used to initialize the SDK (see setCredential(FirebaseCredential)) will be
used to access the bucket.
See Initialize the SDK for code samples and detailed documentation.
| storageBucket | The name of an existing Google Cloud Storage bucket. |
|---|
Builder instance is returned so subsequent calls can be chained.
Sets the ThreadManager used to initialize thread pools and thread factories
for Firebase apps.
| threadManager | A ThreadManager instance. |
|---|
Builder instance is returned so subsequent calls can be chained.