use of com.google.api.codegen.transformer.PackageMetadataTransformer in project toolkit by googleapis.
the class PythonGrpcMetadataTransformer method transform.
public List<PackageMetadataView> transform(ApiModel model, PackageMetadataConfig config) {
ArrayList<PackageMetadataView> views = new ArrayList<>();
PythonSurfaceNamer surfaceNamer = new PythonSurfaceNamer(config.packageName(TargetLanguage.PYTHON));
PackageMetadataTransformer transformer = new PackageMetadataTransformer();
for (String snippetFilename : SNIPPETS) {
PackageMetadataView view = transformer.generateMetadataView(new PackageMetadataNamer(), config, model, snippetFilename, outputPath(snippetFilename), TargetLanguage.PYTHON, PROTO_PACKAGE_DEPENDENCY_WHITELIST).namespacePackages(copierResult.namespacePackages()).developmentStatus(surfaceNamer.getReleaseAnnotation(config.releaseLevel(TargetLanguage.PYTHON))).build();
views.add(view);
}
return views;
}
Aggregations