public static UnitSizeType valueOf(int value) {
      switch (value) {
        case 0: return Independent;
        case 1: return Small;
        case 2: return Medium;
        case 3: return Large;
        case 4: return NoneSize;
        case 5: return UnknownSize;
        default: return null;
      }
    }