Class PubsubTarget (2.7.1)

PubsubTarget(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.

Attributes

NameDescription
topic_name str
Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by PubSub's `PublishRequest.name
data bytes
The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
attributes Mapping[str, str]
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.

Inheritance

builtins.object > proto.message.Message > PubsubTarget

Classes

AttributesEntry

AttributesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, `.Message`]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.