test `x-goog-request-params` over REST
If the new annotation google.api.routing (AIP 4222) is used (example), then I believe we need to include x-goog-request-params, with a value as specified in that annotation, over REST.
If no
UPDATE (2022-10-07): An internal discussion clarified we need to include google.api.routing are presented, then it sounds like we could omit x-goog-request-params because the information would duplicate the URL.x-goog-request-params no matter what, even in the REST case.
I'm not sure yet whether the Google use cases make this a P1. More discussion in the internal email thread.
This issue is split off from #1444, which now focuses on the gRPC use case (though that fix will also be relevant to the implementation here).
We may have the option to use numeric values for the enums. In that case, do we only do it if the numeric enums setting is on? Otherwise, consistent with #1444, we should use the appropriately qualified (fully- or non-) enum value name.
Note that for Compute, we can't use the synthetic numeric values, since the server does not recognize them. The fully qualified value might be confusing to the server. I would guess the non-qualified enum values ought to work.... That said, we don't have a case yet where there's an enum in an http annotation in Compute
An internal email discussion clarified that we still need to include x-goog-request-params no matter what, even when google.api.routing is absent.