parameters: (self, message_type)
docstring: Print the docstring for this message.
docstring_summary: Print the docstring for this message.
docstring_tokens: Print the docstring for this message .
function: def __PrintMessageDocstringLines(self, message_type):
          """Print the docstring for this message."""
          description = message_type.description or '%s message type.' % (
              message_type.name)
          short_description = (
              _EmptyMessage(message_type) and
              len(description) < (self.__printer.CalculateWidth() - 6))
          with self.__printer.CommentContext():
              if short_description:
                  # Note that we use explicit string interpolation here since
                  # we're in comment context.
                  self.__printer('"""%s"""' % description)
                  return
              for line in textwrap.wrap('"""%s' % description,
                                        self.__printer.CalculateWidth()):
                  self.__printer(line)
  
              PrintIndentedDescriptions(self.__printer, message_type.enum_types,
                                        'Enums')
              PrintIndentedDescriptions(
                  self.__printer, message_type.message_types, 'Messages')
              PrintIndentedDescriptions(
                  self.__printer, message_type.fields, 'Fields')
              self.__printer('"""')
              self.__printer()
function_tokens: def __PrintMessageDocstringLines ( self , message_type ) : description = message_type . description or '%s message type.' % ( message_type . name ) short_description = ( _EmptyMessage ( message_type ) and len ( description ) < ( self . __printer . CalculateWidth ( ) - 6 ) ) with self . __printer . CommentContext ( ) : if short_description : # Note that we use explicit string interpolation here since # we're in comment context. self . __printer ( '"""%s"""' % description ) return for line in textwrap . wrap ( '"""%s' % description , self . __printer . CalculateWidth ( ) ) : self . __printer ( line ) PrintIndentedDescriptions ( self . __printer , message_type . enum_types , 'Enums' ) PrintIndentedDescriptions ( self . __printer , message_type . message_types , 'Messages' ) PrintIndentedDescriptions ( self . __printer , message_type . fields , 'Fields' ) self . __printer ( '"""' ) self . __printer ( )