recv_getTableRegions ip = do
  (fname, mtype, rseqid) <- readMessageBegin ip
  if mtype == M_EXCEPTION then do
    x <- readAppExn ip
    readMessageEnd ip
    throw x
    else return ()
  res <- read_GetTableRegions_result ip
  readMessageEnd ip
  case f_GetTableRegions_result_success res of
    Just v -> return v
    Nothing -> do
      case f_GetTableRegions_result_io res of
        Nothing -> return ()
        Just _v -> throw _v
      throw (AppExn AE_MISSING_RESULT "getTableRegions failed: unknown result")
recv_getTableRegions ip = do
  (fname, mtype, rseqid) <- readMessageBegin ip
  if mtype == M_EXCEPTION then do
    x <- readAppExn ip
    readMessageEnd ip
    throw x
    else return ()
  res <- read_GetTableRegions_result ip
  readMessageEnd ip
  case f_GetTableRegions_result_success res of
    Just v -> return v
    Nothing -> do
      case f_GetTableRegions_result_io res of
        Nothing -> return ()
        Just _v -> throw _v
      throw (AppExn AE_MISSING_RESULT "getTableRegions failed: unknown result")
recv_getTableRegions ip = do
  (fname, mtype, rseqid) <- readMessageBegin ip
  if mtype == M_EXCEPTION then do
    x <- readAppExn ip
    readMessageEnd ip
    throw x
    else return ()
  res <- read_GetTableRegions_result ip
  readMessageEnd ip
  case f_GetTableRegions_result_success res of
    Just v -> return v
    Nothing -> do
      case f_GetTableRegions_result_io res of
        Nothing -> return ()
        Just _v -> throw _v
      throw (AppExn AE_MISSING_RESULT "getTableRegions failed: unknown result")