def _Call(call, req, resp):
 if hasattr(req, 'app_id'):
  req.set_app_id(datastore_types.ResolveAppId(req.app_id()))
 try:
  result = apiproxy_stub_map.MakeSyncCall('datastore_v3', call, req, resp)
  if result:
   return result
  return resp
 except apiproxy_errors.ApplicationError as err:
  raise datastore._ToDatastoreError(err)

def _Call ( call , req , resp ) : if hasattr ( req , 'app_id' ) : req . set_app_id ( datastore_types . ResolveAppId ( req . app_id ( ) ) ) try : result = apiproxy_stub_map . MakeSyncCall ( 'datastore_v3' , call , req , resp ) if result : return result return resp except apiproxy_errors . ApplicationError as err : raise datastore . _ToDatastoreError ( err )
generic method for making a datastore api call .