diff --git a/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java b/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java index 2b58e07f51e..c16246a70e9 100644 --- a/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java +++ b/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java @@ -240,6 +240,8 @@ private static Map parseMessages( } } String pakkage = TypeParser.getPackage(messageDescriptor.getFile()); + List fieldNames = + messageDescriptor.getFields().stream().map(f -> f.getName()).collect(Collectors.toList()); messages.put( messageName, Message.builder()