I am using Kafka Connect with the Google PubSub Connector to write messages from gcp PubSub into Kafka Topics.
My Connector has the following configuration: