public static _Fields findByThriftId(int fieldId){
switch (fieldId) {
case 1:
    return IM_TRUE;
case 2:
  return IM_FALSE;
default :
return null;
}
}

public static _Fields findByThriftId ( int fieldId ) { switch ( fieldId ) { case 1 : return IM_TRUE ; case 2 : return IM_FALSE ; default : return null ; } }
find the _fields constant that matches fieldid , or null if its not found .
