You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to parse the message properly I had to muck with the compiler to make all of the extensionRegistry variables public and then do:
let response = Response.parseFromNSData(data!, extensionRegistry: ResponseRegistryRoot.sharedInstance.extensionRegistry)
i think the issue is that the extensionRegistry gets instantiated for each root object, so the extensionRegistry attached to Response doesn't have any knowledge of the extensions added within response_registry.proto file.
is there something I'm missing?
it seems like either the extensionRegistry should be public and you should be able to parse with whatever extensionRegistry you want, or you have a single extensionRegistry instance so you don't have this issue.
I saw there was a //TODO marked above extensionRegistry, so not sure if this is just something you haven't gotten to yet.
The text was updated successfully, but these errors were encountered:
i have something like the following proto structure:
in another file i register these extensions:
to parse the message properly I had to muck with the compiler to make all of the
extensionRegistry
variables public and then do:i think the issue is that the extensionRegistry gets instantiated for each root object, so the extensionRegistry attached to
Response
doesn't have any knowledge of the extensions added withinresponse_registry.proto
file.is there something I'm missing?
it seems like either the
extensionRegistry
should be public and you should be able to parse with whatever extensionRegistry you want, or you have a single extensionRegistry instance so you don't have this issue.I saw there was a //TODO marked above extensionRegistry, so not sure if this is just something you haven't gotten to yet.
The text was updated successfully, but these errors were encountered: