In the following example I get two "Missing field number", one of each of 
the nested oneof. The docs say you can't nest maps in a oneof. they don't 
say anything about other oneofs.

protoc --version says : libprotoc 3.13.0

syntax = "proto3";

message typeOne {
  int32 weight = 1;
  string color =2;
}
message typeTwo {
  int64 time=1;
}
message typeThree {
  string name = 1;
  bool isHappy = 2;
}

message wireMessage {
  oneof msgType {
    oneof goodOnes {
      typeOne one = 1;
      typeThree three = 2;
    }
    oneof badOnes {
      typeTwo = 1;
      typeTwo = 1;
    }
  }
}

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/fb6ab5ba-67ca-496b-adcf-be7f38311ea4n%40googlegroups.com.

Reply via email to