The limit applies to the data source from which a message is parsed. So if
you want to parse a serialization of Foo, it applies to Foo. But if you
parse a bunch of Bar messages one by one, and add them individually to Bar,
then the limit only applies to each individual Bar.

You can change the limit in your code if you create your own
CodedInputStream and call its SetTotalBytesLimit method in C++, or its Java
equivalent setSizeLimit.

On Tue, Jan 12, 2010 at 8:41 AM, Delip Rao <delip...@gmail.com> wrote:

> Hi,
>
> I'm trying to understand protobuf message size limits. Is the 64M
> message limit fixed or can it be changed via some compile option? If I
> have a message Foo defined as:
>
> message Foo {
>  repeated Bar bars = 1;
> }
>
> Will the limit apply to Foo or just the individual Bars?
>
> Thanks,
> Delip
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

Reply via email to