Search in sources :

Example 1 with GapicPackageInfo

use of com.google.api.generator.gapic.model.GapicPackageInfo in project gapic-generator-java by googleapis.

the class Generator method generateGapic.

public static CodeGeneratorResponse generateGapic(CodeGeneratorRequest request) {
    GapicContext context = Parser.parse(request);
    List<GapicClass> clazzes = Composer.composeServiceClasses(context);
    GapicPackageInfo packageInfo = Composer.composePackageInfo(context);
    String outputFilename = "temp-codegen.srcjar";
    return Writer.write(context, clazzes, packageInfo, outputFilename);
}
Also used : GapicPackageInfo(com.google.api.generator.gapic.model.GapicPackageInfo) GapicClass(com.google.api.generator.gapic.model.GapicClass) GapicContext(com.google.api.generator.gapic.model.GapicContext)

Aggregations

GapicClass (com.google.api.generator.gapic.model.GapicClass)1 GapicContext (com.google.api.generator.gapic.model.GapicContext)1 GapicPackageInfo (com.google.api.generator.gapic.model.GapicPackageInfo)1