Cloud Pub/Sub v1 API - Class PublishRequest (3.4.0)

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

Reference documentation and code samples for the Cloud Pub/Sub v1 API class PublishRequest.

Request for the Publish method.

Inheritance

object > PublishRequest

Namespace

GoogleGoogle.CloudGoogle.Cloud.PubSubV1

Assembly

Google.Cloud.PubSub.V1.dll

Constructors

PublishRequest()

public PublishRequest()

PublishRequest(PublishRequest)

public PublishRequest(PublishRequest other)
Parameter
NameDescription
otherPublishRequest

Properties

Messages

public RepeatedField<PubsubMessage> Messages { get; }

Required. The messages to publish.

Property Value
TypeDescription
RepeatedFieldPubsubMessage

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
TypeDescription
string

TopicAsTopicName

public TopicName TopicAsTopicName { get; set; }

TopicName-typed view over the Topic resource name property.

Property Value
TypeDescription
TopicName