I know how to read an option within Message by using GetExtension on the Message, but can I do that for a global option that is not encapsulated within a message?
So in C++, how would I read the "my_file_name" option from the proto below?
extend google.protobuf.FileOptions {
string my_file_name = 1001;
}
extend google.protobuf.MessageOptions {
optional string my_option = 51234;
}
option (my_file_name) = "filename.txt";
message MyMessage {
option (my_option) = "Hello world!";
}