PubsubTarget class final

pubsub_target block. Use topicName = TfArg.ref(topic.id) so the value resolves to the full projects/{project}/topics/{name} path — topic.nameRef (just the bare name) is not sufficient.

Inheritance
Annotations
  • @immutable

Constructors

PubsubTarget({required TfArg<String> topicName, TfArg<String>? data, TfArg<Map<String, String>>? attributes})
const

Properties

attributes → TfArg<Map<String, String>>?
final
blockKey String
argMap key under which this target is emitted (e.g. pubsub_target).
no setteroverride
data → TfArg<String>?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topicName → TfArg<String>
Important: Pub/Sub Scheduler expects the full resource path projects/{project}/topics/{topic}. Pass TfArg.ref(topic.id)not topic.nameRef. See topic.id getter on GooglePubsubTopic (the runtime exposes id for exactly this case).
final

Methods

encode() Map<String, Object?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited