Re: [protobuf] Why does ParseFromArray is not Failing ? (C++ , ProtoBuf Version 2.6.1)

2016-11-28 Thread SAMEER CHAUDHARI
Yes

On Mon, Nov 28, 2016, 11:25 AM Adam Cozzette  wrote:

> Just to make sure I understand, are you saying you are taking a serialized
> message of some type A and attempting to parse it as a different type B and
> you are wondering why it is succeeding despite the mismatch? If so, the
> answer is that protocol buffers are designed to allow schemas to evolve
> over time and so it is typical and expected to come across fields that were
> not present in the schema. The message is probably being interpreted as a B
> message with a few unknown fields.
>
> On Thu, Nov 24, 2016 at 7:15 AM, SAMEER CHAUDHARI <
> sameer.m.chaudh...@gmail.com> wrote:
>
> Hi ,
>
> Language :=>   C++
> Proto Compiler :=>   2.6.1
> API :=>   ParseFromArray
>
> Why does parseFromArray is not failing when passed with valid
> different  ProtoBuff message ?
>
>
>
>
> --
> 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.
>
>
>

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


Re: [protobuf] Why does ParseFromArray is not Failing ? (C++ , ProtoBuf Version 2.6.1)

2016-11-28 Thread 'Adam Cozzette' via Protocol Buffers
Just to make sure I understand, are you saying you are taking a serialized
message of some type A and attempting to parse it as a different type B and
you are wondering why it is succeeding despite the mismatch? If so, the
answer is that protocol buffers are designed to allow schemas to evolve
over time and so it is typical and expected to come across fields that were
not present in the schema. The message is probably being interpreted as a B
message with a few unknown fields.

On Thu, Nov 24, 2016 at 7:15 AM, SAMEER CHAUDHARI <
sameer.m.chaudh...@gmail.com> wrote:

> Hi ,
>
> Language :=>   C++
> Proto Compiler :=>   2.6.1
> API :=>   ParseFromArray
>
> Why does parseFromArray is not failing when passed with valid
> different  ProtoBuff message ?
>
>
>
>
> --
> 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.
>

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


[protobuf] Why does ParseFromArray is not Failing ? (C++ , ProtoBuf Version 2.6.1)

2016-11-24 Thread SAMEER CHAUDHARI
Hi ,

Language :=>   C++
Proto Compiler :=>   2.6.1
API :=>   ParseFromArray

Why does parseFromArray is not failing when passed with valid 
different  ProtoBuff message ?




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