Can I validate serialized message against a Descriptor?

For example I have :

google::protobuf::Descriptor* _msgDesc;

I initialized _msgDesc according to info I got from .proto.
Then I have done:

Message* _msg = _factory.GetPrototype(_msgDesc)->New();

And now I call:

mutable_msg->ParseFromString(*serializedmsg);

Will this show me if serialized message is matching _msgDesc?

Regards,
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to