Ultimately, a schema will be translated to the protobuf that is currently
under design discussion, so Java-specific things like using inheritance to
store extra data on a class are not good patterns here.

However, coders are designed to be extensible, including having customized
portable representations. And every PCollection has a coder, so it seems
like ProtoCoder would be a possible place to put this.

Just high level thoughts. I don't really know exactly what your needs are
at the code level, here.

Kenn

*From: *Alex Van Boxel <[email protected]>
*Date: *Tue, May 14, 2019 at 9:00 AM
*To: *ML Beam/Dev

Hi Schema lovers,
>
> I'm implementing schema support for Protobuf and I was wondering if it's
> allowed to override Schema. It looks tempting (as it's not final), as I
> need a container for the Proto Descriptor.
>
> For normal pre-compiled classes it's not required, but for DynamicMessage
> it is. If I would be able to store it in Schema I can reuse it in
> to/fromRow.
>
> Thoughts?
>
>  _/
> _/ Alex Van Boxel
>

Reply via email to