public static String getFieldName ( Field field ) { String name = field . getName ( ) ; String formattedName = Formatter . toCamelCase ( name ) ; if ( isReservedKeyword ( formattedName ) ) { return formattedName + ' ' ; } return formattedName ; }
Returns a java field name for proto field .