oneof.proto 239 B

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