Closed SheepQi closed 5 years ago
When I defining a message like this:
import "google/protobuf/descriptor.proto"; extend google.protobuf.MessageOptions { optional string my_option = 51234; } message MyMessage { option (my_option) = "Hello world!"; }
I have no way to get my_option's value. Thank you!
you should load descriptor.proto from Google and decode your pb file as google.protobuf.DescriptorFileSet and get options.
descriptor.proto
google.protobuf.DescriptorFileSet
When I defining a message like this:
I have no way to get my_option's value. Thank you!