how to parse FileDescriptorSet with Extensions/Custom Options

27 views
Skip to first unread message

Adam

unread,
Jun 2, 2025, 4:15:24 AM Jun 2
to Protocol Buffers
I am using Google.Protobuf C# library to load proto.pb file (serialized FileDescriptorSet). In this descriptor set there is protobuf which defines extension to google.protobuf.MessageOptions and then there are other protobuf messages that use this custom option.

I am using `FileDescriptorSet.Parser.ParseFrom(fs);` to read proto.pb file but DescriptorProto inside doesnt have custom option, i assume it would be in UninterpretedOption but it is not there.

How should I read this proto.pb file so in message descriptor there is custom option from extension.
Reply all
Reply to author
Forward
0 new messages