public List<String> messageComments(MessageType msg,PythonImportHandler importHandler){
  StringBuilder paramTypesBuilder=new StringBuilder();
  paramTypesBuilder.append("Attributes:\n");
  for (  Field field : msg.getFields()) {
    paramTypesBuilder.append(fieldComment(field.getSimpleName(),field,importHandler,null));
  }
  String paramTypes=paramTypesBuilder.toString();
  StringBuilder contentBuilder=new StringBuilder();
  if (msg.hasAttribute(ElementDocumentationAttribute.KEY)) {
    contentBuilder.append(getSphinxifiedScopedDescription(msg));
    if (!Strings.isNullOrEmpty(paramTypes)) {
      contentBuilder.append("\n\n");
    }
  }
  contentBuilder.append(paramTypes);
  return pythonCommon.convertToCommentedBlock(contentBuilder.toString());
}

public List < String > messageComments ( MessageType msg , PythonImportHandler importHandler ) { StringBuilder paramTypesBuilder = new StringBuilder ( ) ; paramTypesBuilder . append ( "Attributes:\n" ) ; for ( Field field : msg . getFields ( ) ) { paramTypesBuilder . append ( fieldComment ( field . getSimpleName ( ) , field , importHandler , null ) ) ; } String paramTypes = paramTypesBuilder . toString ( ) ; StringBuilder contentBuilder = new StringBuilder ( ) ; if ( msg . hasAttribute ( ElementDocumentationAttribute . KEY ) ) { contentBuilder . append ( getSphinxifiedScopedDescription ( msg ) ) ; if ( ! Strings . isNullOrEmpty ( paramTypes ) ) { contentBuilder . append ( "\n\n" ) ; } } contentBuilder . append ( paramTypes ) ; return pythonCommon . convertToCommentedBlock ( contentBuilder . toString ( ) ) ; }
return comments lines for a given message , consisting of proto doc and argument type documentation .
