223224225226227228229230231232233
rb.setRating(rating); } if (hasTimestamps()) { rb.setTimestamp(buf.getLong()); } return rb.build(); } /** * Read a rating from a buffer into a mutable rating. * @param buf The buffer to read.