I have a proto with the following definitions.

import "google/protobuf/descriptor.proto"; 

extend google.protobuf.FieldOptions{ 
  optional bool is_key = 50002; 
}

message Foo{ 
  int64 id = 1 [(is_key) = true];
 }

I generated a .desc file for the above. I was able to access all the Fields 
and Message defined by the FieldDescriptorProto and DescriptorProto types 
but not sure how to access the options defined and the value provided to it 
in this case is_key.

is there a java version that could access the field options from the .desc 
file

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/83829c35-3da5-490e-b1bb-3ec5917d7d61n%40googlegroups.com.

Reply via email to