Open jfuehner opened 4 years ago
Protobuf protocol is strong typed so I do not think this can be made to work. I think usual approaches are to either implement "union" type by having multiple optional fields with different types, or, serializing actual value as Blob of nominal type byte[]
(binary field in protobuf).
@cowtowncoder could the Any pack/unpack methods be used?
https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/Any
@jfuehner That is functionality provided by some other library. Jackson protobuf implementation does not use that library. I have no idea what that does internally.
Hi! I have the below generic object that I use as a wrapper around other objects when sending a response.
When I try to generate a byte buffer from the
Response
object with the below code I receive the error, 'Any' type not supported as a type by protobufAre generics not supported? Would there be an alternative to this generics approach?