1 syntax = "proto2"; 2 3 package oneoftest; 4 5 message Foo { 6 oneof bar { 7 string get_bar = 1; 8 } 9 } 10