com.github.thinkerou.karate.message.Reader Maven / Gradle / Ivy
package com.github.thinkerou.karate.message;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import com.google.common.collect.ImmutableList;
import com.google.gson.Gson;
import com.google.protobuf.Descriptors;
import com.google.protobuf.DynamicMessage;
import com.google.protobuf.InvalidProtocolBufferException;
import com.google.protobuf.util.JsonFormat;
/**
* Reader
*
* A utility class which knows how to read proto files written using message.Writer.
*
* @author thinkerou
*/
public final class Reader {
private static final Logger logger = Logger.getLogger(Reader.class.getName());
private final JsonFormat.Parser jsonParser;
private final Descriptors.Descriptor descriptor;
private final List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy