Interface GoogleCloudPubSubDestination

All Superinterfaces:
Destination
All Known Implementing Classes:
GoogleCloudPubSubDestinationImpl

public interface GoogleCloudPubSubDestination extends Destination

Destination for Google Cloud Pub/Sub that can be used for Pull subscriptions as well as for Push subscriptions. The topic must give the pubsub.topics.publish permission to the service account [email protected]. If used with the CloudEventsFormat, the message conforms to the PubSub Protocol Binding of the Structured Content Mode.


Example to create an instance using the builder pattern

     GoogleCloudPubSubDestination googleCloudPubSubDestination = GoogleCloudPubSubDestination.builder()
             .projectId("{projectId}")
             .topic("{topic}")
             .build()