The protocol buffer documentation warns that ...
You should never add behavior to generated classes, inheriting from them. This will disrupt internal mechanisms and not help object-oriented practice.
Source: Protocol Buffer Basics
My second part of the question:
- What internal mechanisms can be broken?
- How is this not good, good OO practice anyway?
source share