Class FirestoreSessionStoreOptions.Builder

java.lang.Object
com.google.genkit.plugins.firebase.session.FirestoreSessionStoreOptions.Builder
Enclosing class:
FirestoreSessionStoreOptions

public static final class FirestoreSessionStoreOptions.Builder extends Object
  • Method Details

    • collection

      public FirestoreSessionStoreOptions.Builder collection(String collection)
      Sets the top-level collection name.
      Parameters:
      collection - the collection name
      Returns:
      this builder
    • checkpointInterval

      public FirestoreSessionStoreOptions.Builder checkpointInterval(int checkpointInterval)
      Sets the number of turns between full checkpoints.
      Parameters:
      checkpointInterval - the checkpoint interval (must be >= 1)
      Returns:
      this builder
    • shardSize

      public FirestoreSessionStoreOptions.Builder shardSize(int 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 new FirestoreSessionStoreOptions.
      Returns:
      a new options instance