Interface FirestoreOptions

All Superinterfaces:
HasDisplayData, PipelineOptions

public interface FirestoreOptions extends PipelineOptions
  • Method Details

    • getEmulatorHost

      @Nullable String getEmulatorHost()
      A host port pair to allow connecting to a Cloud Firestore emulator instead of the live service. The value passed to this method will take precedent if the FIRESTORE_EMULATOR_HOST environment variable is also set.
      Returns:
      the string representation of a host and port pair to be used when constructing Cloud Firestore clients.
      See Also:
      • FirestoreOptions.Builder.setEmulatorHost(java.lang.String)
    • setEmulatorHost

      void setEmulatorHost(String host)
      Define a host port pair to allow connecting to a Cloud Firestore emulator instead of the live service. The value passed to this method will take precedent if the FIRESTORE_EMULATOR_HOST environment variable is also set.
      Parameters:
      host - the emulator host and port to connect to
      See Also:
      • FirestoreOptions.Builder.setEmulatorHost(java.lang.String)
    • getFirestoreDb

      @String("(default)") String getFirestoreDb()
      The Firestore database ID to connect to. Note: named database is currently an internal feature in Firestore. Do not set this to anything other than "(default)".
    • setFirestoreDb

      void setFirestoreDb(String firestoreDb)
      Set the Firestore database ID to connect to.
    • getFirestoreHost

      @String("batch-firestore.googleapis.com:443") String getFirestoreHost()
      A host port pair to allow connecting to a Cloud Firestore instead of the default live service.
      Returns:
      the string representation of a host and port pair to be used when constructing Cloud Firestore clients.
    • setFirestoreHost

      void setFirestoreHost(String host)
      Define a host port pair to allow connecting to a Cloud Firestore instead of the default live service.
      Parameters:
      host - the host and port to connect to
    • getFirestoreProject

      @Nullable String getFirestoreProject()
      The Firestore project ID to connect to.
    • setFirestoreProject

      void setFirestoreProject(String firestoreProject)
      Set the Firestore project ID, it will override the value from GcpOptions.getProject().