You will get an error:
--fieldmask_out: t.pb.fieldmask.go: unparsable Go source: 41:64: expected selector or type assertion, found 'type' (and 4 more errors)
So the problem is that if you use as a field name reserved word in Goland - it will be an error.
For example if you will try to generate field mask from such proto file:
You will get an error: --fieldmask_out: t.pb.fieldmask.go: unparsable Go source: 41:64: expected selector or type assertion, found 'type' (and 4 more errors)
So the problem is that if you use as a field name reserved word in Goland - it will be an error.