[protobuf] Type of fieds

2010-08-16 Thread Peng
When we define the type of a filed, it could be "Scalar Value Types", Enumerations, and other Message. Does it support other java type, e.g. java.util.HashMap? Thanks. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group,

[protobuf] Re: How to retrieve parameters using tag numbers using CodedInputStream

2010-08-16 Thread Prakash Rao
Thanks for your response. I had one more question. Is it possible to write a null value to output stream? I'm writing a client/server application and using PB as layer to transfer data. In certain cases response would be null if required data is not there in my DB. For null responses, i don't want

[protobuf] Encoding/Decoding of data - Question on CodedInputStream & CodedOutputStream

2010-08-16 Thread Prakash Rao
Hi, I'm new to PB and would like to know whether it is CodedInputStream & CodedOutputStream which takes care of encoding data while writing into streams. In few APIs I'm directly using InputStream & OutputStream taken from HTTP URL connection class and I would like to know if the data will be encod

Re: [protobuf] Re: How to retrieve parameters using tag numbers using CodedInputStream

2010-08-16 Thread Evan Jones
On Aug 16, 2010, at 10:56 , Prakash Rao wrote: I'm just looking for a easy way to write null response if data is not present in DB and write proto message object if data is present & parse these in client side appropriately. I didn't get a easy way to do this using CodedInputStream. Currently i'm

[protobuf] static linking archive of protoc generated *.pb.cc.o files omits some static initializers

2010-08-16 Thread Doug Coburn
Here is a minimal reproduction of my issue: ### # Compiler Version ## g++ --version g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for

[protobuf] What's the right way to bundle Google's code in my project?

2010-08-16 Thread Eugene Vigdorchik
Hi, I have a project that augments java output with Scala builder objects. The code I have provides a (C++) CodeGenerator and registers it along with others present by default. My question is: may I insert Google's code in my project and if yes what modifications if any should be made? Thank you i

Re: [protobuf] Encoding/Decoding of data - Question on CodedInputStream & CodedOutputStream

2010-08-16 Thread Daniel Wright
I'm not completely sure I understand your question, but if you're asking about the difference between writeTo(OutputStream) and writeTo(CodedOutputStream), they're the same -- writeTo(OutputStream) just wraps the OutputStream in a CodedOutputStream and writes to that. Here's the code: public vo

[protobuf] Re: iSeries port

2010-08-16 Thread ury
Hi, I got the thing to compile and link on the iSeries. When I run the add_person C++ example, I get libprotobuf ERROR /testc/protobuf/build/./src/google/protobuf/ desc_datab.C:314] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add(). libprotobuf FATAL /testc/protobuf/build/

[protobuf] Re: iSeries port

2010-08-16 Thread ury
Hi, It was EBCDIC vs. ASCII issues. If anyone is interested in iSeries/zSeries porting issues, or protobuf on EBCDIC, I'll be glad to help Thanks On Aug 16, 2:18 pm, ury wrote: > Hi, > > I got the thing to compile and link on the iSeries. When I run the > add_person  C++ example, I get > > li