Class GcpDatastoreProperties

java.lang.Object
com.google.cloud.spring.autoconfigure.datastore.GcpDatastoreProperties
All Implemented Interfaces:
CredentialsSupplier

@ConfigurationProperties("spring.cloud.gcp.datastore") public class GcpDatastoreProperties extends Object implements CredentialsSupplier
Properties for configuring Cloud Datastore.
Since:
1.1
  • Constructor Details

    • GcpDatastoreProperties

      public GcpDatastoreProperties()
  • Method Details

    • getCredentials

      public Credentials getCredentials()
      Description copied from interface: CredentialsSupplier
      Supplies credentials configuration.
      Specified by:
      getCredentials in interface CredentialsSupplier
      Returns:
      a POJO containing Google Cloud credentials location and scopes
    • getEmulator

      public EmulatorSettings getEmulator()
    • getProjectId

      public String getProjectId()
    • setProjectId

      public void setProjectId(String projectId)
    • getDatabaseId

      public String getDatabaseId()
    • setDatabaseId

      public void setDatabaseId(String databaseId)
    • getNamespace

      public String getNamespace()
    • setNamespace

      public void setNamespace(String namespace)
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • isSkipNullValue

      public boolean isSkipNullValue()
    • setSkipNullValue

      public void setSkipNullValue(boolean skipNullValue)
    • isUseHttpJson

      public boolean isUseHttpJson()
      Returns whether to use HTTP/JSON transport instead of gRPC for Cloud Datastore.
      Returns:
      true if HTTP/JSON transport is enabled; false otherwise.
    • setUseHttpJson

      public void setUseHttpJson(boolean useHttpJson)
      Sets whether to use HTTP/JSON transport instead of gRPC for Cloud Datastore.
      Parameters:
      useHttpJson - true to use HTTP/JSON transport; false to use gRPC.
    • getCacheCapacity

      public int getCacheCapacity()
      Returns the maximum number of Datastore clients to cache when using dynamic namespaces.
      Returns:
      the cache capacity.
    • setCacheCapacity

      public void setCacheCapacity(int cacheCapacity)
      Sets the maximum number of Datastore clients to cache when using dynamic namespaces.
      Parameters:
      cacheCapacity - the cache capacity to set.