Search in sources :

Example 1 with ProtoConfigMerger

use of com.google.api.codegen.configgen.mergers.ProtoConfigMerger in project toolkit by googleapis.

the class ConfigGeneratorApi method generateConfig.

private Map<String, String> generateConfig(String outputPath) {
    ConfigNode node = new ProtoConfigMerger().mergeConfig(model, outputPath);
    ConfigGenerator configGenerator = new ConfigGenerator(0);
    configGenerator.visit(node);
    return ImmutableMap.of(outputPath, configGenerator.toString());
}
Also used : ProtoConfigMerger(com.google.api.codegen.configgen.mergers.ProtoConfigMerger) ConfigNode(com.google.api.codegen.configgen.nodes.ConfigNode)

Aggregations

ProtoConfigMerger (com.google.api.codegen.configgen.mergers.ProtoConfigMerger)1 ConfigNode (com.google.api.codegen.configgen.nodes.ConfigNode)1