def __frontend_limit_descriptor(self, api_info):
if api_info.frontend_limits is None:<EOL><INDENT>return None<EOL><DEDENT>descriptor = {}<EOL>for propname, descname in (('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>')):<EOL><INDENT>if getattr(api_info.frontend_limits, propname) is not None:<EOL><INDENT>descriptor[descname] = getattr(api_info.frontend_limits, propname)<EOL><DEDENT><DEDENT>rules = self.__frontend_limit_rules_descriptor(api_info)<EOL>if rules:<EOL><INDENT>descriptor['<STR_LIT>'] = rules<EOL><DEDENT>return descriptor<EOL>
Builds a frontend limit descriptor from API info.

        Args:
          api_info: An _ApiInfo object.

        Returns:
          A dictionary with frontend limit information.