No one else has experienced this? On Thursday, February 18, 2021 at 6:32:10 PM UTC-6 Andre wrote:
> Hello all, > > In our Android code, we have the following: > > ``` > val protobufMessage: com.google.protobuf.Message? = protobufsMessageData. > protobufGeneratedMessage > datastreamObject = > protobufMessage.getParserForType().parseFrom(inputStream) > ``` > > We're creating the equivalent app in iOS, and we're wondering if GPB for > iOS has the `getParserForType` function? > > Currently, we only see `GPBMessage.parse(from: Data)` > This successfully parses, but it creates a GPBMessage type which we're > then NOT able to cast to the object type of our messages. > > Is this not possible in iOS protobufs? > > We're using the `Protobuf` cocoapod for this app, which is linked to by > the Google Protobuf GitHub repo. > > Please help. > > Cheers, > Andre > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/e60b0c83-ad09-4f24-8813-4e0ddac7e448n%40googlegroups.com.
