}
@Override
Object deserialize(final ChannelBuffer buf, final int cell_size) {
HBaseRpc.ensureNoCell(cell_size);
final MultiResponse resp = readProtobuf(buf, MultiResponse.PARSER);
final int nrpcs = batch.size();
final Object[] resps = new Object[nrpcs];
int n = 0; // Index in `batch'.
int r = 0; // Index in `regionActionResult' in the PB.
while (n < nrpcs) {
final RegionActionResult results = resp.getRegionActionResult(r++);
final int nresults = results.getResultOrExceptionCount();
if (results.hasException()) {
if (nresults != 0) {
throw new InvalidResponseException("All edits in a batch failed yet"
+ " we found " + nresults