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.
Implements
IMessagePubsubTarget, IEquatablePubsubTarget, IDeepCloneablePubsubTarget, IBufferMessage, IMessageNamespace
GoogleGoogle.CloudGoogle.Cloud.SchedulerV1Assembly
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; }
Property Value | |
---|---|
Type | Description |
TopicName |