I would guess that the advice in the tutorial is there to steer you
away from mixing up data transfer objects/holders with behaviour, that
is generally speaking a quite crap idea.
An over reliance on get/set methods are often sure signs of weak
behaviors and procedural code, not that Im in any way implying this in
this particular instance, it's just something to look out for.
But are you really sure that you want to expose the full API for a
message in your own class? does it make sense? is giving clients such
a big surface area really a good idea, what if clients of your class
start relying on implementation details of your choosen serialization
mechanism (in this case PB's) and that implementation change, do you
really want to go down that path?
On 15 Juli, 17:35, "Alkis Evlogimenos ('Αλκης Ευλογημένος)"