mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-29 18:32:46 +00:00
781d6f396b
This CL adds the following helper options: func FilterEnum(protoreflect.Enum, cmp.Option) cmp.Option func FilterMessage(proto.Message, cmp.Option) cmp.Option func FilterField(proto.Message, protoreflect.Name, cmp.Option) cmp.Option func FilterOneof(proto.Message, protoreflect.Name, cmp.Option) cmp.Option func FilterDescriptor(protoreflect.Descriptor, cmp.Option) cmp.Option There is primarily exposing pre-existing functionality that the Ignore options were already depending on to operate. Change-Id: I44edf2ffa07de980a9ad3284525bfe3b45428d74 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/207177 Reviewed-by: Damien Neil <dneil@google.com>