null values should be treated as no value

2008-11-13 Thread bivas
Hi, I'm using the Java output feature of protobuf for my app. I found that protobuf doesn't handle null values as well as i would expect it. for example: message MyMessage { required int32 id = 1; optional string code = 2; } in java: MyMessage message = MyMessage.newBuilder().setId(3).se

message collection support

2008-11-16 Thread bivas
I have in mind some missing feature for built-in support for creating collection of a defined message. When defining a message will it be possible to add newCollectionBuilder () method for that created object? The simple solution for defining a collection of defined message is in the proto file:

Re: message collection support

2008-11-16 Thread bivas
use case (written in Java): public class MyService { private final ServiceDAO serviceDAO; // constructor, getters, setters public void handleRequest(InputStream in, OutputStream out) { List results = serviceDAO.findAllCodes(); // create t