if (rep == null) {
return new FetchResponse(NO_RIAK_OBJECTS, false, null);
}
RpbGetResp resp = RPB.RpbGetResp.parseFrom(rep);
int count = resp.getContentCount();
RiakObject[] out = new RiakObject[count];
ByteString vclock = resp.getVclock();
for (int i = 0; i < count; i++) {
out[i] = new RiakObject(vclock, bucket, key, resp.getContent(i));
}
boolean unchanged = resp.getUnchanged();
return new FetchResponse(out, unchanged, vclock.toByteArray());
}