Hi I have the following Proto File (protofilename.proto) import "google/protobuf/descriptor.proto";
package protobufEvaluation; extend google.protobuf.FieldOptions{ optional string myOption = 50000; } message test{ required uint32 time = 1 [(myOption) = "hello"]; } I have successfullt generated the c++ files. my main code is the folowing : #include "protofilename.pb.h" int main(int argc, char *argv[]) { protobufEvaluation::test myTest; mytest.set_time(15); // code to print the option field value return 0; } I want to print the custom option value for the time attribute of the message. what should be the function call? Thanks; -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.