This repo contains a small example CLI that calls the Google Cloud Translate API using the official Google client libraries.
You'll need a Google Cloud project and Application-Default Credentials, but once you have that, the rest is easy:
$ make
go install ./...
$ translate-googleapis --parent projects/agentio "I just called a Google gRPC API"
{
"translations": [
{
"translatedText": "Acabo de llamar a una API gRPC de Google"
}
]
}
In the example above, my project is agentio.