JobPubsubTarget

data class JobPubsubTarget(val attributes: Map<String, String>? = null, val data: String? = null, val topicName: String)

Constructors

Link copied to clipboard
constructor(attributes: Map<String, String>? = null, data: String? = null, topicName: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val attributes: Map<String, String>? = null

Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.

Link copied to clipboard
val data: String? = null

The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. A base64-encoded string.

Link copied to clipboard

The full resource name for the Cloud Pub/Sub topic to which messages will be published when a job is delivered. ~>NOTE: The topic name must be in the same format as required by PubSub's PublishRequest.name, e.g. projects/my-project/topics/my-topic.