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();
}
Aggregations