We have been ignoring the syntax field on the reflected protos, allowing it to default to proto2.
This PR adds a lookup function to get the syntax of a message type, or for a service the syntax of the first request message, and uses that to populate the syntax.
This isn't 100%, and will not be able to resolve the syntax of a service that only has zero-arity functions.
We have been ignoring the
syntax
field on the reflected protos, allowing it to default toproto2
.This PR adds a lookup function to get the syntax of a message type, or for a service the syntax of the first request message, and uses that to populate the syntax.
This isn't 100%, and will not be able to resolve the syntax of a service that only has zero-arity functions.