[protobuf] Re: Difference between protobuf implementations

2009-11-10 Thread Kenton Varda
On Tue, Nov 10, 2009 at 7:28 AM, rahul prasad wrote: > Hi, > > May i ask whats the difference between these two protobuf implementations? > > com.google.common.io.protocol.ProtoBuf.java > I've never heard of this. Where does it come from? > com.google.protobuf package classes > This is the o

[protobuf] Re: Difference between protobuf implementations

2009-11-10 Thread rahul prasad
So, If I am developing for Android, should I use this protobuf library instead of the standard implementation present at com.google.protobuf? Will I encounter any problems mid way due to this switch? Any feedback would be greatly appreciated. Regards, Rahul On Tue, Nov 10, 2009 at 3:56 PM, Henne

[protobuf] Re: Difference between protobuf implementations

2009-11-10 Thread Kenton Varda
You'd have to ask the Android people, as they are the owners of this alternate implementation. IIRC, they have not released the code generator program to go with it, so you probably won't be able to use it. The official protobuf implementation in "lite mode" should work great on Android -- this i

[protobuf] Re: Difference between protobuf implementations

2009-11-10 Thread rahul prasad
I am in a situation, where the .proto files are not present for the Protocol Buffers used in the application I am working on. Since the .proto files need to be created, I was wondering if the following yellow highlighted numbers should correspond to the same fields they stood for in the actual .pro

[protobuf] Re: Difference between protobuf implementations

2009-11-10 Thread Kenton Varda
Yes, the tag numbers have to be the same. If you have code that was generated from the original .proto file, look inside it for comments that look like proto field definitions -- they should include the tag number. Otherwise you're out of luck. On Tue, Nov 10, 2009 at 4:00 PM, rahul prasad wrot

[protobuf] Re: Difference between protobuf implementations

2009-11-11 Thread rahul prasad
Hi, I am getting errors when trying to "protoc" the .proto file i created. I am trying to import message definition from a different file present in the same directory as the one being compiled with this at the top - package testpackage; import "TestimportProto.proto"; but I still get the follow

[protobuf] Re: Difference between protobuf implementations

2009-11-11 Thread Kenton Varda
"import" looks for the file in the proto_path, not in the same directory as the importing file. On Wed, Nov 11, 2009 at 6:34 AM, rahul prasad wrote: > Hi, > > I am getting errors when trying to "protoc" the .proto file i created. I am > trying to import message definition from a different file p