Skip generating REST methods if the RPC does not have HTTP annotation. #1117
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
We should not generate REST methods if the RPC does not have HTTP annotation. See this proto and the proto that has it.
In this case, we are already not generating REST methods because it's BIDI streaming, but we need to use the HTTP annotation as the filter instead of using RPC type.
In addition, we should not generating the client at all if there are no RPCs with HTTP annotation. See go/actools-diregapic-parallelization-sync for details.
There could be multiple reasons an RPC does not have HTTP annotation:
The text was updated successfully, but these errors were encountered: