test.proto 142 B

123456789
  1. syntax = "proto2";
  2. package oneoftest;
  3. message Foo {
  4. oneof bar { // must be generated as Bar field in Foo struct
  5. string get_bar = 1;
  6. }
  7. }