Hi Joe and others

We are migrating our code base from gogo/protobuf to second version of 
google.golang.org/protobuf.
We are running into several issues because the new structs have some 
internal fields namely:- 
    state         protoimpl.MessageState
    sizeCache     protoimpl.SizeCache
    unknownFields protoimpl.UnknownFields

As a result of these proto.equal doesnt work anymore on these structs and 
we cannot compare maps  and slices.
More importantly we cannot pass these structures as value since it 
complains with below error:- 
 copies lock value: waf_rules.GlobalSpecType contains 
google.golang.org/protobuf/internal/impl.MessageState contains sync.Mutex

Are you aware of any option to disable generating these internal fields for 
the structs or can we change the protoc to not generate these?
Any help would be appreciated. Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/05151caa-8143-4a0e-82a3-af5782525a06n%40googlegroups.com.

Reply via email to