[protobuf] Language Guide / Options / Custom Options - example typo ?

2012-08-22 Thread mike
Looks like the example shown in the guide has a typo: // usage: message Bar { optional int32 a = 1 [(foo_options.opt1) = 123, (foo_options.opt2) = baz]; // alternative aggregate syntax (uses TextFormat): optional int32 b = 2 [(foo_options) = { opt1: 123 opt2: baz }]; } generates the error

[protobuf] Merging a DynamicMessage into a GeneratedMessage

2012-08-22 Thread Kiran Karra
Hi, I am trying to build a generic deserializer in Java. We have defined several GPB messages, and the receiver is receiving them, not knowing what kind of message it is. I take the serialized bytes and use DynamicMessage.parseFrom(descriptor, bytes) (I have the descriptor). I then take

[protobuf] ShutdownProtobuffLibrary in a shared library.

2012-08-22 Thread Oscar Pernas Plaza
Hi all, Im using protocol buffers 2.4.1 over windows xp and visual studio 2008. My architecture is a process that loads a shared library (dedicated to communications). In this shared library we fill a protocol buffer that is read or write in the external process (outside the dll). Where I have

[protobuf] Get line and column number of parsed protocol buffer text format message

2012-08-22 Thread lolle
Hi I am using the protocol buffer text format. I need information about the line and column number of a message that was already parsed. For example, I have a protocol buffer message definition in the .proto file: code package ExamplePackage; message ExampleMessage { required string first =

[protobuf] Re: building libprotobuf-lite for iPhone

2012-08-22 Thread Stefan Misslinger
Here's my version, using iOS SDK 5.1: export ARCH=arm-apple-darwin10 export ARCH_PREFIX=$ARCH- export PLATFORM=iPhoneOS export SDKVER=5.1 export DEVROOT=/Applications/Xcode.app/Contents/Developer/Platforms/${PLATFORM}.platform/Developer export SDKROOT=$DEVROOT/SDKs/${PLATFORM}$SDKVER.sdk

Re: [protobuf] Languages inter-operability

2012-08-22 Thread Jason Hsueh
Yes, that is one of the primary motivations for protocol buffers. On Tue, Aug 21, 2012 at 2:45 PM, marcelot mato...@gmail.com wrote: Dear All, I just read about Protocol Buffers as an option for serializing and de-serializing objects in C++ and Python. I am wondering if I could serialize