Reference documentation and code samples for the Cloud PubSub V1 Client class PublishRequest.
Request for the Publish method.
Generated from protobuf message google.pubsub.v1.PublishRequest
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ topic
string
Required. The messages in the request will be published on this topic. Format is projects/{project}/topics/{topic}
.
↳ messages
getTopic
Required. The messages in the request will be published on this topic.
Format is projects/{project}/topics/{topic}
.
Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
string
setTopic
Required. The messages in the request will be published on this topic.
Format is projects/{project}/topics/{topic}
.
Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
var
string
$this
getMessages
Required. The messages to publish.
Generated from protobuf field repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Google\Protobuf\Internal\RepeatedField
setMessages
Required. The messages to publish.
Generated from protobuf field repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
$this