2022-03-03 13:34:53 +00:00

18 lines
233 B
Protocol Buffer

syntax = "proto3";
package oneof_empty;
message Nothing {}
message MaybeNothing {
string sometimes = 42;
}
message Test {
oneof empty {
Nothing nothing = 1;
MaybeNothing maybe1 = 2;
MaybeNothing maybe2 = 3;
}
}