-
Notifications
You must be signed in to change notification settings - Fork 15.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extension reflection question #33
Comments
FindFieldByName() only works for regular fields. For extensions, you need to call FindExtensionByName(). |
This also doesn't work:
Or did you not mean to use |
Try this:
Note that the extension name must be fully qualified. |
TeBoring
pushed a commit
to TeBoring/protobuf
that referenced
this issue
Jan 19, 2019
Fixed JSON parser error reporting.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have two message types:
I'm trying to use reflection to access
special_thing
by name in C++. First I retrieveparent
and then get the extension message to do reflection on that. I'm having trouble getting the extension from the original message.This works:
This doesn't work:
Why?
The text was updated successfully, but these errors were encountered: