ParseFromIStream is not a generated method, so you wouldn't expect to see 
it in protoc output.

ParseFromIStream is a member of the base class Message:
https://github.com/google/protobuf/blob/master/src/google/protobuf/message.h#L287

Do your generated classes inherit from Message or MessageLite?

If your generated classes are inheriting from MessageLite even when you use 
"optimize_for = SPEED", make sure you are not passing "lite" to protoc. 
This is an option that will override the "optimize_for" option in your 
.proto file:
https://github.com/google/protobuf/blob/9021f623e1420f513268a01a5ad43a23618a84ba/src/google/protobuf/compiler/cpp/cpp_generator.cc#L100

On Monday, January 8, 2018 at 3:29:37 AM UTC-8, e...@falcore.co wrote:
>
> Hello,
>
> We are trying to compile a simple file with one message and all we are 
> getting is (probably) the message-lite .h and .cc files and not the message 
> files (we are not getting the parse methods like parseFromiStream and so 
> on...
>
> we have tried everything, version 2.6, 2.6.1, newest (3.5.1) and got the 
> same result...
>
> *.proto file:*
>
> syntax = "proto2";
>
> package version_merge;
>
> option optimize_for = SPEED;
>
> message Version_file {
>   required bytes v2_0 = 1;
>   required bytes v2_1 = 2;
> }
>
> Tried with and with out the *option optimize_for = SPEED;* line.
>  
> again, we are getting the correct files with most of the methods (the 
> light methods from what we understand from the google protobuf docs) files 
> but missing the extra parsing files.
>
> 10x.
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to