Class GcpFirestoreProperties
java.lang.Object
com.google.cloud.spring.autoconfigure.firestore.GcpFirestoreProperties
- All Implemented Interfaces:
CredentialsSupplier
@ConfigurationProperties("spring.cloud.gcp.firestore")
public class GcpFirestoreProperties
extends Object
implements CredentialsSupplier
Properties for configuring Cloud Datastore.
- Since:
- 1.2
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupplies credentials configuration.getFirestoreRootPath(GcpProjectIdProvider projectIdProvider) getResolvedProjectId(GcpProjectIdProvider projectIdProvider) voidsetDatabaseId(String databaseId) voidvoidsetHostPort(String hostPort) voidsetProjectId(String projectId)
-
Constructor Details
-
GcpFirestoreProperties
public GcpFirestoreProperties()
-
-
Method Details
-
getCredentials
Description copied from interface:CredentialsSupplierSupplies credentials configuration.- Specified by:
getCredentialsin interfaceCredentialsSupplier- Returns:
- a POJO containing Google Cloud credentials location and scopes
-
getProjectId
-
getResolvedProjectId
-
setProjectId
-
getDatabaseId
-
getResolvedDatabaseId
-
setDatabaseId
-
getHostPort
-
setHostPort
-
getEmulator
-
setEmulator
-
getFirestoreRootPath
-