code: public static String getOneofNotSetConstantName(Oneof oneof) {
          String name = oneof.getName();
          String underscored = Formatter.toUnderscoreCase(name);
          return Formatter.toUpperCase(underscored) + "_NOT_SET";
      }
docs: Returns a "not set" name for one-of enum constant.