What is the wire protocol of Elasticsearch client

Hello,

I am building an application to talk to ES cluster. I have the flexibility to code the application in Java(using the java client) or C++(using REST APIs). I wanted to know which route would be better?

If the Java client internally converts requests into REST queries, then I might as well go ahead with C++ client.

Thanks,
Smidth