public sealed class PublishRequest : IMessage<PublishRequest>, IEquatable<PublishRequest>, IDeepCloneable<PublishRequest>, IBufferMessage, IMessage
Request for the Publish method.
Inheritance
System.Object > PublishRequestImplements
Google.Protobuf.IMessage<PublishRequest>, System.IEquatable<PublishRequest>, Google.Protobuf.IDeepCloneable<PublishRequest>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessageNamespace
Google.Cloud.PubSub.V1Assembly
Google.Cloud.PubSub.V1.dll
Constructors
PublishRequest()
public PublishRequest()
PublishRequest(PublishRequest)
public PublishRequest(PublishRequest other)
Parameter | |
---|---|
Name | Description |
other | PublishRequest |
Properties
Messages
public RepeatedField<PubsubMessage> Messages { get; }
Required. The messages to publish.
Property Value | |
---|---|
Type | Description |
Google.Protobuf.Collections.RepeatedField<PubsubMessage> |
Topic
public string Topic { get; set; }
Required. The messages in the request will be published on this topic.
Format is projects/{project}/topics/{topic}
.
Property Value | |
---|---|
Type | Description |
System.String |
TopicAsTopicName
public TopicName TopicAsTopicName { get; set; }
Property Value | |
---|---|
Type | Description |
TopicName |