public static _Fields findByThriftId(int fieldId){
switch (fieldId) {
case 1:
    return BEGIN_IN_BOTH;
case 2:
  return NEWINT;
case 3:
return NEWBYTE;
case 4:
return NEWSHORT;
case 5:
return NEWLONG;
case 6:
return NEWDOUBLE;
case 7:
return NEWSTRUCT;
case 8:
return NEWLIST;
case 9:
return NEWSET;
case 10:
return NEWMAP;
case 11:
return NEWSTRING;
case 12:
return END_IN_BOTH;
default :
return null;
}
}

public static _Fields findByThriftId ( int fieldId ) { switch ( fieldId ) { case 1 : return BEGIN_IN_BOTH ; case 2 : return NEWINT ; case 3 : return NEWBYTE ; case 4 : return NEWSHORT ; case 5 : return NEWLONG ; case 6 : return NEWDOUBLE ; case 7 : return NEWSTRUCT ; case 8 : return NEWLIST ; case 9 : return NEWSET ; case 10 : return NEWMAP ; case 11 : return NEWSTRING ; case 12 : return END_IN_BOTH ; default : return null ; } }
find the _fields constant that matches fieldid , or null if its not found .
