if (!key.isComplete()) {
throw new IllegalArgumentException(key + " is incomplete.");
}
Reference ref = KeyTranslator.convertToPb(key);
int encodedKeySize = Protocol.stringSize(ref.encodingSize()) + 1;
if (getDatastoreServiceConfig().exceedsWriteLimits(
req.keySize() + 1, encodedReqSize + encodedKeySize)) {
futures.add(makeAsyncCall(apiConfig, "Delete", req, new DeleteResponse()));
encodedReqSize = baseEncodedReqSize;
req = baseReq.clone();