Class FirebasePlugin.Builder
java.lang.Object
com.google.genkit.plugins.firebase.FirebasePlugin.Builder
- Enclosing class:
FirebasePlugin
Builder for FirebasePlugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRetriever(FirestoreRetrieverConfig config) Adds a Firestore retriever configuration.build()Builds the FirebasePlugin.credentials(com.google.auth.oauth2.GoogleCredentials credentials) Sets the Google credentials.databaseUrl(String databaseUrl) Sets the Firebase Realtime Database URL.enableTelemetry(boolean enable) Enables or disables Firebase telemetry.forceDevExport(boolean forceDevExport) Forces telemetry export in development mode.metricExportIntervalMillis(long intervalMillis) Sets the metric export interval in milliseconds.Sets the Firebase project ID.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
projectId
Sets the Firebase project ID.- Parameters:
projectId- the project ID- Returns:
- this builder
-
credentials
Sets the Google credentials.- Parameters:
credentials- the credentials- Returns:
- this builder
-
databaseUrl
Sets the Firebase Realtime Database URL.- Parameters:
databaseUrl- the database URL- Returns:
- this builder
-
enableTelemetry
Enables or disables Firebase telemetry.- Parameters:
enable- true to enable telemetry- Returns:
- this builder
-
forceDevExport
Forces telemetry export in development mode.- Parameters:
forceDevExport- true to force export in dev mode- Returns:
- this builder
-
metricExportIntervalMillis
Sets the metric export interval in milliseconds.- Parameters:
intervalMillis- the interval in milliseconds- Returns:
- this builder
-
addRetriever
Adds a Firestore retriever configuration.- Parameters:
config- the retriever configuration- Returns:
- this builder
-
build
Builds the FirebasePlugin.- Returns:
- the configured plugin
-