private String fieldComment(String name,String type,String paramComment){
  String comment=String.format("  %s (%s)",name,type);
  if (!Strings.isNullOrEmpty(paramComment)) {
    if (paramComment.charAt(paramComment.length() - 1) == '\n') {
      paramComment=paramComment.substring(0,paramComment.length() - 1);
    }
    comment+=": " + paramComment.replaceAll("(\\r?\\n)","\n    ");
  }
  return comment + "\n";
}

private String fieldComment ( String name , String type , String paramComment ) { String comment = String . format ( "  %s (%s)" , name , type ) ; if ( ! Strings . isNullOrEmpty ( paramComment ) ) { if ( paramComment . charAt ( paramComment . length ( ) - 1 ) == '\n' ) { paramComment = paramComment . substring ( 0 , paramComment . length ( ) - 1 ) ; } comment += ": " + paramComment . replaceAll ( "(\\r?\\n)" , "\n    " ) ; } return comment + "\n" ; }
returns a comment string for field , consisting of type information and proto comment .
