Hello,
in the end I managed to fix this issue using CopyFrom(fds), where fds is an
instnce of google.protobuf.descriptor_pb2.FileDescriptorSet, rather than
file.append function as show in my original code.
So in the code above we would call
Thanks a lot.
I change this line to
DynamicMessage
dm=DynamicMessage.parseFrom(fileDescr.getMessageTypes().get(0),
input);
look like it is works.
Sergey N Lukin
On Jun 24, 7:59 pm, Jason Hsueh jas...@google.com wrote:
What are you still missing? The code you've written ought to work after
What are you still missing? The code you've written ought to work after
changing to pass the correct FileDescriptor object to DynamicMessage.
On Fri, Jun 24, 2011 at 12:27 AM, slookin sloo...@gmail.com wrote:
Yes, in generally it is not Self Describing, but couldn't implement
real self
Thanks Jason,
It is all my code (link to real java class -
http://test.look-in.net/pf/pf.zip.
Could you give me links with examples or explain why i should
serializes the FileDescriptorSet?
On Jun 22, 8:35 pm, Jason Hsueh jas...@google.com wrote:
On Wed, Jun 22, 2011 at 3:30 AM, slookin
Oh, I missed that you were reading the FileDescriptorSet from a separate
file, not the same stream. This isn't exactly self describing since when
you transmit the message you assume the recipient knows what type the
message is, and has access to the FileDescriptorSet. See
On Mon, Jul 26, 2010 at 7:54 AM, David dudeh...@yahoo.com wrote:
I don't want to send the whole enchilada on the wire - just the
descriptor for the message being sent.
The whole enchilada is needed if your message refers to any other message
types. If not, you can just build a dummy
I don't want to send the whole enchilada on the wire - just the
descriptor for the message being sent.
As I showed above, I know how to get the descriptor on the wire, but
the other side (getting the descriptor off the wire and parsing the
message using it) is unclear to me.
On Jul 24, 2:29 pm,
I don't want to send the whole enchilada on the wire - just the
descriptor for the message being sent.
As I showed above, I know how to get the descriptor on the wire, but
the other side (getting the descriptor off the wire and parsing the
message using it) is unclear to me.
You'll need to