类 FirestoreProperties

java.lang.Object
com.google.adk.utils.FirestoreProperties

public class FirestoreProperties extends Object
这个占位符类用于测试 `FirestoreProperties` 文件是否已正确地被包含在测试资源的目录中。
  • 方法详细信息(Method Details)

    • getProperty

      public String getProperty(String key)
      该功能用于从已加载的属性文件中读取某个属性的值。
      Parameters:
      key - the property key
      Returns:
      the property value, or null if not found
    • getFirebaseRootCollectionName

      public String getFirebaseRootCollectionName()
      从属性文件中获取根集合的名称;如果找不到该名称,则返回默认值。
      Returns:
      the root collection name
    • getStopWords

      public Set<String> getStopWords()
      从属性文件中获取用于关键词提取的停用词(即那些不包含实际意义的词汇);如果该文件中不存在这些停用词,则返回默认的停用词集合。
      Returns:
      the set of stop words
    • getGcsAdkBucketName

      public String getGcsAdkBucketName()
      从属性文件中获取 GCS ADK 存储桶的名称。
      Returns:
      the GCS ADK bucket name
    • getInstance

      public static FirestoreProperties getInstance()
      返回一个 FirestoreProperties 的单例实例。
      Returns:
      the FirestoreProperties instance
    • resetForTest

      public static void resetForTest()
      重置单例实例。仅用于测试目的。