oneof.proto 192 B

123456789101112131415161718
  1. syntax = "proto3";
  2. import "other.proto";
  3. message FirstOneof {}
  4. message Bar {
  5. oneof content {
  6. FirstOneof first = 1;
  7. SecondOneof second = 2;
  8. }
  9. }
  10. message Foo {
  11. Bar bar = 1;
  12. }