You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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.
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:
The text was updated successfully, but these errors were encountered: