I'm not really sure I understand where your sense of panic or loss is coming from. You seem to think that suppliers of original content are about to become extinct based solely on the results of Googling your own book.
People who are pirating your book are not reading your book. People who are reading your book are not pirating it. Any engineer who seriously wants to learn about whatever's in your "Data Compression Textbook" is going to buy it and expense it to their company. They are absolutely not going to get on TPB and grab the torrent. I don't really get what you're worrying about here.
It's the same thing with everything else that is pirated. The people who are downloading pirated movies, music, books, or whatever are not the ones who would ever have paid for them if the pirated versions were unavailable -- it either costs too much or is of insufficient interest to that segment of the population to warrant the cost. The revenue you are losing to this channel is negligible. But it may serve as advertisement. If college students are downloading your book to learn about whatever unique data compression techniques you offer that aren't already freely available via standards documents or course materials, they may decide that they like your writing style and presentation (or not) and drive future sales when they actually have a career and money to spend on such things.
Apparently, you've never discovered new music or groups through downloading albums. That's the only way I find new groups that I like these days. And when I find something new that I like, I go out and buy it. If I don't, it gets deleted.