BigtableConfig implements Serializable { void validate() { checkArgument( getTableId() != null && (!getTableId().isAccessible() || !getTableId().get().isEmpty()), "Could not obtain Bigtable table id"); checkArgument( (getProjectId() != null && (!getProjectId().isAccessible() || !getProjectId().get().isEmpty())) || (getBigtableOptions() != null && getBigtableOptions().getProjectId() != null && !getBigtableOptions().getProjectId().isEmpty()), "Could not obtain Bigtable project id"); checkArgument( (getInstanceId() != null && (!getInstanceId().isAccessible() || !getInstanceId().get().isEmpty())) || (getBigtableOptions() != null && getBigtableOptions().getInstanceId() != null && !getBigtableOptions().getInstanceId().isEmpty()), "Could not obtain Bigtable instance id"); }  @Override String toString();  }
@Test public void testValidate() { config.withProjectId(PROJECT_ID).withInstanceId(INSTANCE_ID).withTableId(TABLE_ID).validate(); }