Generated from the YugabyteDB provided proto files, no enterprise protobufs here.
Clone YugabyteDB sources somewhere:
mkdir -p /tmp/ybdb
cd /tmp/ybdb
git clone https://github.com/yugabyte/yugabyte-db.git .
git checkout v2.13.0
Clone this repository:
mkdir -p ${GOPATH}/src/github.com/radekg/yugabyte-db-go-proto
cd ${GOPATH}/src/github.com/radekg/yugabyte-db-go-proto
git clone https://github.com/radekg/yugabyte-db-go-proto.git .
Generate:
make YB_SRC_DIR=/tmp/ybdb clean get-proto gen-proto
import (
ybApi "github.com/radekg/yugabyte-db-go-proto/v2/yb/api"
)
For a real world example, have a look at the reference YugabyteDB CLI client.