use of com.google.api.codegen.configgen.mergers.LanguageSettingsMerger.LanguageFormatter in project toolkit by googleapis.
the class LanguageTransformer method generateLanguageSettings.
List<LanguageSettingView> generateLanguageSettings(String packageName) {
ImmutableList.Builder<LanguageSettingView> languageSettings = ImmutableList.builder();
for (Map.Entry<TargetLanguage, LanguageFormatter> entry : LANGUAGE_FORMATTERS.entrySet()) {
LanguageFormatter languageFormatter = entry.getValue();
languageSettings.add(LanguageSettingView.newBuilder().language(entry.getKey().name().toLowerCase()).packageName(languageFormatter.getFormattedPackageName(packageName)).build());
}
return languageSettings.build();
}
Aggregations