@Override
public Future<Map<Index, IndexState>> getIndexes() {
StringProto req = new StringProto();
req.setValue(getDatastoreServiceConfig().getAppIdNamespace().getAppId());
return new FutureWrapper<CompositeIndices, Map<Index, IndexState>>(
makeAsyncCall(apiConfig, "GetIndices", req, new CompositeIndices())) {
@Override
protected Map<Index, IndexState> wrap(CompositeIndices indices) throws Exception {
Map<Index, IndexState> answer = new LinkedHashMap<Index, IndexState>();
for (CompositeIndex ci : indices.indexs()) {
Index index = IndexTranslator.convertFromPb(ci);