[protobuf] Security Layer to make sure proto objects are not tampered when transferred over https

2010-07-21 Thread Prakash Rao
Is there a way to add security layer to protocol buffer if I'm writing my proto objects to https output stream? In java we have sealed objects and we can have signature attached to it to make sure objects are not tampered on the receiving end. Is there something similar in protocol buffer as well?

[protobuf] Re: Security Layer to make sure proto objects are not tampered when transferred over https

2010-07-22 Thread Prakash Rao
/21 Prakash Rao prakashrao1...@gmail.com: Is there a way to add security layer to protocol buffer if I'm writing my proto objects to https output stream? In java we have sealed objects and we can have signature attached to it to make sure objects are not tampered on the receiving end

[protobuf] Re: Security Layer to make sure proto objects are not tampered when transferred over https

2010-07-23 Thread Prakash Rao
LAVERDIÈRE Perseverance must finish its work so that you may be mature and complete, not lacking anything. -James 1:4 mlaverd.theunixplace.com/blog  /\  \ /    ASCII Ribbon Campaign   X      against HTML e-mail  / \ 2010/7/22 Prakash Rao prakashrao1...@gmail.com: Thanks for the response

[protobuf] Re: Security Layer to make sure proto objects are not tampered when transferred over https

2010-07-23 Thread Prakash Rao
Perseverance must finish its work so that you may be mature and complete, not lacking anything. -James 1:4 mlaverd.theunixplace.com/blog  /\  \ /    ASCII Ribbon Campaign   X      against HTML e-mail  / \ 2010/7/22 Prakash Rao prakashrao1...@gmail.com: Thanks for the response... I

[protobuf] Where can I get protocol buffer 2.3.0 jar file?

2010-08-10 Thread Prakash Rao
Hi, I don't see Google providing protocol buffer jar file (for java implementation). I created the jar file from source using mvn. Usually for open source projects there would be src bin and here I see only the source. Is protocol buffer jar file available in some place? I just want to avoid

[protobuf] Ant task to create java stub from .proto files in all platforms

2010-08-10 Thread Prakash Rao
Hi, Is there a way to automate java stub creation from .proto files using ant task in all platforms? And can this be done without using protoc.exe, which is platform specific? I saw the below ant task and it uses protoc.exe, which is only for windows. exec executable=protoc arg

[protobuf] Re: Serializing large arrays in Java

2010-08-11 Thread Prakash Rao
I'm also looking for proper ways to set initial capacity for my repeatable fields (in protobuf java 2.3.0). Is this possible without hacking the generated code? Regards, Prakash On Jul 1, 3:09 am, Josh Hartman atomicfo...@gmail.com wrote: Good catch. This was the problem and the fix results in

[protobuf] Re: Ant task to create java stub from .proto files in all platforms

2010-08-11 Thread Prakash Rao
thanks. This really helps :-) Regards, Prakash On Aug 11, 2:43 am, Kenton Varda ken...@google.com wrote: On Tue, Aug 10, 2010 at 8:34 AM, Prakash Rao prakashrao1...@gmail.comwrote: I saw the below ant task and it uses protoc.exe, which is only for windows. protoc runs on all platforms

[protobuf] How set initial capacity for repeatable fields (proto java 2.3.0)

2010-08-11 Thread Prakash Rao
Hi, I'm trying to find out ways to set initial capacity for my repeatable fields (proto java 2.3.0). I looked at the generated code and it creates an ArrayList but without initial capacity defined. Is there a way to specifiy the initial capacity without hacking the generated code? Regards,

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

2010-08-11 Thread Prakash Rao
Hi, I was just looking at CodedInputStream class and there are APIs to write primitives with or without tag (for example, writeString writeStringNoTag). I thought if we set unique tags for multiple parameters then we would be able to retrieve these parameters using tag numbers specified using

[protobuf] Re: Serializing large arrays in Java

2010-08-11 Thread Prakash Rao
and benchmark the code for using apache primitives to store the repeated primitive fields. I'll try to finish it this week and post it to the mailing list. Thanks, Josh H On Wed, Aug 11, 2010 at 7:40 AM, Prakash Rao prakashrao1...@gmail.comwrote: I'm also looking for proper ways to set

[protobuf] Re: Ant task to create java stub from .proto files in all platforms

2010-08-12 Thread Prakash Rao
Josh Kenton. Regards, Prakash On Aug 11, 2:43 am, Kenton Varda ken...@google.com wrote: On Tue, Aug 10, 2010 at 8:34 AM, Prakash Rao prakashrao1...@gmail.comwrote: I saw the below ant task and it uses protoc.exe, which is only for windows. protoc runs on all platforms, not just windows

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

2010-08-16 Thread Prakash Rao
. However, I would suggest just using a message. You may find that over time those two or three parameters will grow to the point that maintaining this is unwieldy. On Wed, Aug 11, 2010 at 10:55 PM, Prakash Rao prakashrao1...@gmail.comwrote: I don't have .proto message created for these. Most

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

2010-08-18 Thread Prakash Rao
, or you're using the CodedOutputStream to write your own metadata besides the message itself (e.g. delimiters). On Mon, Aug 16, 2010 at 8:02 AM, Prakash Rao prakashrao1...@gmail.comwrote: Hi, I'm new to PB and would like to know whether it is CodedInputStream CodedOutputStream which

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

2010-08-19 Thread Prakash Rao
On Aug 18, 11:59 pm, Jason Hsueh jas...@google.com wrote: On Wed, Aug 18, 2010 at 6:57 AM, Prakash Rao prakashrao1...@gmail.comwrote: Thanks for your response. I wanted to whether it's CodedInputStream CodedOutputStream which does encoding of data in PB?. Yes, these classes handle the PB wire

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

2010-08-19 Thread Prakash Rao
then i assume it's a null response. Thanks for your response. Regards, Prakash On Aug 16, 8:46 pm, Evan Jones ev...@mit.edu wrote: 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

[protobuf] Re: can protocol buffer can be used to send .proto files across machines?

2010-10-18 Thread Prakash Rao
Protocol buffer works on serialization/deserialization and you can write the bytes to any outputstream and read it from any inputstream. If you have two machines have a webserver hosted, you can get a outputstream from http url connection (which is pointing to the destination) in the source

[protobuf] Re: can i use protocol buffer to encrypt and send a file

2010-10-18 Thread Prakash Rao
Protocol buffer is meant only for serialization de-serialization. I believe for file attachment you need to have some other implementation such as web services (SAAJ) or http mime attachment. And as Smith said protocol buffer doesn't provide any built in encryption and if you need one, you need