/** * Creates a new model based on the given file descriptor, list of source file names and list of * experiments to be enabled for the model. */ public static Model create( FileDescriptorSet proto, Iterable<String> sources, Experiments experiments, ExtensionPool extensionPool, DiagCollector diagCollector) { return new Model( proto, sources, experiments, extensionPool, diagCollector, new DiagSuppressor(diagCollector)); }
/** * Creates a new model based on the given file descriptor, list of source file names and list of * experiments to be enabled for the model. */ public static Model create( FileDescriptorSet proto, Iterable<String> sources, Experiments experiments, ExtensionPool extensionPool, DiagCollector diagCollector) { return new Model( proto, sources, experiments, extensionPool, diagCollector, new DiagSuppressor(diagCollector)); }
/** * Creates a new model based on the given file descriptor, list of source file names and list of * experiments to be enabled for the model. */ public static Model create( FileDescriptorSet proto, Iterable<String> sources, Experiments experiments, ExtensionPool extensionPool) { DiagCollector diagCollector = new BoundedDiagCollector(); return new Model( proto, sources, experiments, extensionPool, diagCollector, new DiagSuppressor(diagCollector)); }
/** * Creates a new model based on the given file descriptor, list of source file names and list of * experiments to be enabled for the model. */ public static Model create( FileDescriptorSet proto, Iterable<String> sources, Experiments experiments, ExtensionPool extensionPool) { DiagCollector diagCollector = new BoundedDiagCollector(); return new Model( proto, sources, experiments, extensionPool, diagCollector, new DiagSuppressor(diagCollector)); }
/** Creates an model where all protos in the descriptor are considered to be sources. */ public static Model create(FileDescriptorSet proto) { DiagCollector diagCollector = new BoundedDiagCollector(); return new Model( proto, null, ExperimentsImpl.none(), ExtensionPool.EMPTY, diagCollector, new DiagSuppressor(diagCollector)); }
/** Creates an model where all protos in the descriptor are considered to be sources. */ public static Model create(FileDescriptorSet proto) { DiagCollector diagCollector = new BoundedDiagCollector(); return new Model( proto, null, ExperimentsImpl.none(), ExtensionPool.EMPTY, diagCollector, new DiagSuppressor(diagCollector)); }
/** * Creates a new model based on the given file descriptor set and list of source file names. The * file descriptor set is self-contained and contains the descriptors for the source files as well * as for all dependencies. */ public static Model create(FileDescriptorSet proto, Iterable<String> sources) { DiagCollector diagCollector = new BoundedDiagCollector(); return new Model( proto, sources, ExperimentsImpl.none(), ExtensionPool.EMPTY, diagCollector, new DiagSuppressor(diagCollector)); }
/** * Creates a new model based on the given file descriptor set and list of source file names. The * file descriptor set is self-contained and contains the descriptors for the source files as well * as for all dependencies. */ public static Model create(FileDescriptorSet proto, Iterable<String> sources) { DiagCollector diagCollector = new BoundedDiagCollector(); return new Model( proto, sources, ExperimentsImpl.none(), ExtensionPool.EMPTY, diagCollector, new DiagSuppressor(diagCollector)); }
public static DiagReporter createForTest(DiagCollector diagCollector) { return new DiagReporter( diagCollector, new DiagSuppressor(diagCollector), new TestConfigLocationResolver()); }