class PublishRequest extends Message

Request for the Publish method.

Protobuf type Google\Pubsub\V1\PublishRequest

Methods

__construct()

No description

string
getTopic()

The messages in the request will be published on this topic.

setTopic(string $var)

The messages in the request will be published on this topic.

RepeatedField
getMessages()

The messages to publish.

setMessages(array|RepeatedField $var)

The messages to publish.

Details

at line 32
__construct()

at line 44
string getTopic()

The messages in the request will be published on this topic.

Format is projects/{project}/topics/{topic}.

Generated from protobuf field string topic = 1;

Return Value

string

at line 56
setTopic(string $var)

The messages in the request will be published on this topic.

Format is projects/{project}/topics/{topic}.

Generated from protobuf field string topic = 1;

Parameters

string $var

at line 68
RepeatedField getMessages()

The messages to publish.

Generated from protobuf field repeated .google.pubsub.v1.PubsubMessage messages = 2;

Return Value

RepeatedField

at line 79
setMessages(array|RepeatedField $var)

The messages to publish.

Generated from protobuf field repeated .google.pubsub.v1.PubsubMessage messages = 2;

Parameters

array|RepeatedField $var