(self, the_api, method, unused_rsrc)
Override the default.
Override the default.
Override the default .
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') and
          method.values['isPagingStyleStandard']):
        import_manager.AddImport(request_pager_h)

    method.SetTemplateValue(
        'undecoratedClassName',
        '%sMethod' % utilities.CamelCase(method.values['wireName']))
    self.AnnotateDocumentation(method)
def AnnotateMethod ( self , the_api , method , unused_rsrc ) : 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' ) and method . values [ 'isPagingStyleStandard' ] ) : import_manager . AddImport ( request_pager_h ) method . SetTemplateValue ( 'undecoratedClassName' , '%sMethod' % utilities . CamelCase ( method . values [ 'wireName' ] ) ) self . AnnotateDocumentation ( method )