The file I have is:

test.proto

syntax = "proto3"
import "google/protobuf/descriptor.proto"
extend google.protobuf.FileOptions{
    string myOption = 50000;
}
option (myOption) = "foo";

I create a descriptor file by using: protoc --include_imports 
--descriptor_set_out="test.desc" test.proto

I then get the FileDescriptor from test.desc and do 
System.out.println(FileDescriptor.getOptions()). It prints out 50000: "foo" 
but I don't know how to get that in a string or something that I can work 
with.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/04cb2072-ce76-450e-a9fc-601de703b683n%40googlegroups.com.

Reply via email to