Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,11 @@ static List<Method> parseMethods(
}
}

Message inputMessage = messageTypes.get(inputType.reference().name());
Preconditions.checkNotNull(
inputMessage, String.format("No message found for %s", inputType.reference().name()));
Optional<List<String>> httpBindingsOpt =
HttpRuleParser.parseHttpBindings(
protoMethod, messageTypes.get(inputType.reference().name()), messageTypes);
HttpRuleParser.parseHttpBindings(protoMethod, inputMessage, messageTypes);
List<String> httpBindings =
httpBindingsOpt.isPresent() ? httpBindingsOpt.get() : Collections.emptyList();

Expand All @@ -377,8 +379,7 @@ static List<Method> parseMethods(
.setIsPaged(parseIsPaged(protoMethod, messageTypes))
.build());

// Any input type that has a resource reference will need a resource name helper class.
Message inputMessage = messageTypes.get(inputType.reference().name());
// Any input type that has a resource reference will need a resource name helper calss.
for (Field field : inputMessage.fields()) {
if (field.hasResourceReference()) {
String resourceTypeString = field.resourceReference().resourceTypeString();
Expand Down