Thanks for the solution. Extensions seems good for our usecase.

On Thursday, 8 January 2015 19:07:07 UTC, Henner Zeller wrote:
>
> On 5 January 2015 at 05:09, ravi kiran tunuguntla <ravio...@gmail.com 
> <javascript:>> wrote: 
> > protoc generated code could not be compiled. (as the constructor code 
> has 
> > exceeded 65535 bytes limit). What can be done to work around this? 
>
> Use less fields :) 
>
> Your protocol buffer looks pretty degenerated using all these fields. 
> Java classes have a limit in size, 
> so you'll run into the problem at one point or another. 
> You might consider putting these attributes in a repeated field. 
> Or use extensions to better reflect generic data. 
>
> It will make your code using the protocol buffer much more readable as 
> well. 
>
> -h 
>
> > 
> > -- 
> > 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+u...@googlegroups.com <javascript:>. 
> > To post to this group, send email to prot...@googlegroups.com 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/protobuf. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to