public interface FirestoreOptions extends PipelineOptions
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
Modifier and Type | Method and 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.
|
java.lang.String |
getFirestoreHost()
A host port pair to allow connecting to a Cloud Firestore instead of the default live service.
|
@Nullable java.lang.String |
getFirestoreProject()
The Firestore project 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.
|
void |
setFirestoreHost(java.lang.String host)
Define a host port pair to allow connecting to a Cloud Firestore instead of the default live
service.
|
void |
setFirestoreProject(java.lang.String firestoreProject)
Set the Firestore project ID, it will override the value from
GcpOptions.getProject() . |
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, revision, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
@Nullable java.lang.String getEmulatorHost()
FIRESTORE_EMULATOR_HOST
environment variable is also set.FirestoreOptions.Builder.setEmulatorHost(java.lang.String)
void setEmulatorHost(java.lang.String host)
FIRESTORE_EMULATOR_HOST
environment variable is also set.host
- the emulator host and port to connect toFirestoreOptions.Builder.setEmulatorHost(java.lang.String)
@Default.String(value="(default)") java.lang.String getFirestoreDb()
void setFirestoreDb(java.lang.String firestoreDb)
@Default.String(value="batch-firestore.googleapis.com:443") java.lang.String getFirestoreHost()
void setFirestoreHost(java.lang.String host)
host
- the host and port to connect to@Nullable java.lang.String getFirestoreProject()
void setFirestoreProject(java.lang.String firestoreProject)
GcpOptions.getProject()
.