Search in sources :

Example 1 with StaticLangCallableFactoryView

use of com.google.api.codegen.viewmodel.StaticLangCallableFactoryView in project toolkit by googleapis.

the class JavaSurfaceTransformer method generateCallableFactoryClass.

private StaticLangCallableFactoryView generateCallableFactoryClass(InterfaceContext context, GapicProductConfig productConfig) {
    SurfaceNamer namer = context.getNamer();
    InterfaceConfig interfaceConfig = context.getInterfaceConfig();
    addCallableFactoryImports(context);
    StaticLangCallableFactoryView.Builder callableFactory = StaticLangCallableFactoryView.newBuilder();
    callableFactory.doc(serviceTransformer.generateServiceDoc(context, null, productConfig));
    callableFactory.releaseLevelAnnotation(namer.getReleaseAnnotation(ReleaseLevel.BETA));
    callableFactory.name(namer.getCallableFactoryClassName(interfaceConfig, productConfig.getTransportProtocol()));
    return callableFactory.build();
}
Also used : InterfaceConfig(com.google.api.codegen.config.InterfaceConfig) StaticLangCallableFactoryView(com.google.api.codegen.viewmodel.StaticLangCallableFactoryView) SurfaceNamer(com.google.api.codegen.transformer.SurfaceNamer)

Aggregations

InterfaceConfig (com.google.api.codegen.config.InterfaceConfig)1 SurfaceNamer (com.google.api.codegen.transformer.SurfaceNamer)1 StaticLangCallableFactoryView (com.google.api.codegen.viewmodel.StaticLangCallableFactoryView)1