public static List < String > bitFieldNames ( Message message ) { int fieldCount = message . getFieldCount ( ) ; if ( fieldCount == 0 ) { return Collections . emptyList ( ) ; } List < String > result = new ArrayList <> ( ) ; int n = ( fieldCount - 1 ) / 32 + 1 ; for ( int i = 0 ; i < n ; i ++ ) { result . add ( "__bitField" + i ) ; } return result ; }
Returns a list of bit fields used for field presence checks .