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

2010-08-19 Thread Prakash Rao
I'm not using plain java serialization. I'm using protomessage object and I'm directly reading/writing from/to inputstream/outputstream that i got from httpurlconnection. I want to know whether my data will be encoded as i'm using inputstream & outputstream without wrapping it in codedinputstream &

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

2010-08-19 Thread Prakash Rao
I tried YourProtocolMessage.getDefaultInstance() and as you said it is of zero byte size. I've a required field called ID with default cluase in pnroto file (with default value set to -1). When i send the default instance, I see ID set to -1 (which is default value specified in proto file) but on t

[scala] [protobuf] [ANN] scala protobuf builder 0.1

2010-08-19 Thread Eugene Vigdorchik
Hi all, I'm pleased to announce the birth of scala-protobuf project. You can find the sources at http://code.google.com/p/protobuf-scala . The goal of the project is allowing easy construction of Google protobuf (http://code.google.com/p/protobuf/) messages from Scala. Unlike conventional protobuf

[protobuf] Issue 212 in protobuf: ./configure does not work on osx 10.6.4

2010-08-19 Thread protobuf
Status: New Owner: ken...@google.com Labels: Type-Defect Priority-Medium New issue 212 by sndive: ./configure does not work on osx 10.6.4 http://code.google.com/p/protobuf/issues/detail?id=212 What steps will reproduce the problem? 1.svn checkout http://protobuf.googlecode.com/svn/trunk/ protobu

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

2010-08-19 Thread Jason Hsueh
Yes, it gets encoded in the PB wire format. See Daniel's earlier message: writeTo(OutputStream os) wraps the stream in a CodedOutputStream for you. On Thu, Aug 19, 2010 at 2:43 AM, Prakash Rao wrote: > I'm not using plain java serialization. I'm using protomessage object > and I'm directly readin

[protobuf] Performance of java proto buffers

2010-08-19 Thread achintms
I have an application that is reading data from disk and is using proto buffers to create java objects. When doing performance analysis I was surprised to find out that most of the time was spent in and around proto buffers and not reading data from disk. On profiling further (using yourkit) I fou

[protobuf] Re: Issue 212 in protobuf: ./configure does not work on osx 10.6.4

2010-08-19 Thread protobuf
Updates: Status: CannotReproduce Comment #1 on issue 212 by ken...@google.com: ./configure does not work on osx 10.6.4 http://code.google.com/p/protobuf/issues/detail?id=212 You left a step out of your repro: 2.5. ./autogen.sh This step invokes autoreconf, which in turn invokes lib

[protobuf] Re: iSeries port

2010-08-19 Thread ury
Hi, Here is a little info on how to compile libprotobuf on iSeries (as/ 400). (But not on how to build protoc) Before you even start, consider compiling your entire program on AIX and using PASE "emulation" to run it. I list below the files that are needed to compose the equivalent of "libprotob

[protobuf] How to set a user defined data within a message

2010-08-19 Thread Julian González
I have the following: message Configuration { required LogInfo logInfo = 1; required ApmCfg apmCfg = 2; repeated Rail rail = 3; required TriggerInfo triggerInfo = 4; } I have an object of type Configuration, but I do not see any setter for logInfo, apmCfg or trigge

Re: [protobuf] How to set a user defined data within a message

2010-08-19 Thread Henner Zeller
2010/8/19 Julian González : > I have the following: > > message Configuration > { >        required LogInfo logInfo = 1; >        required ApmCfg apmCfg = 2; >        repeated Rail rail = 3; >        required TriggerInfo triggerInfo = 4; > } > > I have an object of type Configuration, but I do not

[protobuf] Re: How to set a user defined data within a message

2010-08-19 Thread Julian González
Yeah you were right I am using C++ and the mutable functions work perfectly for what I want. Thanks a lot On Aug 19, 5:17 pm, Henner Zeller wrote: > 2010/8/19 Julian González : > > > I have the following: > > > message Configuration > > { > >        required LogInfo logInfo = 1; > >        requir