With a Kafka compatibility shim: https://github.com/googleapis/java-pubsublite-kafka
Disclaimer: I work for GCP.