Hi All.

Is there a way to set a file descriptor name for dependencies? I have
a base proto A with an A.proto file containing the message structure
and an A.desc file containing the description. If proto A references
proto X and Y, I need to get the full proto X and Y names and then
change their extension from .proto to .desc to add their descriptors
to the set.

I think I am getting close, but cannot quite figure it out:

for (FileDescriptorProto fdp: fileDescSet.getFileList()) {
                         //HERE I NEED TO SOMEHOW GET EACH DEPENDENCY
PROTO NAME(S) AND CHANGE THE                    EXTENSION(S)
FROM .proto TO .desc
                        FileDescriptor fd = FileDescriptor.buildFrom(fdp,
                       new FileDescriptor[]{});

                    for (Descriptor descriptor : fd.getMessageTypes()) {
                    ...
                    }
}

Thanks in advance,
Dale

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to