i do like following, and id does success;
List<FieldDescriptor> fieldlist =
> dynamicmsg.getDescriptorForType().getFields();
> Protocal.Builder buildermsg = Protocal.newBuilder();
> for(FieldDescriptor fieldDp : fieldlist){
> buildermsg.setField(fieldDp, dynamicmsg .getField(fieldDp));
> }
> Protocal head = buildermsg.build();
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/protobuf/-/tIhWP_d4DiMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.