[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

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] 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

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

[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

[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 ury.se...@gmail.com wrote: Hi, I got the thing to compile and link on the iSeries. When I run the add_person  C++