On Tuesday, 8 June 2021 22:15:36 CEST, Derek Perez wrote:
> well known types are not extendable in this way, currently.
>
> By their nature, they are not designed to support custom types as they
> wouldn't exactly be well known by our definition of well known (meaning,
> known to all).
Hello,
I am well aware of that fact!
My idea was "If it is possible to do that with Google's well-known types,
surely I can use the same method to have a better API for our internal
types".
However, it appears that the enhanced support for well-known types is
hardcoded into the library. Would the right path here be to write a
compiler plugin, to adjust the generated code in a similar manner?
--
Raphaël Barrois
>
> On Tue, Jun 8, 2021 at 12:35 PM Raphaël Barrois <
raphael...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I am currently looking at ways of extending the generated
>> code, in order to
>> add some helpers for some messages which map to standard types in our
>> codebase (think UUID, IPv6 — akin to the extended features awarded to the
>> well-known types). ...
>
>