CloudBigtableConfiguration implements Serializable { public Configuration toHBaseConfig() { Configuration config = new Configuration(false); config.set(BigtableOptionsFactory.BIGTABLE_USE_BATCH, "true"); config.set(BigtableOptionsFactory.BIGTABLE_ASYNC_MUTATOR_COUNT_KEY, "0"); for (Entry<String, ValueProvider<String>> entry : configuration.entrySet()) { if (entry.getValue().get() != null) { config.set(entry.getKey(), entry.getValue().get()); } } setUserAgent(config); return config; } CloudBigtableConfiguration(); protected  CloudBigtableConfiguration(
      ValueProvider<String> projectId,
      ValueProvider<String> instanceId,
      Map<String, ValueProvider<String>> additionalConfiguration); String getProjectId(); String getInstanceId(); String getAppProfileId(); BigtableOptions toBigtableOptions(); Configuration toHBaseConfig(); Builder toBuilder(); @Override boolean equals(Object obj); void copyConfig(Builder builder); void populateDisplayData(DisplayData.Builder builder); void validate(); static final String VALUE_UNAVAILABLE; }
@Test public void testHBaseConfig() { CloudBigtableConfiguration underTest = createBaseBuilder().build(); Configuration config = underTest.toHBaseConfig(); assertEquals(PROJECT, config.get(BigtableOptionsFactory.PROJECT_ID_KEY)); assertEquals(INSTANCE, config.get(BigtableOptionsFactory.INSTANCE_ID_KEY)); }