-
Notifications
You must be signed in to change notification settings - Fork 1.6k
types/known: functions for working with FieldMask #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not certain what precisely you include when you say "functions to manipulate field masks", but it would be nice to have the functionality available in Java for merging based on field masks available in Go: |
Yup! That's what we're talking about. 😃 |
Wouldn't it be possible to change the regen.sh script to build the field_mask.proto, without having the methods to manipulate it ? |
Any update on this mr @zombiezen ? |
We're in the process of making large-scale improvements to Go protobufs. For now, I think we should hold off on additional API for this. I recognize that this is a painpoint for some people, but there's nothing preventing someone from writing a 3rd-party package to wrap this behavior. |
I should also note that field mask currently lives outside this repo: https://godoc.org/google.golang.org/genproto/protobuf/field_mask We probably want to resolve #218 first. |
Any update on this? Do we have any recommended util/library method for Go? |
@anand-mundada it's not an official library, but I have successfully been using https://github.com/mennanov/fieldmask-utils until there is an official library. |
Fixed by https://golang.org/cl/225298. It will be available in the next release of the |
I should note that there isn't any functionality for using a |
ptypes has convenience functions for most of the well-known types (WKT), except for FieldMask. This issue tracks adding functions to manipulate field masks.
The text was updated successfully, but these errors were encountered: