oneof.proto 186 B

12345678910111213
  1. syntax = "proto3";
  2. import "submessage.proto";
  3. message MyMessage
  4. {
  5. oneof foo
  6. {
  7. SubMessage1 msg1 = 1;
  8. SubMessage2 msg2 = 2;
  9. SubMessage3 msg3 = 3;
  10. }
  11. }