use of com.google.api.codegen.configgen.viewmodel.LanguageSettingView 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