use of com.google.api.codegen.viewmodel.metadata.PackageMetadataView in project toolkit by googleapis.
the class PythonGrpcPackageTransformer method transform.
public List<PackageMetadataView> transform(ApiModel model, PackageMetadataConfig config) {
ArrayList<PackageMetadataView> views = new ArrayList<>();
PythonSurfaceNamer surfaceNamer = new PythonSurfaceNamer(config.packageName());
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())).build();
views.add(view);
}
return views;
}
Aggregations