oneof.proto 355 B

12345678910111213141516171819
  1. syntax = "proto3";
  2. import "other.proto";
  3. message FirstOneof {}
  4. message Bar {
  5. oneof content {
  6. FirstOneof first = 1;
  7. SecondOneof second = 2; // unknown size if no options are considered
  8. }
  9. }
  10. message Foo {
  11. AnotherList foo = 1; // again, unknown size
  12. Bar bar = 2; // no duplicate size_union shall be generated anymore
  13. }