I have a message definition with enum type and field in it. When my
application sets this field to value that is equal to 0 the ENTIRE
message arrives to receiver (after serialization and de-serialization)
with ALL fields reset (all integers are 0-s and strings are empty)

Is it a bug in serialization/deserialization or zero is not allowed as
numeric enum value? The documentation (http://code.google.com/apis/
protocolbuffers/docs/proto.html#enum) shows example where 0 is used as
numeric value inside enum (UNIVERSAL):


  enum Corpus {
    UNIVERSAL = 0;
    WEB = 1;
    IMAGES = 2;
    LOCAL = 3;
    NEWS = 4;
    PRODUCTS = 5;
    VIDEO = 6;
  }

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@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