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

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