/** * Parses a {@link ByteStringMessage} from its {@link ByteString} * representation. * * @param prototype used to create a {@link Message.Builder} to parse the * message * @param byteString representation of the message * @throws InvalidProtocolBufferException if {@code byteString} is not a * valid protocol buffer */ public static <K extends Message> ByteStringMessage<K> parseFrom(K prototype, ByteString byteString) throws InvalidProtocolBufferException { return new ByteStringMessage<K>(parse(prototype, byteString), byteString); }