FirebaseOptions.Builder

public final class FirebaseOptions.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(@NonNull 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

build

public @NonNull FirebaseOptions build()

setApiKey

public @NonNull FirebaseOptions.Builder setApiKey(@NonNull String apiKey)

setApplicationId

public @NonNull FirebaseOptions.Builder setApplicationId(@NonNull String applicationId)

setDatabaseUrl

public @NonNull FirebaseOptions.Builder setDatabaseUrl(@Nullable String databaseUrl)

setGcmSenderId

public @NonNull FirebaseOptions.Builder setGcmSenderId(@Nullable String gcmSenderId)

setProjectId

public @NonNull FirebaseOptions.Builder setProjectId(@Nullable String projectId)

setStorageBucket

public @NonNull FirebaseOptions.Builder setStorageBucket(@Nullable String storageBucket)