In the Google proto3 examples they show both global and nested custom options, including:
extend google.protobuf.FileOptions {
string my_file_option = 1001;
}
option (my_file_option) = "hello file!";
and
extend google.protobuf.MessageOptions {
optional string my_option = 51234;
}
message MyMessage {
option (my_option) = "Hello world!";
}
The example code for C++ shows how to read the MyMessage.my_option field using GetExtension on the Message object, but not how to read the global option "my_file_option".
So in C++, how would I read the contents of "my_file_option"?