BulkPresenceResponse response = new BulkPresenceResponse();
response.mergeFrom(responseBytes);
ImmutableList.Builder<Presence> retVal = new ImmutableList.Builder<Presence>();
for (int i = 0; i < response.presenceResponseSize(); i++) {
PresenceResponse presenceResponse = response.getPresenceResponse(i);
retVal.add(presenceFromPresenceResponse(new JID(request.getJid(i)), fromJid, presenceResponse,
presenceResponse.isValid()));
}
return retVal.build();
}