Re: [protobuf] Re: FileDescriptorSet mania

2010-07-27 Thread Kenton Varda
On Mon, Jul 26, 2010 at 2:09 PM, yy ftd...@yahoo.com wrote:

   DynamicMessage thisthing= DynamicMessage.parseFrom(
 myDescriptorProto.getDescriptorForType(),  inputM);
 thisthing.writeTo(System.out);


This writes raw binary to System.out.  Use
System.out.print(thisthing.toString()); or something like that.

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



Re: [protobuf] Re: FileDescriptorSet mania

2010-07-20 Thread Kenton Varda
On Tue, Jul 20, 2010 at 1:21 PM, Mark ftd...@yahoo.com wrote:

 Hi,

 Using the latest release of PB, I am able to generate the FileDescriptorSet
 using protoc. my intent is to be able to parse incoming messages using the
 DynamicMessage class.  my understanding is that from the FileDescriptorSet,
 I
 can generate FileDescriptorProto, from which I get FileDescriptor, which I
 use
 with dynamic message. Is that right? Also, do you have any sample code that
 shows how to do this?


Yes, that's correct.  What part isn't working?

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.