summaryrefslogtreecommitdiffstats
path: root/tests/inputs/oneof_empty/oneof_empty.proto
blob: ca51d5ae90a49f9e4612a4a44a507e230039f33b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
  }
}