Re: [protobuf] does java api have something like DescriptorPool

2009-12-10 Thread Romain François
On 12/09/2009 09:00 PM, Kenton Varda wrote: Actually I don't think we need DescriptorPool in Java. DescriptorPool was primarily written for the purpose of memory management, but Java handles that for us. If all you need is the mapping aspect, just build a MapString, ServiceDescriptor

Re: [protobuf] does java api have something like DescriptorPool

2009-12-10 Thread Kenton Varda
Is this for the RPC system? I think you're making this a lot harder than it needs to be. On the server side, when someone wants to export a service, they will construct a service implementation and pass it to your system. The com.google.protobuf.Service interface has methods getDescriptor(),

Re: [protobuf] does java api have something like DescriptorPool

2009-12-10 Thread Romain François
On 12/10/2009 10:13 AM, Kenton Varda wrote: Is this for the RPC system? yes I think you're making this a lot harder than it needs to be. ah. On the server side, when someone wants to export a service, they will construct a service implementation and pass it to your system. The

[protobuf] does java api have something like DescriptorPool

2009-12-09 Thread Romain François
Hello, Given a service/method full name, I'd like to get hold of the ServiceDescriptor, or MethodDescriptor. In C++ I would use the DescriptorPool, but I don't see this in the java api. Is there a way ? Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30

Re: [protobuf] does java api have something like DescriptorPool

2009-12-09 Thread Jason Hsueh
No, there isn't an equivalent to the DescriptorPool in Java. If you know the types that you want you can build a mapping yourself. Or if you'd be interested in porting the C++ DescriptorPool to java that would be great! 2009/12/9 Romain François francoisrom...@free.fr Hello, Given a

Re: [protobuf] does java api have something like DescriptorPool

2009-12-09 Thread Kenton Varda
Actually I don't think we need DescriptorPool in Java. DescriptorPool was primarily written for the purpose of memory management, but Java handles that for us. If all you need is the mapping aspect, just build a MapString, ServiceDescriptor yourself and use it. True, in C++ there is the global