Class FirestoreSessionStoreOptions.Builder
java.lang.Object
com.google.genkit.plugins.firebase.session.FirestoreSessionStoreOptions.Builder
- Enclosing class:
FirestoreSessionStoreOptions
Builder for
FirestoreSessionStoreOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newFirestoreSessionStoreOptions.checkpointInterval(int checkpointInterval) Sets the number of turns between full checkpoints.collection(String collection) Sets the top-level collection name.shardSize(int shardSize) Sets the shard size in bytes for checkpoint state.snapshotPathPrefix(Function<SessionStoreOptions, String> snapshotPathPrefix) Sets the function that derives the per-tenant path prefix from the per-request store options.
-
Method Details
-
collection
Sets the top-level collection name.- Parameters:
collection- the collection name- Returns:
- this builder
-
checkpointInterval
Sets the number of turns between full checkpoints.- Parameters:
checkpointInterval- the checkpoint interval (must be>= 1)- Returns:
- this builder
-
shardSize
Sets the shard size in bytes for checkpoint state.- Parameters:
shardSize- the shard size in bytes (must be>= 1)- Returns:
- this builder
-
snapshotPathPrefix
public FirestoreSessionStoreOptions.Builder snapshotPathPrefix(Function<SessionStoreOptions, String> snapshotPathPrefix) Sets the function that derives the per-tenant path prefix from the per-request store options.- Parameters:
snapshotPathPrefix- the prefix function- Returns:
- this builder
-
build
Builds a newFirestoreSessionStoreOptions.- Returns:
- a new options instance
-