Re: [protobuf] Re: Inserting values by tag numbers

2011-07-12 Thread Pherl Liu
You can use message.getDescriptor().findFieldByNumber() to get the FieldDescriptor. Then use the reflection interface: Builder#setField() Take a look at http://code.google.com/p/protobuf/source/browse/trunk/java/src/main/java/com/google/protobuf/Message.java On Fri, Jul 8, 2011 at 11:56 PM, SM w

[protobuf] Re: Inserting values by tag numbers

2011-07-08 Thread SM
Hi, I'm using java I found the corresponding methods in java. Thanks for the quick response. On Jul 8, 3:08 am, Pherl Liu wrote: > Which language are you using? In c++, you can call > message::GetDescriptor()->FindFieldByNumber() to get a FieldDescriptor; then > call GetReflection()->Set* funct