public static SingleResponse getResult(final ClientProtos.MutateRequest request,
    final ClientProtos.MutateResponse response, final CellScanner cells) throws IOException {
    SingleResponse singleResponse = new SingleResponse();
    SingleResponse.Entry entry = new SingleResponse.Entry();
    entry.setResult(ProtobufUtil.toResult(response.getResult(), cells));
    entry.setProcessed(response.getProcessed());
    singleResponse.setEntry(entry);
    return singleResponse;
  }
Helper utility to build protocol buffer responses, or retrieve data from protocol buffer
responses.
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ResponseConverter.java