blob: 9362527fb8c511a13d1caa7aa04a721e4f5a4fed [file] [view] [edit]
When switching over a proto `one_of`, getters that don't match the current case
are guaranteed to be return a default instance:
```java
switch (foo.getBlahCase()) {
case FOO:
return foo.getFoo();
case BAR:
return foo.getFoo(); // should be foo.getBar()
}
```