[protobuf] Message encoding question

2014-10-15 Thread Tamás Somhegyi
Hello,

I am quite new to Protocol Buffers but I have read the tutorials. There is 
one part of the encoding which I don't understand.
How the message types are encoded? As I see the tutorial mentions the field 
encoding but the field id is unique only in the message.

Best regards,
Tamas

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


[protobuf] Message encoding question

2014-10-15 Thread Tamás Somhegyi
Hello,

I am quite new to Protocol Buffers but I have read the tutorials. There is 
one part of the encoding which I don't understand.
How the message types are encoded? As I see the tutorial mentions the field 
encoding but the field id is unique only in the message.

Best regards,
Tamas

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


Re: [protobuf] Message encoding question

2014-10-15 Thread Ilia Mirkin
On Wed, Oct 15, 2014 at 6:05 AM, Tamás Somhegyi
 wrote:
> Hello,
>
> I am quite new to Protocol Buffers but I have read the tutorials. There is
> one part of the encoding which I don't understand.
> How the message types are encoded? As I see the tutorial mentions the field
> encoding but the field id is unique only in the message.

They're not. It's up to you to know what message you're decoding.

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