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.
Implements
IMessage<PubsubTarget>, IEquatable<PubsubTarget>, IDeepCloneable<PubsubTarget>, IBufferMessage, IMessageNamespace
Google.Cloud.Scheduler.V1Assembly
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 |
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 | |
---|---|
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 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 | |
---|---|
Type | Description |
String |
TopicNameAsTopicName
public TopicName TopicNameAsTopicName { get; set; }
Property Value | |
---|---|
Type | Description |
TopicName |