Interface FirestoreOptions

  • All Superinterfaces:
    org.apache.beam.sdk.transforms.display.HasDisplayData, org.apache.beam.sdk.options.PipelineOptions

    public interface FirestoreOptions
    extends org.apache.beam.sdk.options.PipelineOptions
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.beam.sdk.options.PipelineOptions

        org.apache.beam.sdk.options.PipelineOptions.AtomicLongFactory, org.apache.beam.sdk.options.PipelineOptions.CheckEnabled, org.apache.beam.sdk.options.PipelineOptions.DirectRunner, org.apache.beam.sdk.options.PipelineOptions.JobNameFactory, org.apache.beam.sdk.options.PipelineOptions.UserAgentFactory
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @Nullable java.lang.String getEmulatorHost()
      A host port pair to allow connecting to a Cloud Firestore emulator instead of the live service.
      java.lang.String getFirestoreDb()
      The Firestore database ID to connect to.
      void setEmulatorHost​(java.lang.String host)
      Define a host port pair to allow connecting to a Cloud Firestore emulator instead of the live service.
      void setFirestoreDb​(java.lang.String firestoreDb)
      Set the Firestore database ID to connect to.
      • Methods inherited from interface org.apache.beam.sdk.transforms.display.HasDisplayData

        populateDisplayData
      • Methods inherited from interface org.apache.beam.sdk.options.PipelineOptions

        as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
    • Method Detail

      • getEmulatorHost

        @Nullable java.lang.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​(java.lang.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)")
        java.lang.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​(java.lang.String firestoreDb)
        Set the Firestore database ID to connect to.