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

2010-08-11 Thread Jason Hsueh
Suppose those strings are all defined as optional fields in the message. They may not be present in the serialization, so the decoder needs to read a tag to determine the field number and type before handling the value. On Wed, Aug 11, 2010 at 8:37 AM, Prakash Rao wrote: > Hi, > I was just lookin

[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 Cod