def AnnotateMethod(self, the_api, method, unused_rsrc):
    """Override the default."""
    super(CppGenerator, self).AnnotateMethod(the_api, method, unused_rsrc)
    import_manager = cpp_import_manager.CppImportManager.ForElement(the_api)
    request_type = method.values.get('requestType')
    response_type = method.values.get('responseType')
    if request_type:
      self._HandleImports(request_type, import_manager)

    if method.values.get('mediaUpload'):
      media_upload_h = '"googleapis/client/service/media_uploader.h"'
      import_manager.AddImport(media_upload_h)

    if response_type != the_api.void_type:
      request_pager_h = '"googleapis/client/service/service_request_pager.h"'
      self._HandleImports(method.values['responseType'], import_manager)
      if method.values.get('isPageable'):
        import_manager.AddImport(request_pager_h)

    method.SetTemplateValue(
        'undecoratedClassName',
        '%sMethod' % utilities.CamelCase(method.values['wireName']))
    self.AnnotateDocumentation(method)
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/cpp_generator.py/CppGenerator.AnnotateMethod/original