bazel 0.4.5 generates a few different errors on the current code [0, 1]:
because there are non-exhaustive switch statements that don't have defaults.
In case  this is sort of a non-issue because there is a _different_ switch statement earlier in the code that includes a default (which rejects all other enum values with an exception), but this is fragile.
In cases like these we may want to refactor the code to remove this fragility.
In case  there is no previous switch statement that provides a run-time guard (AFAICT).
In cases like these we need to provide a meaningful default behavior (throwing an exception, logging, etc.).