[protobuf] Custom (overriden) getters & setters

2015-07-13 Thread Pavol Ostertag
Is it possible to generate custom getters and setters for certain field? Are there any field-level "insertion points" planned? My use-case: I have field with option=encrypted. I want to encrypt content of this (string) field after everyset() and decrypt before every get(). Thank you -- You re

Re: [protobuf] Custom (overriden) getters & setters

2015-07-13 Thread Pavol Ostertag
not be one) you can get always string value (as it is defined) which is transparently encoded (as the value of the option dictates). 2015-07-13 19:43 GMT+02:00 Feng Xiao : > On Mon, Jul 13, 2015 at 9:47 AM, Pavol Ostertag > wrote: > >> Is it possible to generate custom getters

Re: [protobuf] Custom (overriden) getters & setters

2015-09-24 Thread Pavol Ostertag
I see insertion points inside getters and setters in new protobufs. Thank you, this is exactly what I needed. 2015-07-13 19:50 GMT+02:00 Pavol Ostertag : > Thank you. However, your proposed solution uncovers otherwise transparent > behavior of the field. It puts a responsibility of encr