Encode any Enums in Routing Header as an Int #1966
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
See go/clientlibs-routine-headers-numeric-enums for more information.
Enums in every implicit/ explicit routing header should be encoded as an Int.
The Routing Headers seem to be encoded here via a ParamsExtractor.
Example:
sdk-platform-java/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java
Lines 850 to 855 in 44701e8
This should be modified to get the Int value instead.
Generator changes:
Affect the
AbstractTransportServiceStubClassComposer
. Specifically around:sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposer.java
Lines 1252 to 1258 in 44701e8
Both methods should be modified so that the changes are applied for both implicit and explicit routing headers.
The text was updated successfully, but these errors were encountered: