Class PubsubTarget (3.0.0)

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

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
NameDescription
otherPubsubTarget

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
TypeDescription
MapField<String, String>

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
TypeDescription
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 PubSub'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
TypeDescription
String

TopicNameAsTopicName

public TopicName TopicNameAsTopicName { get; set; }

TopicName-typed view over the TopicName resource name property.

Property Value
TypeDescription
TopicName