List<MessageInfo> getMessageInfoList() {
    return messageInfoList;
  }
Deserialize the given stream and return the MessageInfo and Metadata lists.
@param stream the stream to deserialize from.
@param map the clustermap to use.
@param versionToDeserializeIn the SerDe version to use to deserialize.
@return the deserialized {@link MessageInfoAndMetadataListSerde}.
@throws IOException if an I/O error occurs while reading from the stream.
ambry-protocol/src/main/java/com/github/ambry/protocol/MessageInfoAndMetadataListSerde.java