Closed glerchundi closed 5 years ago
Sure that seems reasonable, I guess it would have to be a runtime parameter?
On another note, it seems the official advice for disallowing updates is to mark the field "Output only" in a comment. This is not enforced in code, of course.
Sure that seems reasonable, I guess it would have to be a runtime parameter?
If you don't mind I prefer to avoid the generated code.
On another note, it seems the official advice for disallowing updates is to mark the field "Output only" in a comment. This is not enforced in code, of course.
Yeah, but we found some (very) rare cases where fields that aren't going to be outputted but can be updated. For example an Account where the password is never printed to the outside but is considered as updateable.
Thanks anyway!
I would like to get rid of this fieldmask related thingy on generated code because we're already generating this on another step.
Would you be open to opt-out this by hinting the generator so that it can exclude that piece from generated code?
WDYT?
/cc @razamiDev @johanbrandhorst
In case you were interested we're generating a metadata code based on proto extensions that define which field is 'updateable' and which isn't (by default it's updateable).
This would generate: