Google Cloud Scheduler v1 API - Class PubsubTarget (3.4.0)

public sealed class PubsubTarget : IMessage<PubsubTarget>, IEquatable<PubsubTarget>, IDeepCloneable<PubsubTarget>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Scheduler v1 API class PubsubTarget.

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

Inheritance

object > PubsubTarget

Namespace

Google.Cloud.Scheduler.V1

Assembly

Google.Cloud.Scheduler.V1.dll

Constructors

PubsubTarget()

public PubsubTarget()

PubsubTarget(PubsubTarget)

public PubsubTarget(PubsubTarget other)
Parameter
Name Description
other PubsubTarget

Properties

Attributes

public MapField<string, string> Attributes { get; }

Attributes for PubsubMessage.

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

Property Value
Type Description
MapFieldstringstring

Data

public ByteString Data { get; set; }

The message payload for PubsubMessage.

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

Property Value
Type Description
ByteString

TopicName

public string TopicName { get; set; }

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 Pub/Sub's PublishRequest.name, for example projects/PROJECT_ID/topics/TOPIC_ID.

The topic must be in the same project as the Cloud Scheduler job.

Property Value
Type Description
string

TopicNameAsTopicName

public TopicName TopicNameAsTopicName { get; set; }

TopicName-typed view over the TopicName resource name property.

Property Value
Type Description
TopicName