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
Namespace
Google \ Cloud \ PubSub \ V1Methods
__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}
.
string
setTopic
Required. The messages in the request will be published on this topic.
Format is projects/{project}/topics/{topic}
.
var
string
$this
getMessages
Required. The messages to publish.
setMessages
Required. The messages to publish.
$this
static::build
topic
string
Required. The messages in the request will be published on this topic.
Format is projects/{project}/topics/{topic}
. Please see PublisherClient::topicName()
for help formatting this field.
messages