gax-java icon indicating copy to clipboard operation
gax-java copied to clipboard

putQueryParam should handle special serializable types

Open diegomarquezp opened this issue 3 years ago • 1 comments

putQueryParam should handle object types that are serializable, such as FieldMask, by using proper serialization rather than String.valueOf() which would produce an unprocessable url format (i.e. toJson()).

A valid query param can be a primitive OR an instance of Duration, Timestamp, FieldMask or *Value wrapper classes (like Int32Value). Specific details of serialization for each type are in the protobuf language guide

diegomarquezp avatar Aug 30 '22 17:08 diegomarquezp

The original issue was reported in https://github.com/googleapis/gapic-generator-java/issues/1016#issuecomment-1227785726

blakeli0 avatar Aug 30 '22 19:08 blakeli0