static List<LogMessage> fromLogRequest(byte[] logRequestPayload) {
        try {
            LogProtocol.LogRequest logRequest = LogProtocol.LogRequest.parseFrom(logRequestPayload);
            return logRequest.getLogMessagesList().stream()
                .map(ProtobufSerialization::fromLogRequest)
                .toList();
        } catch (InvalidProtocolBufferException e) {
            throw new IllegalArgumentException("Unable to parse log request: " + e.getMessage(), e);
        }
    }
Utility class for serialization of log requests and responses.

@author bjorncs
logserver/src/main/java/ai/vespa/logserver/protocol/ProtobufSerialization.java