Search in sources :

Example 1 with ProtoPageStreamingTransformer

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

the class ProtoConfigMerger method createMerger.

private ConfigMerger createMerger(Model model, String fileName) {
    ConfigHelper helper = new ConfigHelper(model.getDiagCollector(), fileName);
    String packageName = getPackageName(model, helper);
    if (packageName == null) {
        return null;
    }
    CollectionMerger collectionMerger = new CollectionMerger();
    RetryMerger retryMerger = new RetryMerger();
    PageStreamingMerger pageStreamingMerger = new PageStreamingMerger(new ProtoPageStreamingTransformer(), helper);
    MethodMerger methodMerger = new MethodMerger(retryMerger, pageStreamingMerger, new ProtoMethodTransformer());
    LanguageSettingsMerger languageSettingsMerger = new LanguageSettingsMerger();
    InterfaceTransformer interfaceTranformer = new ProtoInterfaceTransformer();
    InterfaceMerger interfaceMerger = new InterfaceMerger(collectionMerger, retryMerger, methodMerger, interfaceTranformer);
    return new ConfigMerger(languageSettingsMerger, interfaceMerger, packageName, helper);
}
Also used : ProtoInterfaceTransformer(com.google.api.codegen.configgen.ProtoInterfaceTransformer) InterfaceTransformer(com.google.api.codegen.configgen.InterfaceTransformer) ConfigHelper(com.google.api.codegen.configgen.ConfigHelper) ProtoInterfaceTransformer(com.google.api.codegen.configgen.ProtoInterfaceTransformer) ProtoPageStreamingTransformer(com.google.api.codegen.configgen.ProtoPageStreamingTransformer) ProtoMethodTransformer(com.google.api.codegen.configgen.ProtoMethodTransformer)

Aggregations

ConfigHelper (com.google.api.codegen.configgen.ConfigHelper)1 InterfaceTransformer (com.google.api.codegen.configgen.InterfaceTransformer)1 ProtoInterfaceTransformer (com.google.api.codegen.configgen.ProtoInterfaceTransformer)1 ProtoMethodTransformer (com.google.api.codegen.configgen.ProtoMethodTransformer)1 ProtoPageStreamingTransformer (com.google.api.codegen.configgen.ProtoPageStreamingTransformer)1