What protobuf library are you using?  https://github.com/google/protobuf/ 
doesn't have a builder patter, so I'm not sure how this code snippet maps 
the the library.

TVL


On Thursday, September 22, 2016 at 2:32:50 PM UTC-4, Mahesh S wrote:
>
> I’m using the protobuf in objective c. But I’m getting the below 
> exception. Please check the error  and help me how to resolve this. 
>
>  
>
> Terminating app due to uncaught exception 'NSInvalidArgumentException', 
> reason: '-[PeoplePairBuilder serializedSize]: unrecognized selector sent to 
> instance 0x7fea2961a2f0'
>
>  
>
>  
>
> MuxRequestBuilder *muxRequestBuilder = [MuxRequest builder];
>
>  PeoplePairBuilder *eyePairRequestBuilder = [PeopleBuilder builder];
>
>   ImageBuilder *imageRequestBuilder = [Image builder];
>
>   [muxRequestBuilder setUid:@"12234"];
>
>   [muxRequestBuilder setSessionId:@"WERWE234234234"];
>
>  
>
>   for (int i = 0; i < 5; i++) {
>
>     UIImage *image = [UIImage imageNamed:@"Mushroom2.PNG"];
>
>     NSData *imageData = UIImagePNGRepresentation(image);
>
>  
>
>     [muxRequestBuilder
>
>         addEyes:[[peoplePairRequestBuilder
>
>                     setProfileImage:[imageRequestBuilder setData
> :imageData]]
>
>                     setSequence:1]];
>
> }
>
>  
>
>  MuxRequest *muxRequest = [muxRequestBuilder build];
>
>   NSError *error;
>
>   NSData *jsonJobData = [muxRequest data]; //Here I’m getting error 
>
>  
>
>  
>
>
>

-- 
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