BigtableInstanceName implements Serializable { @Override public String toString() { return instanceName; } @InternalApi("For internal usage only")  BigtableInstanceName(String projectId, String instanceId); @Override String toString(); String toTableId(String tableName); String toTableNameStr(String tableId); BigtableTableName toTableName(String tableId); String getProjectId(); String getInstanceId(); String getInstanceName(); BigtableClusterName toClusterName(String clusterId); static final String BIGTABLE_V2_INSTANCE_FMT; static final String TABLE_SEPARATOR; }
@Test public void testFormat() { Assert.assertEquals(instanceName, bigtableInstanceName.toString()); }
@Test public void testListTablesRequest() { ListTablesRequest.Builder builder = ListTablesRequest.newBuilder(); builder.setParent(bigtableInstanceName.toString()); Assert.assertEquals(instanceName, builder.getParent()); }
@Test public void testCreateTablesRequest() { CreateTableRequest.Builder builder = CreateTableRequest.newBuilder(); builder.setParent(bigtableInstanceName.toString()); Assert.assertEquals(instanceName, builder.getParent()); }