parameters: (cls)
docstring: Helper method for creating outer definition name.
  
      Returns:
        If definition is nested, will return the outer definitions name, else the
        package name.
docstring_summary: Helper method for creating outer definition name.
docstring_tokens: Helper method for creating outer definition name .
function: def outer_definition_name(cls):
      """Helper method for creating outer definition name.
  
      Returns:
        If definition is nested, will return the outer definitions name, else the
        package name.
      """
      outer_definition = cls.message_definition()
      if not outer_definition:
        return util.get_package_for_module(cls.__module__)
      else:
        return outer_definition.definition_name()
function_tokens: def outer_definition_name ( cls ) : outer_definition = cls . message_definition ( ) if not outer_definition : return util . get_package_for_module ( cls . __module__ ) else : return outer_definition . definition_name ( )