message->GetReflection()->MutableUnknownFields() should get you
a UnknownFieldSet. I believe you can manipulate that.
https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.unknown_field_set#UnknownFieldSet.


On Fri, Feb 7, 2014 at 2:52 AM, Gregory Hlavac <[email protected]> wrote:

> I'm rewriting a JSON <-> Protobuf bridge and I want to allow it to handle
> unknown fields in the JSON but for the life of me I can't figure out how to
> set unknown fields with C++.
>
>
> Another thing I've noticed is
>
> string *
> *mutable_length_delimited*()
> Is that an unknown string field? Because its named oddly.
>
> --
> 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/groups/opt_out.
>

-- 
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/groups/opt_out.

Reply via email to